![]() |
helics
3.6.1
|
Data can be returned in a number of formats, for instance if data is published as a double it can be returned as a string and vice versa, not all translations make that much sense but they do work.
| HelicsBool helicsInputGetBoolean | ( | HelicsInput | ipt, |
| HelicsError * | err | ||
| ) |
Get a boolean value from an input.
| ipt | The input to get the data for. | |
| [in,out] | err | A pointer to an error object for catching errors. |
References HELICS_FALSE, and HELICS_TRUE.
Referenced by helicscpp::Input::getBoolean().
| int helicsInputGetByteCount | ( | HelicsInput | ipt | ) |
Get the size of the raw value for an input.
Referenced by helicscpp::Input::getByteCount(), and helicscpp::Input::getBytes().
| void helicsInputGetBytes | ( | HelicsInput | ipt, |
| void * | data, | ||
| int | maxDataLength, | ||
| int * | actualSize, | ||
| HelicsError * | err | ||
| ) |
Get the raw data for the latest value of an input.
| ipt | The input to get the data for. | |
| [out] | data | The memory location of the data |
| maxDataLength | The maximum size of information that data can hold. | |
| [out] | actualSize | The actual length of data copied to data. |
| [in,out] | err | A pointer to an error object for catching errors. |
Referenced by helicscpp::Input::getBytes().
| char helicsInputGetChar | ( | HelicsInput | ipt, |
| HelicsError * | err | ||
| ) |
Get a single character value from an input.
| ipt | The input to get the data for. | |
| [in,out] | err | A pointer to an error object for catching errors. |
| void helicsInputGetComplex | ( | HelicsInput | ipt, |
| double * | real, | ||
| double * | imag, | ||
| HelicsError * | err | ||
| ) |
Get a pair of double forming a complex number from an input.
| ipt | The input to get the data for. | |
| [out] | real | Memory location to place the real part of a value. |
| [out] | imag | Memory location to place the imaginary part of a value. |
| [in,out] | err | An error object that will contain an error code and string if any error occurred during the execution of the function. On error the values will not be altered. |
| HelicsComplex helicsInputGetComplexObject | ( | HelicsInput | ipt, |
| HelicsError * | err | ||
| ) |
Get a complex object from an input object.
| ipt | The input to get the data for. | |
| [in,out] | err | A helics error object, if the object is not empty the function is bypassed otherwise it is filled in if there is an error. |
References HELICS_TIME_INVALID.
Referenced by helicscpp::Input::getComplex().
| void helicsInputGetComplexVector | ( | HelicsInput | ipt, |
| double | data[], | ||
| int | maxLength, | ||
| int * | actualSize, | ||
| HelicsError * | err | ||
| ) |
Get a complex vector from an input.
| ipt | The input to get the result for. | |
| [out] | data | The location to store the data. The data will be stored in alternating real and imaginary values. |
| maxLength | The maximum number of values data can hold. | |
| [out] | actualSize | Location to place the actual length of the resulting complex vector (will be 1/2 the number of values assigned). |
| [in,out] | err | An error object that will contain an error code and string if any error occurred during the execution of the function. |
Referenced by helicscpp::Input::getComplexVector().
| HelicsDataBuffer helicsInputGetDataBuffer | ( | HelicsInput | inp, |
| HelicsError * | err | ||
| ) |
Get a copy of the raw data in a HelicsDataBuffer
| inp | The input to get the data for. | |
| [in,out] | err | A pointer to an error object for catching errors. |
References helics::data_view::string_view().
Referenced by helicscpp::Input::getDataBuffer().
| double helicsInputGetDouble | ( | HelicsInput | ipt, |
| HelicsError * | err | ||
| ) |
Get a double value from an input.
| ipt | The input to get the data for. | |
| [in,out] | err | A pointer to an error object for catching errors. |
Referenced by helicscpp::Input::getDouble().
| int64_t helicsInputGetInteger | ( | HelicsInput | ipt, |
| HelicsError * | err | ||
| ) |
Get an integer value from an input.
| ipt | The input to get the data for. | |
| [in,out] | err | A pointer to an error object for catching errors. |
Referenced by helicscpp::Input::getInteger().
| void helicsInputGetNamedPoint | ( | HelicsInput | ipt, |
| char * | outputString, | ||
| int | maxStringLength, | ||
| int * | actualLength, | ||
| double * | val, | ||
| HelicsError * | err | ||
| ) |
Get a named point from an input.
| ipt | The input to get the result for. | |
| [out] | outputString | Storage for copying a null terminated string. |
| maxStringLength | The maximum size of information that str can hold. | |
| [out] | actualLength | The actual length of the string |
| [out] | val | The double value for the named point. |
| [in,out] | err | An error object that will contain an error code and string if any error occurred during the execution of the function. |
References helics::NamedPoint::name, and helics::NamedPoint::value.
Referenced by helicscpp::Input::getNamedPoint().
| void helicsInputGetString | ( | HelicsInput | ipt, |
| char * | outputString, | ||
| int | maxStringLength, | ||
| int * | actualLength, | ||
| HelicsError * | err | ||
| ) |
Get a string value from an input.
| ipt | The input to get the data for. | |
| [out] | outputString | Storage for copying a null terminated string. |
| maxStringLength | The maximum size of information that str can hold. | |
| [out] | actualLength | The actual length of the string. |
| [in,out] | err | Error term for capturing errors. |
Referenced by helicscpp::Input::getString().
| int helicsInputGetStringSize | ( | HelicsInput | ipt | ) |
Get the size of a value for an input assuming return as a string.
Referenced by helicscpp::Input::getNamedPoint(), helicscpp::Input::getString(), and helicscpp::Input::getStringSize().
| HelicsTime helicsInputGetTime | ( | HelicsInput | ipt, |
| HelicsError * | err | ||
| ) |
Get a time value from an input.
| ipt | The input to get the data for. | |
| [in,out] | err | A pointer to an error object for catching errors. |
References HELICS_TIME_INVALID.
| void helicsInputGetVector | ( | HelicsInput | ipt, |
| double | data[], | ||
| int | maxLength, | ||
| int * | actualSize, | ||
| HelicsError * | err | ||
| ) |
Get a vector from an input.
| ipt | The input to get the result for. | |
| [out] | data | The location to store the data. |
| maxLength | The maximum size of the vector. | |
| [out] | actualSize | Location to place the actual length of the resulting vector. |
| [in,out] | err | An error object that will contain an error code and string if any error occurred during the execution of the function. |
Referenced by helicscpp::Input::getVector().
| int helicsInputGetVectorSize | ( | HelicsInput | ipt | ) |
Get the size of a value for an ionput assuming return as an array of doubles.
Referenced by helicscpp::Input::getComplexVector(), and helicscpp::Input::getVector().