class DCB : genNamedObj<DCB*>

Proxy for the DCB

Inheritance:


Public Methods

DCB(const char *name )
Constructor
void dump( ostream &os = cout )
Dumps information about the object to ostream os
static void dump_all( ostream &os = cout )
Iterates over all objects and calls dump
const char* getCrate()
Returns the crate name
int getDcms( list<DCM*> &theList )
Returns a list of DCBs
const char* getName()
Returns the name
int getSlot()
Returns the slot number
void identify( ostream &os = cout )
Prints a one-line summary about the object
int install( const char* pcCrate, long iSlot )
To set the crate name and slot where the board is located
int installDcm( DCM *pDCM )
To related DCMs to DCBs
bool isCreatedInVxWorks()
Returns true if the object has been created in VxWorks
static void listAll( ostream &os = cout )
Iterates over all objects and calls identify
int removeDcm( DCM *pDCM )
To Remove a DCM from the DCB
void setCreatedInVxWorks( bool bValue )
To set the flag when the DCB has been created
int setServerName( const char* server_name )
To set the name of the objmanager in the crate

Private Fields

list < DCM*> listDcm
1:M relation DCB <-->> DCM

Inherited from genNamedObj:

Public Methods

static void add( const char *name, X x )
inline static X begin()
inline static X end()
static bool exists( const char *name )
static X get( const char *name )
int getLocation()
inline static int getNbElements()
static X getObject( const char *name )
static int getObjects( const char *name, list<X> &theList )
inline const char* getObjName()
inline static X next()
static void remove( const char *name )

Private Fields

static map < const char*, X, cstring_ordering_t > ::iterator m_It
static map < const char*, X, cstring_ordering_t > m_Map
char* m_Name

Documentation

Proxy for the DCB. The purpose of this class is to map the DCM boards to the DCMs and relate the DCMs to the location in the crates where they are sitting. That is really all this class does (so it is a pretty stupid one, in particular not a PU!).

DCB(const char *name )
Constructor

static void dump_all( ostream &os = cout )
Iterates over all objects and calls dump

static void listAll( ostream &os = cout )
Iterates over all objects and calls identify

void identify( ostream &os = cout )
Prints a one-line summary about the object

void dump( ostream &os = cout )
Dumps information about the object to ostream os

const char* getName()
Returns the name

bool isCreatedInVxWorks()
Returns true if the object has been created in VxWorks

void setCreatedInVxWorks( bool bValue )
To set the flag when the DCB has been created. This is done by the DCMs.

int install( const char* pcCrate, long iSlot )
To set the crate name and slot where the board is located

int installDcm( DCM *pDCM )
To related DCMs to DCBs

int removeDcm( DCM *pDCM )
To Remove a DCM from the DCB

int getDcms( list<DCM*> &theList )
Returns a list of DCBs

int getSlot()
Returns the slot number

const char* getCrate()
Returns the crate name

int setServerName( const char* server_name )
To set the name of the objmanager in the crate

list < DCM*> listDcm
1:M relation DCB <-->> DCM


This class has no child classes.
Author:
C.Witzig
Date: Jan 31, 2000
Version:
Last update Jan 31, 2000

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de