class Crate : public genNamedObj<Crate*>

Proxy class that represents a crate

Inheritance:


Public Methods

int addBoard( const char* pcName )
Adds a process unit to the crate
Crate( const char *name, const char *ip_name, const char *objmgr_name = NULL )
Creator
void dump( ostream &os = cout )
Dumps information about the object to ostream os
static void dump_all( ostream &os = cout )
Iterates over all crates and calls dump
int getBoards( list<pstring>& theListOfNames )
Returns a list of the boards in that crate
static Crate* getCrateByObjmanager( const char *pcObjmanager )
Given the name of the objmanager, return a pointer to the crate
const char* getHostName()
Return the hostname
const char* getObjmanager()
Return the name of the objmanager in the crate
void identify( ostream &os = cout )
Prints a one-line summary about the object
static void listAll( ostream &os = cout )
Iterates over all crates and calls identify

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 class that represents a crate. The purpose of this class is twofold: first it lists which components are in which crates. something that for instance the ro_object needs to know. Second it also allows crate-wide functions, something that has been talked a lot about in PHENIX and which is currently not implemented. In a sense crate-wide functions are also not that necessary, granule-crate-wide functions are really what would (will?) be needed in the future.

Crate( const char *name, const char *ip_name, const char *objmgr_name = NULL )
Creator. @arument name name of the crate (arbitray, typically maps name of the crate controller ) @argument ip_name ipaddress @argument objmgr_name name of the object manager that resides in that crate

static Crate* getCrateByObjmanager( const char *pcObjmanager )
Given the name of the objmanager, return a pointer to the crate

const char* getHostName()
Return the hostname

const char* getObjmanager()
Return the name of the objmanager in the crate

int addBoard( const char* pcName )
Adds a process unit to the crate. It first checks whether the Pu is already in this crate.
Returns:
rcSuccess if success, rcFailure if the PU has already been added

int getBoards( list<pstring>& theListOfNames )
Returns a list of the boards in that crate

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

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

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


This class has no child classes.
Author:
C.Witzig
Date: Jan 25, 2000
Version:
Last update Jan 25, 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