#include <ngcbCMD.hpp>
Public Member Functions | |
| ngcbCMD_SRV () | |
| Constructor. | |
| virtual | ~ngcbCMD_SRV () |
| Destructor. | |
| void | AssignPassword (const char *fileName) |
| Assign password from file. | |
| const char * | PW () |
| Return password. | |
| int | LogIn (const char *s) |
| Login to trusted mode with a key in the format "name:password". | |
| void | LogOut () |
| Log out. | |
| int | LoggedIn () |
| Return login status. | |
| void | Lock () |
| Lock command system. | |
| void | Unlock () |
| Unlock command system. | |
| int | Locked () |
| Return locked status. | |
| void | Encrypt (char *s, const char *key=NULL) |
| Encrypt string with key. | |
Protected Member Functions | |
| 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. | |
| int | KeyIdx (char *key, const char *mask) |
| Get the index after the first occurrence of mask in the keyword. | |
| void | DiscardDetIdx (char *key) |
| Discard DETi index. | |
| void | StringReset (char *s, size_t size=256) |
| Fill string with zeros. | |
Command server base class
| ngcbCMD_SRV::ngcbCMD_SRV | ( | ) |
Constructor.
|
virtual |
Destructor.
| void ngcbCMD_SRV::AssignPassword | ( | const char * | fileName | ) |
Assign password from file.
|
protected |
Discard DETi index.
| void ngcbCMD_SRV::Encrypt | ( | char * | s, |
| const char * | key = NULL ) |
Encrypt string with key.
|
protected |
Get the index after the first occurrence of mask in the keyword.
|
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.
| void ngcbCMD_SRV::Lock | ( | ) |
Lock command system.
| int ngcbCMD_SRV::Locked | ( | ) |
Return locked status.
| int ngcbCMD_SRV::LoggedIn | ( | ) |
Return login status.
| int ngcbCMD_SRV::LogIn | ( | const char * | s | ) |
Login to trusted mode with a key in the format "name:password".
| void ngcbCMD_SRV::LogOut | ( | ) |
Log out.
| const char * ngcbCMD_SRV::PW | ( | ) |
Return password.
|
protected |
Fill string with zeros.
| void ngcbCMD_SRV::Unlock | ( | ) |
Unlock command system.