6 #ifndef DDS_TOOLSPROTOCOL_H 7 #define DDS_TOOLSPROTOCOL_H 14 #include <boost/property_tree/ptree.hpp> 27 struct SMessageResponseData : SBaseResponseData<SMessageResponseData>
29 SMessageResponseData();
30 SMessageResponseData(
const boost::property_tree::ptree& _pt);
36 friend SBaseData<SMessageResponseData>;
37 friend SBaseResponseData<SMessageResponseData>;
38 void _fromPT(
const boost::property_tree::ptree& _pt);
39 void _toPT(boost::property_tree::ptree& _pt)
const;
40 static constexpr
const char* _protocolTag =
"message";
44 bool operator==(
const SMessageResponseData& _val)
const;
46 friend std::ostream&
operator<<(std::ostream& _os,
const SMessageResponseData& _data);
55 uint16_t _srcCmd, uint32_t _completed, uint32_t _total, uint32_t _errors, uint32_t _time = 0);
66 void _fromPT(
const boost::property_tree::ptree& _pt);
67 void _toPT(boost::property_tree::ptree& _pt)
const;
68 static constexpr
const char* _protocolTag =
"progress";
91 void _fromPT(
const boost::property_tree::ptree& _pt);
92 void _toPT(boost::property_tree::ptree& _pt)
const;
93 static constexpr
const char* _protocolTag =
"submit";
123 void _fromPT(
const boost::property_tree::ptree& _pt);
124 void _toPT(boost::property_tree::ptree& _pt)
const;
125 static constexpr
const char* _protocolTag =
"topology";
152 void _fromPT(
const boost::property_tree::ptree& _pt);
153 void _toPT(boost::property_tree::ptree& _pt)
const;
154 static constexpr
const char* _protocolTag =
"topology";
185 void _fromPT(
const boost::property_tree::ptree& _pt);
186 void _toPT(boost::property_tree::ptree& _pt)
const;
187 static constexpr
const char* _protocolTag =
"commanderInfo";
208 uint32_t m_index{ 0 };
209 uint64_t m_agentID{ 0 };
210 std::chrono::milliseconds m_startUpTime{ std::chrono::milliseconds(0) };
214 uint32_t m_agentPid{ 0 };
215 uint32_t m_nSlots{ 0 };
216 uint32_t m_nIdleSlots{ 0 };
217 uint32_t m_nExecutingSlots{ 0 };
222 void _fromPT(
const boost::property_tree::ptree& _pt);
223 void _toPT(boost::property_tree::ptree& _pt)
const;
224 static constexpr
const char* _protocolTag =
"agentInfo";
237 using SAgentInfoRequest = SBaseRequestImpl<SAgentInfoRequestData, SAgentInfoResponseData>;
245 uint32_t m_index{ 0 };
246 uint64_t m_agentID{ 0 };
247 uint64_t m_slotID{ 0 };
248 uint64_t m_taskID{ 0 };
249 uint32_t m_state{ 0 };
256 void _fromPT(
const boost::property_tree::ptree& _pt);
257 void _toPT(boost::property_tree::ptree& _pt)
const;
258 static constexpr
const char* _protocolTag =
"slotInfo";
279 uint32_t m_activeSlotsCount = 0;
280 uint32_t m_idleSlotsCount = 0;
281 uint32_t m_executingSlotsCount = 0;
286 void _fromPT(
const boost::property_tree::ptree& _pt);
287 void _toPT(boost::property_tree::ptree& _pt)
const;
288 static constexpr
const char* _protocolTag =
"agentCount";
309 uint64_t m_taskID{ 0 };
310 uint32_t m_exitCode{ 0 };
311 uint32_t m_signal{ 0 };
319 void _fromPT(
const boost::property_tree::ptree& _pt);
320 void _toPT(boost::property_tree::ptree& _pt)
const;
321 static constexpr
const char* _protocolTag =
"onTaskDone";
355 uint64_t m_arg1{ 0 };
360 void _fromPT(
const boost::property_tree::ptree& _pt);
361 void _toPT(boost::property_tree::ptree& _pt)
const;
362 static constexpr
const char* _protocolTag =
"agentCommand";
Miscellaneous functions and helpers are located here.
Definition: AgentConnectionManager.h:13
bool operator==(const custom_istream_iterator< T, Ch, Tr, Dist > &lhs, const custom_istream_iterator< T, Ch, Tr, Dist > &rhs)
Definition: CustomIterator.h:101
EMsgSeverity
Enumeration with message severity.
Definition: Intercom.h:126