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.h"
00025
00034
00035
00036
00037
00038
00039
00040
00041
00042 class Handler : public HandlerBase
00043 {
00044 public:
00048 Handler(){};
00049
00053 virtual ~Handler(){};
00054
00061 const string& getOption(const string& sArg)
00062 {
00063 m_sEmpty = "";
00064
00065 map<string, string>::const_iterator it = m_pOption->find(sArg);
00066 if (it != m_pOption->end())
00067 {
00068 return (*it).second;
00069 }
00070 return m_sEmpty;
00071 }
00072
00085 void setOptionList(const map<string, string>* OptionList) {m_pOption = OptionList;};
00086
00094 int AXISCALL getType(){return NORMAL_HANDLER;};
00095
00096 protected:
00100 const map<string, string>* m_pOption;
00101
00105 string m_sEmpty;
00106 };
00107
00108 #endif
00109