diff options
Diffstat (limited to 'doxygen/man/man3/cmd2_Statekeeper.3')
-rw-r--r-- | doxygen/man/man3/cmd2_Statekeeper.3 | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/doxygen/man/man3/cmd2_Statekeeper.3 b/doxygen/man/man3/cmd2_Statekeeper.3 new file mode 100644 index 0000000..4ace3ed --- /dev/null +++ b/doxygen/man/man3/cmd2_Statekeeper.3 @@ -0,0 +1,92 @@ +.TH "cmd2::Statekeeper" 3 "Fri Sep 9 2011" "Cmd2" \" -*- nroff -*- +.ad l +.nh +.SH NAME +cmd2::Statekeeper \- +.SH SYNOPSIS +.br +.PP +.SS "Public Member Functions" + +.in +1c +.ti -1c +.RI "def \fB__init__\fP" +.br +.ti -1c +.RI "def \fBrestore\fP" +.br +.ti -1c +.RI "def \fBsave\fP" +.br +.in -1c +.SS "Public Attributes" + +.in +1c +.ti -1c +.RI "\fBattribs\fP" +.br +.ti -1c +.RI "\fBobj\fP" +.br +.in -1c +.SH "Detailed Description" +.PP +Definition at line 1436 of file cmd2\&.py'\&. +.SH "Constructor & Destructor Documentation" +.PP +.SS "def cmd2::Statekeeper::__init__ (self, obj, attribs)" +.PP +Definition at line 1437 of file cmd2\&.py'\&. +.PP +.nf +1437 +1438 def __init__(self, obj, attribs): +1439 self\&.obj = obj +1440 self\&.attribs = attribs +1441 if self\&.obj: + self\&.save() +.fi +.SH "Member Function Documentation" +.PP +.SS "def cmd2::Statekeeper::restore (self)" +.PP +Definition at line 1445 of file cmd2\&.py'\&. +.PP +References attribs, and obj\&. +.PP +.nf +1445 +1446 def restore(self): +1447 if self\&.obj: +1448 for attrib in self\&.attribs: +1449 setattr(self\&.obj, attrib, getattr(self, attrib)) + +.fi +.SS "def cmd2::Statekeeper::save (self)" +.PP +Definition at line 1442 of file cmd2\&.py'\&. +.PP +References attribs, and obj\&. +.PP +.nf +1442 +1443 def save(self): +1444 for attrib in self\&.attribs: + setattr(self, attrib, getattr(self\&.obj, attrib)) +.fi +.SH "Member Data Documentation" +.PP +.SS "\fBcmd2::Statekeeper::attribs\fP" +.PP +Definition at line 1437 of file cmd2\&.py'\&. +.PP +Referenced by restore(), and save()\&. +.SS "\fBcmd2::Statekeeper::obj\fP" +.PP +Definition at line 1437 of file cmd2\&.py'\&. +.PP +Referenced by restore(), and save()\&. + +.SH "Author" +.PP +Generated automatically by Doxygen for Cmd2 from the source code'\&. |