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

Generic DaemonConfig Check function. More...

#include <Representation.h>

Static Public Member Functions

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

Detailed Description

Generic DaemonConfig Check function.

Definition at line 705 of file Representation.h.

Member Function Documentation

◆ check_stream()

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

Check Stream for a DaemonConfig.

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

1338 {
1339 bool b(true);
1340 b &= CheckStream<PString>::check_stream(fieldDescription + "\n- DaemonConfig::hostName", data.getHostName(), reference.getHostName(), out);
1341 b &= CheckStream<size_t>::check_stream(fieldDescription + "\n- DaemonConfig::receivingPort", data.getReceivingPort(), reference.getReceivingPort(), out);
1342 b &= CheckStream<PString>::check_stream(fieldDescription + "\n- DaemonConfig::name", data.getName(), reference.getName(), out);
1343 b &= CheckStream<PString>::check_stream(fieldDescription + "\n- DaemonConfig::description", data.getDescription(), reference.getDescription(), out);
1344 b &= CheckStream<std::map<PString, time_t>>::check_stream(fieldDescription + "\n- DaemonConfig::mapTimeout", data.getMapTimeout(), reference.getMapTimeout(), out);
1345 b &= CheckStream<size_t>::check_stream(fieldDescription + "\n- DaemonConfig::statNbBin", data.getStatNbBin(), reference.getStatNbBin(), out);
1346 b &= CheckStream<float>::check_stream(fieldDescription + "\n- DaemonConfig::statHistLowerBound", data.getStatHistLowerBound(), reference.getStatHistLowerBound(), out);
1347 b &= CheckStream<float>::check_stream(fieldDescription + "\n- DaemonConfig::statHistUpperBound", data.getStatHistUpperBound(), reference.getStatHistUpperBound(), out);
1348 b &= CheckStream<time_t>::check_stream(fieldDescription + "\n- DaemonConfig::statTimerPeriodMs", data.getStatTimerPeriodMs(), reference.getStatTimerPeriodMs(), out);
1349 b &= CheckStream<DaemonStatAccumulator>::check_stream(fieldDescription + "\n- DaemonConfig::daemonStatAccumulator", data.getDaemonStatAccumulator(), reference.getDaemonStatAccumulator(), out);
1350 b &= CheckStream<PString>::check_stream(fieldDescription + "\n- DaemonConfig::statDaemonName", data.getStatDaemonName(), reference.getStatDaemonName(), out);
1351 return b;
1352}
const PString & getName() const
Gets the name of the DaemonConfig.
size_t getStatNbBin() const
Gets the statNbBin of the DaemonConfig.
const time_t & getStatTimerPeriodMs() const
Gets the statTimerPeriodMs of the DaemonConfig.
const DaemonStatAccumulator & getDaemonStatAccumulator() const
Gets the daemonStatAccumulator of the DaemonConfig.
const PString & getStatDaemonName() const
Gets the statDaemonName of the DaemonConfig.
const PString & getDescription() const
Gets the description of the DaemonConfig.
const std::map< PString, time_t > & getMapTimeout() const
Gets the mapTimeout of the DaemonConfig.
float getStatHistLowerBound() const
Gets the statHistLowerBound of the DaemonConfig.
float getStatHistUpperBound() const
Gets the statHistUpperBound of the DaemonConfig.
const PString & getHostName() const
Gets the hostName of the DaemonConfig.
size_t getReceivingPort() const
Gets the receivingPort of the DaemonConfig.
static bool check_stream(const std::string &fieldDescription, const DaemonConfig &data, const DaemonConfig &reference, std::ostream &out)
Check Stream for a DaemonConfig.
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(), CheckStream< DaemonStatAccumulator >::check_stream(), DaemonConfig::getDaemonStatAccumulator(), DaemonConfig::getDescription(), DaemonConfig::getHostName(), DaemonConfig::getMapTimeout(), DaemonConfig::getName(), DaemonConfig::getReceivingPort(), DaemonConfig::getStatDaemonName(), DaemonConfig::getStatHistLowerBound(), DaemonConfig::getStatHistUpperBound(), DaemonConfig::getStatNbBin(), and DaemonConfig::getStatTimerPeriodMs().

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: