openDAQ
Open data acquisition platform
+ Collaboration diagram for Factories:

Detailed Description

Functions

 OPENDAQ_DECLARE_CLASS_FACTORY (LIBRARY_FACTORY, CallableInfo, IList *, argumentInfo, CoreType, returnType, Bool, constFlag)
 Creates a CallableInfo object with the specified arguments and return type. More...
 
CallableInfoPtr FunctionInfo (CoreType returnType, ListPtr< IArgumentInfo > arguments=nullptr, Bool isConst=false)
 Creates a CallableInfo object that describes a function-type callable with the specified arguments and return type. More...
 
CallableInfoPtr ProcedureInfo (ListPtr< IArgumentInfo > arguments=nullptr, Bool isConst=false)
 Creates a CallableInfo object that describes a procedure-type callable with the specified arguments. More...
 
StructTypePtr CallableInfoStructType ()
 Creates the Struct type object that defines the Callable info struct.
 

Function Documentation

◆ FunctionInfo()

CallableInfoPtr FunctionInfo ( CoreType  returnType,
ListPtr< IArgumentInfo arguments = nullptr,
Bool  isConst = false 
)
inline

Creates a CallableInfo object that describes a function-type callable with the specified arguments and return type.

Parameters
returnTypeThe return type of the described function callable object.
argumentsThe list of IArgumentInfo type argument information.
isConstFlag indicating if the function is marked as const. A const function promises not to modify the state of the device or any other objects under the openDAQ instance.

◆ OPENDAQ_DECLARE_CLASS_FACTORY()

OPENDAQ_DECLARE_CLASS_FACTORY ( LIBRARY_FACTORY  ,
CallableInfo  ,
IList ,
argumentInfo  ,
CoreType  ,
returnType  ,
Bool  ,
constFlag   
)

Creates a CallableInfo object with the specified arguments and return type.

Parameters
argumentInfoThe list of ArgumentInfo type argument information.
returnTypeThe return type of the described callable object.
constFlagA flag indicating if the function is marked as const or not. A const function promises not to modify the state of the device or any other objects under the openDAQ instance.

◆ ProcedureInfo()

CallableInfoPtr ProcedureInfo ( ListPtr< IArgumentInfo arguments = nullptr,
Bool  isConst = false 
)
inline

Creates a CallableInfo object that describes a procedure-type callable with the specified arguments.

Parameters
argumentsThe list of IArgumentInfo type argument information.
isConstFlag indicating if the function is marked as const. A const function promises not to modify the state of the device or any other objects under the openDAQ instance.