1<html><head><base target=k-main></head><body bgcolor=white><nobr>
2
3<font face=Helvetica size=3>
4<dl><dt>
5
6  <b>class c4_Storage</b>
7<br><br>
8
9<dd><font face=Times size=3>
10Manager for persistent storage of view structures.<br><br>
11
12
13</font></dl>
14
15
16  <table cellborder=0>
17    <tr>
18    <td colspan=2>
19	  <font face=Helvetica size=-1><b>Public members</b></font>
20    </td>
21	</tr>
22  
23    <tr>
24    <td valign=top align=right width=150>
25	  
26    </td>
27	<td>
28	  <nobr>
29	  <b>c4_Storage</b> ();
30	  
31	  
32		<font face=Helvetica size=-1><br>
33			Construct streaming-only storage object</font>
34	</td>
35	</tr>
36  
37    <tr>
38    <td valign=top align=right width=150>
39	  
40    </td>
41	<td>
42	  <nobr>
43	  <b>c4_Storage</b> (<A HREF="c4_Strategy.html" >c4_Strategy</A>&#38; strategy_, bool owned_ =false);
44	  
45	  
46		<font face=Helvetica size=-1><br>
47			Construct a storage using the specified strategy handler</font>
48	</td>
49	</tr>
50  
51    <tr>
52    <td valign=top align=right width=150>
53	  
54    </td>
55	<td>
56	  <nobr>
57	  <b>c4_Storage</b> (const char* filename_, const char* description_);
58	  
59	  
60		<font face=Helvetica size=-1><br>
61			Construct a storage object for given file and format</font>
62	</td>
63	</tr>
64  
65    <tr>
66    <td valign=top align=right width=150>
67	  
68    </td>
69	<td>
70	  <nobr>
71	  <b>c4_Storage</b> (const char* filename_, bool canModify_);
72	  
73	  
74		<font face=Helvetica size=-1><br>
75			Construct a storage object, keeping the current structure</font>
76	</td>
77	</tr>
78  
79    <tr>
80    <td valign=top align=right width=150>
81	  
82    </td>
83	<td>
84	  <nobr>
85	  <b>c4_Storage</b> (const <A HREF="c4_Storage.html" >c4_Storage</A>&#38;);
86	  
87	  
88		<font face=Helvetica size=-1><br>
89			Copy constructor</font>
90	</td>
91	</tr>
92  
93    <tr>
94    <td valign=top align=right width=150>
95	  
96    </td>
97	<td>
98	  <nobr>
99	  <b>~c4_Storage</b> ();
100	  
101	  
102		<font face=Helvetica size=-1><br>
103			Destructor, usually closes file, but does not commit by default</font>
104	</td>
105	</tr>
106  
107    <tr>
108    <td valign=top align=right width=150>
109	  <A HREF="c4_Storage.html" >c4_Storage</A>&#38; 
110    </td>
111	<td>
112	  <nobr>
113	  <b>operator= </b> (const <A HREF="c4_Storage.html" >c4_Storage</A>&#38;);
114	  
115	  
116		<font face=Helvetica size=-1><br>
117			Assignment of storage implements reference semantics</font>
118	</td>
119	</tr>
120  
121    <tr>
122    <td valign=top align=right width=150>
123	  void 
124    </td>
125	<td>
126	  <nobr>
127	  <b>AutoCommit</b> ();
128	  
129	  
130		<font face=Helvetica size=-1><br>
131			Set storage up to always call Commit in the destructor</font>
132	</td>
133	</tr>
134  
135    <tr>
136    <td valign=top align=right width=150>
137	  <A HREF="c4_RowRef.html" >c4_RowRef</A> 
138    </td>
139	<td>
140	  <nobr>
141	  <b>Contents</b> () <i>const</i>;
142	  
143	  
144		<font face=Helvetica size=-1><br>
145			Give access to the stored data as a single row</font>
146	</td>
147	</tr>
148  
149    <tr>
150    <td valign=top align=right width=150>
151	  <A HREF="c4_Strategy.html" >c4_Strategy</A>&#38; 
152    </td>
153	<td>
154	  <nobr>
155	  <b>Strategy</b> () <i>const</i>;
156	  
157	  
158		<font face=Helvetica size=-1><br>
159			Return the strategy object associated with this storage</font>
160	</td>
161	</tr>
162  
163    <tr>
164    <td valign=top align=right width=150>
165	  c4_HandlerSeq&#38; 
166    </td>
167	<td>
168	  <nobr>
169	  <b>RootTable</b> () <i>const</i>;
170	  
171	  
172		<font face=Helvetica size=-1><br>
173			Return the root table entry</font>
174	</td>
175	</tr>
176  
177    <tr>
178    <td valign=top align=right width=150>
179	  const char* 
180    </td>
181	<td>
182	  <nobr>
183	  <b>Description</b> (const char* name_ =0);
184	  
185	  
186		<font face=Helvetica size=-1><br>
187			Return a description of the view structure (default is all)</font>
188	</td>
189	</tr>
190  
191    <tr>
192    <td valign=top align=right width=150>
193	  bool 
194    </td>
195	<td>
196	  <nobr>
197	  <b>Commit</b> ();
198	  
199	  
200		<font face=Helvetica size=-1><br>
201			Flush pending changes to file right now</font>
202	</td>
203	</tr>
204  
205    <tr>
206    <td valign=top align=right width=150>
207	  bool 
208    </td>
209	<td>
210	  <nobr>
211	  <b>Rollback</b> ();
212	  
213	  <a href="c4_Storage_info.html#c4_Storage_Rollback___" target="k-info">
214		<font face=Helvetica size=-1><br>
215			(Re)initialize for on-demand loading</font></a>
216	</td>
217	</tr>
218  
219    <tr>
220    <td valign=top align=right width=150>
221	  <A HREF="c4_ViewRef.html" >c4_ViewRef</A> 
222    </td>
223	<td>
224	  <nobr>
225	  <b>View</b> (const char* name_);
226	  
227	  
228		<font face=Helvetica size=-1><br>
229			Get or set a named view in this storage object</font>
230	</td>
231	</tr>
232  
233    <tr>
234    <td valign=top align=right width=150>
235	  <A HREF="c4_View.html" >c4_View</A> 
236    </td>
237	<td>
238	  <nobr>
239	  <b>GetAs</b> (const char* description_);
240	  
241	  
242		<font face=Helvetica size=-1><br>
243			Get a named view, redefining it to match the given structure</font>
244	</td>
245	</tr>
246  
247    <tr>
248    <td valign=top align=right width=150>
249	  <A HREF="c4_View.html" >c4_View</A> 
250    </td>
251	<td>
252	  <nobr>
253	  <b>Store</b> (const char* name_, const <A HREF="c4_View.html" >c4_View</A>&#38; view_);
254	  
255	  
256		<font face=Helvetica size=-1><br>
257			Attach a view using specified name in this storage object</font>
258	</td>
259	</tr>
260  
261    <tr>
262    <td valign=top align=right width=150>
263	  void 
264    </td>
265	<td>
266	  <nobr>
267	  <b>LoadFrom</b> (<A HREF="c4_Stream.html" >c4_Stream</A>&#38; stream_);
268	  
269	  
270		<font face=Helvetica size=-1><br>
271			Load contents from the specified input stream</font>
272	</td>
273	</tr>
274  
275    <tr>
276    <td valign=top align=right width=150>
277	  void 
278    </td>
279	<td>
280	  <nobr>
281	  <b>SaveTo</b> (<A HREF="c4_Stream.html" >c4_Stream</A>&#38; stream_);
282	  
283	  
284		<font face=Helvetica size=-1><br>
285			Save contents to the specified output stream</font>
286	</td>
287	</tr>
288  
289  </table>
290
291
292
293
294
295
296<br><hr size=1 width=50 align=left>
297
298<table cellborder=0>
299    <tr>
300    <td width=150>
301	  <font face=Helvetica size=-1><b>Header file</b></font>
302    </td>
303    <td>
304	  "mk4.h" &nbsp; -- &nbsp; Dec 9, 1999
305    </td>
306	</tr>
307
308  
309
310  
311</table>
312
313</font></font>
314
315</nobr></body></html>
316