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  

CdbBdbSView Class Reference
[CdbBdbShared]

This class implements an abstract base class CdbView. More...

#include <CdbBdbSView.hh>

Inheritance diagram for CdbBdbSView:

CdbView CdbStateControl CdbHistoryProvider CdbFolderLocator CdbCloneable< CdbView > List of all members.

Public Methods

 CdbBdbSView (const CdbDatabasePtr &thePtr, const char *theName, const CdbId &theId, const BdbHandle(CdbBdbSViewP)&theViewH, const BdbHandle(CdbBdbSRegistryP)&theMasterRegistryH, const BdbHandle(CdbBdbSRegistryP)&theLocalRegistryH)
 The normal constructor...

virtual ~CdbBdbSView ()
 The destructor.

virtual bool isValid ()
 Check if the current API context is valid.

virtual bool isOpen ()
 Check if the current API component is open.

virtual CdbStatus open ()
 Open the component.

virtual CdbStatus close ()
 Close the component.

virtual bool isFrozen () const
 Get the current status of the view.

virtual CdbStatus findFolder (CdbFolderPtr &thePtr, const char *theName)
 Find the specified Folder.

virtual CdbStatus folderIterator (CdbFolderItr &theItr)
 Initialize an instance of an iterator for the known folders names.

virtual CdbStatus get (const char *theName, const BdbTime &theValidityTime, CdbConfigElement &theConfigElement) const
 Get a "config element" for a condition at specified point of validity time.

virtual CdbStatus configIterator (const char *theName, CdbItr< CdbConfigElement > &theItr) const
 Set up an iterator of "config elements" for a condition.

virtual CdbStateId currentStateId (const BdbTime &theValidityTime) const
 Get current value of the state identifier.

virtual CdbStatus historyEventIterator (CdbHistoryEventItr &theItr, const BdbTime &theBeginTime, const BdbTime &theEndTime, const char **theEventsToSelect)
 Initialize an instance of an iterator for the history events.

virtual CdbStatus historyEventTypeIterator (CdbHistoryEventTypeItr &theItr)
 Initialize an instance of an iterator for the khistory events.


Protected Methods

virtual CdbViewclone () const
 The cloning method.


Private Methods

 CdbBdbSView ()
 The default constructor (NOT IMPLEMENTED).

 CdbBdbSView (const CdbBdbSView &theView)
 The copy constructor (NOT IMPLEMENTED).

CdbBdbSView & operator= (const CdbBdbSView &theView)
 The assignment operator (NOT IMPLEMENTED).

 BdbHandle (CdbBdbSViewP) _viewH
 BdbHandle (CdbBdbSRegistryP) _masterRegistryH
 BdbHandle (CdbBdbSRegistryP) _localRegistryH

Detailed Description

This class implements an abstract base class CdbView.

This class is based on new implementation of persistent data structures.

See also:
CdbView

Definition at line 14 of file CdbBdbSView.hh.


Constructor & Destructor Documentation

CdbBdbSView::CdbBdbSView   [private]
 

The default constructor (NOT IMPLEMENTED).

Is disabled...

Referenced by clone().

CdbBdbSView::CdbBdbSView const CdbBdbSView &    theView [private]
 

The copy constructor (NOT IMPLEMENTED).

Is disabled...

CdbBdbSView::CdbBdbSView const CdbDatabasePtr   thePtr,
const char *    theName,
const CdbId   theId,
const BdbHandle(CdbBdbSViewP)&    theViewH,
const BdbHandle(CdbBdbSRegistryP)&    theMasterRegistryH,
const BdbHandle(CdbBdbSRegistryP)&    theLocalRegistryH
 

The normal constructor...

More details...

Parameters:
thePtr  the smart pointer providing a back link to the parent object
theName  the name of the view
theId  extended identifier of the view
theViewH  the persistent representation of this view
theMasterRegistryH  the main access point to the persistent store
theLocalRegistryH  the main access point to the persistent store

Definition at line 141 of file CdbBdbSView.cc.

CdbBdbSView::~CdbBdbSView   [virtual]
 

The destructor.

Is only available for the derived classes and friends to prevent accidental deletion of objects.

Definition at line 155 of file CdbBdbSView.cc.


Member Function Documentation

CdbBdbSView::BdbHandle CdbBdbSRegistryP    [private]
 

CdbBdbSView::BdbHandle CdbBdbSRegistryP    [private]
 

CdbBdbSView::BdbHandle CdbBdbSViewP    [private]
 

CdbView * CdbBdbSView::clone   [protected, virtual]
 

The cloning method.

Implements the corresponding method of a base class or interface.

See also:
CdbCloneable::clone()

Implements CdbCloneable< CdbView >.

Definition at line 128 of file CdbBdbSView.cc.

References CdbBdbSView(), CdbView::id(), CdbView::name(), and CdbView::parent().

CdbStatus CdbBdbSView::close   [virtual]
 

Close the component.

Implements a pure virtual method of a base class or interface.

See also:
CdbStateControl::close()

Implements CdbStateControl.

Definition at line 177 of file CdbBdbSView.cc.

References CdbStatus::Success.

