HCE project C++ developers source code library  1.1.1
HCE project developer library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DRCEResultData.hpp
Go to the documentation of this file.
1 
14 #ifndef DRCE_RESULT_DATA_HPP
15 #define DRCE_RESULT_DATA_HPP
16 
17 #include "DRCEFilesList.hpp"
18 
19 namespace HCE
20 {
21 namespace drce
22 {
23 //-----------------------------------------------------------------------------
25 {
26 public:
27  DRCEResultDataItem(void);
31 
34 
35  void setStdoutStream(const std::string& stdoutStream_) {stdoutStream=stdoutStream_;}
36  std::string getStdoutStream(void) const {return stdoutStream;}
37 
38  void setStderrStream(const std::string& stderrStream_) {stderrStream=stderrStream_;}
39  std::string getStderrStream(void) const {return stderrStream;}
40 
41  void setNodeName(const std::string& nodeName_) {nodeName=nodeName_;}
42  std::string getNodeName(void) const {return nodeName;}
43 
44  void setTime(unsigned int time_) {time=time_;}
45  unsigned int getTime(void) const {return time;}
46 
47  void setExitStatus(unsigned int exitStatus_) {exitStatus=exitStatus_;}
48  unsigned int getExitStatus(void) const {return exitStatus;}
49 
50  void clear(void);
51 private:
52  std::string stdoutStream;
53  std::string stderrStream;
54  std::string nodeName;
55  unsigned int time;
56  unsigned int exitStatus;
57 
58  typedef DRCEFilesList inherited;
59 };
60 //-----------------------------------------------------------------------------
61 //-----------------------------------------------------------------------------
63 {
64 public:
65  DRCEResultData(void);
66  ~DRCEResultData(void) {}
67 
70 
71  void addDataItem(const DRCEResultDataItem& dataItem);
72  void addDataItem(DRCEResultDataItem&& dataItem);
73 
74  const std::vector<DRCEResultDataItem>& getItems(void) const {return items;}
75 
76  size_t getItemsCount(void) const;
77  const DRCEResultDataItem& getDataItem(size_t index) const;
78  void setDataItem(size_t index, const DRCEResultDataItem& dataItem);
79  void setDataItem(size_t index, DRCEResultDataItem&& dataItem);
80 
81  void clear(void);
82 private:
83  std::vector<DRCEResultDataItem> items;
84 
85  typedef DRCEFilesList inherited;
86 };
87 //-----------------------------------------------------------------------------
88 //-----------------------------------------------------------------------------
89 } // namespace drce
90 } // namespace HCE
91 
92 #endif // DRCE_RESULT_DATA_HPP