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

Generic DaemonStatAccumulator Check function. More...

#include <Representation.h>

Static Public Member Functions

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

Detailed Description

Generic DaemonStatAccumulator Check function.

Definition at line 591 of file Representation.h.

Member Function Documentation

◆ check_stream()

bool CheckStream< Swarm::DaemonStatAccumulator >::check_stream ( const std::string & fieldDescription,
const Swarm::DaemonStatAccumulator & data,
const Swarm::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 1237 of file Representation.cpp.

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

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

Referenced by CheckStream< Swarm::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: