VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwRealSized.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2017 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
16 
17 #pragma once
18 
19 #include <vlutil/vlMachineTypes.h>
20 #include <vrfutil/rwReal.h>
21 #include <vrfutil/rwTypes.h>
22 
24 
25 #include <vrfutil/vrfutilDefines.h>
26 
27 
30 {
31 public:
34 
36  DtRwReal32(const DtString& name, DtReaderWriterRegistry* const parentRegistry = NULL)
37  : DtRwReal(name, parentRegistry) {}
38 
39  DtRwReal32(const DtSymbolString& name, DtReaderWriterRegistry* const parentRegistry = NULL)
40  : DtRwReal(name, parentRegistry) {}
41 
43  DtRwReal32(const DtString& name, DtReal value, DtReaderWriterRegistry* const parentRegistry = NULL)
44  : DtRwReal(name, value, parentRegistry) {}
45 
47  DtRwReal32(const DtSymbolString& name, DtReal value, DtReaderWriterRegistry* const parentRegistry = NULL)
48  : DtRwReal(name, value, parentRegistry) {}
49 
51  DtRwReal32(const DtRwReal& orig, DtReaderWriterRegistry* const parentRegistry = NULL)
52  : DtRwReal(orig, parentRegistry) {}
53 
54  virtual const char* readerWriterType() const
55  {
56  return DtRwReal32Type;
57  }
58 
59  static const char* theXmlType()
60  {
61  return DtXMLReal32Type;
62  }
63 
64  virtual const char* xmlType() const
65  {
66  return theXmlType();
67  }
68 
69 };
70 
71 
74 {
75 public:
78 
80  DtRwReal64(const DtString& name, DtReaderWriterRegistry* const parentRegistry = NULL)
81  : DtRwReal(name, parentRegistry) {}
82 
83  DtRwReal64(const DtSymbolString& name, DtReaderWriterRegistry* const parentRegistry = NULL)
84  : DtRwReal(name, parentRegistry) {}
85 
87  DtRwReal64(const DtString& name, DtReal value, DtReaderWriterRegistry* const parentRegistry = NULL)
88  : DtRwReal(name, value, parentRegistry) {}
89 
91  DtRwReal64(const DtSymbolString& name, DtReal value, DtReaderWriterRegistry* const parentRegistry = NULL)
92  : DtRwReal(name, value, parentRegistry) {}
93 
95  DtRwReal64(const DtRwReal& orig, DtReaderWriterRegistry* const parentRegistry = NULL)
96  : DtRwReal(orig, parentRegistry) {}
97 
98  virtual const char* readerWriterType() const
99  {
100  return DtRwReal64Type;
101  }
102 
103  static const char* theXmlType()
104  {
105  return DtXMLReal64Type;
106  }
107 
108  virtual const char* xmlType() const
109  {
110  return theXmlType();
111  }
112 
113 };
114 
115 
116 
117 namespace DtBufferSerialize
118 {
120  DT_DLL_vrfutil int getSize(const DtRwReal32& val);
121  DT_DLL_vrfutil int getSize(const DtRwReal64& val);
122 
129  DT_DLL_vrfutil char *encode(const DtRwReal32& val, char *buffer);
130  DT_DLL_vrfutil char *encode(const DtRwReal64& val, char *buffer);
131 
138  DT_DLL_vrfutil const char *decode(DtRwReal32 &val, const char *buffer);
139  DT_DLL_vrfutil const char *decode(DtRwReal64 &val, const char *buffer);
140 }
141 

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)