hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SphinxInputJsonMessageManage.hpp
Go to the documentation of this file.
1 
14 #ifndef SPHINX_INPUT_JSON_MESSAGE_MANAGE_HPP
15 #define SPHINX_INPUT_JSON_MESSAGE_MANAGE_HPP
16 
17 #include "JsonSerializable.hpp"
18 
19 namespace HCE
20 {
21 namespace sphinx
22 {
23 //-----------------------------------------------------------------------------
25 {
26 public:
27  SphinxInputJsonMessageManage(const std::string& json="");
29 
30  bool serialize(std::string& json);
31  bool unserialize(const std::string& json);
32 
33  void setCommandString(const std::string& commandString_) {commandString=commandString_;}
34  std::string getCommandString(void) const {return commandString;}
35 
36  void setCommandOptionsString(const std::string& commandOptionsString_) {commandOptionsString=commandOptionsString_;}
37  std::string getCommandOptionsString(void) const {return commandOptionsString;}
38 
39 private:
40  std::string commandString;
41  std::string commandOptionsString;
42 
43  friend std::istream& operator>>(std::istream& is, SphinxInputJsonMessageManage& messageManage);
44  friend std::ostream& operator<<(std::ostream& os, const SphinxInputJsonMessageManage& messageManage);
45  typedef IJsonSerializable inherited;
46 };
47 //-----------------------------------------------------------------------------
48 //-----------------------------------------------------------------------------
49 } // end namespace sphinx
50 } // end namespace HCE
51 
52 #endif // SPHINX_INPUT_JSON_MESSAGE_MANAGE_HPP