CBool.hpp

Go to the documentation of this file.
00001 #ifndef __CBool__
00002 #define __CBool__
00003 
00004 //  ===========================================================================
00005 
00006 #include "CString.hpp"
00007 
00008 //  ===========================================================================
00009 
00010 using Exponent::Basics::CString;
00011 
00012 //  ===========================================================================
00013 
00014 namespace Exponent
00015 {
00016     namespace Basics
00017     {
00039         class CBool : public CCountedObject
00040         {
00042             EXPONENT_CLASS_DECLARATION;
00045 //  ===========================================================================
00046 
00047         public:
00048 
00049 //  ===========================================================================
00050 
00055             CBool(const bool value = false);
00056 
00060             virtual ~CBool();
00061 
00062 //  ===========================================================================
00063 
00069             CBool &operator = (const CBool &value);
00070 
00076             CBool &operator = (const bool value);
00077 
00083             bool operator == (const CBool &value) const;
00084 
00090             bool operator == (const bool value) const;
00091 
00097             bool operator != (const CBool &value) const;
00098 
00104             bool operator != (const bool value) const;
00105 
00106 //  ===========================================================================
00107 
00112             void setValue(const CBool &value);
00113 
00118             void setValue(const bool value);
00119 
00124             bool getValue() const;
00125 
00130             CString getValueAsString() const;
00131 
00136             void getValueAsString(CString &string) const;
00137 
00138 //  ===========================================================================
00139 
00145             virtual void getObjectDescription(char *string, const long size) const;
00146 
00147 //  ===========================================================================
00148 
00149         protected:
00150 
00151 //  ===========================================================================
00152 
00153             bool m_value;           
00154         };
00155     }
00156 }
00157 #endif  // End of CBool.hpp

Infinity API - CBool.hpp Source File generated on 7 Mar 2007