VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
rwBoolean.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 
15 #pragma once
16 
17 #include <vlutil/vlMachineTypes.h>
18 #include "vrfutil/readerWriter.h"
19 
21 
25 #include "vrfutil/vrfutilDefines.h"
27 {
28 public:
29  //Constructor
30  DtRwBoolean(const DtString& name = DtString::nullString(),
31  DtReaderWriterRegistry* parentRegistry = NULL);
32 
33  DtRwBoolean(const DtSymbolString& name,
34  DtReaderWriterRegistry* parentRegistry = NULL);
35 
36  DtRwBoolean(const char* name,
37  DtReaderWriterRegistry* parentRegistry = NULL);
38 
40  DtRwBoolean(bool value,
41  const DtString & name = DtString::nullString(),
42  DtReaderWriterRegistry * parentRegistry = NULL);
43 
45  DtRwBoolean(const DtString& name, const DtRwBoolean& orig,
46  DtReaderWriterRegistry* const parentRegistry = NULL);
47 
48  DtRwBoolean(const DtRwBoolean& orig,
49  DtReaderWriterRegistry* const parentRegistry = NULL);
50 
52  DtRwBoolean & operator=(const DtRwBoolean & orig);
53 
54  virtual ~DtRwBoolean();
55 
57 
59  virtual operator const bool() const;
60 
62  bool operator=(const bool orig);
63 
66  virtual void putData(DtEnvironmentSP, DtEnvValueSP parent) const;
67  virtual void getData(const DtEnvironmentSP, const DtEnvValueSP value,
70 
72  virtual void reset();
73 
75  static const char* theXmlType();
76 
77  virtual const char* xmlType() const
78  {
79  return theXmlType();
80  }
82 
83  virtual int operator==(const bool rhs) const;
84  virtual int operator!=(const bool rhs) const;
85  virtual int operator&&(const bool rhs) const;
86  virtual int operator||(const bool rhs) const;
87  virtual int operator!() const;
88 
89  virtual bool value() const;
90  virtual void setValue(bool 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  virtual DtString prettyPrint() const;
102 
104  virtual int alignment() const;
105 
106  static bool getBoolAttribute(DtEnvironmentSP env, const DtString& attributeName, DtEnvValueSP root, bool defaultIfMissing = true);
107  static bool ToBool(const DtString& str, bool defaultIfMissing = true) ;
108 
110  bool debugTest();
111 
112 protected:
113  bool myValue;
114 };
115 

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)