VR-Forces 4.0.4 Class Documentation
include/vrfutil/rwBoolean.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 1999 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: rwBoolean.h,v $ $Revision: 1.13 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00017 
00018 #ifndef DtRwBoolean_H_
00019 #define DtRwBoolean_H_
00020 
00021 #include <vlutil/vlMachineTypes.h>
00022 #include "vrfutil/rdrWritr.h"
00023 
00024 class DtReaderWriterRegistry;
00025 
00029 #include "vrfutil/vrfutilDefines.h"
00030 class DT_DLL_vrfutil DtRwBoolean : public DtReaderWriter
00031 {
00032 public:
00033    //Constructor
00034    DtRwBoolean(const DtString& name = DtString::nullString(), 
00035                DtReaderWriterRegistry* parentRegistry = NULL);
00036 
00037    DtRwBoolean(const DtSymbolString& name, 
00038                DtReaderWriterRegistry* parentRegistry = NULL);
00039 
00040    DtRwBoolean(const char* name,
00041       DtReaderWriterRegistry* parentRegistry = NULL);
00042 
00044    DtRwBoolean(bool value,
00045       const DtString & name = DtString::nullString(),
00046       DtReaderWriterRegistry * parentRegistry = NULL);
00047 
00049    DtRwBoolean(const DtRwBoolean& orig, 
00050                DtReaderWriterRegistry* const parentRegistry = NULL);
00051 
00053    DtRwBoolean & operator=(const DtRwBoolean & orig);
00054 
00055    virtual ~DtRwBoolean();
00056 
00058 
00060    virtual operator const bool() const;
00061 
00063    bool operator=(const bool orig);
00064 
00065    virtual int operator==(const bool rhs) const;
00066    virtual int operator!=(const bool rhs) const;
00067    virtual int operator&&(const bool rhs) const;
00068    virtual int operator||(const bool rhs) const;
00069    virtual int operator!() const;
00070 
00071    virtual bool value() const;
00072    virtual void setValue(bool value);
00073 
00074    virtual void putData(FILE* fp, int indentLevel = 0);
00075    virtual DtlObjPtr getData(DtlObjPtr args, const DtFilename& searchPath,
00076       const DtVariableBindingsList& variableBindings);
00077 
00081    virtual const char* readerWriterType() const;
00082 
00083 protected:
00084    bool myValue;
00085 };
00086 
00087 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)