Class to represent an HV Granule, as does the CFHVModuleContainer This class consists of a number of pointers to HVgroup Objects, one for each type of module
Class to represent an HV Granule, as does the CFHVModuleContainer This class consists of a number of pointers to HVgroup Objects, one for each type of module. This way, the HVgroup objects remain largely unchanged and still have EPICS control, and this HVgranule object handles the Database storage. We cannot simply call HVgroup the 'granule' object, because a granule may contain more than one type of module, an instance the current HVgroup can't handle.MODIFICATIONS:
- Objectivity Update:
This file has been created to support the new Objectivity Database scheme -- R. Roth- Expansion of the group concept:
A HV group should also be a subset of the granule other than just by type. E.g. it could comprise of all the modules of the DC.W granule NORTH side (DC.W.N.*). We add the member function makeGroup which makes a group basd on a tag.
CW Nov 14, 99
HVgranule(const char *Name, HVDatabaseSet *aDBSet )
HVgranule( ooHandle( CFHVModuleContainer )& aGranuleH, HVDatabaseSet *aDBSet )
inline ooHandle ( CFHVModuleContainer )()
int setGroupPointer( HVgroup *newGroup )
HVgroup* getGroupPointer(const char *groupType )
int makeGroup( const char* pcTagInName, HVgroup &theGroup )
Usage:
const char *pcType = "1469P";
HVgroup *theGroup = new HVgroup( "test", pcType );
const char *pcType = "DC.W.N.*";
int nElementsAdded = currentGranule->makeGroup( pcTag, *theGroup );
cout << "Added " << nElementsAdded << " channels to the group" << endl;
theGroup->dumpGroup();
theGroup - : reference to a group to which the new channels will
be added.
int storeGranuleReadback()
inline const char* getName()
inline short getNumGroups()
pstring pcName
HVgroup* pGroups[NUMBER_OF_MODULE_TYPES]
list < pair< HVgroup*, HVmodule* > > listofModules
ooHandle( CFHVModuleContainer )
short numGroups
HVDatabaseSet* pDBSet
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de