|
AGX Dynamics
2.37.3.2
|
XML version of an input archive for restoring data written with the XMLOutputArchive. More...
#include <XMLInputArchive.h>
Inheritance diagram for agxStream::XMLInputArchive:Classes | |
| struct | StackElement |
Public Member Functions | |
| XMLInputArchive (std::istream &inputStream) | |
| Constructor creating a XMLInputArchive for reading XML streams. More... | |
| XMLInputArchive (std::istream &inputStream, IdToObjectVector &idCache, IdToClassNameVector &nameCache) | |
| virtual void | beginSection (const char *title) |
| virtual void | endSection (const char *title) |
| virtual void | getAttribute (const char *name, std::string &value) |
| virtual void | getAttribute (const char *name, float &value) |
| virtual void | getAttribute (const char *name, double &value) |
| virtual void | getAttribute (const char *name, bool &value) |
| virtual void | getAttribute (const char *name, char &value) |
| virtual void | getAttribute (const char *name, agx::Int8 &value) |
| virtual void | getAttribute (const char *name, agx::UInt8 &value) |
| virtual void | getAttribute (const char *name, agx::UInt16 &value) |
| virtual void | getAttribute (const char *name, agx::UInt32 &value) |
| virtual void | getAttribute (const char *name, agx::Int32 &value) |
| virtual void | getAttribute (const char *name, agx::UInt64 &value) |
| virtual void | getAttribute (const char *name, agx::Uuid &value) |
| agx::String | getErrorMessage (const agx::String &message) |
| virtual size_t | getNumBytesRead () const |
| virtual void | read (char &val) |
| virtual void | read (bool &val) |
| virtual void | read (agx::Int8 &val) |
| virtual void | read (agx::UInt8 &val) |
| virtual void | read (agx::Int16 &val) |
| virtual void | read (agx::UInt16 &val) |
| virtual void | read (agx::Vec3d &val) |
| virtual void | read (agx::Vec3f &val) |
| virtual void | read (agx::Uuid &val) |
| virtual void | read (agx::UInt32 &val) |
| virtual void | read (agx::Int32 &val) |
| virtual void | read (std::string &val) |
| virtual void | read (agx::UInt64 &val) |
| virtual void | read (agx::Int64 &val) |
| virtual void | read (float &val) |
| virtual void | read (double &val) |
| virtual void | read (void *buf, size_t size) |
| This method will read raw data from the archive. More... | |
Public Member Functions inherited from agxStream::InputArchive | |
| InputArchive (std::istream &inputStream) | |
| InputArchive (std::istream &inputStream, IdToObjectVector &objectCache, IdToClassNameVector &nameCache) | |
| bool | addRestoreListener (RestoreListener *listener) |
| Add a listener that will be called for each restored Serializable object. More... | |
| bool | eof () const |
| agx::String | getAppName () const |
| agx::String | getArchiveDate () const |
| agx::String | getBuildDate () const |
| const BuildConfigurationTable & | getBuildFlags () const |
| agx::String | getBuildTime () const |
| bool | getEndianMatch () const |
| agx::UInt8 | getGenerationVersion () const |
| agx::UInt8 | getMajorVersion () const |
| agx::UInt8 | getMinorVersion () const |
| int | getNumObjectsRead () const |
| agx::UInt8 | getPatchVersion () const |
| RestoreMode | getRestoreMode () const |
| agx::String | getRevision () const |
| agx::UInt16 | getSerializationVersion () const |
| std::istream & | getStream () |
| Return a reference to the inputstream. More... | |
| size_t | getVersion () const |
| bool | hasModification (const char *str) const |
| bool | hasModifications (const agx::StringVector &modifications) const |
| void | open () |
| virtual void | read (agx::RangeReal &val) |
| virtual void | read (agx::Vec2f &val) |
| virtual void | read (agx::Vec2d &val) |
| virtual void | read (agx::Vec2i32 &val) |
| virtual void | read (agx::Vec2i64 &val) |
| virtual void | read (agx::Vec3i32 &val) |
| virtual void | read (agx::Vec3i64 &val) |
| virtual void | read (agx::Vec4f &val) |
| virtual void | read (agx::Vec4d &val) |
| virtual void | read (agx::Quat &val) |
| virtual void | read (agx::SPDMatrix3x3 &val) |
| virtual void | read (agx::Matrix3x3d &val) |
| virtual void | read (agx::Matrix3x3f &val) |
| virtual void | read (agx::AffineMatrix4x4f &val) |
| virtual void | read (agx::AffineMatrix4x4d &val) |
| virtual void | read (agx::String &val) |
| virtual void | read (agx::Name &val) |
| template<typename VECTOR_TYPE > | |
| AGXCORE_EXPORT void | read_vector (const agx::String &name, VECTOR_TYPE &val) |
| Read an array of data. More... | |
| Serializable * | readObjectByRef () |
| bool | readObjectByVal (Serializable &obj) |
| template<typename T > | |
| void | readRef (T **obj, StorageMode mode) |
| void | readVal (Serializable &obj, StorageMode mode) |
| bool | removeRestoreListener (RestoreListener *listener) |
| Remove a RestoreListener. More... | |
| void | setFinished () |
| Must be called when archive is de-serialized successfully. More... | |
| void | setRestoreMode (RestoreMode mode) |
Public Member Functions inherited from agxStream::Archive | |
| Archive () | |
| virtual void | close () |
| bool | getBinaryMode () const |
| bool | isOpen () const |
| virtual void | newAttribute () |
| Called whenever a new item is initiated. More... | |
| void | setBinaryMode (bool m) |
Public Member Functions inherited from agx::Referenced | |
| Referenced () | |
| Default constructor. More... | |
| Referenced (const Referenced &) | |
| template<typename T > | |
| T * | as () |
| Subclass casting. More... | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. More... | |
| template<typename T > | |
| const T * | asSafe () const |
| int | getReferenceCount () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| Referenced & | operator= (const Referenced &) |
| Assignment operator. Will increment the number of references to the referenced object. More... | |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
Protected Member Functions | |
| virtual | ~XMLInputArchive () |
| Destructor. More... | |
| agx::TiXmlElement * | getElement (const char *variable) |
| void | init () |
Protected Member Functions inherited from agxStream::InputArchive | |
| InputArchive (const InputArchive &inputStream) | |
| virtual | ~InputArchive () |
| Destructor. More... | |
| void | eof (bool flag) |
| agx::String | getSerializationVersionStringMessage () const |
| agx::String | getVersionStringMessage () const |
| InputArchive & | operator= (const InputArchive &) |
| virtual void | readArchiveHeader () |
| void | readCompareBitSize () |
| void | readHeaderData () |
| virtual void | readObjectHeader (StorageMode &storageMode, StorageAgent *&agent) |
| virtual void | readTypeHeader (StorageAgent *&agent) |
| bool | removeObject (Serializable *object) |
| Remove the serialized object from list. More... | |
Protected Member Functions inherited from agxStream::Archive | |
| virtual | ~Archive () |
| Destructor. More... | |
| void | open () |
Protected Member Functions inherited from agx::Referenced | |
| virtual | ~Referenced () |
| Destructor. More... | |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
Protected Attributes | |
| agx::TiXmlElement * | m_currentElement |
| std::string | m_currTitle |
| agx::TiXmlDocument * | m_document |
| agx::TiXmlNode * | m_lastNode |
| agx::Vector< StackElement > | m_sectionStack |
| std::stringstream | m_stringBuf |
Protected Attributes inherited from agxStream::InputArchive | |
| IdToClassNameVector | m_defaultNameCache |
| IdToObjectVector | m_defaultObjectCache |
| IdToClassNameVector & | m_idToClassNameVector |
| IdToObjectVector & | m_IdToObjectVector |
| IdToStorageAgentVector | m_IdToStorageAgentVector |
| std::istream & | m_inputStream |
| RestoreListenerHash | m_restoreListeners |
Protected Attributes inherited from agxStream::Archive | |
| bool | m_isOpen |
Protected Attributes inherited from agx::Referenced | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
Additional Inherited Members | |
Public Types inherited from agxStream::InputArchive | |
| typedef agx::HashTable< agx::UInt, bool > | BuildConfigurationTable |
| typedef agx::Vector< std::string > | IdToClassNameVector |
| typedef agx::VectorPOD< Serializable *> | IdToObjectVector |
| typedef agx::Vector< StorageAgent *> | IdToStorageAgentVector |
| typedef agx::Event3< agx::UInt32, Serializable *, const std::string & > | RestoreEvent |
| enum | RestoreMode { TRY_BY_VALUE, TRY_BY_REFERENCE, DEFAULT = TRY_BY_REFERENCE } |
Static Public Member Functions inherited from agx::Referenced | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Public Attributes inherited from agxStream::InputArchive | |
| RestoreEvent | restoreEvent |
Protected Types inherited from agxStream::InputArchive | |
| typedef agx::HashTable< RestoreListener *, RestoreListenerRef > | RestoreListenerHash |
Static Protected Member Functions inherited from agx::Referenced | |
| static DeleteHandler * | getDeleteHandler () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More... | |
XML version of an input archive for restoring data written with the XMLOutputArchive.
Definition at line 43 of file XMLInputArchive.h.
| agxStream::XMLInputArchive::XMLInputArchive | ( | std::istream & | inputStream | ) |
Constructor creating a XMLInputArchive for reading XML streams.
Data will be read from the inputStream during the constructor.
| agxStream::XMLInputArchive::XMLInputArchive | ( | std::istream & | inputStream, |
| IdToObjectVector & | idCache, | ||
| IdToClassNameVector & | nameCache | ||
| ) |
|
protectedvirtual |
Destructor.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
protected |
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
protected |
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
Reimplemented from agxStream::InputArchive.
|
virtual |
This method will read raw data from the archive.
Notice that you should always have called beginSection() prior to calling this method. Otherwise it is not compatible with XML input
| buf | - Pointer to the buffer where data will be read |
| size | - Number of bytes to read |
Reimplemented from agxStream::InputArchive.
|
protected |
Definition at line 139 of file XMLInputArchive.h.
|
protected |
Definition at line 138 of file XMLInputArchive.h.
|
protected |
Definition at line 121 of file XMLInputArchive.h.
|
protected |
Definition at line 140 of file XMLInputArchive.h.
|
protected |
Definition at line 136 of file XMLInputArchive.h.
|
protected |
Definition at line 137 of file XMLInputArchive.h.