|
FEBio
1.5.0
|
Class for serializing data to a binary archive. More...
#include <DumpFile.h>
Public Member Functions | |
| DumpFile (FEModel *pfem) | |
| bool | Open (const char *szfile) |
| Open archive for reading. | |
| bool | Create (const char *szfile) |
| Open archive for writing. | |
| bool | Append (const char *szfile) |
| Open archive for appending. | |
| void | Close () |
| Close archive. | |
| bool | IsSaving () |
| Check mode. | |
| bool | IsValid () |
| See if the archive is valid. | |
| void | Flush () |
| Flush the archive. | |
| size_t | write (const void *pd, size_t size, size_t count) |
| write buffer to archive | |
| size_t | read (void *pd, size_t size, size_t count) |
| read buffer from archive | |
| FEModel * | GetFEModel () |
| get FEM model | |
| DumpFile & | operator<< (const char *sz) |
| output operators | |
| DumpFile & | operator<< (char *sz) |
| DumpFile & | operator<< (const double a[3][3]) |
| template<class T > | |
| DumpFile & | operator<< (const T &o) |
| template<class T > | |
| DumpFile & | operator<< (vector< T > &v) |
| DumpFile & | operator>> (char *sz) |
| input operators | |
| DumpFile & | operator>> (double a[3][3]) |
| template<class T > | |
| DumpFile & | operator>> (T &o) |
| template<class T > | |
| DumpFile & | operator>> (vector< T > &v) |
Protected Attributes | |
| FILE * | m_fp |
| The actual file pointer. | |
| FEModel * | m_pfem |
| FEM data that will be serialized. | |
| bool | m_bsave |
| Save flag. | |
Class for serializing data to a binary archive.
This class is used to read data from or write data to a binary file. The class defines several operators to simplify in- and output.
1.7.5.1