libiec61850
1.6.0
|
Functions | |
LIB61850_API void | MmsVariableSpecification_destroy (MmsVariableSpecification *self) |
Delete MmsTypeSpecification object (recursive). More... | |
LIB61850_API MmsValue * | MmsVariableSpecification_getChildValue (MmsVariableSpecification *self, MmsValue *value, const char *childId) |
Get the corresponding child of value according to childId. More... | |
LIB61850_API MmsVariableSpecification * | MmsVariableSpecification_getNamedVariableRecursive (MmsVariableSpecification *self, const char *nameId) |
Get the child of self specified by its relative name. More... | |
LIB61850_API MmsType | MmsVariableSpecification_getType (MmsVariableSpecification *self) |
get the MMS type of the variable More... | |
LIB61850_API bool | MmsVariableSpecification_isValueOfType (MmsVariableSpecification *self, const MmsValue *value) |
Check if the value has exactly the same type as this variable specfication. More... | |
LIB61850_API const char * | MmsVariableSpecification_getName (MmsVariableSpecification *self) |
get the name of the variable More... | |
LIB61850_API LinkedList | MmsVariableSpecification_getStructureElements (MmsVariableSpecification *self) |
LIB61850_API int | MmsVariableSpecification_getSize (MmsVariableSpecification *self) |
returns the number of elements if the type is a complex type (structure, array) or the bit size of integers, unsigned integers, floats, bit strings, visible and MMS strings and octet strings. More... | |
LIB61850_API MmsVariableSpecification * | MmsVariableSpecification_getChildSpecificationByIndex (MmsVariableSpecification *self, int index) |
LIB61850_API MmsVariableSpecification * | MmsVariableSpecification_getChildSpecificationByName (MmsVariableSpecification *self, const char *name, int *index) |
return the MmsVariableSpecification of a structure element with the given name More... | |
LIB61850_API MmsVariableSpecification * | MmsVariableSpecification_getArrayElementSpecification (MmsVariableSpecification *self) |
LIB61850_API int | MmsVariableSpecification_getExponentWidth (MmsVariableSpecification *self) |
LIB61850_API void MmsVariableSpecification_destroy | ( | MmsVariableSpecification * | self | ) |
Delete MmsTypeSpecification object (recursive).
self | the MmsVariableSpecification instance |
LIB61850_API MmsVariableSpecification* MmsVariableSpecification_getArrayElementSpecification | ( | MmsVariableSpecification * | self | ) |
LIB61850_API MmsVariableSpecification* MmsVariableSpecification_getChildSpecificationByIndex | ( | MmsVariableSpecification * | self, |
int | index | ||
) |
LIB61850_API MmsVariableSpecification* MmsVariableSpecification_getChildSpecificationByName | ( | MmsVariableSpecification * | self, |
const char * | name, | ||
int * | index | ||
) |
return the MmsVariableSpecification of a structure element with the given name
self | the MmsVariableSpecification object |
name | the name of the component (structure element) |
index | (OUT) if not NULL the index of the structure element will be stored there |
LIB61850_API MmsValue* MmsVariableSpecification_getChildValue | ( | MmsVariableSpecification * | self, |
MmsValue * | value, | ||
const char * | childId | ||
) |
Get the corresponding child of value according to childId.
This function assumes that value is the corresponding value of the MMS variable self. Given the relative name of a child of self this function returns the corresponding child of the value object. Note: the child name has to be provided in MMS mapping syntax (with "$" sign as separator between path name elements!
self | the MmsVariableSpecification instance |
value | the MmsValue instance |
childId | the relative MMS name to the child MMS variable (with "$" separators!) |
LIB61850_API int MmsVariableSpecification_getExponentWidth | ( | MmsVariableSpecification * | self | ) |
LIB61850_API const char* MmsVariableSpecification_getName | ( | MmsVariableSpecification * | self | ) |
get the name of the variable
Note: the return string is only valid as long as the MmsVariableSpecification instance exists!
self | the MmsVariableSpecification instance |
LIB61850_API MmsVariableSpecification* MmsVariableSpecification_getNamedVariableRecursive | ( | MmsVariableSpecification * | self, |
const char * | nameId | ||
) |
Get the child of self specified by its relative name.
self | the MmsVariableSpecification instance |
nameId | the relative MMS name to the child MMS variable (with "$" separators!) |
LIB61850_API int MmsVariableSpecification_getSize | ( | MmsVariableSpecification * | self | ) |
returns the number of elements if the type is a complex type (structure, array) or the bit size of integers, unsigned integers, floats, bit strings, visible and MMS strings and octet strings.
self | the MmsVariableSpecification object |
LIB61850_API LinkedList MmsVariableSpecification_getStructureElements | ( | MmsVariableSpecification * | self | ) |
LIB61850_API MmsType MmsVariableSpecification_getType | ( | MmsVariableSpecification * | self | ) |
get the MMS type of the variable
self | the MmsVariableSpecification instance |
LIB61850_API bool MmsVariableSpecification_isValueOfType | ( | MmsVariableSpecification * | self, |
const MmsValue * | value | ||
) |
Check if the value has exactly the same type as this variable specfication.
self | the MmsVariableSpecification instance |
value | the value to check |