From 22c6e491d03c073931e1e57b4c8e393b1d5b3016 Mon Sep 17 00:00:00 2001 From: Philip Top Date: Tue, 12 Nov 2024 06:00:40 -0800 Subject: [PATCH] update backup files --- .../shared_api_library/backup/helics/helics.h | 24 +- .../backup/helics/helics_api.h | 490 ++++++++++-------- 2 files changed, 288 insertions(+), 226 deletions(-) diff --git a/src/helics/shared_api_library/backup/helics/helics.h b/src/helics/shared_api_library/backup/helics/helics.h index 9439aa28ef..413e72e03e 100644 --- a/src/helics/shared_api_library/backup/helics/helics.h +++ b/src/helics/shared_api_library/backup/helics/helics.h @@ -1338,7 +1338,7 @@ HELICS_EXPORT HelicsFederate helicsCreateCombinationFederate(const char* fedName * @details Combination federates are both value federates and message federates, objects can be used in all functions * that take a HelicsFederate, helics_message_federate or HelicsFederate object as an argument * - * @param configFile A JSON file or a JSON string or TOML file that contains setup and configuration information. + * @param configFile A JSON file or a JSON string,TOML file, or command line arguments that contains setup and configuration information. * * @param[in,out] err An error object that will contain an error code and string if any error occurred during the execution of the function. @@ -4636,6 +4636,28 @@ HELICS_EXPORT void helicsFilterSet(HelicsFilter filt, const char* prop, double v */ HELICS_EXPORT void helicsFilterSetString(HelicsFilter filt, const char* prop, const char* val, HelicsError* err); +/** +* Get a double property from a filter +* +* @param filt The filter to modify. +* @param prop A string containing the property to set. +* +* @param[in,out] err A pointer to an error object for catching errors. + +*/ +HELICS_EXPORT double helicsFilterGetPropertyDouble(HelicsFilter filt, const char* prop); + +/** +* Set a string property on a filter. The string output memory is valid until a subsequent call to to getPropertyString on the particular +filter +* +* @param filt The filter to modify. +* @param prop A string containing the property to set. +* + +*/ +HELICS_EXPORT const char* helicsFilterGetPropertyString(HelicsFilter filt, const char* prop); + /** * Add a destination target to a filter. * diff --git a/src/helics/shared_api_library/backup/helics/helics_api.h b/src/helics/shared_api_library/backup/helics/helics_api.h index 7ab1171d11..6c53d59b27 100644 --- a/src/helics/shared_api_library/backup/helics/helics_api.h +++ b/src/helics/shared_api_library/backup/helics/helics_api.h @@ -10,209 +10,209 @@ SPDX-License-Identifier: BSD-3-Clause typedef enum { - HELICS_CORE_TYPE_DEFAULT = 0, - HELICS_CORE_TYPE_ZMQ = 1, - HELICS_CORE_TYPE_MPI = 2, - HELICS_CORE_TYPE_TEST = 3, - HELICS_CORE_TYPE_INTERPROCESS = 4, - HELICS_CORE_TYPE_IPC = 5, - HELICS_CORE_TYPE_TCP = 6, - HELICS_CORE_TYPE_UDP = 7, - HELICS_CORE_TYPE_ZMQ_SS = 10, - HELICS_CORE_TYPE_NNG = 9, - HELICS_CORE_TYPE_TCP_SS = 11, - HELICS_CORE_TYPE_HTTP = 12, - HELICS_CORE_TYPE_WEBSOCKET = 14, - HELICS_CORE_TYPE_INPROC = 18, - HELICS_CORE_TYPE_NULL = 66, - HELICS_CORE_TYPE_EMPTY = 77 + HELICS_CORE_TYPE_DEFAULT = 0, + HELICS_CORE_TYPE_ZMQ = 1, + HELICS_CORE_TYPE_MPI = 2, + HELICS_CORE_TYPE_TEST = 3, + HELICS_CORE_TYPE_INTERPROCESS = 4, + HELICS_CORE_TYPE_IPC = 5, + HELICS_CORE_TYPE_TCP = 6, + HELICS_CORE_TYPE_UDP = 7, + HELICS_CORE_TYPE_ZMQ_SS = 10, + HELICS_CORE_TYPE_NNG = 9, + HELICS_CORE_TYPE_TCP_SS = 11, + HELICS_CORE_TYPE_HTTP = 12, + HELICS_CORE_TYPE_WEBSOCKET = 14, + HELICS_CORE_TYPE_INPROC = 18, + HELICS_CORE_TYPE_NULL = 66, + HELICS_CORE_TYPE_EMPTY = 77 } HelicsCoreTypes; typedef enum { - HELICS_DATA_TYPE_UNKNOWN = -1, - HELICS_DATA_TYPE_STRING = 0, - HELICS_DATA_TYPE_DOUBLE = 1, - HELICS_DATA_TYPE_INT = 2, - HELICS_DATA_TYPE_COMPLEX = 3, - HELICS_DATA_TYPE_VECTOR = 4, - HELICS_DATA_TYPE_COMPLEX_VECTOR = 5, - HELICS_DATA_TYPE_NAMED_POINT = 6, - HELICS_DATA_TYPE_BOOLEAN = 7, - HELICS_DATA_TYPE_TIME = 8, - HELICS_DATA_TYPE_CHAR = 9, - HELICS_DATA_TYPE_RAW = 25, - HELICS_DATA_TYPE_JSON = 30, - HELICS_DATA_TYPE_MULTI = 33, - HELICS_DATA_TYPE_ANY = 25262 + HELICS_DATA_TYPE_UNKNOWN = -1, + HELICS_DATA_TYPE_STRING = 0, + HELICS_DATA_TYPE_DOUBLE = 1, + HELICS_DATA_TYPE_INT = 2, + HELICS_DATA_TYPE_COMPLEX = 3, + HELICS_DATA_TYPE_VECTOR = 4, + HELICS_DATA_TYPE_COMPLEX_VECTOR = 5, + HELICS_DATA_TYPE_NAMED_POINT = 6, + HELICS_DATA_TYPE_BOOLEAN = 7, + HELICS_DATA_TYPE_TIME = 8, + HELICS_DATA_TYPE_CHAR = 9, + HELICS_DATA_TYPE_RAW = 25, + HELICS_DATA_TYPE_JSON = 30, + HELICS_DATA_TYPE_MULTI = 33, + HELICS_DATA_TYPE_ANY = 25262 } HelicsDataTypes; typedef enum { - HELICS_FLAG_OBSERVER = 0, - HELICS_FLAG_UNINTERRUPTIBLE = 1, - HELICS_FLAG_INTERRUPTIBLE = 2, - HELICS_FLAG_SOURCE_ONLY = 4, - HELICS_FLAG_ONLY_TRANSMIT_ON_CHANGE = 6, - HELICS_FLAG_ONLY_UPDATE_ON_CHANGE = 8, - HELICS_FLAG_WAIT_FOR_CURRENT_TIME_UPDATE = 10, - HELICS_FLAG_RESTRICTIVE_TIME_POLICY = 11, - HELICS_FLAG_ROLLBACK = 12, - HELICS_FLAG_FORWARD_COMPUTE = 14, - HELICS_FLAG_REALTIME = 16, - HELICS_FLAG_SINGLE_THREAD_FEDERATE = 27, - HELICS_FLAG_MULTI_THREAD_CORE = 28, - HELICS_FLAG_SINGLE_THREAD_CORE = 29, - HELICS_FLAG_REENTRANT = 38, - HELICS_FLAG_IGNORE_TIME_MISMATCH_WARNINGS = 67, - HELICS_FLAG_STRICT_CONFIG_CHECKING = 75, - HELICS_FLAG_USE_JSON_SERIALIZATION = 79, - HELICS_FLAG_EVENT_TRIGGERED = 81, - HELICS_FLAG_LOCAL_PROFILING_CAPTURE = 96, - HELICS_FLAG_CALLBACK_FEDERATE = 103, - HELICS_FLAG_AUTOMATED_TIME_REQUEST = 106 + HELICS_FLAG_OBSERVER = 0, + HELICS_FLAG_UNINTERRUPTIBLE = 1, + HELICS_FLAG_INTERRUPTIBLE = 2, + HELICS_FLAG_SOURCE_ONLY = 4, + HELICS_FLAG_ONLY_TRANSMIT_ON_CHANGE = 6, + HELICS_FLAG_ONLY_UPDATE_ON_CHANGE = 8, + HELICS_FLAG_WAIT_FOR_CURRENT_TIME_UPDATE = 10, + HELICS_FLAG_RESTRICTIVE_TIME_POLICY = 11, + HELICS_FLAG_ROLLBACK = 12, + HELICS_FLAG_FORWARD_COMPUTE = 14, + HELICS_FLAG_REALTIME = 16, + HELICS_FLAG_SINGLE_THREAD_FEDERATE = 27, + HELICS_FLAG_MULTI_THREAD_CORE = 28, + HELICS_FLAG_SINGLE_THREAD_CORE = 29, + HELICS_FLAG_REENTRANT = 38, + HELICS_FLAG_IGNORE_TIME_MISMATCH_WARNINGS = 67, + HELICS_FLAG_STRICT_CONFIG_CHECKING = 75, + HELICS_FLAG_USE_JSON_SERIALIZATION = 79, + HELICS_FLAG_EVENT_TRIGGERED = 81, + HELICS_FLAG_LOCAL_PROFILING_CAPTURE = 96, + HELICS_FLAG_CALLBACK_FEDERATE = 103, + HELICS_FLAG_AUTOMATED_TIME_REQUEST = 106 } HelicsFederateFlags; typedef enum { - HELICS_FLAG_DELAY_INIT_ENTRY = 45, - HELICS_FLAG_ENABLE_INIT_ENTRY = 47, - HELICS_FLAG_IGNORE = 999 + HELICS_FLAG_DELAY_INIT_ENTRY = 45, + HELICS_FLAG_ENABLE_INIT_ENTRY = 47, + HELICS_FLAG_IGNORE = 999 } HelicsCoreFlags; typedef enum { - HELICS_FLAG_SLOW_RESPONDING = 29, - HELICS_FLAG_DEBUGGING = 31, - HELICS_FLAG_TERMINATE_ON_ERROR = 72, - HELICS_FLAG_FORCE_LOGGING_FLUSH = 88, - HELICS_FLAG_DUMPLOG = 89, - HELICS_FLAG_PROFILING = 93, - HELICS_FLAG_PROFILING_MARKER = 95, - HELICS_FLAG_ALLOW_REMOTE_CONTROL = 109, - HELICS_FLAG_DISABLE_REMOTE_CONTROL = 110 + HELICS_FLAG_SLOW_RESPONDING = 29, + HELICS_FLAG_DEBUGGING = 31, + HELICS_FLAG_TERMINATE_ON_ERROR = 72, + HELICS_FLAG_FORCE_LOGGING_FLUSH = 88, + HELICS_FLAG_DUMPLOG = 89, + HELICS_FLAG_PROFILING = 93, + HELICS_FLAG_PROFILING_MARKER = 95, + HELICS_FLAG_ALLOW_REMOTE_CONTROL = 109, + HELICS_FLAG_DISABLE_REMOTE_CONTROL = 110 } HelicsFlags; typedef enum { - HELICS_LOG_LEVEL_DUMPLOG = -10, - HELICS_LOG_LEVEL_NO_PRINT = -4, - HELICS_LOG_LEVEL_ERROR = 0, - HELICS_LOG_LEVEL_PROFILING = 2, - HELICS_LOG_LEVEL_WARNING = 3, - HELICS_LOG_LEVEL_SUMMARY = 6, - HELICS_LOG_LEVEL_CONNECTIONS = 9, - HELICS_LOG_LEVEL_INTERFACES = 12, - HELICS_LOG_LEVEL_TIMING = 15, - HELICS_LOG_LEVEL_DATA = 18, - HELICS_LOG_LEVEL_DEBUG = 21, - HELICS_LOG_LEVEL_TRACE = 24 + HELICS_LOG_LEVEL_DUMPLOG = -10, + HELICS_LOG_LEVEL_NO_PRINT = -4, + HELICS_LOG_LEVEL_ERROR = 0, + HELICS_LOG_LEVEL_PROFILING = 2, + HELICS_LOG_LEVEL_WARNING = 3, + HELICS_LOG_LEVEL_SUMMARY = 6, + HELICS_LOG_LEVEL_CONNECTIONS = 9, + HELICS_LOG_LEVEL_INTERFACES = 12, + HELICS_LOG_LEVEL_TIMING = 15, + HELICS_LOG_LEVEL_DATA = 18, + HELICS_LOG_LEVEL_DEBUG = 21, + HELICS_LOG_LEVEL_TRACE = 24 } HelicsLogLevels; typedef enum { - HELICS_ERROR_FATAL = -404, - HELICS_ERROR_EXTERNAL_TYPE = -203, - HELICS_ERROR_OTHER = -101, - HELICS_USER_EXCEPTION = -29, - HELICS_ERROR_INSUFFICIENT_SPACE = -18, - HELICS_ERROR_EXECUTION_FAILURE = -14, - HELICS_ERROR_INVALID_FUNCTION_CALL = -10, - HELICS_ERROR_INVALID_STATE_TRANSITION = -9, - HELICS_WARNING = -8, - HELICS_ERROR_SYSTEM_FAILURE = -6, - HELICS_ERROR_DISCARD = -5, - HELICS_ERROR_INVALID_ARGUMENT = -4, - HELICS_ERROR_INVALID_OBJECT = -3, - HELICS_ERROR_CONNECTION_FAILURE = -2, - HELICS_ERROR_REGISTRATION_FAILURE = -1, - HELICS_OK = 0, - HELICS_ERROR_USER_ABORT = 130, - HELICS_ERROR_TERMINATED = 143 + HELICS_ERROR_FATAL = -404, + HELICS_ERROR_EXTERNAL_TYPE = -203, + HELICS_ERROR_OTHER = -101, + HELICS_USER_EXCEPTION = -29, + HELICS_ERROR_INSUFFICIENT_SPACE = -18, + HELICS_ERROR_EXECUTION_FAILURE = -14, + HELICS_ERROR_INVALID_FUNCTION_CALL = -10, + HELICS_ERROR_INVALID_STATE_TRANSITION = -9, + HELICS_WARNING = -8, + HELICS_ERROR_SYSTEM_FAILURE = -6, + HELICS_ERROR_DISCARD = -5, + HELICS_ERROR_INVALID_ARGUMENT = -4, + HELICS_ERROR_INVALID_OBJECT = -3, + HELICS_ERROR_CONNECTION_FAILURE = -2, + HELICS_ERROR_REGISTRATION_FAILURE = -1, + HELICS_OK = 0, + HELICS_ERROR_USER_ABORT = 130, + HELICS_ERROR_TERMINATED = 143 } HelicsErrorTypes; const int HELICS_INVALID_OPTION_INDEX = -101; typedef enum { - HELICS_PROPERTY_TIME_DELTA = 137, - HELICS_PROPERTY_TIME_PERIOD = 140, - HELICS_PROPERTY_TIME_OFFSET = 141, - HELICS_PROPERTY_TIME_RT_LAG = 143, - HELICS_PROPERTY_TIME_RT_LEAD = 144, - HELICS_PROPERTY_TIME_RT_TOLERANCE = 145, - HELICS_PROPERTY_TIME_INPUT_DELAY = 148, - HELICS_PROPERTY_TIME_OUTPUT_DELAY = 150, - HELICS_PROPERTY_TIME_STOPTIME = 152, - HELICS_PROPERTY_TIME_GRANT_TIMEOUT = 161, - HELICS_PROPERTY_INT_CURRENT_ITERATION = 258, - HELICS_PROPERTY_INT_MAX_ITERATIONS = 259, - HELICS_PROPERTY_INT_LOG_LEVEL = 271, - HELICS_PROPERTY_INT_FILE_LOG_LEVEL = 272, - HELICS_PROPERTY_INT_CONSOLE_LOG_LEVEL = 274, - HELICS_PROPERTY_INT_LOG_BUFFER = 276, - HELICS_PROPERTY_INT_INDEX_GROUP = 282 + HELICS_PROPERTY_TIME_DELTA = 137, + HELICS_PROPERTY_TIME_PERIOD = 140, + HELICS_PROPERTY_TIME_OFFSET = 141, + HELICS_PROPERTY_TIME_RT_LAG = 143, + HELICS_PROPERTY_TIME_RT_LEAD = 144, + HELICS_PROPERTY_TIME_RT_TOLERANCE = 145, + HELICS_PROPERTY_TIME_INPUT_DELAY = 148, + HELICS_PROPERTY_TIME_OUTPUT_DELAY = 150, + HELICS_PROPERTY_TIME_STOPTIME = 152, + HELICS_PROPERTY_TIME_GRANT_TIMEOUT = 161, + HELICS_PROPERTY_INT_CURRENT_ITERATION = 258, + HELICS_PROPERTY_INT_MAX_ITERATIONS = 259, + HELICS_PROPERTY_INT_LOG_LEVEL = 271, + HELICS_PROPERTY_INT_FILE_LOG_LEVEL = 272, + HELICS_PROPERTY_INT_CONSOLE_LOG_LEVEL = 274, + HELICS_PROPERTY_INT_LOG_BUFFER = 276, + HELICS_PROPERTY_INT_INDEX_GROUP = 282 } HelicsProperties; const int HELICS_INVALID_PROPERTY_VALUE = -972; typedef enum { - HELICS_MULTI_INPUT_NO_OP = 0, - HELICS_MULTI_INPUT_VECTORIZE_OPERATION = 1, - HELICS_MULTI_INPUT_AND_OPERATION = 2, - HELICS_MULTI_INPUT_OR_OPERATION = 3, - HELICS_MULTI_INPUT_SUM_OPERATION = 4, - HELICS_MULTI_INPUT_DIFF_OPERATION = 5, - HELICS_MULTI_INPUT_MAX_OPERATION = 6, - HELICS_MULTI_INPUT_MIN_OPERATION = 7, - HELICS_MULTI_INPUT_AVERAGE_OPERATION = 8 + HELICS_MULTI_INPUT_NO_OP = 0, + HELICS_MULTI_INPUT_VECTORIZE_OPERATION = 1, + HELICS_MULTI_INPUT_AND_OPERATION = 2, + HELICS_MULTI_INPUT_OR_OPERATION = 3, + HELICS_MULTI_INPUT_SUM_OPERATION = 4, + HELICS_MULTI_INPUT_DIFF_OPERATION = 5, + HELICS_MULTI_INPUT_MAX_OPERATION = 6, + HELICS_MULTI_INPUT_MIN_OPERATION = 7, + HELICS_MULTI_INPUT_AVERAGE_OPERATION = 8 } HelicsMultiInputModes; typedef enum { - HELICS_HANDLE_OPTION_CONNECTION_REQUIRED = 397, - HELICS_HANDLE_OPTION_CONNECTION_OPTIONAL = 402, - HELICS_HANDLE_OPTION_SINGLE_CONNECTION_ONLY = 407, - HELICS_HANDLE_OPTION_MULTIPLE_CONNECTIONS_ALLOWED = 409, - HELICS_HANDLE_OPTION_BUFFER_DATA = 411, - HELICS_HANDLE_OPTION_RECONNECTABLE = 412, - HELICS_HANDLE_OPTION_STRICT_TYPE_CHECKING = 414, - HELICS_HANDLE_OPTION_RECEIVE_ONLY = 422, - HELICS_HANDLE_OPTION_SOURCE_ONLY = 423, - HELICS_HANDLE_OPTION_IGNORE_UNIT_MISMATCH = 447, - HELICS_HANDLE_OPTION_ONLY_TRANSMIT_ON_CHANGE = 452, - HELICS_HANDLE_OPTION_ONLY_UPDATE_ON_CHANGE = 454, - HELICS_HANDLE_OPTION_IGNORE_INTERRUPTS = 475, - HELICS_HANDLE_OPTION_MULTI_INPUT_HANDLING_METHOD = 507, - HELICS_HANDLE_OPTION_INPUT_PRIORITY_LOCATION = 510, - HELICS_HANDLE_OPTION_CLEAR_PRIORITY_LIST = 512, - HELICS_HANDLE_OPTION_CONNECTIONS = 522, - HELICS_HANDLE_OPTION_TIME_RESTRICTED = 557 + HELICS_HANDLE_OPTION_CONNECTION_REQUIRED = 397, + HELICS_HANDLE_OPTION_CONNECTION_OPTIONAL = 402, + HELICS_HANDLE_OPTION_SINGLE_CONNECTION_ONLY = 407, + HELICS_HANDLE_OPTION_MULTIPLE_CONNECTIONS_ALLOWED = 409, + HELICS_HANDLE_OPTION_BUFFER_DATA = 411, + HELICS_HANDLE_OPTION_RECONNECTABLE = 412, + HELICS_HANDLE_OPTION_STRICT_TYPE_CHECKING = 414, + HELICS_HANDLE_OPTION_RECEIVE_ONLY = 422, + HELICS_HANDLE_OPTION_SOURCE_ONLY = 423, + HELICS_HANDLE_OPTION_IGNORE_UNIT_MISMATCH = 447, + HELICS_HANDLE_OPTION_ONLY_TRANSMIT_ON_CHANGE = 452, + HELICS_HANDLE_OPTION_ONLY_UPDATE_ON_CHANGE = 454, + HELICS_HANDLE_OPTION_IGNORE_INTERRUPTS = 475, + HELICS_HANDLE_OPTION_MULTI_INPUT_HANDLING_METHOD = 507, + HELICS_HANDLE_OPTION_INPUT_PRIORITY_LOCATION = 510, + HELICS_HANDLE_OPTION_CLEAR_PRIORITY_LIST = 512, + HELICS_HANDLE_OPTION_CONNECTIONS = 522, + HELICS_HANDLE_OPTION_TIME_RESTRICTED = 557 } HelicsHandleOptions; typedef enum { - HELICS_FILTER_TYPE_CUSTOM = 0, - HELICS_FILTER_TYPE_DELAY = 1, - HELICS_FILTER_TYPE_RANDOM_DELAY = 2, - HELICS_FILTER_TYPE_RANDOM_DROP = 3, - HELICS_FILTER_TYPE_REROUTE = 4, - HELICS_FILTER_TYPE_CLONE = 5, - HELICS_FILTER_TYPE_FIREWALL = 6 + HELICS_FILTER_TYPE_CUSTOM = 0, + HELICS_FILTER_TYPE_DELAY = 1, + HELICS_FILTER_TYPE_RANDOM_DELAY = 2, + HELICS_FILTER_TYPE_RANDOM_DROP = 3, + HELICS_FILTER_TYPE_REROUTE = 4, + HELICS_FILTER_TYPE_CLONE = 5, + HELICS_FILTER_TYPE_FIREWALL = 6 } HelicsFilterTypes; typedef enum { - HELICS_TRANSLATOR_TYPE_CUSTOM = 0, - HELICS_TRANSLATOR_TYPE_JSON = 11, - HELICS_TRANSLATOR_TYPE_BINARY = 12 + HELICS_TRANSLATOR_TYPE_CUSTOM = 0, + HELICS_TRANSLATOR_TYPE_JSON = 11, + HELICS_TRANSLATOR_TYPE_BINARY = 12 } HelicsTranslatorTypes; typedef enum { - HELICS_SEQUENCING_MODE_FAST = 0, - HELICS_SEQUENCING_MODE_ORDERED = 1, - HELICS_SEQUENCING_MODE_DEFAULT = 2 + HELICS_SEQUENCING_MODE_FAST = 0, + HELICS_SEQUENCING_MODE_ORDERED = 1, + HELICS_SEQUENCING_MODE_DEFAULT = 2 } HelicsSequencingModes; #define HELICS_BIG_NUMBER 9223372036.854774 @@ -331,7 +331,8 @@ void helicsDataBufferToComplex(HelicsDataBuffer data, double* real, double* imag int helicsDataBufferVectorSize(HelicsDataBuffer data); void helicsDataBufferToVector(HelicsDataBuffer data, double values[], int maxlen, int* actualSize); void helicsDataBufferToComplexVector(HelicsDataBuffer data, double values[], int maxlen, int* actualSize); -void helicsDataBufferToNamedPoint(HelicsDataBuffer data, char* outputString, int maxStringLength, int* actualLength, double* val); +void + helicsDataBufferToNamedPoint(HelicsDataBuffer data, char* outputString, int maxStringLength, int* actualLength, double* val); HelicsBool helicsDataBufferConvertToType(HelicsDataBuffer data, int newDataType); const char* helicsGetVersion(void); const char* helicsGetBuildFlags(void); @@ -351,13 +352,15 @@ HelicsCore helicsCreateCoreFromArgs(const char* type, const char* name, int argc HelicsCore helicsCoreClone(HelicsCore core, HelicsError* err); HelicsBool helicsCoreIsValid(HelicsCore core); HelicsBroker helicsCreateBroker(const char* type, const char* name, const char* initString, HelicsError* err); -HelicsBroker helicsCreateBrokerFromArgs(const char* type, const char* name, int argc, const char* const* argv, HelicsError* err); +HelicsBroker + helicsCreateBrokerFromArgs(const char* type, const char* name, int argc, const char* const* argv, HelicsError* err); HelicsBroker helicsBrokerClone(HelicsBroker broker, HelicsError* err); HelicsBool helicsBrokerIsValid(HelicsBroker broker); HelicsBool helicsBrokerIsConnected(HelicsBroker broker); void helicsBrokerDataLink(HelicsBroker broker, const char* source, const char* target, HelicsError* err); void helicsBrokerAddSourceFilterToEndpoint(HelicsBroker broker, const char* filter, const char* endpoint, HelicsError* err); -void helicsBrokerAddDestinationFilterToEndpoint(HelicsBroker broker, const char* filter, const char* endpoint, HelicsError* err); +void + helicsBrokerAddDestinationFilterToEndpoint(HelicsBroker broker, const char* filter, const char* endpoint, HelicsError* err); void helicsBrokerMakeConnections(HelicsBroker broker, const char* file, HelicsError* err); HelicsBool helicsCoreWaitForDisconnect(HelicsCore core, int msToWait, HelicsError* err); HelicsBool helicsBrokerWaitForDisconnect(HelicsBroker broker, int msToWait, HelicsError* err); @@ -414,7 +417,8 @@ int helicsGetOptionValue(const char* val); int helicsGetDataType(const char* val); void helicsFederateInfoSetFlagOption(HelicsFederateInfo fedInfo, int flag, HelicsBool value, HelicsError* err); void helicsFederateInfoSetSeparator(HelicsFederateInfo fedInfo, char separator, HelicsError* err); -void helicsFederateInfoSetTimeProperty(HelicsFederateInfo fedInfo, int timeProperty, HelicsTime propertyValue, HelicsError* err); +void + helicsFederateInfoSetTimeProperty(HelicsFederateInfo fedInfo, int timeProperty, HelicsTime propertyValue, HelicsError* err); void helicsFederateInfoSetIntegerProperty(HelicsFederateInfo fedInfo, int intProperty, int propertyValue, HelicsError* err); void helicsFederateRegisterInterfaces(HelicsFederate fed, const char* file, HelicsError* err); void helicsFederateGlobalError(HelicsFederate fed, int errorCode, const char* errorString, HelicsError* err); @@ -437,7 +441,9 @@ HelicsBool helicsFederateIsAsyncOperationCompleted(HelicsFederate fed, HelicsErr void helicsFederateEnterExecutingMode(HelicsFederate fed, HelicsError* err); void helicsFederateEnterExecutingModeAsync(HelicsFederate fed, HelicsError* err); void helicsFederateEnterExecutingModeComplete(HelicsFederate fed, HelicsError* err); -HelicsIterationResult helicsFederateEnterExecutingModeIterative(HelicsFederate fed, HelicsIterationRequest iterate, HelicsError* err); +HelicsIterationResult helicsFederateEnterExecutingModeIterative(HelicsFederate fed, + HelicsIterationRequest iterate, + HelicsError* err); void helicsFederateEnterExecutingModeIterativeAsync(HelicsFederate fed, HelicsIterationRequest iterate, HelicsError* err); HelicsIterationResult helicsFederateEnterExecutingModeIterativeComplete(HelicsFederate fed, HelicsError* err); HelicsFederateState helicsFederateGetState(HelicsFederate fed, HelicsError* err); @@ -446,14 +452,17 @@ HelicsTime helicsFederateRequestTime(HelicsFederate fed, HelicsTime requestTime, HelicsTime helicsFederateRequestTimeAdvance(HelicsFederate fed, HelicsTime timeDelta, HelicsError* err); HelicsTime helicsFederateRequestNextStep(HelicsFederate fed, HelicsError* err); HelicsTime helicsFederateRequestTimeIterative(HelicsFederate fed, - HelicsTime requestTime, - HelicsIterationRequest iterate, - HelicsIterationResult* outIteration, - HelicsError* err); + HelicsTime requestTime, + HelicsIterationRequest iterate, + HelicsIterationResult* outIteration, + HelicsError* err); void helicsFederateRequestTimeAsync(HelicsFederate fed, HelicsTime requestTime, HelicsError* err); HelicsTime helicsFederateRequestTimeComplete(HelicsFederate fed, HelicsError* err); -void helicsFederateRequestTimeIterativeAsync(HelicsFederate fed, HelicsTime requestTime, HelicsIterationRequest iterate, HelicsError* err); -HelicsTime helicsFederateRequestTimeIterativeComplete(HelicsFederate fed, HelicsIterationResult* outIterate, HelicsError* err); +void + helicsFederateRequestTimeIterativeAsync(HelicsFederate fed, HelicsTime requestTime, HelicsIterationRequest iterate, HelicsError* err); +HelicsTime helicsFederateRequestTimeIterativeComplete(HelicsFederate fed, + HelicsIterationResult* outIterate, + HelicsError* err); void helicsFederateProcessCommunications(HelicsFederate fed, HelicsTime period, HelicsError* err); const char* helicsFederateGetName(HelicsFederate fed); void helicsFederateSetTimeProperty(HelicsFederate fed, int timeProperty, HelicsTime time, HelicsError* err); @@ -514,8 +523,10 @@ HelicsPublication helicsFederateRegisterGlobalPublication(HelicsFederate fed, const char* key, HelicsDataTypes type, const char* units, HelicsError* err); HelicsPublication helicsFederateRegisterGlobalTypePublication(HelicsFederate fed, const char* key, const char* type, const char* units, HelicsError* err); -HelicsInput helicsFederateRegisterInput(HelicsFederate fed, const char* key, HelicsDataTypes type, const char* units, HelicsError* err); -HelicsInput helicsFederateRegisterTypeInput(HelicsFederate fed, const char* key, const char* type, const char* units, HelicsError* err); +HelicsInput + helicsFederateRegisterInput(HelicsFederate fed, const char* key, HelicsDataTypes type, const char* units, HelicsError* err); +HelicsInput + helicsFederateRegisterTypeInput(HelicsFederate fed, const char* key, const char* type, const char* units, HelicsError* err); HelicsPublication helicsFederateRegisterGlobalInput(HelicsFederate fed, const char* key, HelicsDataTypes type, const char* units, HelicsError* err); HelicsPublication @@ -539,7 +550,8 @@ void helicsPublicationPublishTime(HelicsPublication pub, HelicsTime val, HelicsE void helicsPublicationPublishChar(HelicsPublication pub, char val, HelicsError* err); void helicsPublicationPublishComplex(HelicsPublication pub, double real, double imag, HelicsError* err); void helicsPublicationPublishVector(HelicsPublication pub, const double* vectorInput, int vectorLength, HelicsError* err); -void helicsPublicationPublishComplexVector(HelicsPublication pub, const double* vectorInput, int vectorLength, HelicsError* err); +void + helicsPublicationPublishComplexVector(HelicsPublication pub, const double* vectorInput, int vectorLength, HelicsError* err); void helicsPublicationPublishNamedPoint(HelicsPublication pub, const char* field, double val, HelicsError* err); void helicsPublicationPublishDataBuffer(HelicsPublication pub, HelicsDataBuffer buffer, HelicsError* err); void helicsPublicationAddTarget(HelicsPublication pub, const char* target, HelicsError* err); @@ -561,7 +573,8 @@ void helicsInputGetComplex(HelicsInput ipt, double* real, double* imag, HelicsEr int helicsInputGetVectorSize(HelicsInput ipt); void helicsInputGetVector(HelicsInput ipt, double data[], int maxLength, int* actualSize, HelicsError* err); void helicsInputGetComplexVector(HelicsInput ipt, double data[], int maxLength, int* actualSize, HelicsError* err); -void helicsInputGetNamedPoint(HelicsInput ipt, char* outputString, int maxStringLength, int* actualLength, double* val, HelicsError* err); +void + helicsInputGetNamedPoint(HelicsInput ipt, char* outputString, int maxStringLength, int* actualLength, double* val, HelicsError* err); void helicsInputSetDefaultBytes(HelicsInput ipt, const void* data, int inputDataLength, HelicsError* err); void helicsInputSetDefaultString(HelicsInput ipt, const char* defaultString, HelicsError* err); @@ -608,22 +621,30 @@ int helicsFederateGetPublicationCount(HelicsFederate fed); int helicsFederateGetInputCount(HelicsFederate fed); HelicsEndpoint helicsFederateRegisterEndpoint(HelicsFederate fed, const char* name, const char* type, HelicsError* err); HelicsEndpoint helicsFederateRegisterGlobalEndpoint(HelicsFederate fed, const char* name, const char* type, HelicsError* err); -HelicsEndpoint helicsFederateRegisterTargetedEndpoint(HelicsFederate fed, const char* name, const char* type, HelicsError* err); -HelicsEndpoint helicsFederateRegisterGlobalTargetedEndpoint(HelicsFederate fed, const char* name, const char* type, HelicsError* err); +HelicsEndpoint helicsFederateRegisterTargetedEndpoint(HelicsFederate fed, + const char* name, + const char* type, + HelicsError* err); +HelicsEndpoint helicsFederateRegisterGlobalTargetedEndpoint(HelicsFederate fed, + const char* name, + const char* type, + HelicsError* err); HelicsEndpoint helicsFederateGetEndpoint(HelicsFederate fed, const char* name, HelicsError* err); HelicsEndpoint helicsFederateGetEndpointByIndex(HelicsFederate fed, int index, HelicsError* err); HelicsBool helicsEndpointIsValid(HelicsEndpoint endpoint); void helicsEndpointSetDefaultDestination(HelicsEndpoint endpoint, const char* dst, HelicsError* err); const char* helicsEndpointGetDefaultDestination(HelicsEndpoint endpoint); void helicsEndpointSendBytes(HelicsEndpoint endpoint, const void* data, int inputDataLength, HelicsError* err); -void helicsEndpointSendBytesTo(HelicsEndpoint endpoint, const void* data, int inputDataLength, const char* dst, HelicsError* err); +void + helicsEndpointSendBytesTo(HelicsEndpoint endpoint, const void* data, int inputDataLength, const char* dst, HelicsError* err); void helicsEndpointSendBytesToAt(HelicsEndpoint endpoint, - const void* data, - int inputDataLength, - const char* dst, - HelicsTime time, - HelicsError* err); -void helicsEndpointSendBytesAt(HelicsEndpoint endpoint, const void* data, int inputDataLength, HelicsTime time, HelicsError* err); + const void* data, + int inputDataLength, + const char* dst, + HelicsTime time, + HelicsError* err); +void + helicsEndpointSendBytesAt(HelicsEndpoint endpoint, const void* data, int inputDataLength, HelicsTime time, HelicsError* err); void helicsEndpointSendMessage(HelicsEndpoint endpoint, HelicsMessage message, HelicsError* err); void helicsEndpointSendMessageZeroCopy(HelicsEndpoint endpoint, HelicsMessage message, HelicsError* err); void helicsEndpointSubscribe(HelicsEndpoint endpoint, const char* key, HelicsError* err); @@ -683,7 +704,10 @@ HelicsMessage helicsMessageClone(HelicsMessage message, HelicsError* err); void helicsMessageFree(HelicsMessage message); void helicsMessageClear(HelicsMessage message, HelicsError* err); HelicsFilter helicsFederateRegisterFilter(HelicsFederate fed, HelicsFilterTypes type, const char* name, HelicsError* err); -HelicsFilter helicsFederateRegisterGlobalFilter(HelicsFederate fed, HelicsFilterTypes type, const char* name, HelicsError* err); +HelicsFilter helicsFederateRegisterGlobalFilter(HelicsFederate fed, + HelicsFilterTypes type, + const char* name, + HelicsError* err); HelicsFilter helicsFederateRegisterCloningFilter(HelicsFederate fed, const char* name, HelicsError* err); HelicsFilter helicsFederateRegisterGlobalCloningFilter(HelicsFederate fed, const char* name, HelicsError* err); HelicsFilter helicsCoreRegisterFilter(HelicsCore core, HelicsFilterTypes type, const char* name, HelicsError* err); @@ -695,6 +719,8 @@ HelicsBool helicsFilterIsValid(HelicsFilter filt); const char* helicsFilterGetName(HelicsFilter filt); void helicsFilterSet(HelicsFilter filt, const char* prop, double val, HelicsError* err); void helicsFilterSetString(HelicsFilter filt, const char* prop, const char* val, HelicsError* err); +double helicsFilterGetPropertyDouble(HelicsFilter filt, const char* prop); +const char* helicsFilterGetPropertyString(HelicsFilter filt, const char* prop); void helicsFilterAddDestinationTarget(HelicsFilter filt, const char* dst, HelicsError* err); void helicsFilterAddSourceTarget(HelicsFilter filt, const char* source, HelicsError* err); void helicsFilterAddDeliveryEndpoint(HelicsFilter filt, const char* deliveryEndpoint, HelicsError* err); @@ -707,9 +733,18 @@ void helicsFilterSetTag(HelicsFilter filt, const char* tagname, const char* tagv void helicsFilterSetOption(HelicsFilter filt, int option, int value, HelicsError* err); int helicsFilterGetOption(HelicsFilter filt, int option); -HelicsTranslator helicsFederateRegisterTranslator(HelicsFederate fed, HelicsTranslatorTypes type, const char* name, HelicsError* err); -HelicsTranslator helicsFederateRegisterGlobalTranslator(HelicsFederate fed, HelicsTranslatorTypes type, const char* name, HelicsError* err); -HelicsTranslator helicsCoreRegisterTranslator(HelicsCore core, HelicsTranslatorTypes type, const char* name, HelicsError* err); +HelicsTranslator helicsFederateRegisterTranslator(HelicsFederate fed, + HelicsTranslatorTypes type, + const char* name, + HelicsError* err); +HelicsTranslator helicsFederateRegisterGlobalTranslator(HelicsFederate fed, + HelicsTranslatorTypes type, + const char* name, + HelicsError* err); +HelicsTranslator helicsCoreRegisterTranslator(HelicsCore core, + HelicsTranslatorTypes type, + const char* name, + HelicsError* err); int helicsFederateGetTranslatorCount(HelicsFederate fed); HelicsTranslator helicsFederateGetTranslator(HelicsFederate fed, const char* name, HelicsError* err); HelicsTranslator helicsFederateGetTranslatorByIndex(HelicsFederate fed, int index, HelicsError* err); @@ -730,71 +765,76 @@ void helicsTranslatorSetOption(HelicsTranslator trans, int option, int value, He int helicsTranslatorGetOption(HelicsTranslator trans, int option); void helicsBrokerSetLoggingCallback(HelicsBroker broker, - void (*logger)(int loglevel, const char* identifier, const char* message, void* userData), - void* userdata, - HelicsError* err); + void (*logger)(int loglevel, const char* identifier, const char* message, void* userData), + void* userdata, + HelicsError* err); void helicsCoreSetLoggingCallback(HelicsCore core, - void (*logger)(int loglevel, const char* identifier, const char* message, void* userData), - void* userdata, - HelicsError* err); -void helicsFederateSetLoggingCallback(HelicsFederate fed, - void (*logger)(int loglevel, const char* identifier, const char* message, void* userData), - void* userdata, - HelicsError* err); + void (*logger)(int loglevel, const char* identifier, const char* message, void* userData), + void* userdata, + HelicsError* err); +void + helicsFederateSetLoggingCallback(HelicsFederate fed, + void (*logger)(int loglevel, const char* identifier, const char* message, void* userData), + void* userdata, + HelicsError* err); void helicsFilterSetCustomCallback(HelicsFilter filter, - HelicsMessage (*filtCall)(HelicsMessage message, void* userData), + HelicsMessage (*filtCall)(HelicsMessage message, void* userData), + void* userdata, + HelicsError* err); +void helicsTranslatorSetCustomCallback(HelicsTranslator translator, + void (*toMessageCall)(HelicsDataBuffer value, HelicsMessage message, void* userData), + void (*toValueCall)(HelicsMessage message, HelicsDataBuffer value, void* userData), + void* userdata, + HelicsError* err); +void + helicsFederateSetQueryCallback(HelicsFederate fed, + void (*queryAnswer)(const char* query, int querySize, HelicsQueryBuffer buffer, void* userdata), void* userdata, HelicsError* err); -void helicsTranslatorSetCustomCallback(HelicsTranslator translator, - void (*toMessageCall)(HelicsDataBuffer value, HelicsMessage message, void* userData), - void (*toValueCall)(HelicsMessage message, HelicsDataBuffer value, void* userData), - void* userdata, - HelicsError* err); -void helicsFederateSetQueryCallback(HelicsFederate fed, - void (*queryAnswer)(const char* query, int querySize, HelicsQueryBuffer buffer, void* userdata), - void* userdata, - HelicsError* err); void helicsFederateSetTimeRequestEntryCallback( HelicsFederate fed, void (*requestTime)(HelicsTime currentTime, HelicsTime requestTime, HelicsBool iterating, void* userdata), void* userdata, HelicsError* err); void helicsFederateSetTimeUpdateCallback(HelicsFederate fed, - void (*timeUpdate)(HelicsTime newTime, HelicsBool iterating, void* userdata), + void (*timeUpdate)(HelicsTime newTime, HelicsBool iterating, void* userdata), + void* userdata, + HelicsError* err); +void + helicsFederateSetStateChangeCallback(HelicsFederate fed, + void (*stateChange)(HelicsFederateState newState, HelicsFederateState oldState, void* userdata), void* userdata, HelicsError* err); -void helicsFederateSetStateChangeCallback(HelicsFederate fed, - void (*stateChange)(HelicsFederateState newState, HelicsFederateState oldState, void* userdata), - void* userdata, - HelicsError* err); -void helicsFederateSetTimeRequestReturnCallback(HelicsFederate fed, - void (*requestTimeReturn)(HelicsTime newTime, HelicsBool iterating, void* userdata), - void* userdata, - HelicsError* err); +void + helicsFederateSetTimeRequestReturnCallback(HelicsFederate fed, + void (*requestTimeReturn)(HelicsTime newTime, HelicsBool iterating, void* userdata), + void* userdata, + HelicsError* err); void helicsFederateInitializingEntryCallback(HelicsFederate fed, - void (*initializingEntry)(HelicsBool iterating, void* userdata), - void* userdata, - HelicsError* err); -void helicsFederateExecutingEntryCallback(HelicsFederate fed, void (*executingEntry)(void* userdata), void* userdata, HelicsError* err); + void (*initializingEntry)(HelicsBool iterating, void* userdata), + void* userdata, + HelicsError* err); +void + helicsFederateExecutingEntryCallback(HelicsFederate fed, void (*executingEntry)(void* userdata), void* userdata, HelicsError* err); void helicsFederateCosimulationTerminationCallback(HelicsFederate fed, - void (*cosimTermination)(void* userdata), - void* userdata, - HelicsError* err); + void (*cosimTermination)(void* userdata), + void* userdata, + HelicsError* err); void helicsFederateErrorHandlerCallback(HelicsFederate fed, - void (*errorHandler)(int errorCode, const char* errorString, void* userdata), - void* userdata, - HelicsError* err); + void (*errorHandler)(int errorCode, const char* errorString, void* userdata), + void* userdata, + HelicsError* err); void helicsCallbackFederateNextTimeCallback(HelicsFederate fed, - HelicsTime (*timeUpdate)(HelicsTime time, void* userdata), - void* userdata, - HelicsError* err); + HelicsTime (*timeUpdate)(HelicsTime time, void* userdata), + void* userdata, + HelicsError* err); void helicsCallbackFederateNextTimeIterativeCallback( HelicsFederate fed, HelicsTime (*timeUpdate)(HelicsTime time, HelicsIterationResult result, HelicsIterationRequest* iteration, void* userdata), void* userdata, HelicsError* err); void helicsCallbackFederateInitializeCallback(HelicsFederate fed, - HelicsIterationRequest (*initialize)(void* userdata), - void* userdata, - HelicsError* err); + HelicsIterationRequest (*initialize)(void* userdata), + void* userdata, + HelicsError* err); void helicsQueryBufferFill(HelicsQueryBuffer buffer, const char* queryResult, int strSize, HelicsError* err);