hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DRCEListAllTasks.hpp
Go to the documentation of this file.
1 
14 #ifndef DRCE_LIST_ALL_TASKS_HPP
15 #define DRCE_LIST_ALL_TASKS_HPP
16 
17 #include <iostream>
18 
19 #include "DRCECommonList.hpp"
20 #include "JsonSerializable.hpp"
21 
22 namespace HCE
23 {
24 namespace drce
25 {
26 //-----------------------------------------------------------------------------
28 {
29  TaskInfoData(void);
30  TaskInfoData(const TaskInfoData& rhs);
32  ~TaskInfoData(void) {}
33 
34  TaskInfoData& operator=(const TaskInfoData& rhs);
36 
37  void clear(void);
38 
39  unsigned int taskId;
40  std::string infoData;
41  time_t timeModified;
42 };
43 //-----------------------------------------------------------------------------
44 //-----------------------------------------------------------------------------
45 class DRCEListAllTasks : public DRCECommonList <TaskInfoData>, public IJsonSerializable
46 {
47 public:
48  explicit DRCEListAllTasks(void);
50 
51  bool serialize(std::string& json);
52  bool unserialize(const std::string& json);
53 
54  bool rebuild(const std::string& sourceDir);
55  std::string toString(void);
56 };
57 //-----------------------------------------------------------------------------
58 //-----------------------------------------------------------------------------
59 }// end namespace drce
60 } // end namespace HCE
61 
62 #endif // DRCE_LIST_ALL_TASKS_HPP