VR-Forces 4.0.4 Class Documentation
include/vrfutil/rwInt.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 1999 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: rwInt.h,v $ $Revision: 1.12 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00017 
00018 #ifndef DtRwInt_H_
00019 #define DtRwInt_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 DtRwInt : public DtReaderWriter
00031 {
00032 public:
00034    DtRwInt();
00035 
00037    DtRwInt(const DtString& name, DtReaderWriterRegistry* const parentRegistry = NULL);
00038 
00039    DtRwInt(const DtSymbolString& name, DtReaderWriterRegistry* const parentRegistry = NULL);
00040 
00042    DtRwInt(const DtString& name, int value, DtReaderWriterRegistry* const parentRegistry = NULL);
00043 
00045    DtRwInt(const DtSymbolString& name, int value, DtReaderWriterRegistry* const parentRegistry = NULL);
00046 
00048    DtRwInt(int orig, DtReaderWriterRegistry* const parentRegistry = NULL);
00049    DtRwInt(const DtRwInt& orig, DtReaderWriterRegistry* const parentRegistry = NULL);
00050 
00052    DtRwInt & operator=(const DtRwInt & orig);
00053 
00054    virtual ~DtRwInt();
00055 
00057 
00059    virtual operator const int() const;
00060 
00062    int operator=(const int orig);
00063 
00064    virtual int operator-() const;
00065    virtual int operator*(const int rhs) const;
00066    virtual int operator/(const int rhs) const;
00067    virtual int operator+(const int rhs) const;
00068    virtual int operator-(const int rhs) const;
00069    virtual int operator<(const int rhs) const;
00070    virtual int operator>(const int rhs) const;
00071    virtual int operator<=(const int rhs) const;
00072    virtual int operator>=(const int rhs) const;
00073    virtual int operator==(const int rhs) const;
00074    virtual int operator!=(const int rhs) const;
00075    virtual int operator*=(const int rhs);
00076    virtual int operator/=(const int rhs);
00077    virtual int operator+=(const int rhs);
00078    virtual int operator-=(const int rhs);
00079 
00080    virtual int operator%(const int rhs);
00081    virtual int operator%=(const int rhs);
00082    virtual int operator--(int);
00083    virtual int operator--();
00084    virtual int operator++(int);
00085    virtual int operator++();
00086 
00087    virtual int value() const;
00088    virtual void setValue(int value);
00089 
00090    virtual void putData(FILE* fp, int indentLevel = 0);
00091    virtual DtlObjPtr getData(DtlObjPtr args, const DtFilename& searchPath,
00092       const DtVariableBindingsList& variableBindings);
00093 
00097    virtual const char* readerWriterType() const;
00098 
00099 protected:
00100    int myValue;
00101 };
00102 
00103 #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)