Abstract base class for input/output storage of Serializable classes.
More...
#include <Archive.h>
|
| | Archive () |
| |
| virtual void | beginSection (const char *)=0 |
| |
| virtual void | close () |
| |
| virtual void | endSection (const char *)=0 |
| |
| bool | getBinaryMode () const |
| |
| bool | isOpen () const |
| |
| virtual void | newAttribute () |
| | Called whenever a new item is initiated.
|
| |
| void | setBinaryMode (bool m) |
| |
| | Referenced () |
| | Default constructor.
|
| |
| | Referenced (const Referenced &) |
| |
| template<typename T > |
| T * | as () |
| | Subclass casting.
|
| |
| template<typename T > |
| const T * | as () const |
| |
| template<typename T > |
| T * | asSafe () |
| | Safe subclass casting, return nullptr if template type does not match.
|
| |
| template<typename T > |
| const T * | asSafe () const |
| |
| int | getReferenceCount () const |
| |
| template<typename T > |
| bool | is () const |
| | Subclass test.
|
| |
| Referenced & | operator= (const Referenced &) |
| | Assignment operator. Will increment the number of references to the referenced object.
|
| |
| void | reference (void *ptr=nullptr) const |
| | Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
|
| |
| void | unreference (void *ptr=nullptr) const |
| | Decrement the reference count by one, indicating that a pointer to this object is referencing it.
|
| |
| void | unreference_nodelete () const |
| | Decrement the reference count by one, indicating that a pointer to this object is referencing it.
|
| |
Abstract base class for input/output storage of Serializable classes.
Definition at line 55 of file Archive.h.
◆ Archive()
| agxStream::Archive::Archive |
( |
| ) |
|
|
inline |
◆ ~Archive()
| virtual agxStream::Archive::~Archive |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ beginSection()
| virtual void agxStream::Archive::beginSection |
( |
const char * |
| ) |
|
|
pure virtual |
◆ close()
| virtual void agxStream::Archive::close |
( |
| ) |
|
|
inlinevirtual |
◆ endSection()
| virtual void agxStream::Archive::endSection |
( |
const char * |
| ) |
|
|
pure virtual |
◆ getBinaryMode()
| bool agxStream::Archive::getBinaryMode |
( |
| ) |
const |
|
inline |
- Returns
- true if archive is used in binary mode
Definition at line 61 of file Archive.h.
◆ isOpen()
| bool agxStream::Archive::isOpen |
( |
| ) |
const |
|
inline |
- Returns
- true if archive is open for reading/writing
Definition at line 74 of file Archive.h.
◆ newAttribute()
| virtual void agxStream::Archive::newAttribute |
( |
| ) |
|
|
inlinevirtual |
Called whenever a new item is initiated.
Definition at line 71 of file Archive.h.
◆ open()
| void agxStream::Archive::open |
( |
| ) |
|
|
inlineprotected |
◆ setBinaryMode()
| void agxStream::Archive::setBinaryMode |
( |
bool |
m | ) |
|
|
inline |
- Parameters
-
| m | - If true this archive is used in binary mode |
Definition at line 66 of file Archive.h.
◆ m_isOpen
| bool agxStream::Archive::m_isOpen |
|
protected |
The documentation for this class was generated from the following file: