classPiiArchive
#include <PiiArchive.h>
Common base class for all archive types.
Inherited by PiiBinaryInputArchive, PiiBinaryOutputArchive, PiiTextInputArchive, PiiTextOutputArchive
Description
Stores a version number that affects both input and output archive formats. The version number is composed of a major and a minor version number. The major version reflects format-independent changes in archive implementation. Each subclass has its own (minor) version number that may be affected by the details of its own format. Subclasses must take care of storing and restoring the version numbers.
Constructors and destructor
|
( )
Initializes major version to PII_ARCHIVE_VERSION and minor version to 0. |
Public member functions
|
int
|
( )
Get the major version number. |
|
int
|
( )
Get the minor version number. |
Protected member functions
|
void
|
(
Set the major version number. |
|
void
|
(
Set the minor version number. |
Function details
-
PiiArchive
()[inline]Initializes major version to PII_ARCHIVE_VERSION and minor version to 0.
-
int majorVersion
()[inline]Get the major version number.
The archive version number can be used by serializable objects to change their behavior, but this is seldom necessary. Usually the version number of the type itself is enough.
-
int minorVersion
()[inline]Get the minor version number.
-
void setMajorVersion
(- int majorVersion
[inline, protected]Set the major version number.
This value must be stored and retrieved by archive implementations.
-
void setMinorVersion
(- int minorVersion
[inline, protected]Set the minor version number.
This value must be stored and retrieved by archive implementations.
Add a note
Not a single note added yet. Be the first, add yours.