00001 #ifndef OTMESSAGEDUMP_H 00002 #define OTMESSAGEDUMP_H 00003 00004 #include "ot_lib.h" 00005 00006 // ------------------------------------------------------ 00007 class ot_messageDUMP : public ot_messageRequest 00008 { 00009 private: 00010 00011 00012 public: 00013 00014 ot_messageDUMP(void) : ot_messageRequest(DUMP) {} 00015 00016 ~ot_messageDUMP(void) {} 00017 00018 static ot_messageBase * decode(const ot_map &input); 00019 void encode(ot_map &msg) const; 00020 00021 static const string m_messageCode; 00022 const string getMessageCode(void) const {return(m_messageCode);} 00023 00024 auto_ptr<ot_messageResponse> exec(ot_functionManager &fm); 00025 }; 00026 00027 00028 // ------------------------------------------------------ 00029 class ot_messageDUMPRESP : public ot_messageResponse 00030 { 00031 private: 00032 00033 auto_ptr<ot_obj> m_data; 00034 00035 00036 public: 00037 00038 ot_messageDUMPRESP(const ot_obj *data) : 00039 ot_messageResponse(DUMPRESP), 00040 m_data(data->dup()) {} 00041 00042 ~ot_messageDUMPRESP(void) {} 00043 00044 const ot_obj * getData(void) const {return(m_data.get());} 00045 00046 static ot_messageBase * decode(const ot_map &input); 00047 void encode(ot_map &msg) const; 00048 00049 static const string m_messageCode; 00050 const string getMessageCode(void) const {return(m_messageCode);} 00051 00052 const ot_obj * getOutput(void) const {return(m_data.get());} 00053 }; 00054 00055 #endif 00056