Main Page   Namespace List   Alphabetical List   Compound List   File List   Compound Members   File Members  

Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore Class Reference

#include <AIDA_ObjectivityStore.h>

Collaboration diagram for Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore:

Collaboration graph
[legend]
List of all members.

Public Methods

 AIDA_ObjyStore (const std::string &name, bool readOnly, bool createNew, const std::string &options)
 Constructor.

 ~AIDA_ObjyStore ()
 Destructor.

const std::string & name () const
 Methods inherited from the IStore class.

bool writeObject (const AIDA::IManagedObject &dataObject, const std::string &path)
AIDA::IManagedObject * copyAndWrite (const AIDA::IManagedObject &dataObject, const std::string &path)
AIDA::IManagedObject * retrieveObject (const std::string &path)
bool removeObject (const std::string &path)
bool moveObject (const std::string &from, const std::string &to)
bool commit ()
bool close ()
std::vector< std::string > listObjectPaths (const std::string directory, bool recursive=false) const
std::vector< std::string > listObjectTypes (const std::string directory, bool recursive=false) const
bool canMoveTuples () const
bool canCopyTuples () const
bool writeTupleHeader (AIDA::Dev::ITupleHeader &header)
 Methods inherited from the IBackingStore class.

bool readTupleHeader (AIDA::Dev::ITupleHeader &header)
bool bindVariable (AIDA::Dev::ITupleHeader &header, int variableIndex)
void * variableAddress (AIDA::Dev::ITupleHeader &header, int variableIndex)
const void * variableAddress (const AIDA::Dev::ITupleHeader &header, int variableIndex) const
bool clearBindings (const AIDA::Dev::ITupleHeader &header)
bool writeTupleRow (AIDA::Dev::ITupleHeader &header)
bool readTupleRow (AIDA::Dev::ITupleHeader &header)
bool resetTuple (AIDA::Dev::ITupleHeader &header)

Private Methods

void collectObjectTypes (const std::string &directory)
void commitAdd ()
void registerType (ooRef(ooObj) ref, const ooHandle(ooContObj)&hCont, const std::string &type)

Private Attributes

std::string m_name
bool m_isClosed
ObjectivityOptionParserm_optionParser
ooSession * m_ooSession
HepMapTree * m_hepMapTree
std::string m_topLevelDatabase
std::string m_topLevelContainer
std::map< std::string, std::string > m_objectTypes
std::map< std::string, AIDA::Dev::IDevManagedObject * > m_objectRefs
std::map< std::string, ooRef(ooObj) m_objectSysRefs )
std::map< std::string, HepExplorable * > m_tuples
std::map< std::string, ObjyTuple * > m_tupleData
std::set< std::string > m_objectsToAdd

Constructor & Destructor Documentation

Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::AIDA_ObjyStore const std::string &    name,
bool    readOnly,
bool    createNew,
const std::string &    options
 

Definition at line 57 of file AIDA_ObjectivityStore.cpp.

References collectObjectTypes(), Anaphe::AIDA_ObjectivityStore::ObjectivityOptionParser::isNamingEnabled(), m_hepMapTree, m_isClosed, m_ooSession, m_optionParser, m_topLevelContainer, m_topLevelDatabase, name(), ooHandle(), and Anaphe::AIDA_ObjectivityStore::ObjectivityOptionParser::topLevelDatabaseAndContainer().

Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::~AIDA_ObjyStore  
 

Definition at line 157 of file AIDA_ObjectivityStore.cpp.

References close(), m_hepMapTree, m_ooSession, m_optionParser, m_tupleData, and m_tuples.


Member Function Documentation

bool Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::bindVariable AIDA::Dev::ITupleHeader &    header,
int    variableIndex
 

Definition at line 648 of file AIDA_ObjectivityStore.cpp.

References m_tupleData.

bool Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::canCopyTuples   const
 

Definition at line 569 of file AIDA_ObjectivityStore.cpp.

bool Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::canMoveTuples   const
 

Definition at line 568 of file AIDA_ObjectivityStore.cpp.

bool Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::clearBindings const AIDA::Dev::ITupleHeader &    header
 

Definition at line 678 of file AIDA_ObjectivityStore.cpp.

References m_tupleData.

bool Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::close  
 

Definition at line 560 of file AIDA_ObjectivityStore.cpp.

References m_isClosed, and m_ooSession.

Referenced by ~AIDA_ObjyStore().

void Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::collectObjectTypes const std::string &    directory [private]
 

Definition at line 729 of file AIDA_ObjectivityStore.cpp.