CdbStatus CdbBdbSView::configIterator const char *    theName,
CdbItr< CdbConfigElement > &    theItr
const [virtual]
 

Set up an iterator of "config elements" for a condition.

Implements a pure virtual method of a base class or interface.

See also:
CdbView::configIterator()

Implements CdbView.

Definition at line 371 of file CdbBdbSView.cc.

References BdbIsNull, BdbRef, cout, CdbStatus::Error, CdbPathName::isAbsolute(), CdbPathName::isComposite(), CdbPathName::isValid(), CdbView::name(), CdbStatus::NotFound, result, and CdbStatus::Success.

CdbStateId CdbBdbSView::currentStateId const BdbTime   theValidityTime const [virtual]
 

Get current value of the state identifier.

Implements a pure virtual method of a base class or interface.

See also:
CdbView::currentStateId()

Implements CdbView.

Definition at line 444 of file CdbBdbSView.cc.

References BdbIsNull, BdbRef, CdbView::id(), BdbTime::now(), result, and CdbStatus::Success.

CdbStatus CdbBdbSView::findFolder CdbFolderPtr   thePtr,
const char *    theName
[virtual]
 

Find the specified Folder.

Implements a pure virtual method of a base class or interface.

See also:
CdbFolderLocator::findFolder()

Implements CdbFolderLocator.

Definition at line 189 of file CdbBdbSView.cc.

References BdbRef, cout, CdbStatus::Error, CdbStatus::NotFound, result, CdbPathName::separator(), and CdbStatus::Success.

CdbStatus CdbBdbSView::folderIterator CdbFolderItr   theItr [virtual]
 

Initialize an instance of an iterator for the known folders names.

Implements a pure virtual method of a base class or interface.

See also:
CdbFolderLocator::folderIterator()

Implements CdbFolderLocator.

Definition at line 242 of file CdbBdbSView.cc.

CdbStatus CdbBdbSView::get const char *    theName,
const BdbTime   theValidityTime,
CdbConfigElement   theConfigElement
const [virtual]
 

Get a "config element" for a condition at specified point of validity time.

Implements a pure virtual method of a base class or interface.

See also:
CdbView::get()

Implements CdbView.

Definition at line 248 of file CdbBdbSView.cc.

References CdbBdbSConfigElement::accessIsAllowed(), BdbIsNull, BdbRef, CdbBdbSTimeLineInterval< CdbBdbSConfigElement >::begin, cout, CdbBdbSTimeLineInterval< CdbBdbSConfigElement >::end, CdbStatus::Error, CdbPathName::isAbsolute(), CdbPathName::isComposite(), CdbPathName::isValid(), CdbView::name(), CdbStatus::NotFound, CdbBdbSConfigElement::partition, result, CdbBdbSConfigElement::revision, CdbStatus::Success, CdbBdbSConfigElement::useRevision, and CdbBdbSTimeLineInterval< CdbBdbSConfigElement >::value.

CdbStatus CdbBdbSView::historyEventIterator CdbHistoryEventItr   theItr,
const BdbTime   theBeginTime,
const BdbTime   theEndTime,
const char **    theEventsToSelect
[virtual]
 

Initialize an instance of an iterator for the history events.

Implements a pure virtual method of a base class or interface.

See also:
CdbHistoryProvider::historyEventIterator()

Implements CdbHistoryProvider.

Definition at line 495 of file CdbBdbSView.cc.

References CdbStatus::Error.

CdbStatus CdbBdbSView::historyEventTypeIterator CdbHistoryEventTypeItr   theItr [virtual]
 

Initialize an instance of an iterator for the khistory events.

Implements a pure virtual method of a base class or interface.

See also:
CdbHistoryProvider::historyEventTypeIterator()

Implements CdbHistoryProvider.

Definition at line 504 of file CdbBdbSView.cc.

References CdbStatus::Error.

bool CdbBdbSView::isFrozen   [virtual]
 

Get the current status of the view.

Implements a pure virtual method of a base class or interface.

See also:
CdbStateControl::isFrozen()

Implements CdbView.

Definition at line 183 of file CdbBdbSView.cc.

bool CdbBdbSView::isOpen   [virtual]
 

Check if the current API component is open.

Implements a pure virtual method of a base class or interface.

See also:
CdbStateControl::isOpen()

Implements CdbStateControl.

Definition at line 165 of file CdbBdbSView.cc.

bool CdbBdbSView::isValid   [virtual]
 

Check if the current API context is valid.

Implements a pure virtual method of a base class or interface.

See also:
CdbStateControl::isValid()

Implements CdbStateControl.

Definition at line 159 of file CdbBdbSView.cc.

CdbStatus CdbBdbSView::open   [virtual]
 

Open the component.

Implements a pure virtual method of a base class or interface.

See also:
CdbStateControl::open()

Implements CdbStateControl.

Definition at line 171 of file CdbBdbSView.cc.

References CdbStatus::Success.

CdbBdbSView& CdbBdbSView::operator= const CdbBdbSView &    theView [private]
 

The assignment operator (NOT IMPLEMENTED).

Is disabled...


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