helics  3.5.2
Functions
Default Value functions

Functions

void helicsInputSetDefaultBytes (HelicsInput ipt, const void *data, int inputDataLength, HelicsError *err)
 
void helicsInputSetDefaultString (HelicsInput ipt, const char *defaultString, HelicsError *err)
 
void helicsInputSetDefaultInteger (HelicsInput ipt, int64_t val, HelicsError *err)
 
void helicsInputSetDefaultBoolean (HelicsInput ipt, HelicsBool val, HelicsError *err)
 
void helicsInputSetDefaultTime (HelicsInput ipt, HelicsTime val, HelicsError *err)
 
void helicsInputSetDefaultChar (HelicsInput ipt, char val, HelicsError *err)
 
void helicsInputSetDefaultDouble (HelicsInput ipt, double val, HelicsError *err)
 
void helicsInputSetDefaultComplex (HelicsInput ipt, double real, double imag, HelicsError *err)
 
void helicsInputSetDefaultVector (HelicsInput ipt, const double *vectorInput, int vectorLength, HelicsError *err)
 
void helicsInputSetDefaultComplexVector (HelicsInput ipt, const double *vectorInput, int vectorLength, HelicsError *err)
 
void helicsInputSetDefaultNamedPoint (HelicsInput ipt, const char *defaultName, double val, HelicsError *err)
 

Detailed Description

These functions set the default value for an input. That is the value returned if nothing was published from elsewhere.

Function Documentation

◆ helicsInputSetDefaultBoolean()

void helicsInputSetDefaultBoolean ( HelicsInput  ipt,
HelicsBool  val,
HelicsError err 
)

Set the default as a boolean.

Parameters
iptThe input to set the default for.
valThe default boolean value.
[in,out]errAn error object that will contain an error code and string if any error occurred during the execution of the function.

References HELICS_FALSE.

Referenced by helicscpp::Input::setDefault().

◆ helicsInputSetDefaultBytes()

void helicsInputSetDefaultBytes ( HelicsInput  ipt,
const void *  data,
int  inputDataLength,
HelicsError err 
)

Set the default as a raw data array.

Parameters
iptThe input to set the default for.
dataA pointer to the raw data to use for the default.
inputDataLengthThe size of the raw data.
[in,out]errAn error object that will contain an error code and string if any error occurred during the execution of the function.

Referenced by helicscpp::Input::setDefault().

◆ helicsInputSetDefaultChar()

void helicsInputSetDefaultChar ( HelicsInput  ipt,
char  val,
HelicsError err 
)

Set the default as a char.

Parameters
iptThe input to set the default for.
valThe default char value.
[in,out]errAn error object that will contain an error code and string if any error occurred during the execution of the function.

◆ helicsInputSetDefaultComplex()

void helicsInputSetDefaultComplex ( HelicsInput  ipt,
double  real,
double  imag,
HelicsError err 
)

Set the default as a complex number.

Parameters
iptThe input to set the default for.
realThe default real value.
imagThe default imaginary value.
[in,out]errAn error object that will contain an error code and string if any error occurred during the execution of the function.

Referenced by helicscpp::Input::setDefault().

◆ helicsInputSetDefaultComplexVector()

void helicsInputSetDefaultComplexVector ( HelicsInput  ipt,
const double *  vectorInput,
int  vectorLength,
HelicsError err 
)

Set the default as a vector of complex doubles. The format is alternating real, imag doubles.

Parameters
iptThe input to set the default for.
vectorInputA pointer to an array of double data alternating between real and imaginary.
vectorLengththe number of complex values in the publication (vectorInput must contain 2xvectorLength elements).
[in,out]errAn error object that will contain an error code and string if any error occurred during the execution of the function.

Referenced by helicscpp::Input::setDefault().

◆ helicsInputSetDefaultDouble()

void helicsInputSetDefaultDouble ( HelicsInput  ipt,
double  val,
HelicsError err 
)

Set the default as a double.

Parameters
iptThe input to set the default for.
valThe default double value.
[in,out]errAn error object that will contain an error code and string if any error occurred during the execution of the function.

Referenced by helicscpp::Input::setDefault().

◆ helicsInputSetDefaultInteger()

void helicsInputSetDefaultInteger ( HelicsInput  ipt,
int64_t  val,
HelicsError err 
)

Set the default as an integer.

Parameters
iptThe input to set the default for.
valThe default integer.
[in,out]errAn error object that will contain an error code and string if any error occurred during the execution of the function.

Referenced by helicscpp::Input::setDefault().

◆ helicsInputSetDefaultNamedPoint()

void helicsInputSetDefaultNamedPoint ( HelicsInput  ipt,
const char *  defaultName,
double  val,
HelicsError err 
)

Set the default as a NamedPoint.

Parameters
iptThe input to set the default for.
defaultNameA pointer to a null terminated string representing the field name to use in the named point.
valA double value for the value of the named point.
[in,out]errAn error object that will contain an error code and string if any error occurred during the execution of the function.

◆ helicsInputSetDefaultString()

void helicsInputSetDefaultString ( HelicsInput  ipt,
const char *  defaultString,
HelicsError err 
)

Set the default as a string.

Parameters
iptThe input to set the default for.
defaultStringA pointer to the default string.
[in,out]errAn error object that will contain an error code and string if any error occurred during the execution of the function.

Referenced by helicscpp::Input::setDefault().

◆ helicsInputSetDefaultTime()

void helicsInputSetDefaultTime ( HelicsInput  ipt,
HelicsTime  val,
HelicsError err 
)

Set the default as a time.

Parameters
iptThe input to set the default for.
valThe default time value.
[in,out]errAn error object that will contain an error code and string if any error occurred during the execution of the function.

◆ helicsInputSetDefaultVector()

void helicsInputSetDefaultVector ( HelicsInput  ipt,
const double *  vectorInput,
int  vectorLength,
HelicsError err 
)

Set the default as a vector of doubles.

Parameters
iptThe input to set the default for.
vectorInputA pointer to an array of double data.
vectorLengthThe number of doubles in the vector.
[in,out]errAn error object that will contain an error code and string if any error occurred during the execution of the function.

Referenced by helicscpp::Input::setDefault().