Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

cdb::CCS Class Reference

#include <cdbCCS.h>

Inheritance diagram for cdb::CCS:

Inheritance graph
[legend]
Collaboration diagram for cdb::CCS:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CCS (String process)
virtual ~CCS ()
virtual Boolean isInitialized ()
Boolean CreateRecord (const String &strRecordName, Boolean bTruncate=FALSE)
ULong GetRecordState (const String &strRecordName)
Boolean GetField (const String &strRecordName, const String &strFieldName, Field &fld)
Boolean SetField (const String &strRecordName, const String &strFieldName, const Field &fld, Boolean bCreate=TRUE)
Boolean RemoveField (const String &strRecordName, const String &strFieldName)
Boolean GetRecord (const String &strRecordName, Record &rec, Boolean bCreate=FALSE, Boolean bAppend=FALSE)
Boolean SetRecord (const String &strRecordName, const Record &rec, Boolean bCreate=TRUE, Boolean bAll=TRUE)
Boolean RemoveRecord (const String &strRecordName)
virtual Boolean GetChildren (const String &strRecordName, StringArray &astrChildren)

Static Public Member Functions

TablecreateTable (int argc, char **argv, CORBA::ORB_ptr orb)

Private Attributes

Boolean isInit
ACE_Recursive_Thread_Mutex cdbMutex

Constructor & Destructor Documentation

cdb::CCS::CCS String  process  ) 
 

Class to intialize access to ACS configuration database. It is necessary to create an instance of this class before any access to the ACS configuration database can be done

virtual cdb::CCS::~CCS  )  [virtual]
 

CCS class destructor


Member Function Documentation

Boolean cdb::CCS::CreateRecord const String strRecordName,
Boolean  bTruncate = FALSE
[virtual]
 

Implements cdb::Table.

Table* cdb::CCS::createTable int  argc,
char **  argv,
CORBA::ORB_ptr  orb
[static]
 

virtual Boolean cdb::CCS::GetChildren const String strRecordName,
StringArray astrChildren
[virtual]
 

Implements cdb::Table.

Boolean cdb::CCS::GetField const String strRecordName,
const String strFieldName,
Field fld
[virtual]
 

Get data from ACS configuration database.

Parameters:
strRecordName name of the database record
strFieldName name of the field in the record
fld data returned
EXAMPLE #include "cdbCCS.h"

double val; Field fld; DBManager::myClass->GetField("Appl_data:Mount:cmdAz","min_value",fld); fld.GetDouble(val);

Implements cdb::Table.

Boolean cdb::CCS::GetRecord const String strRecordName,
Record rec,
Boolean  bCreate = FALSE,
Boolean  bAppend = FALSE
[virtual]
 

Implements cdb::Table.

ULong cdb::CCS::GetRecordState const String strRecordName  )  [virtual]
 

Implements cdb::Table.

virtual Boolean cdb::CCS::isInitialized  )  [inline, virtual]
 

Method to check if the access to the database is initialized.

Implements cdb::Table.

Boolean cdb::CCS::RemoveField const String strRecordName,
const String strFieldName
[virtual]
 

Implements cdb::Table.

Boolean cdb::CCS::RemoveRecord const String strRecordName  )  [virtual]
 

Implements cdb::Table.

Boolean cdb::CCS::SetField const String strRecordName,
const String strFieldName,
const Field fld,
Boolean  bCreate = TRUE
[virtual]
 

Set field in the ACS configuration database.

Parameters:
strRecordName name of the database record
strFieldName name of the field in the record
fld data returned
bCreate creat flag, not used in the present implementation
EXAMPLE #include "cdbCCS.h"

DBManager::myClass->SetField("Appl_data:Mount:cmdAz","value", Field(Double(1.5)),FALSE);

Implements cdb::Table.

Boolean cdb::CCS::SetRecord const String strRecordName,
const Record rec,
Boolean  bCreate = TRUE,
Boolean  bAll = TRUE
[virtual]
 

Implements cdb::Table.


Member Data Documentation

ACE_Recursive_Thread_Mutex cdb::CCS::cdbMutex [private]
 

Boolean cdb::CCS::isInit [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:37:23 2009 for ACS C++ API by doxygen 1.3.8