00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef OPTGENERIC_H
00022 #define OPTGENERIC_H
00023
00024 #include "DHCPConst.h"
00025 #include "Opt.h"
00026 #include "DUID.h"
00027 #include "SmartPtr.h"
00028
00029 class TOptGeneric : public TOpt
00030 {
00031 public:
00032 TOptGeneric(int optType, char * data, int dataLen, TMsg* parent);
00033 TOptGeneric(int optType, TMsg* parent);
00034 ~TOptGeneric();
00035 int getSize();
00036 void setData(char * data, int dataLen);
00037
00038 char * storeSelf(char* buf);
00039 bool isValid();
00040 protected:
00041 char * Data;
00042 int DataLen;
00043 };
00044
00045 #endif
00046