FEBio  1.5.0
Public Member Functions | Protected Attributes
DumpFile Class Reference

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
FEModelGetFEModel ()
 get FEM model
DumpFileoperator<< (const char *sz)
 output operators
DumpFileoperator<< (char *sz)
DumpFileoperator<< (const double a[3][3])
template<class T >
DumpFileoperator<< (const T &o)
template<class T >
DumpFileoperator<< (vector< T > &v)
DumpFileoperator>> (char *sz)
 input operators
DumpFileoperator>> (double a[3][3])
template<class T >
DumpFileoperator>> (T &o)
template<class T >
DumpFileoperator>> (vector< T > &v)

Protected Attributes

FILE * m_fp
 The actual file pointer.
FEModelm_pfem
 FEM data that will be serialized.
bool m_bsave
 Save flag.

Detailed Description

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.

See also:
FEM::Serialize()

The documentation for this class was generated from the following files: