hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DRCETaskRequestCheckState.hpp
Go to the documentation of this file.
1 
14 #ifndef DRCE_TASK_REQUEST_CHECK_STATE_HPP
15 #define DRCE_TASK_REQUEST_CHECK_STATE_HPP
16 
17 #include <string>
18 
19 #include "DRCETaskRequest.hpp"
20 
21 namespace HCE
22 {
23 namespace drce
24 {
25 //-----------------------------------------------------------------------------
27 {
28 public:
29  enum CheckType
30  {
34  };
35 
36  explicit DRCETaskRequestCheckState(const std::string& json="");
37  virtual ~DRCETaskRequestCheckState(void) {}
38 
39  bool serialize(std::string& json);
40  bool unserialize(const std::string& json);
41 
42  void setCheckType(CheckType checkType_) {checkType=checkType_;}
43  CheckType getCheckType(void) const {return checkType;}
44 
45  void clear(void);
46 private:
47  CheckType checkType;
48 private:
49  friend std::istream& operator>>(std::istream& is, DRCETaskRequestCheckState& rhs);
50  friend std::ostream& operator<<(std::ostream& os, const DRCETaskRequestCheckState& rhs);
51  typedef DRCETaskRequest inherited;
52 };
53 //-----------------------------------------------------------------------------
54 //-----------------------------------------------------------------------------
55 } // end namespace drce
56 } // end namespace HCE
57 
58 #endif // DRCE_TASK_REQUEST_CHECK_STATE_HPP