VR-Forces 4.1.1 Class Documentation
rwForce.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 
15 #pragma once
16 
17 #include <vlpi/disEnums.h>
18 #include "vrfutil/rdrWritr.h"
19 
21 
25 #include "vrfutil/vrfutilDefines.h"
27 {
28 public:
30  DtRwForceType(const DtString& name = DtString::nullString(),
31  DtReaderWriterRegistry* parentRegistry = NULL);
32 
33  DtRwForceType(const DtSymbolString& name,
34  DtReaderWriterRegistry* parentRegistry = NULL);
35 
36  DtRwForceType(DtForceType forceType, const DtString & name,
37  DtReaderWriterRegistry* parentRegistry = NULL);
38 
39  DtRwForceType(DtForceType forceType, const DtSymbolString & name,
40  DtReaderWriterRegistry* parentRegistry = NULL);
41 
43  DtRwForceType(const DtRwForceType & orig);
44 
46  DtRwForceType & operator=(const DtRwForceType & orig);
47 
49  DtRwForceType& operator=(DtForceType orig);
50 
51  virtual ~DtRwForceType();
52 
53 
55 
57  virtual operator const DtForceType() const;
58 
59  virtual int operator==(const DtForceType rhs) const;
60  virtual int operator!=(const DtForceType rhs) const;
61 
62  virtual DtForceType value() const;
63  virtual void setValue(DtForceType value);
64 
65  virtual void putData(FILE* fp, int indentLevel = 0);
66  virtual DtlObjPtr getData(DtlObjPtr args, const DtFilename& searchPath,
67  const DtVariableBindingsList& variableBindings);
68 
72  virtual const char* readerWriterType() const;
73 
75  virtual DtString prettyPrint() const;
76 
77 protected:
78  DtForceType myValue;
79 };
80 
81 namespace DtBufferSerialize
82 {
84  DT_DLL_vrfutil int getSize(const DtRwForceType& val);
85 
91  DT_DLL_vrfutil char *encode(const DtRwForceType& val, char *buffer);
92 
98  DT_DLL_vrfutil const char *decode(DtRwForceType &val, const char *buffer) ;
99 }
100 
103 
105 DT_DLL_vrfutil DtForceType forceTypeFromString(const DtString&);
106 

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)