#include <ngcbOBJ.hpp>
Public Member Functions | |
| ngcbOBJ () | |
| Constructor. | |
| virtual | ~ngcbOBJ () |
| Destructor. | |
| void | Instance (int n) |
| Set instance. | |
| int | Instance () |
| Get instance. | |
| const char * | Major () |
| Instance major number. | |
| int | BigEndian () |
| Big-endian architecture. | |
| int | LittleEndian () |
| Little-endian architecture. | |
| virtual char * | ErrMsg () |
| Error message. | |
| virtual int | Success () |
| Return success. | |
| virtual int | Failure () |
| Return failure. | |
| void | CfgPath (const char *path) |
| Set external configuration path. | |
Public Attributes | |
| FILE * | watchdog |
| Watchdog stream. | |
| ngcbALARM_SYS * | alarmSystem |
| Alarm system. | |
| ngcbSERVICE * | services |
| System services. | |
| int | verboseLevel |
| Verbose level. | |
| int | logLevel |
| Logging level. | |
| int | xterm |
| Xterm flag. | |
| int | debugPort |
| Debug port. | |
| int | ignoreErr |
| Ignore next error (do not log) | |
| int | type |
| Object type. | |
Protected Member Functions | |
| virtual int | BailOut (const char *pos) |
| Log code position of the error and bail-out with failure. | |
| virtual void | Verbose (int level, const char *format,...) __attribute__((format(printf |
| Verbose message if verbose level exceeds level. | |
| virtual void virtual void | Verbose (const char *format,...) __attribute__((format(printf |
| Verbose message. | |
| virtual void virtual void virtual void | Log (int level, const char *format,...) __attribute__((format(printf |
| Log message if logging level exceeds level. | |
| virtual void virtual void virtual void virtual void | Log (const char *format,...) __attribute__((format(printf |
| Log message. | |
| virtual void virtual void virtual void virtual void virtual void | ErrLog (int severity, const char *format,...) __attribute__((format(printf |
| Error log, severity is one of ngcbWARNING, ngcbFAILURE and ngcbERR_SEVERE. | |
| virtual void virtual void virtual void virtual void virtual void void | FeedBack (const char *format,...) __attribute__((format(printf |
| Feed-back function. | |
| virtual void virtual void virtual void virtual void virtual void void virtual void | SendFeedBack (const char *msg) |
| Feed-back sender implementation. | |
| const char * | CfgPath () |
| Get external configuration path. | |
| int | CfgPath (char *path, const char *cfgFile) |
| Compose path for configuratuion file. | |
| int | KeyVal (const char *key, float *value) |
| Get single precision floating point value from keyword string. | |
| int | KeyVal (const char *key, double *value) |
| Get double precision floating point value from keyword string. | |
| int | KeyVal (const char *key, int *value) |
| Get 32-bit signed integer value from decimal keyword string. | |
| int | KeyVal (const char *key, unsigned int *value) |
| Get 32-bit unsigned integer value from decimal keyword string. | |
| int | KeyValHex (const char *key, int *value) |
| Get 32-bit signed integer value from hexadecimal keyword string. | |
| int | KeyValHex (const char *key, unsigned int *value) |
| Get 32-bit unsigned integer value from hexadecimal keyword string. | |
| int | KeyValFmt (const char *key, int *value) |
| Get 32-bit signed integer value from string. | |
| int | KeyValFmt (const char *key, unsigned int *value) |
| Get 32-bit unsigned integer value from string. | |
| int | KeyValFrac (const char *key, unsigned int n, uint64_t *v1, uint64_t *v2) |
| Fraction after n digits. | |
| void | CleanupCmd (char *cmdLine, int *cmdLen) |
| Clean command string (remove extra spaces etc.) | |
| int | ReplaceParam (char *string) |
| Replace parameter in string. | |
NGC object class
| ngcbOBJ::ngcbOBJ | ( | ) |
Constructor.
|
virtual |
Destructor.
|
protectedvirtual |
Log code position of the error and bail-out with failure.
| int ngcbOBJ::BigEndian | ( | ) |
Big-endian architecture.
|
protected |
Get external configuration path.
|
protected |
Compose path for configuratuion file.
| void ngcbOBJ::CfgPath | ( | const char * | path | ) |
Set external configuration path.
|
protected |
Clean command string (remove extra spaces etc.)
|
protectedvirtual |
Error log, severity is one of ngcbWARNING, ngcbFAILURE and ngcbERR_SEVERE.
|
virtual |
Error message.
Reimplemented in ngcdcsACQ.
|
virtual |
Return failure.
|
protected |
Feed-back function.
| int ngcbOBJ::Instance | ( | ) |
Get instance.
| void ngcbOBJ::Instance | ( | int | n | ) |
Set instance.
|
protected |
Get double precision floating point value from keyword string.
|
protected |
Get single precision floating point value from keyword string.
|
protected |
Get 32-bit signed integer value from decimal keyword string.
|
protected |
Get 32-bit unsigned integer value from decimal keyword string.
|
protected |
Get 32-bit signed integer value from string.
|
protected |
Get 32-bit unsigned integer value from string.
|
protected |
Fraction after n digits.
|
protected |
Get 32-bit signed integer value from hexadecimal keyword string.
|
protected |
Get 32-bit unsigned integer value from hexadecimal keyword string.
| int ngcbOBJ::LittleEndian | ( | ) |
Little-endian architecture.
|
protectedvirtual |
Log message.
|
protectedvirtual |
Log message if logging level exceeds level.
| const char * ngcbOBJ::Major | ( | ) |
Instance major number.
|
protected |
Replace parameter in string.
|
protectedvirtual |
Feed-back sender implementation.
Reimplemented in ngcdcsEXPDRV.
|
virtual |
Return success.
|
protectedvirtual |
Verbose message.
|
protectedvirtual |
Verbose message if verbose level exceeds level.
| ngcbALARM_SYS* ngcbOBJ::alarmSystem |
Alarm system.
| int ngcbOBJ::debugPort |
Debug port.
| int ngcbOBJ::ignoreErr |
Ignore next error (do not log)
| int ngcbOBJ::logLevel |
Logging level.
| ngcbSERVICE* ngcbOBJ::services |
System services.
| int ngcbOBJ::type |
Object type.
| int ngcbOBJ::verboseLevel |
Verbose level.
| FILE* ngcbOBJ::watchdog |
Watchdog stream.
| int ngcbOBJ::xterm |
Xterm flag.