VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwUnsigned.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: rwUnsigned.h,v $ $Revision: 1.10 $ $State: Exp $
7 *******************************************************************************/
8 
11 
17 
18 #ifndef DtRwUnsigned_H_
19 #define DtRwUnsigned_H_
20 
21 #include <vlutil/vlMachineTypes.h>
22 #include "vrfutil/readerWriter.h"
23 
25 
29 
30 #include "vrfutil/vrfutilDefines.h"
32 {
33 public:
35  DtRwUnsigned();
36 
38  DtRwUnsigned(const DtString& name, DtReaderWriterRegistry* const parentRegistry = NULL);
39  DtRwUnsigned(const DtSymbolString& name, DtReaderWriterRegistry* const parentRegistry = NULL);
40 
42  DtRwUnsigned(const DtString& name, unsigned value,
43  DtReaderWriterRegistry* parentRegistry = NULL);
44 
45  DtRwUnsigned(const DtSymbolString& name, unsigned value,
46  DtReaderWriterRegistry* parentRegistry = NULL);
47 
48 
50  DtRwUnsigned(const DtRwUnsigned& orig);
51 
53  DtRwUnsigned & operator=(const DtRwUnsigned& orig);
54 
55  virtual ~DtRwUnsigned();
56 
57 
59 
61  virtual operator const unsigned() const;
62 
64  unsigned operator=(const unsigned orig);
65 
66  virtual int operator-() const;
67  virtual unsigned operator*(const unsigned rhs) const;
68  virtual unsigned operator/(const unsigned rhs) const;
69  virtual unsigned operator+(const unsigned rhs) const;
70  virtual unsigned operator-(const unsigned rhs) const;
71  virtual int operator<(const unsigned rhs) const;
72  virtual int operator>(const unsigned rhs) const;
73  virtual int operator<=(const unsigned rhs) const;
74  virtual int operator>=(const unsigned rhs) const;
75  virtual int operator==(const unsigned rhs) const;
76  virtual int operator!=(const unsigned rhs) const;
77  virtual unsigned operator*=(const unsigned rhs);
78  virtual unsigned operator/=(const unsigned rhs);
79  virtual unsigned operator+=(const unsigned rhs);
80  virtual unsigned operator-=(const unsigned rhs);
81 
82  virtual unsigned operator%(const unsigned rhs);
83  virtual unsigned operator%=(const unsigned rhs);
84  virtual unsigned operator--(int);
85  virtual unsigned operator--();
86  virtual unsigned operator++(int);
87  virtual unsigned operator++();
88 
89  virtual unsigned value() const;
90  virtual void setValue(unsigned value);
91 
92  virtual void putData(std::string& fp, int indentLevel = 0);
93  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
94  const DtVariableBindingsList& variableBindings);
95 
99  virtual const char* readerWriterType() const;
100 
101 protected:
102  unsigned myValue;
103 };
104 
105 namespace DtBufferSerialize
106 {
108  DT_DLL_vrfutil int getSize(const DtRwUnsigned& val);
109 
116  DT_DLL_vrfutil char *encode(const DtRwUnsigned& val, char *buffer);
117 
124  DT_DLL_vrfutil const char *decode(DtRwUnsigned &val, const char *buffer) ;
125 }
126 
127 
128 #endif

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)