openDAQ
Open data acquisition platform
+ Collaboration diagram for Factories:

Detailed Description

Functions

EnumerationTypePtr EnumerationType (const StringPtr &typeName, const ListPtr< IString > &enumeratorNames, const Int firstEnumeratorIntValue=0)
 Creates an Enumeration type with a given type name, enumerator names and first enumerator value. Enumerator values are automatically assigned in ascending order, starting from the specified first value. More...
 
EnumerationTypePtr EnumerationTypeWithValues (const StringPtr &typeName, const DictPtr< IString, IInteger > &enumerators)
 Creates an Enumeration type for enum with a given type name, and dictionary of enumerator names and values. More...
 

Function Documentation

◆ EnumerationType()

EnumerationTypePtr EnumerationType ( const StringPtr typeName,
const ListPtr< IString > &  enumeratorNames,
const Int  firstEnumeratorIntValue = 0 
)
inline

Creates an Enumeration type with a given type name, enumerator names and first enumerator value. Enumerator values are automatically assigned in ascending order, starting from the specified first value.

Parameters
typeNameThe name of the Enumeration type
enumeratorNamesThe list of enumerator names (String objects)
firstEnumeratorIntValueThe Int value of first enumerator (Integer)

◆ EnumerationTypeWithValues()

EnumerationTypePtr EnumerationTypeWithValues ( const StringPtr typeName,
const DictPtr< IString, IInteger > &  enumerators 
)
inline

Creates an Enumeration type for enum with a given type name, and dictionary of enumerator names and values.

Parameters
typeNameThe name of the Enumeration type
enumeratorsThe dictionary of enumerators (String objects as keys, Integer objects as values)