00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
#ifdef WIN32
00018
#pragma warning (disable : 4786)
00019
#endif
00020
00021
#if !defined(__HANDLER_OF_AXIS_INCLUDED__)
00022
#define __HANDLER_OF_AXIS_INCLUDED__
00023
00024
#include "BasicHandler.hpp"
00025
00034
00035
00036
00037
00038
00039
00040
00041
00042 AXIS_CPP_NAMESPACE_START
00043
00044 class Handler :
public HandlerBase
00045 {
00046
public:
00050 Handler(){};
00051
00055 virtual ~Handler(){};
00056
00063 const string&
getOption(
const string& sArg)
00064 {
00065
m_sEmpty =
"";
00066
00067 map<string, string>::const_iterator it =
m_pOption->find(sArg);
00068
if (it !=
m_pOption->end())
00069 {
00070
return (*it).second;
00071 }
00072
return m_sEmpty;
00073 }
00074
00087 void setOptionList(
const map<string, string>* OptionList) {
m_pOption = OptionList;};
00088
00096 int AXISCALL
getType(){
return NORMAL_HANDLER;};
00097
00098
protected:
00102 const map<string, string>*
m_pOption;
00103
00107 string
m_sEmpty;
00108 };
00109
00110 AXIS_CPP_NAMESPACE_END
00111
00112
#endif
00113