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

Generic DaemonStatAccumulator Check function. More...

#include <Representation.h>

Static Public Member Functions

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

Detailed Description

Generic DaemonStatAccumulator Check function.

Definition at line 590 of file Representation.h.

Member Function Documentation

◆ check_stream()

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

Check Stream for a DaemonStatAccumulator.

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 1235 of file Representation.cpp.

1235 {
1236 bool b(true);
1237 b &= CheckStream<std::map<PString, StatAccumulator >>::check_stream(fieldDescription + "\n- DaemonStatAccumulator::mapStatComputing", data.getMapStatComputing(), reference.getMapStatComputing(), out);
1238 b &= CheckStream<std::map<PString, std::map<PString, StatAccumulator > >>::check_stream(fieldDescription + "\n- DaemonStatAccumulator::mapStatCommunication", data.getMapStatCommunication(), reference.getMapStatCommunication(), out);
1239 return b;
1240}
const std::map< PString, StatAccumulator > & getMapStatComputing() const
Gets the mapStatComputing of the DaemonStatAccumulator.
const std::map< PString, std::map< PString, StatAccumulator > > & getMapStatCommunication() const
Gets the mapStatCommunication of the DaemonStatAccumulator.
static bool check_stream(const std::string &fieldDescription, const DaemonStatAccumulator &data, const DaemonStatAccumulator &reference, std::ostream &out)
Check Stream for a DaemonStatAccumulator.

References check_stream(), DaemonStatAccumulator::getMapStatCommunication(), and DaemonStatAccumulator::getMapStatComputing().

Referenced by CheckStream< DaemonConfig >::check_stream(), and 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: