chrono::ChStreamOutBinaryFile Class Reference
Description
This is a specialized class for BINARY output on system's file,.
#include <ChStream.h>
Inheritance diagram for chrono::ChStreamOutBinaryFile:
Collaboration diagram for chrono::ChStreamOutBinaryFile:
Public Member Functions | |
ChStreamOutBinaryFile (const char *filename, std::ios::openmode mmode=std::ios::trunc) | |
Public Member Functions inherited from chrono::ChStreamFile | |
ChStreamFile (const char *filename, std::ios::openmode mmode) | |
Creates a system file, like the C++ fstream, and opens it, given filename on disk, and the opening mode (ex: std::ios::out or std::ios::in) | |
virtual | ~ChStreamFile () |
Destruction means that the file stream is also closed. | |
virtual void | Flush () |
Synchronizes the associated stream buffer with its controlled output sequence. | |
virtual void | Write (const char *data, size_t n) |
Writes to file, up to n chars. More... | |
virtual void | Read (char *data, size_t n) |
Reads from file, up to n chars. More... | |
virtual bool | End_of_stream () |
Returns true if end of stream reached. | |
std::fstream & | GetFstream () |
Reference to fstream encapsulated here. | |
Public Member Functions inherited from chrono::ChStreamOutBinary | |
template<class T > | |
ChStreamOutBinary & | operator< (T &obj) |
Generic << operator for all classes which implement serialization by means of a method named 'void StreamOUT(ChStreamOutBinary&)' OBSOLETE use ChArchive << operator and ArchiveOUT() | |
ChStreamOutBinary & | operator<< (char Val) |
Specialized operators for basic primitives (numbers like long, double, int. More... | |
ChStreamOutBinary & | operator<< (bool Val) |
ChStreamOutBinary & | operator<< (int Val) |
ChStreamOutBinary & | operator<< (unsigned int Val) |
ChStreamOutBinary & | operator<< (double Val) |
ChStreamOutBinary & | operator<< (float Val) |
ChStreamOutBinary & | operator<< (std::string &str) |
ChStreamOutBinary & | operator<< (long Val) |
ChStreamOutBinary & | operator<< (unsigned long Val) |
ChStreamOutBinary & | operator<< (unsigned long long Val) |
ChStreamOutBinary & | operator<< (const char *str) |
Specialized operator for C strings. | |
ChStreamOutBinary & | operator<< (char *str) |
template<class T > | |
void | GenericBinaryOutput (T &ogg) |
Generic operator for binary streaming of generic objects. More... | |
template<class t > | |
t * | AbstractWrite (t *pObj) |
Stores an object, given the pointer, into the archive. More... | |
template<class t > | |
t * | AbstractWriteAll (t *pObj) |
Stores an object, given the pointer, into the archive. More... | |
void | VersionWrite (int mver) |
Some objects may write class version at the beginning of the streamed data, using this function. | |
Public Member Functions inherited from chrono::ChBinaryArchive | |
bool | IsBigEndianMachine () |
Returns true if the machine where the code runs has big endian byte ordering, returns false otherwise. | |
void | Init () |
Reinitialize the vector of pointers to loaded/saved objects. | |
int | PutPointer (void *object) |
Put a pointer in pointer vector, but only if it was not previously inserted. More... | |
Additional Inherited Members | |
Public Types inherited from chrono::ChStream | |
enum | eChMode { CHFILE_NORMAL = 0, CHFILE_NOWRITE, CHFILE_SAFEWRITE, CHFILE_OPENLATER } |
Modes for chrono files (the ch-modes) - obsolete -. More... | |
enum | eChStreamError { CHSTREAM_OK = 0, CHSTREAM_EOF, CHSTREAM_FAIL } |
Errors for chrono files (the ch-modes) More... | |
Protected Attributes inherited from chrono::ChBinaryArchive | |
bool | big_endian_machine |
std::vector< void * > | objects_pointers |
vector of pointers to stored/retrieved objects, to avoid saving duplicates or deadlocks | |
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono/core/ChStream.h
- /builds/uwsbel/chrono/src/chrono/core/ChStream.cpp