00001 #ifndef OTMESSAGEPING_H 00002 #define OTMESSAGEPING_H 00003 00004 #include "ot_lib.h" 00005 00006 00007 // ------------------------------------------------------ 00008 class ot_messagePING : public ot_messageRequest 00009 { 00010 private: 00011 00012 00013 public: 00014 00015 ot_messagePING(void) : ot_messageRequest(PING) {} 00016 00017 ~ot_messagePING(void) {} 00018 00019 static ot_messageBase * decode(const ot_map &input); 00020 void encode(ot_map &msg) const; 00021 00022 static const string m_messageCode; 00023 const string getMessageCode(void) const {return(m_messageCode);} 00024 00025 auto_ptr<ot_messageResponse> exec(ot_functionManager &fm); 00026 }; 00027 00028 // ------------------------------------------------------ 00029 class ot_messagePINGRESP : public ot_messageResponse 00030 { 00031 private: 00032 00033 00034 public: 00035 00036 ot_messagePINGRESP(void) : ot_messageResponse(PINGRESP) {} 00037 00038 ~ot_messagePINGRESP(void) {} 00039 00040 static ot_messageBase * decode(const ot_map &input); 00041 void encode(ot_map &msg) const; 00042 00043 static const string m_messageCode; 00044 const string getMessageCode(void) const {return(m_messageCode);} 00045 }; 00046 00047 #endif