![]() |
|
|
Bdb packages | Design docs | Source docs | Guidelines | Recent releases |
|
Main Page Modules Namespace List Class Hierarchy Alphabetical List Compound List File List Compound Members File Members AbsEventTag Class Reference
[AbsEventTag]#include <AbsEventTag.hh>
Inheritance diagram for AbsEventTag:
List of all members.
Public Methods
virtual bool getBool (bool &value, const char *const key) const=0 bool getBool (bool &value, const std::string &key) const virtual bool getInt (int &value, const char *const key) const=0 bool getInt (int &value, const std::string &key) const virtual bool getFloat (float &value, const char *const key) const=0 bool getFloat (float &value, const std::string &key) const virtual bool putBool (bool value, const char *const key)=0 virtual bool putInt (int value, const char *const key)=0 virtual bool putFloat (float value, const char *const key)=0 virtual bool putInt (int value, const char *const key, ComPackBase< int > *packer)=0 virtual bool putFloat (float value, const char *const key, ComPackBase< float > *packer)=0 virtual bool merge (AbsEventTag *anotherTag, bool iwin)=0 virtual AbsEventTagBoolIter * boolIter ()=0 virtual AbsEventTagIntIter * intIter ()=0 virtual AbsEventTagFloatIter * floatIter ()=0 bool operator< (const AbsEventTag &a) const Detailed Description
The AbsEventTag class. This is an abstract interface for the event tag.The event tag contains named integer, float and boolean elements. The name of each element must be unique, independent of the data type.
Copyright (C) 1998 Lawrence Berkeley National Laboratory
- Version:
- Id:
- AbsEventTag.hh,v 1.12 2002/04/18 23:30:12 desilva Exp
- Author:
- (David R. Quarrie) Originator
Definition at line 61 of file AbsEventTag.hh.
Member Function Documentation
virtual AbsEventTagBoolIter* AbsEventTag::boolIter ( ) [pure virtual]
Return an iterator that allows the boolean elements to be retrieved from the tag. It is the responsibility of the client to delete this iterator after use.
Implemented in TagTransient, and BdbTagTransient.
Referenced by TagPlots::event(), TagFilterExample::event(), TagDump::event(), execute_load(), BdbTagLoader::extract(), TagTransient::merge(), and BdbTagConverter::output().
virtual AbsEventTagFloatIter* AbsEventTag::floatIter ( ) [pure virtual]
Return an iterator that allows the float elements to be retrieved from the tag. It is the responsibility of the client to delete this iterator after use.
Implemented in TagTransient, and BdbTagTransient.
Referenced by TagPlots::event(), TagFilterExample::event(), TagDump::event(), execute_load(), BdbTagLoader::extract(), generateCOLLECTION(), TagTransient::merge(), and BdbTagConverter::output().
bool AbsEventTag::getBool ( bool & value, const std::string & key ) const [inline]
Definition at line 79 of file AbsEventTag.hh.
References getBool().
virtual bool AbsEventTag::getBool ( bool & value, const char *const key ) const [pure virtual]
Retrieve a boolean tag element. The "key" argument is used as the key for identifying the element. The function value indicates whether the specified tag element exists, and the "value" argument is used to return the value of the element.
Implemented in TagTransient, and BdbTagTransient.
Referenced by TagPlots::event(), TagInspector::event(), TagFilterExample::event(), TagFilterByName::event(), PassOddCount::event(), and getBool().
bool AbsEventTag::getFloat ( float & value, const std::string & key ) const [inline]
Definition at line 103 of file AbsEventTag.hh.
References getFloat().
virtual bool AbsEventTag::getFloat ( float & value, const char *const key ) const [pure virtual]
Retrieve float tag element. The "key" argument is used as the key for identifying the element. The function value indicates whether the specified tag element exists, and the "value" argument is used to return the value of the element.
Implemented in TagTransient, and BdbTagTransient.
Referenced by TagPlots::event(), TagFilterExample::event(), and getFloat().
bool AbsEventTag::getInt ( int & value, const std::string & key ) const [inline]
Definition at line 91 of file AbsEventTag.hh.
References getInt().
virtual bool AbsEventTag::getInt ( int & value, const char *const key ) const [pure virtual]
Retrieve an integer tag element. The "key" argument is used as the key for identifying the element. The function value indicates whether the specified tag element exists, and the "value" argument is used to return the value of the element.
Implemented in TagTransient, and BdbTagTransient.
Referenced by TagPlots::event(), TagFilterExample::event(), and getInt().
virtual AbsEventTagIntIter* AbsEventTag::intIter ( ) [pure virtual]
Return an iterator that allows the integer elements to be retrieved from the tag. It is the responsibility of the client to delete this iterator after use.
Implemented in TagTransient, and BdbTagTransient.
Referenced by TagPlots::event(), TagFilterExample::event(), TagDump::event(), execute_load(), BdbTagLoader::extract(), TagTransient::merge(), and BdbTagConverter::output().
virtual bool AbsEventTag::merge ( AbsEventTag * anotherTag, bool iwin ) [pure virtual]
Merge the contents with another tag
- Parameters:
iwin specifies which value to use in case of name collision: true -- use own value false -- use other value Implemented in TagTransient.
Referenced by TagCreateModule::event().
bool AbsEventTag::operator< ( const AbsEventTag & a ) const [inline]
Definition at line 182 of file AbsEventTag.hh.
virtual bool AbsEventTag::putBool ( bool value, const char *const key ) [pure virtual]
Insert a boolean tag element. The "key" argument is used as the key for identifying the element. The function value indicates whether the insertion was successful. A failure indicates that the specified name is already in use for an element of another basic datatype. The "value" argument specifies the value of the element.
Implemented in TagDescriptor, and TagTransient.
Referenced by TagFillExample::event(), execute_load(), BdbCollectionP::fillTag(), and TagAccessor::setBool().
virtual bool AbsEventTag::putFloat ( float value, const char *const key, ComPackBase< float > * packer ) [pure virtual]
Insert a packed float tag element. The ownership of the packer is taken.
Implemented in TagDescriptor, and TagTransient.
virtual bool AbsEventTag::putFloat ( float value, const char *const key ) [pure virtual]
Insert a float tag element. The "key" argument is used as the key for identifying the element. The function value indicates whether the insertion was successful. A failure indicates that the specified name is already in use for an element of another basic datatype. The "value" argument specifies the value of the element.
Implemented in TagDescriptor, and TagTransient.
Referenced by TagFillExample::event(), execute_load(), BdbCollectionP::fillTag(), generateCOLLECTION(), and TagAccessor::setFloat().
virtual bool AbsEventTag::putInt ( int value, const char *const key, ComPackBase< int > * packer ) [pure virtual]
Insert a packed integer tag element. The ownership of the packer is taken.
Implemented in TagDescriptor, and TagTransient.
virtual bool AbsEventTag::putInt ( int value, const char *const key ) [pure virtual]
Insert an integer tag element. The "key" argument is used as the key for identifying the element. The function value indicates whether the insertion was successful. A failure indicates that the specified name is already in use for an element of another basic datatype. The "value" argument specifies the value of the element.
Implemented in TagDescriptor, and TagTransient.
Referenced by TagFillExample::event(), execute_load(), BdbCollectionP::fillTag(), and TagAccessor::setInt().
The documentation for this class was generated from the following file:
- /AbsEventTag/AbsEventTag.hh
BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us
Page Owner: Jacek Becla
Last Update: October 04, 2002