Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

DUID.h

Go to the documentation of this file.
00001 /*
00002  * Dibbler - a portable DHCPv6
00003  *
00004  * authors: Tomasz Mrugalski <thomson@klub.com.pl>
00005  *          Marek Senderski <msend@o2.pl>
00006  *
00007  * $Id: DUID.h,v 1.5 2004/09/28 17:30:47 thomson Exp $
00008  *
00009  * $Log: DUID.h,v $
00010  * Revision 1.5  2004/09/28 17:30:47  thomson
00011  * Header #include added.
00012  *
00013  * Revision 1.4  2004/06/20 20:59:30  thomson
00014  * getPlain() method added.
00015  *
00016  * Revision 1.3  2004/03/29 22:06:49  thomson
00017  * 0.1.1 version
00018  *
00019  *
00020  * Released under GNU GPL v2 licence
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); // packed
00038     TDUID(char* Plain); // 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 

Generated on Mon Dec 27 21:55:22 2004 for Dibbler - a portable DHCPv6 by  doxygen 1.3.9.1