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

BxInteger.h

00001 // ##################################################################
00002 // Binx
00003 // $Id: BxInteger_8h-source.html,v 1.1.1.1 2006/04/19 14:19:02 edikt2 Exp $
00004 //
00005 // Base class for primitive types BxShort16,BxInteger32,BxLong64 & unsigned types.
00006 // ##################################################################
00007 /*
00008 
00009 //  edikt::BinX
00010 //  www.edikt.org
00011 //  support@edikt.org
00012 
00013 // Copyright (c) 2004 The University of Edinburgh.
00014 
00015 */
00016 
00017 #ifndef __BxInteger__
00018 #define __BxInteger__
00019 
00020 #include "BxDataObject.h"
00021 
00041 class DECLSPEC BxInteger : public BxDataObject
00042 {
00043 protected:
00044     bool    unsigned_;  //<indicates whether the integer is signed or unsigned
00045 public:
00046     BxInteger();
00047     BxInteger(const BxInteger& copy);
00048     virtual ~BxInteger() {}
00049     virtual BxInteger* clone() const;
00050 
00051     virtual char* className() const {return "BxInteger";} //<Returns the null-terminated string "BxInteger".
00052     virtual void print();
00053     virtual bx_long64 getValue() const { return 0; }
00054     virtual void setValue(bx_long64) {}
00055     
00056     bool isSigned() const { return !unsigned_; }
00057     bool isUnsigned() const { return unsigned_; }
00058 };
00059 
00060 #endif
00061 

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