Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

ztt::dcs::DataAccess Class Reference

#include <DataAccess.hpp>

List of all members.


Detailed Description

This class is used for the database access. Handling the read-out and store data to the database.

Author:
Benjamin Schockert,Sebastian Bablok,Christian Kofler


Public Member Functions

 ~DataAccess ()
int fillCollectionWithNames (char *tag, std::vector< char * > *collection)
int fillCollectionFromFile (char *tag, std::vector< char * > *collection)
int getDbInfoFromFile (char *tag)
int loadFiles (std::vector< char * > *server, std::vector< char * > *service)
void setConfigDir (const std::string &dir)

Static Public Member Functions

DataAccesscreateDataAccess ()

Public Attributes

bool logging
bool grouped
int valueselect
int xValue
int yValue
int zValue
std::string userName
std::string password
std::string database
std::list< char * > tablenameServer
std::list< char * > tablenameService
std::vector< int > posX
std::vector< int > posY
std::vector< int > posZ


Constructor & Destructor Documentation

ztt::dcs::DataAccess::~DataAccess  ) 
 

Destructor for database - access handler.


Member Function Documentation

int ztt::dcs::DataAccess::fillCollectionWithNames char *  tag,
std::vector< char * > *  collection
 

Retrives the desired FeeServer or FeeService names via Database.

Parameters:
tag for now this should be the filename, later on this tag will identify a set of FeeServers / FeeServices given by the database.
collection pointer to vector, which receives the FeeServer / FeeService names.
Returns:
number of names added to vector; DATA_NOT_FOUND (-1) indicates missing access (filename wrong, DB error)


Member Data Documentation

bool ztt::dcs::DataAccess::grouped
 

the flag to decide which kind of channel should be created


The documentation for this class was generated from the following file:
Generated on Fri Mar 30 02:54:34 2007 for InterComLayer by doxygen 1.3.5