References Anaphe::AIDA_ObjectivityStore::ObjyPathFormater::formAbsolutePath(), Anaphe::AIDA_ObjectivityStore::ObjectivityOptionParser::isNamingEnabled(), m_objectTypes, m_ooSession, m_optionParser, m_topLevelContainer, m_topLevelDatabase, m_tuples, ooHandle(), registerType(), and Anaphe::AIDA_ObjectivityStore::ObjyPathFormater::theFormater().

Referenced by AIDA_ObjyStore().

bool Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::commit  
 

Definition at line 531 of file AIDA_ObjectivityStore.cpp.

References commitAdd(), m_objectRefs, m_objectsToAdd, m_objectSysRefs, m_ooSession, and ooHandle().

void Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::commitAdd   [private]
 

Definition at line 776 of file AIDA_ObjectivityStore.cpp.

References m_objectRefs, m_objectsToAdd, m_objectSysRefs, m_ooSession, m_topLevelContainer, m_topLevelDatabase, and ooHandle().

Referenced by commit().

AIDA::IManagedObject * Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::copyAndWrite const AIDA::IManagedObject &    dataObject,
const std::string &    path
 

Definition at line 205 of file AIDA_ObjectivityStore.cpp.

References m_objectTypes, name(), OBJECTIVITY_STORE_REPORT_ERROR, and writeObject().

std::vector< std::string > Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::listObjectPaths const std::string    directory,
bool    recursive = false
const
 

Definition at line 444 of file AIDA_ObjectivityStore.cpp.

References m_objectTypes.

std::vector< std::string > Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::listObjectTypes const std::string    directory,
bool    recursive = false
const
 

Definition at line 487 of file AIDA_ObjectivityStore.cpp.

References m_objectTypes.

bool Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::moveObject const std::string &    from,
const std::string &    to
 

Definition at line 407 of file AIDA_ObjectivityStore.cpp.

References m_objectRefs, m_objectsToAdd, m_objectSysRefs, m_objectTypes, m_ooSession, m_topLevelContainer, m_topLevelDatabase, and ooHandle().

const std::string & Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::name   const
 

Definition at line 172 of file AIDA_ObjectivityStore.cpp.

References m_name.

Referenced by AIDA_ObjyStore(), and copyAndWrite().

bool Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::readTupleHeader AIDA::Dev::ITupleHeader &    header
 

Definition at line 618 of file AIDA_ObjectivityStore.cpp.

References m_tupleData, m_tuples, OBJECTIVITY_STORE_REPORT_ERROR, Anaphe::AIDA_ObjectivityStore::ObjyTuple::readDescription(), and very_big_integer.

Referenced by retrieveObject().

bool Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::readTupleRow AIDA::Dev::ITupleHeader &    header
 

Definition at line 698 of file AIDA_ObjectivityStore.cpp.

References m_tupleData, and very_big_integer.

void Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::registerType ooRef(ooObj)    ref,
const ooHandle(ooContObj)&    hCont,
const std::string &    type
[private]
 

Definition at line 815 of file AIDA_ObjectivityStore.cpp.

References Anaphe::AIDA_ObjectivityStore::ObjyPathFormater::formAbsolutePath(), m_objectRefs, m_objectSysRefs, m_objectTypes, and Anaphe::AIDA_ObjectivityStore::ObjyPathFormater::theFormater().

Referenced by collectObjectTypes().

bool Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::removeObject const std::string &    path
 

Definition at line 362 of file AIDA_ObjectivityStore.cpp.

References m_objectRefs, m_objectsToAdd, m_objectSysRefs, m_objectTypes, m_tupleData, m_tuples, and ooHandle().

bool Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::resetTuple AIDA::Dev::ITupleHeader &    header
 

Definition at line 719 of file AIDA_ObjectivityStore.cpp.

References m_tupleData.

AIDA::IManagedObject * Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::retrieveObject const std::string &    path
 

Definition at line 257 of file AIDA_ObjectivityStore.cpp.

References Anaphe::AIDA_ObjectivityStore::ObjyHistogramConverter::convertFromObjy(), m_objectRefs, m_objectSysRefs, m_objectTypes, m_tuples, OBJECTIVITY_STORE_REPORT_ERROR, ooHandle(), readTupleHeader(), and Anaphe::AIDA_ObjectivityStore::ObjyPathFormater::theFormater().

const void * Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::variableAddress const AIDA::Dev::ITupleHeader &    header,
int    variableIndex
const
 

Definition at line 668 of file AIDA_ObjectivityStore.cpp.

References m_tupleData.

void * Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::variableAddress AIDA::Dev::ITupleHeader &    header,
int    variableIndex
 

