Laxkit  0.0.7.1
dump.h
1 //
2 //
3 // The Laxkit, a windowing toolkit
4 // Copyright (C) 2004-2006 by Tom Lechner
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Library General Public
8 // License as published by the Free Software Foundation; either
9 // version 2 of the License, or (at your option) any later version.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Library General Public License for more details.
15 //
16 // You should have received a copy of the GNU Library General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 //
20 // Please consult http://laxkit.sourceforge.net about where to send any
21 // correspondence about this software.
22 //
23 #ifndef _LAX_DUMP_H
24 #define _LAX_DUMP_H
25 
26 #include <cstdio>
27 #include <lax/anobject.h>
28 #include <lax/attributes.h>
29 #include <lax/laxdefs.h>
30 
31 namespace LaxFiles {
32 
34 {
35  public:
36  virtual void dump_out(FILE *f,int indent,int what,Laxkit::anObject *savecontext) =0;
37  virtual Attribute *dump_out_atts(Attribute *att,int what,Laxkit::anObject *savecontext) { return NULL; }
38 
39  virtual void dump_in (FILE *f,int indent,int what,Laxkit::anObject *loadcontext,Attribute **att);
40  virtual void dump_in_atts(Attribute *att,int flag,Laxkit::anObject *loadcontext) =0;
41 
42  virtual ~DumpUtility() {}
43 };
44 
45 } // namespace LaxFiles
46 
47 #endif
48 
49 

Mon Feb 17 2014 11:52:56, Laxkit