Output binary archive. More...
Public Member Functions | |
OBinaryArchive (const std::string &name, const std::string &extension, int version, const std::string &header, int block=-1) | |
OBinaryArchive (const std::string &name, const std::string &extension, int version, int block=-1) | |
OBinaryArchive (const std::string &name, int version, const std::string &header, int block=-1) | |
OBinaryArchive (const std::string &name, int version, int block=-1) | |
std::ostream & | getStream () |
void | open (const std::string &name, const int version, int block=-1) |
void | open (const std::string &name, const std::string &extension, int version, const std::string &header, int block=-1) |
void | open (const std::string &name, const std::string &extension, int version, int block=-1) |
void | open (const std::string &name, int version, const std::string &header, int block=-1) |
Public Member Functions inherited from bitpit::BinaryArchive | |
BinaryArchive () | |
~BinaryArchive () | |
std::string | getHeader () const |
std::string | getPath () const |
int | getVersion () const |
Additional Inherited Members | |
Static Public Member Functions inherited from bitpit::BinaryArchive | |
static std::string | generatePath (const std::string &name, const std::string &extension, int block=-1) |
static std::string | generatePath (const std::string &name, int block=-1) |
Static Public Attributes inherited from bitpit::BinaryArchive | |
static BITPIT_PUBLIC_API const std::string | EXTENSION_DEFAULT = "dat" |
static BITPIT_PUBLIC_API const int | HEADER_SIZE = 1024 |
static BITPIT_PUBLIC_API const int | VERSION_UNDEFINED = - std::numeric_limits<int>::max() |
Protected Member Functions inherited from bitpit::BinaryArchive | |
void | open (const std::string &name, const std::string &extension, ios_base::openmode mode, int block=-1) |
Protected Attributes inherited from bitpit::BinaryArchive | |
std::string | m_header |
std::string | m_path |
int | m_version |
Output binary archive.
The IBinaryArchive class can write a binary archive, the binary archive has a fixed ASCII header.
Definition at line 87 of file binary_archive.hpp.
bitpit::OBinaryArchive::OBinaryArchive | ( | const std::string & | name, |
int | version, | ||
int | block = -1 ) |
Creates a new output archive.
name | is the name of the file |
version | is the version of the archive |
block | is the parallel block thefile belongs to, a negative value mean that the file is serial |
Definition at line 258 of file binary_archive.cpp.
bitpit::OBinaryArchive::OBinaryArchive | ( | const std::string & | name, |
int | version, | ||
const std::string & | header, | ||
int | block = -1 ) |
Creates a new output archive.
name | is the name of the file |
version | is the version of the archive |
header | is the header of the archive, the length of the header is limited to HEADER_SIZE characters. |
block | is the parallel block thefile belongs to, a negative value mean that the file is serial |
Definition at line 273 of file binary_archive.cpp.
bitpit::OBinaryArchive::OBinaryArchive | ( | const std::string & | name, |
const std::string & | extension, | ||
int | version, | ||
int | block = -1 ) |
Creates a new output archive.
name | is the name of the file |
extension | is the extension of the file |
version | is the version of the archive |
block | is the parallel block thefile belongs to, a negative value mean that the file is serial |
Definition at line 288 of file binary_archive.cpp.
bitpit::OBinaryArchive::OBinaryArchive | ( | const std::string & | name, |
const std::string & | extension, | ||
int | version, | ||
const std::string & | header, | ||
int | block = -1 ) |
Creates a new output archive.
name | is the name of the file |
extension | is the extension of the file |
version | is the version of the archive |
header | is the header of the archive, the length of the header is limited to HEADER_SIZE characters. |
block | is the parallel block thefile belongs to, a negative value mean that the file is serial |
Definition at line 306 of file binary_archive.cpp.
std::ostream & bitpit::OBinaryArchive::getStream | ( | ) |
Get a reference to the input stream associated to the archive.
Definition at line 395 of file binary_archive.cpp.
void bitpit::OBinaryArchive::open | ( | const std::string & | name, |
const int | version, | ||
int | block = -1 ) |
Opens the specified file, associating it with the stream object, so that input/output operations are performed on its content.
name | is the name of the file |
version | is the version of the archive |
block | is the parallel block thefile belongs to, a negative value mean that the file is serial |
Definition at line 321 of file binary_archive.cpp.
void bitpit::OBinaryArchive::open | ( | const std::string & | name, |
const std::string & | extension, | ||
int | version, | ||
const std::string & | header, | ||
int | block = -1 ) |
Opens the specified file, associating it with the stream object, so that input/output operations are performed on its content.
name | is the name of the file |
extension | is the extension of the file |
version | is the version of the archive |
header | is the header of the archive, the length of the header is limited to HEADER_SIZE characters. |
block | is the parallel block thefile belongs to, a negative value mean that the file is serial |
Definition at line 371 of file binary_archive.cpp.
void bitpit::OBinaryArchive::open | ( | const std::string & | name, |
const std::string & | extension, | ||
int | version, | ||
int | block = -1 ) |
Opens the specified file, associating it with the stream object, so that input/output operations are performed on its content.
name | is the name of the file |
extension | is the extension of the file |
version | is the version of the archive |
block | is the parallel block thefile belongs to, a negative value mean that the file is serial |
Definition at line 353 of file binary_archive.cpp.
void bitpit::OBinaryArchive::open | ( | const std::string & | name, |
int | version, | ||
const std::string & | header, | ||
int | block = -1 ) |
Opens the specified file, associating it with the stream object, so that input/output operations are performed on its content.
name | is the name of the file |
version | is the version of the archive |
header | is the header of the archive, the length of the header is limited to HEADER_SIZE characters. |
block | is the parallel block thefile belongs to, a negative value mean that the file is serial |
Definition at line 337 of file binary_archive.cpp.