VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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>
19 
21 
22 #include "vrfutil/vrfutilDefines.h"
24 {
25 public:
27  DtRwAggregateState(const DtString& name = DtString::nullString(),
28  DtReaderWriterRegistry* parentRegistry = NULL);
29 
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(std::string& fp, int indentLevel = 0);
63  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
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
bool operator==(const DtReaderWriter &) const
Equivalence operator.
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is. This can be used in place of dynamic-ca...
DT_DLL_readerWriter int getSize(const DtString &val)
The number of bytes required to encode the value.
Definition: symbolString.h:20
Definition: rwAggregateState.h:23
DT_DLL_vrfutil enum DtAggregateState aggregateModeFromString(const DtString &)
Given an internal string representation, returns the force type.
virtual DtlObjPtr getData(DtlObjPtr args, const SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)
Deriving class overrides these to get/put class specific data.
Definition: readerWriter.h:85
DT_DLL_vrfutil DtString stringFromAggregateMode(enum DtAggregateState t)
Given the force type, returns the internal string representation.
Definition: readerWriterRegistry.h:39
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
DT_DLL_readerWriter char * encode(const DtFilename &val, char *buffer)
Serializes the provided value val into buffer. buffer must have at least the number of bytes returned...
virtual void putData(std::string &fp, int indentLevel=0)
Deriving class overrides these to get/put class specific data.
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
DT_DLL_readerWriter const char * decode(DtString &val, const char *buffer)
Decodes a value from buffer and places the result in val of the type specified by val...
bool operator!=(const DtReaderWriter &rhs)
Definition: readerWriter.h:121

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)