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

#include <ngcdcsEDDM.hpp>

Inheritance diagram for ngcdcsEDDM:
ngcbOBJ

Public Member Functions

ngcdcsEDDMoperator= (const ngcdcsEDDM &other)
 Operator =.
 
 ngcdcsEDDM (const ngcdcsEDDM &other)
 Copy constructor.
 
 ngcdcsEDDM ()
 Constructor.
 
 ngcdcsEDDM (size_t maxDrv)
 Constructor with maximum number of managed drivers.
 
virtual ~ngcdcsEDDM ()
 Destructor.
 
int Register (ngcdcsFACTORY *f)
 Register a new factory.
 
int Register (const char *name)
 Register a new driver name.
 
int Unregister (ngcdcsFACTORY *f)
 Unregister factory.
 
void * Unregister (const char *module)
 Unregister module.
 
ngcdcsFACTORYFactory ()
 Return current factory.
 
ngcdcsFACTORYNext ()
 Return next dynamically loaded driver factory.
 
ngcdcsFACTORYFactory (const char *name)
 Return factory associated to driver name.
 
ngcdcsFACTORYFactory (const char *symbol, const char *module)
 Return factory associated to symbol/module name.
 
ngcdcsFACTORYSelect (const char *name)
 Select factory associated to driver name.
 
ngcdcsFACTORYModule (const char *module)
 Select factory by module name.
 
int Load (const char *module, const char *name=NULL)
 Load external exposure driver module.
 
int Unload (const char *name, const char *symbol=NULL)
 Unload external exposure driver module.
 
int Unload ()
 Unload all external exposure driver modules.
 
void List (char *s)
 Copy list of driver factory names to string.
 
void ModList (char *s)
 Copy list of driver module names to string.
 
- Public Member Functions inherited from ngcbOBJ
 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

ngcbPARAM_LISTparamList
 Parameter list, from which modules need to detach during unload.
 
- Public Attributes inherited from ngcbOBJ
FILE * watchdog
 Watchdog stream.
 
ngcbALARM_SYSalarmSystem
 Alarm system.
 
ngcbSERVICEservices
 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.
 

Additional Inherited Members

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

Detailed Description

Exposure driver deployment manager class

Constructor & Destructor Documentation

◆ ngcdcsEDDM() [1/3]

ngcdcsEDDM::ngcdcsEDDM ( const ngcdcsEDDM & other)

Copy constructor.

◆ ngcdcsEDDM() [2/3]

ngcdcsEDDM::ngcdcsEDDM ( )

Constructor.

◆ ngcdcsEDDM() [3/3]

ngcdcsEDDM::ngcdcsEDDM ( size_t maxDrv)
explicit

Constructor with maximum number of managed drivers.

◆ ~ngcdcsEDDM()

ngcdcsEDDM::~ngcdcsEDDM ( )
virtual

Destructor.

Member Function Documentation

◆ Factory() [1/3]

ngcdcsFACTORY * ngcdcsEDDM::Factory ( )

Return current factory.

◆ Factory() [2/3]

ngcdcsFACTORY * ngcdcsEDDM::Factory ( const char * name)

Return factory associated to driver name.

◆ Factory() [3/3]

ngcdcsFACTORY * ngcdcsEDDM::Factory ( const char * symbol,
const char * module )

Return factory associated to symbol/module name.

◆ List()

void ngcdcsEDDM::List ( char * s)

Copy list of driver factory names to string.

◆ Load()

int ngcdcsEDDM::Load ( const char * module,
const char * name = NULL )

Load external exposure driver module.

◆ ModList()

void ngcdcsEDDM::ModList ( char * s)

Copy list of driver module names to string.

◆ Module()

ngcdcsFACTORY * ngcdcsEDDM::Module ( const char * module)

Select factory by module name.

◆ Next()

ngcdcsFACTORY * ngcdcsEDDM::Next ( )

Return next dynamically loaded driver factory.

◆ operator=()

ngcdcsEDDM & ngcdcsEDDM::operator= ( const ngcdcsEDDM & other)

Operator =.

◆ Register() [1/2]

int ngcdcsEDDM::Register ( const char * name)

Register a new driver name.

◆ Register() [2/2]

int ngcdcsEDDM::Register ( ngcdcsFACTORY * f)

Register a new factory.

◆ Select()

ngcdcsFACTORY * ngcdcsEDDM::Select ( const char * name)

Select factory associated to driver name.

◆ Unload() [1/2]

int ngcdcsEDDM::Unload ( )

Unload all external exposure driver modules.

◆ Unload() [2/2]

int ngcdcsEDDM::Unload ( const char * name,
const char * symbol = NULL )

Unload external exposure driver module.

◆ Unregister() [1/2]

void * ngcdcsEDDM::Unregister ( const char * module)

Unregister module.

◆ Unregister() [2/2]

int ngcdcsEDDM::Unregister ( ngcdcsFACTORY * f)

Unregister factory.

Member Data Documentation

◆ paramList

ngcbPARAM_LIST* ngcdcsEDDM::paramList

Parameter list, from which modules need to detach during unload.


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