A DtBinaryFileIo has the static functions for reading and writing to an Binary archive.
More...
Static Public Member Functions |
| template<typename T > |
| static bool | write (const std::string &filePath, const T &t, const std::string &tagName="Record") |
| template<typename T > |
| static bool | read (const std::string &filePath, T &t, const std::string &tagName="Record") |
Private Member Functions |
| | DtBinaryFileIo () |
| | Private CTOR. Cannot be constructed.
|
Detailed Description
A DtBinaryFileIo has the static functions for reading and writing to an Binary archive.
Constructor & Destructor Documentation
| makArchives::DtBinaryFileIo::DtBinaryFileIo |
( |
| ) |
|
|
private |
Private CTOR. Cannot be constructed.
Member Function Documentation
template<typename T >
| static bool makArchives::DtBinaryFileIo::write |
( |
const std::string & |
filePath, |
|
|
const T & |
t, |
|
|
const std::string & |
tagName = "Record" |
|
) |
| |
|
inlinestatic |
- Return values
-
| true | if the file was opened and the record was written |
| false | if the file was unable to be opened, and the record was not written this function will not throw an exception. |
template<typename T >
| static bool makArchives::DtBinaryFileIo::read |
( |
const std::string & |
filePath, |
|
|
T & |
t, |
|
|
const std::string & |
tagName = "Record" |
|
) |
| |
|
inlinestatic |
- Return values
-
| true | if the file was opened and the record was filled. |
| false | if the file was unable to be opened, and the record was not modified. this function will not throw an exception. |
The documentation for this class was generated from the following file:
- /exports/nfedora7-1/nightly/docs/vrforcesDevelopment.vrf4-3-branch/include/makArchives/DtBinaryFileIo.h