Bdb packages | Design docs | Source docs | Guidelines | Recent releases

Search | Site Map .

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TagDescriptor Class Reference
[TagData]

#include <TagDescriptor.hh>

Inheritance diagram for TagDescriptor:

TagTransient AbsEventTag AbsEvtObj List of all members.

Static Public Methods

TagDescriptor * instance ()

Protected Methods

 TagDescriptor ()
virtual ~TagDescriptor ()
virtual bool putBool (bool value, const char *const key)
virtual bool putInt (int value, const char *const key)
virtual bool putFloat (float value, const char *const key)
virtual bool putInt (int value, const char *const key, ComPackBase< int > *packer)
virtual bool putFloat (float value, const char *const key, ComPackBase< float > *packer)
virtual void registerProxy (TagAccessor *)
bool processProxies (AbsEvent *)

Private Attributes

HepAList< TagAccessor > * _proxies

Static Private Attributes

TagDescriptor * _instance = 0

Friends

class TagAccessor
class TagCreateModule
class BdbTagConverter

Detailed Description

The TagDescriptor class. Inherits from TagTransient to allow adding elements

Copyright (C) 1999 Caltech

Version:
Id:
TagDescriptor.hh,v 1.5 2000/09/24 03:54:04 yury Exp

Author:
(Yury Kolomensky) Originator

Definition at line 54 of file TagDescriptor.hh.


Constructor & Destructor Documentation

TagDescriptor::TagDescriptor   [protected]
 

Definition at line 59 of file TagDescriptor.cc.

References TagTransient::_locked.

TagDescriptor::~TagDescriptor   [protected, virtual]
 

Definition at line 70 of file TagDescriptor.cc.

References _proxies.


Member Function Documentation

TagDescriptor * TagDescriptor::instance   [static]
 

Definition at line 46 of file TagDescriptor.cc.

References _instance.

Referenced by TagAccessor::declareBool(), TagAccessor::declareFloat(), TagAccessor::declareInt(), TagCreateModule::event(), BdbTagConverter::input(), and TagAccessor::registerCallback().

bool TagDescriptor::processProxies AbsEvent   [protected]
 

Process registered proxies

Definition at line 176 of file TagDescriptor.cc.

References _proxies.

Referenced by TagCreateModule::event(), and BdbTagConverter::input().

bool TagDescriptor::putBool bool    value,
const char *const    key
[protected, 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.

Reimplemented from TagTransient.

Definition at line 84 of file TagDescriptor.cc.

References TagTransient::_bools, TagTransient::_floats, TagTransient::_ints, TagTransient::_locked, and result.

Referenced by TagAccessor::declareBool().

bool TagDescriptor::putFloat float    value,
const char *const    key,
ComPackBase< float > *    packer
[protected, virtual]
 

Insert a packed float tag element.

Reimplemented from TagTransient.

Definition at line 159 of file TagDescriptor.cc.

References putFloat().

bool TagDescriptor::putFloat float    value,
const char *const    key
[protected, 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.

Reimplemented from TagTransient.

Definition at line 126 of file TagDescriptor.cc.

References TagTransient::_bools, TagTransient::_floats, TagTransient::_ints, TagTransient::_locked, and result.

Referenced by TagAccessor::declareFloat(), and putFloat().

bool TagDescriptor::putInt int    value,
const char *const    key,
ComPackBase< int > *    packer
[protected, virtual]
 

Insert a packed integer tag element. The ownership of the packer is taken.

Reimplemented from TagTransient.

Definition at line 150 of file TagDescriptor.cc.

References putInt().

bool TagDescriptor::putInt int    value,
const char *const    key
[protected, 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.

Reimplemented from TagTransient.

Definition at line 105 of file TagDescriptor.cc.

References TagTransient::_bools, TagTransient::_floats, TagTransient::_ints, TagTransient::_locked, and result.

Referenced by TagAccessor::declareInt(), and putInt().

void TagDescriptor::registerProxy TagAccessor   [protected, virtual]
 

registers the proxy class to be called before the first event when event time and other conditions are available

Definition at line 168 of file TagDescriptor.cc.

References _proxies.

Referenced by TagAccessor::registerCallback().


Friends And Related Function Documentation

friend class BdbTagConverter [friend]
 

Definition at line 142 of file TagDescriptor.hh.

friend class TagAccessor [friend]
 

Definition at line 140 of file TagDescriptor.hh.

friend class TagCreateModule [friend]
 

Definition at line 141 of file TagDescriptor.hh.


Member Data Documentation

TagDescriptor * TagDescriptor::_instance = 0 [static, private]
 

Definition at line 40 of file TagDescriptor.cc.

Referenced by instance().

HepAList<TagAccessor>* TagDescriptor::_proxies [private]
 

Definition at line 138 of file TagDescriptor.hh.

Referenced by processProxies(), registerProxy(), and ~TagDescriptor().


The documentation for this class was generated from the following files:

 


BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us

Page Owner: Jacek Becla
Last Update: October 04, 2002