PhoenixSwarm  3.5.0
Library to ease communication between daemons
Loading...
Searching...
No Matches
CheckStream< DaemonStat > Struct Reference

Generic DaemonStat Check function. More...

#include <Representation.h>

Static Public Member Functions

static bool check_stream (const std::string &fieldDescription, const DaemonStat &data, const DaemonStat &reference, std::ostream &out)
 Check Stream for a DaemonStat.
 

Detailed Description

Generic DaemonStat Check function.

Definition at line 426 of file Representation.h.

Member Function Documentation

◆ check_stream()

bool CheckStream< DaemonStat >::check_stream ( const std::string & fieldDescription,
const DaemonStat & data,
const DaemonStat & reference,
std::ostream & out )
static

Check Stream for a DaemonStat.

Parameters
fieldDescription: description of the field to be checked
data: data to be checked
reference: reference of the check
out: ostream used to collect feed back in case of error (std::cerr or a logger)
Returns
true on success, false otherwise

Definition at line 836 of file Representation.cpp.

836 {
837 bool b(true);
838 b &= CheckStream<PString>::check_stream(fieldDescription + "\n- DaemonStat::name", data.getName(), reference.getName(), out);
839 b &= CheckStream<std::map<PString, VecStat >>::check_stream(fieldDescription + "\n- DaemonStat::mapStatComputing", data.getMapStatComputing(), reference.getMapStatComputing(), out);
840 b &= CheckStream<std::map<PString, std::map<PString, VecStat > >>::check_stream(fieldDescription + "\n- DaemonStat::mapStatCommunication", data.getMapStatCommunication(), reference.getMapStatCommunication(), out);
841 return b;
842}
const std::map< PString, VecStat > & getMapStatComputing() const
Gets the mapStatComputing of the DaemonStat.
const std::map< PString, std::map< PString, VecStat > > & getMapStatCommunication() const
Gets the mapStatCommunication of the DaemonStat.
const PString & getName() const
Gets the name of the DaemonStat.
static bool check_stream(const std::string &fieldDescription, const DaemonStat &data, const DaemonStat &reference, std::ostream &out)
Check Stream for a DaemonStat.

References check_stream(), DaemonStat::getMapStatCommunication(), DaemonStat::getMapStatComputing(), and DaemonStat::getName().

Referenced by check_stream().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this struct was generated from the following files: