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