|
Main Page Class Hierarchy Compound List File List Compound Members Related Pages
sc::StateOutText Class ReferenceWrites out state information in an almost human readable format.
More...
#include <state_text.h>
Inheritance diagram for sc::StateOutText:
[legend]Collaboration diagram for sc::StateOutText:
[legend]List of all members.
Public Methods |
| StateOutText () |
| StateOutText (std::ostream &s) |
| StateOutText (const char *) |
| ~StateOutText () |
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.
|
int | put_array_char (const char *, int) |
| Put arrays of data. More...
|
int | put_array_uint (const unsigned int *, int) |
int | put_array_int (const int *, int) |
int | put_array_float (const float *, int) |
int | put_array_double (const double *, int) |
int | put (const ClassDesc *) |
| Write out information about the given ClassDesc.
|
int | put (char r) |
| Write the given datum.
|
int | put (unsigned int r) |
int | put (int r) |
int | put (float r) |
int | put (double r) |
int | put (const char *, int) |
| Write the given array data. More...
|
int | put (const unsigned int *, int) |
int | put (const int *, int) |
int | put (const float *, int) |
int | put (const double *, int) |
Protected Methods |
void | no_newline () |
void | no_array () |
void | newline () |
void | start_array () |
void | end_array () |
int | putobject (const Ref< SavableState > &) |
| This will prepare StateOut to output a pointer to data. More...
|
int | putparents (const ClassDesc *) |
Protected Attributes |
int | no_newline_ |
int | no_array_ |
Detailed Description
Writes out state information in an almost human readable format.
StateOutText is intended for debugging only. The state information can read in again with StateInText.
Member Function Documentation
int sc::StateOutText::put |
( |
const char * |
, |
|
|
int |
|
|
) |
[virtual] |
|
|
Write the given array data.
Size information is also saved. The data is allocated and read by the get(T*&) routines.
Reimplemented from sc::StateOut. |
int sc::StateOutText::put_array_char |
( |
const char * |
, |
|
|
int |
|
|
) |
[virtual] |
|
|
Put arrays of data.
No size information is stored. This data is read by the get_array_T routines.
Reimplemented from sc::StateOut. |
int sc::StateOutText::putobject |
( |
const Ref< SavableState > & |
|
) |
[protected, virtual] |
|
|
This will prepare StateOut to output a pointer to data.
It first checks to see if the data has already been saved. If it has, then a reference to this data is saved. Otherwise the object is written out.
Reimplemented from sc::StateOut. |
The documentation for this class was generated from the following file:
Generated at Fri Jan 10 08:17:05 2003 for MPQC
2.1.3 using the documentation package Doxygen
1.2.14.
|