.TH "sc::StateInText" 3 "Sun Oct 4 2020" "Version 2.3.1" "MPQC" \" -*- nroff -*- .ad l .nh .SH NAME sc::StateInText \- Reads state information written with \fBStateOutText\fP\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBsc::StateInFile\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBStateInText\fP (std::istream &s)" .br .ti -1c .RI "\fBStateInText\fP (const char *)" .br .ti -1c .RI "\fBStateInText\fP (const \fBRef\fP< \fBKeyVal\fP > &)" .br .ti -1c .RI "int \fBgetstring\fP (char *&)" .br .RI "This restores strings saved with \fBStateOut::putstring\fP\&. " .ti -1c .RI "int \fBget_array_char\fP (char *, int)" .br .RI "These restore data saved with \fBStateOut\fP's put\&. " .ti -1c .RI "int \fBget_array_uint\fP (unsigned int *, int)" .br .ti -1c .RI "int \fBget_array_int\fP (int *, int)" .br .ti -1c .RI "int \fBget_array_float\fP (float *, int)" .br .ti -1c .RI "int \fBget_array_double\fP (double *, int)" .br .ti -1c .RI "int \fBget\fP (const \fBClassDesc\fP **)" .br .RI "This restores \fBClassDesc\fP's\&. " .ti -1c .RI "int \fBget\fP (char &r, const char *key=0)" .br .RI "These restore data saved with \fBStateOut\fP's put\&. members\&. " .ti -1c .RI "int \fBget\fP (unsigned int &r, const char *key=0)" .br .ti -1c .RI "int \fBget\fP (int &r, const char *key=0)" .br .ti -1c .RI "int \fBget\fP (float &r, const char *key=0)" .br .ti -1c .RI "int \fBget\fP (double &r, const char *key=0)" .br .ti -1c .RI "int \fBget\fP (char *&)" .br .RI "These restore data saved with \fBStateOut\fP's put\&. " .ti -1c .RI "int \fBget\fP (unsigned int *&)" .br .ti -1c .RI "int \fBget\fP (int *&)" .br .ti -1c .RI "int \fBget\fP (float *&)" .br .ti -1c .RI "int \fBget\fP (double *&)" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "void \fBno_newline\fP ()" .br .ti -1c .RI "void \fBno_array\fP ()" .br .ti -1c .RI "int \fBread\fP (char *)" .br .ti -1c .RI "int \fBread\fP (unsigned int &)" .br .ti -1c .RI "int \fBread\fP (int &)" .br .ti -1c .RI "int \fBread\fP (float &)" .br .ti -1c .RI "int \fBread\fP (double &)" .br .ti -1c .RI "void \fBnewline\fP ()" .br .ti -1c .RI "void \fBstart_array\fP ()" .br .ti -1c .RI "void \fBend_array\fP ()" .br .ti -1c .RI "int \fBgetobject\fP (\fBRef\fP< \fBSavableState\fP > &)" .br .RI "This is used to restore an object\&. " .ti -1c .RI "void \fBabort\fP ()" .br .in -1c .SS "Protected Attributes" .in +1c .ti -1c .RI "int \fBnewlines_\fP" .br .ti -1c .RI "int \fBno_newline_\fP" .br .ti -1c .RI "int \fBno_array_\fP" .br .in -1c .SH "Detailed Description" .PP Reads state information written with \fBStateOutText\fP\&. .SH "Member Function Documentation" .PP .SS "int sc::StateInText::get (char *&)\fC [virtual]\fP" .PP These restore data saved with \fBStateOut\fP's put\&. members\&. The data is allocated by \fBStateIn\fP\&. .PP Reimplemented from \fBsc::StateIn\fP\&. .SS "int sc::StateInText::get (const \fBClassDesc\fP **)\fC [virtual]\fP" .PP This restores \fBClassDesc\fP's\&. It will set the pointer to the address of the static \fBClassDesc\fP for the class which has the same name as the class that had the \fBClassDesc\fP that was saved by put(const ClassDesc*)\&. .PP Reimplemented from \fBsc::StateIn\fP\&. .SS "int sc::StateInText::get_array_char (char * p, int size)\fC [virtual]\fP" .PP These restore data saved with \fBStateOut\fP's put\&. members\&. The data must be preallocated by the user\&. .PP Reimplemented from \fBsc::StateIn\fP\&. .SS "int sc::StateInText::getobject (\fBRef\fP< \fBSavableState\fP > &)\fC [protected]\fP, \fC [virtual]\fP" .PP This is used to restore an object\&. It is called with the reference to the reference being restored\&. If the data being restored has previously been restored, then the pointer being restored is set to a reference to the previously restored object\&. .PP Reimplemented from \fBsc::StateIn\fP\&. .SH "Author" .PP Generated automatically by Doxygen for MPQC from the source code\&.