VR-Forces 4.2 Class Documentation
rwBoolean.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 #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 
61  virtual int operator==(const bool rhs) const;
62  virtual int operator!=(const bool rhs) const;
63  virtual int operator&&(const bool rhs) const;
64  virtual int operator||(const bool rhs) const;
65  virtual int operator!() const;
66 
67  virtual bool value() const;
68  virtual void setValue(bool value);
69 
70  virtual void putData(FILE* fp, int indentLevel = 0);
71  virtual DtlObjPtr getData(DtlObjPtr args, const DtFilename& searchPath,
72  const DtVariableBindingsList& variableBindings);
73 
77  virtual const char* readerWriterType() const;
78 
79  virtual DtString prettyPrint() const;
80 
81 protected:
82  bool myValue;
83 };
84 

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)