VR-Forces 4.1 Class Documentation
rwReal.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 
15 #pragma once
16 
17 #include <vlutil/vlMachineTypes.h>
18 #include "vrfutil/rdrWritr.h"
19 
21 
25 
26 #include "vrfutil/vrfutilDefines.h"
28 {
29 public:
31  DtRwReal();
32 
34  DtRwReal(const DtString& name, DtReaderWriterRegistry* parentRegistry = NULL);
35 
36  DtRwReal(const DtSymbolString& name, DtReaderWriterRegistry* parentRegistry = NULL);
37 
39  DtRwReal(const DtString& name,
40  DtReal value,
41  DtReaderWriterRegistry* parentRegistry = NULL);
42 
43  DtRwReal(const DtSymbolString& name,
44  DtReal value,
45  DtReaderWriterRegistry* parentRegistry = NULL);
46 
48  DtRwReal(const DtRwReal& orig, DtReaderWriterRegistry* parentRegistry = NULL);
49 
50 public:
52  DtRwReal & operator=(const DtRwReal & orig);
53 
54  virtual ~DtRwReal();
55 
56 
58 
60  virtual operator const DtReal() const;
61 
63  DtReal operator=(const DtReal orig);
64 
65  virtual DtReal operator-() const;
66  virtual DtReal operator*(const DtReal rhs) const;
67  virtual DtReal operator/(const DtReal rhs) const;
68  virtual DtReal operator+(const DtReal rhs) const;
69  virtual DtReal operator-(const DtReal rhs) const;
70  virtual bool operator<(const DtReal rhs) const;
71  virtual bool operator>(const DtReal rhs) const;
72  virtual bool operator<=(const DtReal rhs) const;
73  virtual bool operator>=(const DtReal rhs) const;
74  virtual bool operator==(const DtReal rhs) const;
75  virtual bool operator!=(const DtReal rhs) const;
76  virtual DtReal operator*=(const DtReal rhs);
77  virtual DtReal operator/=(const DtReal rhs);
78  virtual DtReal operator+=(const DtReal rhs);
79  virtual DtReal operator-=(const DtReal rhs);
80 
81  virtual DtReal value() const;
82  virtual void setValue(DtReal value);
83 
84  virtual void putData(FILE* fp, int indentLevel = 0);
85  virtual DtlObjPtr getData(DtlObjPtr args, const DtFilename& searchPath,
86  const DtVariableBindingsList& variableBindings);
87 
91  virtual const char* readerWriterType() const;
92 
94  virtual DtString prettyPrint() const;
95 
96 protected:
97  DtReal myValue;
98 };
99 
100 namespace DtBufferSerialize
101 {
103  DT_DLL_vrfutil int getSize(const DtRwReal& val);
104 
111  DT_DLL_vrfutil char *encode(const DtRwReal& val, char *buffer);
112 
119  DT_DLL_vrfutil const char *decode(DtRwReal &val, const char *buffer) ;
120 }
121 

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)