Generic Data Check function.
More...
#include <Representation.h>
|
| static bool | check_stream (const std::string &fieldDescription, const Data &data, const Data &reference, std::ostream &out) |
| | Check Stream for a Data.
|
| |
Generic Data Check function.
Definition at line 86 of file Representation.h.
◆ check_stream()
| bool CheckStream< Data >::check_stream |
( |
const std::string & | fieldDescription, |
|
|
const Data & | data, |
|
|
const Data & | reference, |
|
|
std::ostream & | out ) |
|
static |
Check Stream for a Data.
- 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 25 of file Representation.cpp.
25 {
26 bool b(true);
27 b &= CheckStream<PString>::check_stream(fieldDescription +
"\n- Data::name", data.
getName(), reference.
getName(), out);
28 b &= CheckStream<PString>::check_stream(fieldDescription +
"\n- Data::description", data.
getDescription(), reference.
getDescription(), out);
29 b &= CheckStream<PString>::check_stream(fieldDescription +
"\n- Data::type", data.
getType(), reference.
getType(), out);
30 b &= CheckStream<DataStreamMsg>::check_stream(fieldDescription +
"\n- Data::value", data.
getValue(), reference.
getValue(), out);
31 return b;
32}
const PString & getDescription() const
Gets the description of the Data.
const PString & getType() const
Gets the type of the Data.
const DataStreamMsg & getValue() const
Gets the value of the Data.
const PString & getName() const
Gets the name of the Data.
References Data::getDescription(), Data::getName(), Data::getType(), and Data::getValue().
Referenced by CheckStream< Function >::check_stream(), and CheckStream< Message >::check_stream().
The documentation for this struct was generated from the following files:
- /builds/CTA-LAPP/PHOENIX_LIBS2/network/PhoenixSwarm/src/Representation/Representation.h
- /builds/CTA-LAPP/PHOENIX_LIBS2/network/PhoenixSwarm/src/Representation/Representation.cpp