#include <AIDA_StoreXML.h>
Collaboration diagram for Anaphe::AIDA_XMLStore::AIDA_StoreXML:
Public Methods | |
AIDA_StoreXML (const std::string &name, bool readOnly, bool createNew, const std::string &options) | |
Constructor. | |
~AIDA_StoreXML () | |
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) |
Here we need the AIDA types. | |
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 | |
bool | readAllObjects () |
read all objects from the XML file | |
AIDA::Dev::IDevManagedObject * | createFromXML (const DataXML::DataObject *xmlObj, std::string &path) |
create a dev AIDA Managed Object from an XML element | |
bool | writeToXML (AIDA::Dev::IDevManagedObject *object, const std::string &path) |
append Managed Object to XML stream | |
Private Attributes | |
std::string | m_name |
Anaphe::AIDA_XMLStore::StoreTranslator * | m_outputTranslator |
std::map< std::string, std::string > | m_objectTypes |
std::map< std::string, AIDA::Dev::IDevManagedObject * > | m_objectRefs |
std::set< std::string > | m_objectsToDelete |
std::set< std::string > | m_objectsToAdd |
std::set< std::string > | m_objectsToUpdate |
bool | m_compress |
|
Definition at line 59 of file AIDA_StoreXML.cpp. References m_compress, and readAllObjects(). |
|
Definition at line 79 of file AIDA_StoreXML.cpp. References close(). |
|
Definition at line 445 of file AIDA_StoreXML.cpp. |
|
Definition at line 427 of file AIDA_StoreXML.cpp. |
|
Definition at line 426 of file AIDA_StoreXML.cpp. |
|
Definition at line 466 of file AIDA_StoreXML.cpp. |
|
Definition at line 419 of file AIDA_StoreXML.cpp. Referenced by ~AIDA_StoreXML(). |
|
Definition at line 376 of file AIDA_StoreXML.cpp. References m_name, m_objectRefs, m_outputTranslator, Anaphe::AIDA_XMLStore::StoreTranslator::write(), writeToXML(), and XML_STORE_REPORT_ERROR. |
|
Definition at line 134 of file AIDA_StoreXML.cpp. References m_objectTypes, name(), writeObject(), and XML_STORE_REPORT_ERROR. |
|
|
Definition at line 283 of file AIDA_StoreXML.cpp. |
|
Definition at line 329 of file AIDA_StoreXML.cpp. References m_objectTypes. |
|
Definition at line 261 of file AIDA_StoreXML.cpp. References m_objectRefs, and m_objectTypes. |
|
Definition at line 86 of file AIDA_StoreXML.cpp. References m_name. Referenced by copyAndWrite(), createFromXML(), and writeToXML(). |
|
Definition at line 496 of file AIDA_StoreXML.cpp. References createFromXML(), m_name, m_objectRefs, m_objectTypes, Anaphe::AIDA_XMLStore::StoreTranslator::read(), and XML_STORE_REPORT_ERROR. Referenced by AIDA_StoreXML(). |
|
Definition at line 438 of file AIDA_StoreXML.cpp. |
|
Definition at line 480 of file AIDA_StoreXML.cpp. |
|
Definition at line 249 of file AIDA_StoreXML.cpp. References m_objectRefs, and m_objectTypes. |
|
Definition at line 487 of file AIDA_StoreXML.cpp. |
|
Definition at line 237 of file AIDA_StoreXML.cpp. References m_objectRefs. |
|
Definition at line 459 of file AIDA_StoreXML.cpp. |
|
Definition at line 452 of file AIDA_StoreXML.cpp. |
|
Definition at line 93 of file AIDA_StoreXML.cpp. References m_objectRefs, and m_objectTypes. Referenced by copyAndWrite(). |
|
append Managed object to XML stream but now write yet to the file Definition at line 679 of file AIDA_StoreXML.cpp. References Anaphe::AIDA_XMLStore::StoreTranslator::append(), m_outputTranslator, name(), and XML_STORE_REPORT_ERROR. Referenced by commit(). |
|
Definition at line 431 of file AIDA_StoreXML.cpp. |
|
Definition at line 473 of file AIDA_StoreXML.cpp. |
|
Definition at line 93 of file AIDA_StoreXML.h. Referenced by AIDA_StoreXML(). |
|
Definition at line 84 of file AIDA_StoreXML.h. Referenced by commit(), name(), and readAllObjects(). |
|
Definition at line 88 of file AIDA_StoreXML.h. Referenced by commit(), createFromXML(), moveObject(), readAllObjects(), removeObject(), retrieveObject(), and writeObject(). |
|
Definition at line 90 of file AIDA_StoreXML.h. |
|
Definition at line 89 of file AIDA_StoreXML.h. |
|
Definition at line 91 of file AIDA_StoreXML.h. |
|
Definition at line 87 of file AIDA_StoreXML.h. Referenced by copyAndWrite(), listObjectTypes(), moveObject(), readAllObjects(), removeObject(), and writeObject(). |
|
Definition at line 85 of file AIDA_StoreXML.h. Referenced by commit(), and writeToXML(). |