openDAQ
Open data acquisition platform
+ Collaboration diagram for Factories:

Detailed Description

Functions

EnumerationPtr Enumeration (const StringPtr &typeName, const StringPtr &value, const TypeManagerPtr &typeManager)
 Creates a new Enumeration object with a specified Enumeration Type name and value. The value must correspond to a valid value defined in the Enumeration type with the provided name, which is expected to be present in the Type Manager. More...
 
EnumerationPtr EnumerationWithIntValue (const StringPtr &typeName, const IntegerPtr &value, const TypeManagerPtr &typeManager)
 Creates a new Enumeration object with a specified Enumeration Type name and value. The value must correspond to a valid integer value defined in the Enumeration type, associated with a string value key. More...
 
EnumerationPtr EnumerationWithIntValueAndType (const EnumerationTypePtr &type, const IntegerPtr &value)
 Creates a new Enumeration object with a specified Enumeration Type name and value. The value must correspond to a valid integer value defined in the Enumeration type, associated with a string value key. More...
 

Function Documentation

◆ Enumeration()

EnumerationPtr Enumeration ( const StringPtr typeName,
const StringPtr value,
const TypeManagerPtr typeManager 
)
inline

Creates a new Enumeration object with a specified Enumeration Type name and value. The value must correspond to a valid value defined in the Enumeration type with the provided name, which is expected to be present in the Type Manager.

Parameters
typeNameThe name of the Enumeration type.
valueThe string representation of the enumerator value.
typeManagerThe type manager that contains various Enumeration types (along with other openDAQ types).

Construction of the Enumeration will fail if the value does not match the corresponding type available in the Type Manager.

◆ EnumerationWithIntValue()

EnumerationPtr EnumerationWithIntValue ( const StringPtr typeName,
const IntegerPtr value,
const TypeManagerPtr typeManager 
)
inline

Creates a new Enumeration object with a specified Enumeration Type name and value. The value must correspond to a valid integer value defined in the Enumeration type, associated with a string value key.

Parameters
typeNameThe name of the Enumeration type.
valueThe integer representation of the enumerator value.
typeManagerThe type manager that contains various Enumeration types (along with other openDAQ types).

Construction of the Enumeration will fail if the value does not match the corresponding type available in the Type Manager.

◆ EnumerationWithIntValueAndType()

EnumerationPtr EnumerationWithIntValueAndType ( const EnumerationTypePtr type,
const IntegerPtr value 
)
inline

Creates a new Enumeration object with a specified Enumeration Type name and value. The value must correspond to a valid integer value defined in the Enumeration type, associated with a string value key.

Parameters
typeThe Enumeration type.
valueThe integer representation of the enumerator value.

Construction of the Enumeration will fail if the value does not match the corresponding type available in the Type Manager.