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

BxUnsignedByte8.h

00001 // ##################################################################
00002 // Binx
00003 // $Id: BxUnsignedByte8_8h-source.html,v 1.1.1.1 2006/04/19 14:19:02 edikt2 Exp $
00004 //
00005 // Class for primitive data type unsignedByte-8.
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 __BxUnsignedByte8__
00018 #define __BxUnsignedByte8__
00019 
00020 #include "BxInteger.h"
00021 
00036 class DECLSPEC BxUnsignedByte8 : public BxInteger
00037 {
00038 public:
00039     BxUnsignedByte8();
00040     BxUnsignedByte8(const BxUnsignedByte8& copy) : BxInteger(copy) {}
00041     BxUnsignedByte8(const bx_ubyte8);
00042     virtual ~BxUnsignedByte8() {}
00043     virtual BxUnsignedByte8* clone() const;
00044 
00045     virtual bx_long64 getValue() const { return (bx_long64)dataValue_.ub_; }
00046     virtual void setValue(bx_long64 v) { dataValue_.ub_=(bx_ubyte8)v; }
00047     virtual char * className() const {return "BxUnsignedByte8";} //<Returns the null-terminated string "BxUnsignedByte8".
00048     virtual void print();
00049     virtual bool equals(const BxDataObject&) const;
00050     virtual char * toString(bool xml); //new a string for the value
00051     virtual bool parseValue(const char *);
00052     virtual bool readFromFile();
00053     
00054     BxUnsignedByte8& operator=(const bx_ubyte8);
00055 };
00056 
00057 #endif
00058 

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