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