VR-Forces 4.1 Class Documentation
rwMember.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: rwMember.h,v $ $Revision: 1.10 $ $State: Exp $
7 *******************************************************************************/
8 
11 
12 #ifndef DtReaderWriterMember_H_
13 #define DtReaderWriterMember_H_
14 
16 
17 #include "stdio.h"
18 #include <mtl/mtl.h>
19 #include <vlutil/vlString.h>
20 #include "vrfutil/rwRegistry.h"
21 #include "vrfutil/rdrWritr.h"
22 
24 typedef void (*DtRwPutDataHook)(void* obj, FILE* fp, int indentLevel);
25 typedef DtlObjPtr (*DtRwGetDataHook)(void* obj, DtlObjPtr args);
26 
27 
112 //... non-inline functions ...
169 
170 #include "vrfutil/vrfutilDefines.h"
172 {
173 public:
174 
176  DtReaderWriterMember(void* parent = NULL);
177 
179  DtReaderWriterMember(void* parent,
180  DtRwPutDataHook putHook, DtRwGetDataHook getHook);
181 
182  DtReaderWriterMember(const DtString& name,
183  DtReaderWriterRegistry* parentRegistry = NULL);
185  DtReaderWriterRegistry* parentRegistry = NULL);
186 
187  DtReaderWriterMember(const DtString& name,
188  void* parent,
189  DtReaderWriterRegistry* parentRegistry = NULL);
191  void* parent,
192  DtReaderWriterRegistry* parentRegistry = NULL);
193 
194  DtReaderWriterMember(const DtString& name,
195  void* parent,
196  DtRwPutDataHook putHook, DtRwGetDataHook getHook,
197  DtReaderWriterRegistry* parentRegistry = NULL);
199  void* parent,
200  DtRwPutDataHook putHook, DtRwGetDataHook getHook,
201  DtReaderWriterRegistry* parentRegistry = NULL);
202 
203 
205  DtReaderWriterMember(const DtString& name,
206  const DtReaderWriterMember& orig,
207  void* parent = NULL,
208  DtReaderWriterRegistry* parentRegistry = NULL);
210  const DtReaderWriterMember& orig,
211  void* parent = NULL,
212  DtReaderWriterRegistry* parentRegistry = NULL);
213 
216 
218  virtual ~DtReaderWriterMember();
219 
221  //virtual void putSelf(FILE *fp, int indentLevel = 0, bool writeUnspecified = false,
222  //const DtFilename& path = DtReaderWriter::appPath());
223  //virtual void getSelf(DtlObjPtr args);
224 
225  virtual void* parent() const;
226  virtual void setParent(void* arg);
227 
229  const DtReaderWriterRegistry* registry() const;
230 
234  virtual bool localData() const;
235  virtual void setLocalData(bool value = true);
236  virtual void clearLocalData();
237 
240  virtual void setPutDataHook(DtRwPutDataHook hook);
241  virtual void setGetDataHook(DtRwGetDataHook hook);
242 
246  virtual const char* readerWriterType() const;
247 
248 protected:
249 
253  virtual void putData(FILE* fp, int indentLevel = 0);
254  virtual DtlObjPtr getData(DtlObjPtr args, const DtFilename& searchPath,
255  const DtVariableBindingsList& variableBindings);
256 
257  void* myParent;
260 };
261 
262 #endif

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)