18 std::string mIdentifier;
20 const std::string cIdSeperator{
": "};
21 const std::string cUnitSeperator{
" "};
30 const char *identifier,
31 const char *unit) : mPayload(payload),
32 mIdentifier(identifier),
43 std::string _payloadString = std::to_string(mPayload);
45 mIdentifier + cIdSeperator + _payloadString + cUnitSeperator + mUnit;
A payload (quantity) with an unit wrapper.
Definition: argument.h:15
Argument(T &&payload, const char *identifier, const char *unit)
brief description Constructor
Definition: argument.h:28
std::string ToString() const
Convert the payload to a standard string.
Definition: argument.h:41