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

#include <ngcbCMD.hpp>

Inheritance diagram for ngcbCMD_SRV:
mySRV ngcdcsSRV

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.
 

Detailed Description

Command server base class

Constructor & Destructor Documentation

◆ ngcbCMD_SRV()

ngcbCMD_SRV::ngcbCMD_SRV ( )

Constructor.

◆ ~ngcbCMD_SRV()

ngcbCMD_SRV::~ngcbCMD_SRV ( )
virtual

Destructor.

Member Function Documentation

◆ AssignPassword()

void ngcbCMD_SRV::AssignPassword ( const char * fileName)

Assign password from file.

◆ DiscardDetIdx()

void ngcbCMD_SRV::DiscardDetIdx ( char * key)
protected

Discard DETi index.

◆ Encrypt()

void ngcbCMD_SRV::Encrypt ( char * s,
const char * key = NULL )

Encrypt string with key.

◆ KeyIdx()

int ngcbCMD_SRV::KeyIdx ( char * key,
const char * mask )
protected

Get the index after the first occurrence of mask in the keyword.

◆ KeyVal() [1/4]

int ngcbCMD_SRV::KeyVal ( const char * key,
double * value )
protected

Get double precision floating point value from keyword string.

◆ KeyVal() [2/4]

int ngcbCMD_SRV::KeyVal ( const char * key,
float * value )
protected

Get single precision floating point value from keyword string.

◆ KeyVal() [3/4]

int ngcbCMD_SRV::KeyVal ( const char * key,
int * value )
protected

Get 32-bit signed integer value from decimal keyword string.

◆ KeyVal() [4/4]

int ngcbCMD_SRV::KeyVal ( const char * key,
unsigned int * value )
protected

Get 32-bit unsigned integer value from decimal keyword string.

◆ KeyValFmt() [1/2]

int ngcbCMD_SRV::KeyValFmt ( const char * key,
int * value )
protected

Get 32-bit signed integer value from string.

◆ KeyValFmt() [2/2]

int ngcbCMD_SRV::KeyValFmt ( const char * key,
unsigned int * value )
protected

Get 32-bit unsigned integer value from string.

◆ KeyValFrac()

int ngcbCMD_SRV::KeyValFrac ( const char * key,
unsigned int n,
uint64_t * v1,
uint64_t * v2 )
protected

Fraction after n digits.

◆ KeyValHex() [1/2]

int ngcbCMD_SRV::KeyValHex ( const char * key,
int * value )
protected

Get 32-bit signed integer value from hexadecimal keyword string.

◆ KeyValHex() [2/2]

int ngcbCMD_SRV::KeyValHex ( const char * key,
unsigned int * value )
protected

Get 32-bit unsigned integer value from hexadecimal keyword string.

◆ Lock()

void ngcbCMD_SRV::Lock ( )

Lock command system.

◆ Locked()

int ngcbCMD_SRV::Locked ( )

Return locked status.

◆ LoggedIn()

int ngcbCMD_SRV::LoggedIn ( )

Return login status.

◆ LogIn()

int ngcbCMD_SRV::LogIn ( const char * s)

Login to trusted mode with a key in the format "name:password".

◆ LogOut()

void ngcbCMD_SRV::LogOut ( )

Log out.

◆ PW()

const char * ngcbCMD_SRV::PW ( )

Return password.

◆ StringReset()

void ngcbCMD_SRV::StringReset ( char * s,
size_t size = 256 )
protected

Fill string with zeros.

◆ Unlock()

void ngcbCMD_SRV::Unlock ( )

Unlock command system.


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