DABC (Data Acquisition Backbone Core)  2.9.9
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes
dabc::ConfigIO Class Reference

Interface class between xml configuration and dabc objects. More...

#include <dabc/ConfigIO.h>

Public Member Functions

bool CheckAttr (const char *name, const char *value)
 Check if item, found by FindItem routine, has attribute with specified value. More...
 ConfigIO (Configuration *cfg, int id=-1)
 ConfigIO (const ConfigIO &src)
bool FindItem (const char *name)
bool ReadRecordField (Object *obj, const std::string &name, RecordField *field, RecordFieldsMap *fieldsmap)
virtual ~ConfigIO ()

Protected Member Functions

XMLNodePointer_t FindSubItem (XMLNodePointer_t node, const char *name)
std::string ResolveEnv (const char *value)

Static Protected Member Functions

static ObjectGetObjParent (Object *obj, int lvl)

Protected Attributes

 pointer on configuration object More...
int fCgfId
 special ID which can be used ${}# formula More...
XMLNodePointer_t fCurrChld
 selected child in current item More...
XMLNodePointer_t fCurrItem
 currently found item More...
bool fCurrStrict
 must have strict syntax match More...

Detailed Description

Interface class between xml configuration and dabc objects.

Used to find xml nodes, which correspond to dabc objects like module or application

Definition at line 38 of file ConfigIO.h.

Constructor & Destructor Documentation

◆ ConfigIO() [1/2]

dabc::ConfigIO::ConfigIO ( Configuration cfg,
int  id = -1 

Definition at line 24 of file ConfigIO.cxx.

◆ ConfigIO() [2/2]

dabc::ConfigIO::ConfigIO ( const ConfigIO src)

Definition at line 33 of file ConfigIO.cxx.

◆ ~ConfigIO()

virtual dabc::ConfigIO::~ConfigIO ( )

Definition at line 61 of file ConfigIO.h.

Member Function Documentation

◆ FindSubItem()

dabc::XMLNodePointer_t dabc::ConfigIO::FindSubItem ( XMLNodePointer_t  node,
const char *  name 

Definition at line 112 of file ConfigIO.cxx.

◆ GetObjParent()

dabc::Object * dabc::ConfigIO::GetObjParent ( Object obj,
int  lvl 

Definition at line 99 of file ConfigIO.cxx.

◆ ResolveEnv()

std::string dabc::ConfigIO::ResolveEnv ( const char *  value)

Definition at line 123 of file ConfigIO.cxx.

◆ FindItem()

bool dabc::ConfigIO::FindItem ( const char *  name)

Definition at line 42 of file ConfigIO.cxx.

◆ CheckAttr()

bool dabc::ConfigIO::CheckAttr ( const char *  name,
const char *  value 

Check if item, found by FindItem routine, has attribute with specified value.

Definition at line 63 of file ConfigIO.cxx.

◆ ReadRecordField()

bool dabc::ConfigIO::ReadRecordField ( Object obj,
const std::string &  name,
RecordField field,
RecordFieldsMap fieldsmap 

Definition at line 132 of file ConfigIO.cxx.

Field Documentation

◆ fCfg

Configuration* dabc::ConfigIO::fCfg

pointer on configuration object

Definition at line 43 of file ConfigIO.h.

◆ fCurrItem

XMLNodePointer_t dabc::ConfigIO::fCurrItem

currently found item

Definition at line 45 of file ConfigIO.h.

◆ fCurrChld

XMLNodePointer_t dabc::ConfigIO::fCurrChld

selected child in current item

Definition at line 46 of file ConfigIO.h.

◆ fCurrStrict

bool dabc::ConfigIO::fCurrStrict

must have strict syntax match

Definition at line 47 of file ConfigIO.h.

◆ fCgfId

int dabc::ConfigIO::fCgfId

special ID which can be used ${}# formula

Definition at line 48 of file ConfigIO.h.

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