ngc 1.5.0
 
Loading...
Searching...
No Matches
mySRV Class Reference

Server class. More...

Inheritance diagram for mySRV:
ngcbCMD_SRV

Public Member Functions

int MyFunction1 (ngcb_cmd_handle_t *h, char *reply)
 
int MyFunction2 (ngcb_cmd_handle_t *h, char *reply)
 
int MyFunction3 (ngcb_cmd_handle_t *h, char *reply)
 
int MyFunction4 (ngcb_cmd_handle_t *h, char *reply)
 
int ExitFunction (ngcb_cmd_handle_t *h, char *reply)
 
int MyHelp (ngcb_cmd_handle_t *h, char *reply)
 
void Test ()
 
mySRVoperator= (const mySRV &other)
 Operator =.
 
 mySRV (const mySRV &other)
 Copy constructor.
 
 mySRV ()
 
 ~mySRV ()
 
- Public Member Functions inherited from ngcbCMD_SRV
 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.
 

Public Attributes

ngcbCMD_LISTlist
 
int active
 

Additional Inherited Members

- Protected Member Functions inherited from ngcbCMD_SRV
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.
 

Detailed Description

Server class.

Constructor & Destructor Documentation

◆ mySRV() [1/2]

mySRV::mySRV ( const mySRV & other)
inline

Copy constructor.

◆ mySRV() [2/2]

mySRV::mySRV ( )
inline

◆ ~mySRV()

mySRV::~mySRV ( )
inline

Member Function Documentation

◆ ExitFunction()

int mySRV::ExitFunction ( ngcb_cmd_handle_t * h,
char * reply )
inline

◆ MyFunction1()

int mySRV::MyFunction1 ( ngcb_cmd_handle_t * h,
char * reply )
inline

◆ MyFunction2()

int mySRV::MyFunction2 ( ngcb_cmd_handle_t * h,
char * reply )
inline

◆ MyFunction3()

int mySRV::MyFunction3 ( ngcb_cmd_handle_t * h,
char * reply )
inline

◆ MyFunction4()

int mySRV::MyFunction4 ( ngcb_cmd_handle_t * h,
char * reply )
inline

◆ MyHelp()

int mySRV::MyHelp ( ngcb_cmd_handle_t * h,
char * reply )
inline

◆ operator=()

mySRV & mySRV::operator= ( const mySRV & other)
inline

Operator =.

◆ Test()

void mySRV::Test ( )
inline

Member Data Documentation

◆ active

int mySRV::active

◆ list

ngcbCMD_LIST* mySRV::list

The documentation for this class was generated from the following file: