Public Methods |
| StateOut () |
virtual | ~StateOut () |
virtual void | put_header () |
| Write out header information.
|
virtual int | putstring (const char *) |
| This is like put except the length of the char array is determined by interpreting the character array as a character string.
|
virtual int | put (char r) |
| Write the given datum.
|
virtual int | put (unsigned int r) |
virtual int | put (int r) |
virtual int | put (float r) |
virtual int | put (double r) |
virtual int | put (const char *, int) |
| Write the given array data. More...
|
virtual int | put (const unsigned int *, int) |
virtual int | put (const int *, int) |
virtual int | put (const float *, int) |
virtual int | put (const double *, int) |
virtual int | put_array_char (const char *p, int size) |
| Put arrays of data. More...
|
virtual int | put_array_uint (const unsigned int *p, int size) |
virtual int | put_array_int (const int *p, int size) |
virtual int | put_array_float (const float *p, int size) |
virtual int | put_array_double (const double *p, int size) |
void | forget_references () |
| Don't keep track of pointers to objects. More...
|
void | copy_references () |
| If a reference to an object that has already been written is encountered, copy it instead of generating a reference to the first object. More...
|
virtual int | use_directory () |
| Returns true if this object uses a directory.
|
virtual void | flush () |
| Flush out any remaining data.
|
int | node_to_node () const |
| True if this is a node to node save/restore. More...
|
virtual int | tell () |
| Returns the current position in the file. More...
|
virtual void | seek (int loc) |
| Set the current position in the file. More...
|
virtual int | seekable () |
| Return non-zero if tell and seek do anything sensible. More...
|
Protected Methods |
virtual int | put_array_void (const void *, int) |
virtual int | putparents (const ClassDesc *) |
void | put_directory () |
void | have_classdesc () |
int | need_classdesc () |
virtual int | putobject (const Ref< SavableState > &) |
| This will prepare StateOut to output a pointer to data. More...
|
virtual int | put (const ClassDesc *) |
| Write out information about the given ClassDesc.
|
Protected Attributes |
int | dir_loc_loc_ |
TranslateDataOut * | translate_ |
int | copy_references_ |
int | next_object_number_ |
AVLMap< Ref< SavableState >,
StateOutData > | ps_ |
AVLMap< ClassDescP, int > | classidmap_ |
int | nextclassid_ |
int | node_to_node_ |
Friends |
class | SavableState |
class | TranslateDataOut |