00001 /* 00002 * Dibbler - a portable DHCPv6 00003 * 00004 * authors: Tomasz Mrugalski <thomson@klub.com.pl> 00005 * Marek Senderski <msend@o2.pl> 00006 * 00007 * released under GNU GPL v2 licence 00008 * 00009 * $Id: OptStringLst.h,v 1.1 2004/11/02 01:23:13 thomson Exp $ 00010 * 00011 * $Log: OptStringLst.h,v $ 00012 * Revision 1.1 2004/11/02 01:23:13 thomson 00013 * Initial revision 00014 * 00015 */ 00016 00017 #ifndef OPTSTRINGLST_H 00018 #define OPTSTRINGLST_H 00019 #include "Opt.h" 00020 #include <iostream> 00021 #include <string> 00022 using namespace std; 00023 00024 class TOptStringLst : public TOpt 00025 { 00026 public: 00027 TOptStringLst(int type, TContainer< SmartPtr<string> > strLst, TMsg* parent); 00028 TOptStringLst(int type, char *&buf, int &bufsize, TMsg* parent); 00029 char * storeSelf( char* buf); 00030 int getSize(); 00031 void firstString(); 00032 string getString(); 00033 int countString(); 00034 00035 protected: 00036 TContainer< SmartPtr<string> > StringLst; 00037 }; 00038 00039 #endif 00040