summaryrefslogtreecommitdiff
path: root/doxygen/man/man3/cmd2_Statekeeper.3
blob: 4ace3ed9b62d9f5259837e721381a0c6adaf3619 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
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'\&.