Definition at line 658 of file AIDA_ObjectivityStore.cpp.

References m_tupleData.

bool Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::writeObject const AIDA::IManagedObject &    dataObject,
const std::string &    path
 

Definition at line 179 of file AIDA_ObjectivityStore.cpp.

References m_objectRefs, m_objectsToAdd, and m_objectTypes.

Referenced by copyAndWrite().

bool Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::writeTupleHeader AIDA::Dev::ITupleHeader &    header
 

Definition at line 573 of file AIDA_ObjectivityStore.cpp.

References m_ooSession, m_topLevelContainer, m_topLevelDatabase, m_tupleData, m_tuples, OBJECTIVITY_STORE_REPORT_ERROR, ooHandle(), and Anaphe::AIDA_ObjectivityStore::ObjyTuple::writeDescription().

bool Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::writeTupleRow AIDA::Dev::ITupleHeader &    header
 

Definition at line 688 of file AIDA_ObjectivityStore.cpp.

References m_tupleData.


Member Data Documentation

HepMapTree* Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::m_hepMapTree [private]
 

Definition at line 76 of file AIDA_ObjectivityStore.h.

Referenced by AIDA_ObjyStore(), and ~AIDA_ObjyStore().

bool Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::m_isClosed [private]
 

Definition at line 73 of file AIDA_ObjectivityStore.h.

Referenced by AIDA_ObjyStore(), and close().

std::string Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::m_name [private]
 

Definition at line 72 of file AIDA_ObjectivityStore.h.

Referenced by name().

std::map< std::string, AIDA::Dev::IDevManagedObject* > Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::m_objectRefs [private]
 

Definition at line 82 of file AIDA_ObjectivityStore.h.

Referenced by commit(), commitAdd(), moveObject(), registerType(), removeObject(), retrieveObject(), and writeObject().

std::set< std::string > Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::m_objectsToAdd [private]
 

Definition at line 87 of file AIDA_ObjectivityStore.h.

Referenced by commit(), commitAdd(), moveObject(), removeObject(), and writeObject().

std::map< std::string, ooRef(ooObj) Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::m_objectSysRefs) [private]
 

Definition at line 83 of file AIDA_ObjectivityStore.h.

Referenced by commit(), commitAdd(), moveObject(), registerType(), removeObject(), and retrieveObject().

std::map< std::string, std::string > Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::m_objectTypes [private]
 

Definition at line 81 of file AIDA_ObjectivityStore.h.

Referenced by collectObjectTypes(), copyAndWrite(), listObjectPaths(), listObjectTypes(), moveObject(), registerType(), removeObject(), retrieveObject(), and writeObject().

ooSession* Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::m_ooSession [private]
 

Definition at line 75 of file AIDA_ObjectivityStore.h.

Referenced by AIDA_ObjyStore(), close(), collectObjectTypes(), commit(), commitAdd(), moveObject(), writeTupleHeader(), and ~AIDA_ObjyStore().

ObjectivityOptionParser* Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::m_optionParser [private]
 

Definition at line 74 of file AIDA_ObjectivityStore.h.

Referenced by AIDA_ObjyStore(), collectObjectTypes(), and ~AIDA_ObjyStore().

std::string Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::m_topLevelContainer [private]
 

Definition at line 78 of file AIDA_ObjectivityStore.h.

Referenced by AIDA_ObjyStore(), collectObjectTypes(), commitAdd(), moveObject(), and writeTupleHeader().

std::string Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::m_topLevelDatabase [private]
 

Definition at line 77 of file AIDA_ObjectivityStore.h.

Referenced by AIDA_ObjyStore(), collectObjectTypes(), commitAdd(), moveObject(), and writeTupleHeader().

std::map< std::string, ObjyTuple* > Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::m_tupleData [private]
 

Definition at line 85 of file AIDA_ObjectivityStore.h.

Referenced by bindVariable(), clearBindings(), readTupleHeader(), readTupleRow(), removeObject(), resetTuple(), variableAddress(), writeTupleHeader(), writeTupleRow(), and ~AIDA_ObjyStore().

std::map< std::string, HepExplorable* > Anaphe::AIDA_ObjectivityStore::AIDA_ObjyStore::m_tuples [private]
 

Definition at line 84 of file AIDA_ObjectivityStore.h.

Referenced by collectObjectTypes(), readTupleHeader(), removeObject(), retrieveObject(), writeTupleHeader(), and ~AIDA_ObjyStore().


The documentation for this class was generated from the following files:
Generated on Tue Nov 19 12:32:35 2002 for AIDA_ObjectivityStore by doxygen1.2.16