openDAQ
Open data acquisition platform
Factories
+ Collaboration diagram for Factories:

Detailed Description

Functions

DeviceTypePtr DeviceType (const StringPtr &id, const StringPtr &name, const StringPtr &description, const StringPtr &prefix, const PropertyObjectPtr &defaultConfig=PropertyObject())
 Creates a DeviceTypePtr pointer, with the id, name, description and optional defaultConfig. More...
 
StructTypePtr DeviceTypeStructType ()
 Creates the Struct type object that defines the Device type struct.
 

Function Documentation

◆ DeviceType()

DeviceTypePtr DeviceType ( const StringPtr id,
const StringPtr name,
const StringPtr description,
const StringPtr prefix,
const PropertyObjectPtr defaultConfig = PropertyObject() 
)
inline

Creates a DeviceTypePtr pointer, with the id, name, description and optional defaultConfig.

Parameters
idThe unique type ID of the device.
nameThe name of the device type.
descriptionA short description of the device type.
prefixThe prefix of the connection string used when adding the device (the part before the "://" delimiter in the connection string)
defaultConfigThe property object, to be cloned and returned, each time user creates default configuration object. This way each instance of the device has its own configuration object.