From 74dd68ad611d15abf16a65c36a7cfd3f4492930a Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 9 Nov 2012 16:25:22 +0000 Subject: Made the repo less libbu++-centric. --- c++-libbu++/src/boolean.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 c++-libbu++/src/boolean.h (limited to 'c++-libbu++/src/boolean.h') diff --git a/c++-libbu++/src/boolean.h b/c++-libbu++/src/boolean.h new file mode 100644 index 0000000..6b256c5 --- /dev/null +++ b/c++-libbu++/src/boolean.h @@ -0,0 +1,30 @@ +#ifndef GATS_BOOLEAN_H +#define GATS_BOOLEAN_H + +#include "gats/object.h" + +namespace Gats +{ + class Boolean : public Gats::Object + { + public: + Boolean(); + Boolean( bool bVal ); + virtual ~Boolean(); + + virtual Type getType() const { return typeBoolean; } + bool getValue() const { return bVal; } + void setValue( bool b ) { bVal = b; } + virtual Object *clone() const; + + virtual void write( Bu::Stream &rOut ) const; + virtual void read( Bu::Stream &rIn, char cType ); + + private: + bool bVal; + }; +}; + +Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Boolean &b ); + +#endif -- cgit v1.2.3