00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 class TDUID;
00025 #ifndef DUID_H_
00026 #define DUID_H_
00027 #include <iostream>
00028 #include <iomanip>
00029 #include <string>
00030 using namespace std;
00031
00032 class TDUID
00033 {
00034 friend std::ostream& operator<<(std::ostream& out,TDUID &range);
00035 public:
00036 TDUID();
00037 TDUID(char* DUID,int DUIDlen);
00038 TDUID(char* Plain);
00039 TDUID(const TDUID &duid);
00040 TDUID& operator=(const TDUID& duid);
00041 bool TDUID::operator==(const TDUID &duid);
00042 bool TDUID::operator<=(const TDUID &duid);
00043 int getLen();
00044 char * storeSelf(char* buf);
00045 const string getPlain();
00046
00047 ~TDUID();
00048
00049 private:
00050 void packedToPlain();
00051 void plainToPacked();
00052 char* DUID;
00053 string Plain;
00054 int len;
00055 };
00056
00057 #endif
00058