Main Page | Class Hierarchy | Compound List | File List | Compound Members

BxInteger32.h

00001 // ##################################################################
00002 // Binx
00003 // $Id: BxInteger32_8h-source.html,v 1.1.1.1 2006/04/19 14:19:02 edikt2 Exp $
00004 //
00005 // Class for primitive data type integer-32.
00006 // ##################################################################
00007 /*
00008 
00009 //  edikt::BinX
00010 //  www.edikt.org
00011 //  support@edikt.org
00012 
00013 // Copyright (c) 2003 The University of Edinburgh.
00014 
00015 */
00016 
00017 #ifndef __BxInteger32__
00018 #define __BxInteger32__
00019 
00020 #include "BxInteger.h"
00021 
00037 class DECLSPEC BxInteger32 : public BxInteger
00038 {
00039 public:
00040     BxInteger32();
00041     BxInteger32(const BxInteger32&);
00042     BxInteger32(const bx_int32);
00043     virtual ~BxInteger32();
00044     virtual BxInteger32* clone() const;
00045 
00046     BxInteger32& operator=(const bx_int32);
00047 
00048     virtual bx_long64 getValue() const { return (bx_long64)dataValue_.i_; }
00049     virtual void setValue(bx_long64 v) { dataValue_.i_=(bx_int32)v; }
00050     virtual char * className() const {return "BxInteger32";} //<Returns the null-terminated string "BxInteger32".
00051     virtual bool equals(const BxDataObject&) const;
00052     virtual char * toString(bool xml); //new a string for the value
00053     virtual bool parseValue(const char *);
00054     virtual bool readFromFile();
00055 };
00056 
00057 #endif
00058 

Generated on Fri May 6 13:36:17 2005 for edikt::BinX by doxygen 1.3.3