#include <ngcbPARAM.hpp>
Public Member Functions | |
| ngcbPARAM_LIST () | |
| Constructor. | |
| ngcbPARAM_LIST (ngcbPARAM *newParam, int noDelete) | |
| Constructor with initial parameter and no-delete flag. | |
| virtual | ~ngcbPARAM_LIST () |
| Destructor. | |
| ngcbPARAM_LIST * | First () |
| Get list entry point. | |
| ngcbPARAM * | Add (ngcbPARAM *newParam, int noDelete=1) |
| Add external parameter object to list. | |
| ngcbPARAM * | Add (const char *paramName) |
| Add new parameter. | |
| ngcbPARAM * | Add (const char *paramName, char initVal) |
| Add new character parameter. | |
| ngcbPARAM * | Add (const char *paramName, int initVal) |
| Add new 32-bit integer parameter. | |
| ngcbPARAM * | Add (const char *paramName, float initVal) |
| Add new 32-bit floating point parameter. | |
| ngcbPARAM * | Add (const char *paramName, double initVal) |
| Add new 64-bit floating point parameter. | |
| ngcbPARAM * | Add (const char *paramName, const char *initVal) |
| Add new string parameter. | |
| ngcbPARAM * | Add (const char *paramName, const char *initVal, int type) |
| Add new parameter with string value and type. | |
| void | Remove (ngcbPARAM *item) |
| Remove parameter by object pointer. | |
| void | Remove (const char *paramName) |
| Remove parameter by name. | |
| void | Clear () |
| Remove all parameters. | |
| void | Insert (ngcbPARAM_LIST &other) |
| Insert content from other list. | |
| ngcbPARAM * | Get (const char *paramName) |
| Get parameter object by name. | |
| int | Set (const char *paramName, char paramValue) |
| Set character value by name. | |
| int | Set (const char *paramName, int paramValue) |
| Set 32-bit integer value by name. | |
| int | Set (const char *paramName, float paramValue) |
| Set 32-bit floating point value by name. | |
| int | Set (const char *paramName, double paramValue) |
| Set 64-bit floating point value by name. | |
| int | Set (const char *paramName, const char *paramValue) |
| Set string value by name. | |
| int | ValChar (const char *paramName, char *paramValue) |
| Get character value by name. | |
| int | ValInt (const char *paramName, int *paramValue) |
| Get 32-bit integer value by name. | |
| int | ValFloat (const char *paramName, float *paramValue) |
| Get 32-bit floating point value by name. | |
| int | ValDouble (const char *paramName, double *paramValue) |
| Get 64-bit floating point value by name. | |
| int | ValString (const char *paramName, char *paramValue) |
| Get string value by name. | |
| void | ClrAcqList (int instance) |
| Detach acquisition module from parameter list. | |
| void | ClrCtrlList (int instance) |
| Detach controller module from parameter list. | |
| int | Load (char **paramBuf, size_t size, char *erms) |
| Load parameter list from string array. | |
| int | Load (const char *paramBuf, char *erms) |
| Load parameter list from string. | |
| int | Load (const char *fileName, const char *mask, char *erms) |
| Load parameter list from file. | |
| void | Options (int argc, char *argv[]) |
| Load parameter list from command line options. | |
| void | Print (FILE *s=NULL) |
| Print parameter list to stream. | |
| void | Print (char *s) |
| Print parameter list to string. | |
Public Attributes | |
| ngcbPARAM * | param |
| Parameter in the list. | |
| ngcbPARAM_LIST * | next |
| Next list. | |
Dynamic parameter list
| ngcbPARAM_LIST::ngcbPARAM_LIST | ( | ) |
Constructor.
| ngcbPARAM_LIST::ngcbPARAM_LIST | ( | ngcbPARAM * | newParam, |
| int | noDelete ) |
Constructor with initial parameter and no-delete flag.
|
virtual |
Destructor.
| ngcbPARAM * ngcbPARAM_LIST::Add | ( | const char * | paramName | ) |
Add new parameter.
| ngcbPARAM * ngcbPARAM_LIST::Add | ( | const char * | paramName, |
| char | initVal ) |
Add new character parameter.
| ngcbPARAM * ngcbPARAM_LIST::Add | ( | const char * | paramName, |
| const char * | initVal ) |
Add new string parameter.
| ngcbPARAM * ngcbPARAM_LIST::Add | ( | const char * | paramName, |
| const char * | initVal, | ||
| int | type ) |
Add new parameter with string value and type.
| ngcbPARAM * ngcbPARAM_LIST::Add | ( | const char * | paramName, |
| double | initVal ) |
Add new 64-bit floating point parameter.
| ngcbPARAM * ngcbPARAM_LIST::Add | ( | const char * | paramName, |
| float | initVal ) |
Add new 32-bit floating point parameter.
| ngcbPARAM * ngcbPARAM_LIST::Add | ( | const char * | paramName, |
| int | initVal ) |
Add new 32-bit integer parameter.
Add external parameter object to list.
| void ngcbPARAM_LIST::Clear | ( | ) |
Remove all parameters.
| void ngcbPARAM_LIST::ClrAcqList | ( | int | instance | ) |
Detach acquisition module from parameter list.
| void ngcbPARAM_LIST::ClrCtrlList | ( | int | instance | ) |
Detach controller module from parameter list.
| ngcbPARAM_LIST * ngcbPARAM_LIST::First | ( | ) |
Get list entry point.
| ngcbPARAM * ngcbPARAM_LIST::Get | ( | const char * | paramName | ) |
Get parameter object by name.
| void ngcbPARAM_LIST::Insert | ( | ngcbPARAM_LIST & | other | ) |
Insert content from other list.
| int ngcbPARAM_LIST::Load | ( | char ** | paramBuf, |
| size_t | size, | ||
| char * | erms ) |
Load parameter list from string array.
| int ngcbPARAM_LIST::Load | ( | const char * | fileName, |
| const char * | mask, | ||
| char * | erms ) |
Load parameter list from file.
| int ngcbPARAM_LIST::Load | ( | const char * | paramBuf, |
| char * | erms ) |
Load parameter list from string.
| void ngcbPARAM_LIST::Options | ( | int | argc, |
| char * | argv[] ) |
Load parameter list from command line options.
| void ngcbPARAM_LIST::Print | ( | char * | s | ) |
Print parameter list to string.
| void ngcbPARAM_LIST::Print | ( | FILE * | s = NULL | ) |
Print parameter list to stream.
| void ngcbPARAM_LIST::Remove | ( | const char * | paramName | ) |
Remove parameter by name.
| void ngcbPARAM_LIST::Remove | ( | ngcbPARAM * | item | ) |
Remove parameter by object pointer.
| int ngcbPARAM_LIST::Set | ( | const char * | paramName, |
| char | paramValue ) |
Set character value by name.
| int ngcbPARAM_LIST::Set | ( | const char * | paramName, |
| const char * | paramValue ) |
Set string value by name.
| int ngcbPARAM_LIST::Set | ( | const char * | paramName, |
| double | paramValue ) |
Set 64-bit floating point value by name.
| int ngcbPARAM_LIST::Set | ( | const char * | paramName, |
| float | paramValue ) |
Set 32-bit floating point value by name.
| int ngcbPARAM_LIST::Set | ( | const char * | paramName, |
| int | paramValue ) |
Set 32-bit integer value by name.
| int ngcbPARAM_LIST::ValChar | ( | const char * | paramName, |
| char * | paramValue ) |
Get character value by name.
| int ngcbPARAM_LIST::ValDouble | ( | const char * | paramName, |
| double * | paramValue ) |
Get 64-bit floating point value by name.
| int ngcbPARAM_LIST::ValFloat | ( | const char * | paramName, |
| float * | paramValue ) |
Get 32-bit floating point value by name.
| int ngcbPARAM_LIST::ValInt | ( | const char * | paramName, |
| int * | paramValue ) |
Get 32-bit integer value by name.
| int ngcbPARAM_LIST::ValString | ( | const char * | paramName, |
| char * | paramValue ) |
Get string value by name.
| ngcbPARAM_LIST* ngcbPARAM_LIST::next |
Next list.
| ngcbPARAM* ngcbPARAM_LIST::param |
Parameter in the list.