VR-Forces Development_Version 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 DtRwBoolean& orig,
46  DtReaderWriterRegistry* const parentRegistry = NULL);
47 
49  DtRwBoolean & operator=(const DtRwBoolean & orig);
50 
51  virtual ~DtRwBoolean();
52 
54 
56  virtual operator const bool() const;
57 
59  bool operator=(const bool orig);
60 
63  virtual void putData(DtEnvironmentSP, DtEnvValueSP parent) const;
64  virtual void getData(const DtEnvironmentSP, const DtEnvValueSP value,
67 
69  virtual void reset();
70 
72  static const char* theXmlType();
73 
74  virtual const char* xmlType() const
75  {
76  return theXmlType();
77  }
79 
80  virtual int operator==(const bool rhs) const;
81  virtual int operator!=(const bool rhs) const;
82  virtual int operator&&(const bool rhs) const;
83  virtual int operator||(const bool rhs) const;
84  virtual int operator!() const;
85 
86  virtual bool value() const;
87  virtual void setValue(bool value);
88 
89  virtual void putData(FILE* fp, int indentLevel = 0);
90  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
91  const DtVariableBindingsList& variableBindings);
92 
96  virtual const char* readerWriterType() const;
97 
98  virtual DtString prettyPrint() const;
99 
101  virtual int alignment() const;
102 
103  static bool getBoolAttribute(DtEnvironmentSP env, const DtString& attributeName, DtEnvValueSP root);
104  static bool ToBool(const DtString& str) ;
105 
106 protected:
107  bool myValue;
108 };
109 

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)