Bayonne2 / Common C++ 2 Framework
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes
ost::BayonneConfig Class Reference

A bayonne config class, used for special purposes, especially during script compiles. More...

#include <bayonne.h>

Inheritance diagram for ost::BayonneConfig:
Inheritance graph
[legend]
Collaboration diagram for ost::BayonneConfig:
Collaboration graph
[legend]

Public Member Functions

 BayonneConfig (const char *id, Keydata::Define *def, const char *path)
 
 BayonneConfig (const char *id, const char *path)
 
void setEnv (const char *id)
 
const char * getString (const char *key, char *buf, size_t size)
 
long getValue (const char *key)
 
bool isKey (const char *key)
 
bool getBoolean (const char *key)
 
void readLock (void)
 Aquire a read lock for the current object. More...
 
void writeLock (void)
 Aquire a write lock for the current object. More...
 
bool tryReadLock (void)
 Attempt read lock for current object. More...
 
bool tryWriteLock (void)
 Attempt write lock for current object. More...
 
void unlock (void)
 Release any held locks. More...
 

Static Public Member Functions

static BayonneConfigget (const char *id)
 
static void rebuild (ScriptImage *img)
 
static void reload (void)
 

Protected Member Functions

virtual void updateConfig (Keydata *keydata)
 

Private Attributes

BayonneConfignext
 
const char * id
 

Static Private Attributes

static BayonneConfigfirst
 

Detailed Description

A bayonne config class, used for special purposes, especially during script compiles.

Author
David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org Bayonne config cache for compiler.

Definition at line 1370 of file bayonne.h.

Constructor & Destructor Documentation

ost::BayonneConfig::BayonneConfig ( const char *  id,
Keydata::Define def,
const char *  path 
)
ost::BayonneConfig::BayonneConfig ( const char *  id,
const char *  path 
)

Member Function Documentation

static BayonneConfig* ost::BayonneConfig::get ( const char *  id)
static
bool ost::DynamicKeydata::getBoolean ( const char *  key)
inherited
const char* ost::DynamicKeydata::getString ( const char *  key,
char *  buf,
size_t  size 
)
inherited
long ost::DynamicKeydata::getValue ( const char *  key)
inherited
bool ost::DynamicKeydata::isKey ( const char *  key)
inherited
void ThreadLock::readLock ( void  )
inherited

Aquire a read lock for the current object.

static void ost::BayonneConfig::rebuild ( ScriptImage img)
static
static void ost::DynamicKeydata::reload ( void  )
staticinherited
void ost::BayonneConfig::setEnv ( const char *  id)
bool ThreadLock::tryReadLock ( void  )
inherited

Attempt read lock for current object.

Returns
true on success.
bool ThreadLock::tryWriteLock ( void  )
inherited

Attempt write lock for current object.

Returns
true on success.
void ThreadLock::unlock ( void  )
inherited

Release any held locks.

virtual void ost::DynamicKeydata::updateConfig ( Keydata keydata)
protectedvirtualinherited
void ThreadLock::writeLock ( void  )
inherited

Aquire a write lock for the current object.

Field Documentation

BayonneConfig* ost::BayonneConfig::first
staticprivate

Definition at line 1373 of file bayonne.h.

const char* ost::BayonneConfig::id
private

Definition at line 1376 of file bayonne.h.

BayonneConfig* ost::BayonneConfig::next
private

Definition at line 1375 of file bayonne.h.


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