Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields  

Byte.h

00001 /*
00002  * $Id: Byte.h,v 1.4 2003/08/05 03:04:11 mindstorm2600 Exp $
00003  */
00004 #ifndef __CLAW_Byte_H__
00005 #define __CLAW_Byte_H__
00006 
00007 #include<System.h>
00008 #include<String.h>
00009 
00010 namespace clawsoft{
00028         class Byte:public System{
00029                 private:
00030                 protected:
00032                         Uint8 value;
00033                         String str_value;
00034                 public:
00036                         Byte();
00038                         Byte(Uint8 v);
00044                         Byte(const char *binary);
00048                         Byte(const String &binary);
00049                         ~Byte();
00051                         void setValue(Uint8 v = 0);
00053                         void setValue(const char *binary);
00055                         void setValue(const String &binary);
00057                         Uint8 theByte();
00059                         Uint8 reversedByte();
00061                         void reverse();
00063                         bool bit0();
00065                         bool bit1();
00067                         bool bit2();
00069                         bool bit3();
00071                         bool bit4();
00073                         bool bit5();
00075                         bool bit6();
00077                         bool bit7();
00080                         const String &toString();
00081         };
00082 };
00083 
00084 #endif

Authors:

Juan V. Guerrero
Jannette C. Mejia
Juan C. Guevara

Powered by:

SourceForgeLogo