VR-Forces 4.2 Class Documentation
rwAggregateState.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: rwAggregateState.h,v $ $Revision: 1.2 $ $State: Exp $
7 *******************************************************************************/
8 
11 
13 
14 #ifndef rwAggregateState_H_
15 #define rwAggregateState_H_
16 
17 #include <vlpi/disEnums.h>
18 #include "vrfutil/rdrWritr.h"
19 
21 
22 #include "vrfutil/vrfutilDefines.h"
24 {
25 public:
27  DtRwAggregateState(const DtString& name = DtString::nullString(),
28  DtReaderWriterRegistry* parentRegistry = NULL);
29 
30  DtRwAggregateState(const DtSymbolString& name,
31  DtReaderWriterRegistry* parentRegistry = NULL);
32 
33  DtRwAggregateState(enum DtAggregateState aggregateMode, const DtString & name,
34  DtReaderWriterRegistry* parentRegistry = NULL);
35 
36  DtRwAggregateState(enum DtAggregateState aggregateMode, const DtSymbolString & name,
37  DtReaderWriterRegistry* parentRegistry = NULL);
38 
41 
44 
46  DtRwAggregateState& operator=(enum DtAggregateState orig);
47 
48  virtual ~DtRwAggregateState();
49 
50 
52 
54  virtual operator const enum DtAggregateState() const;
55 
56  virtual int operator==(const enum DtAggregateState rhs) const;
57  virtual int operator!=(const enum DtAggregateState rhs) const;
58 
59  virtual enum DtAggregateState value() const;
60  virtual void setValue(enum DtAggregateState value);
61 
62  virtual void putData(FILE* fp, int indentLevel = 0);
63  virtual DtlObjPtr getData(DtlObjPtr args, const DtFilename& searchPath,
64  const DtVariableBindingsList& variableBindings);
65 
67  virtual DtString string() const;
68 
73  virtual const char* readerWriterType() const;
74 
75 protected:
76  enum DtAggregateState myValue;
77 };
78 
79 namespace DtBufferSerialize
80 {
83 
89  DT_DLL_vrfutil char* encode(const DtRwAggregateState& val, char *buffer);
90 
96  DT_DLL_vrfutil const char *decode(DtRwAggregateState &val, const char *buffer) ;
97 }
98 
100 DT_DLL_vrfutil DtString stringFromAggregateMode(enum DtAggregateState t);
101 
103 DT_DLL_vrfutil enum DtAggregateState aggregateModeFromString(const DtString&);
104 
105 #endif

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)