22 void
CAction::getDescriptionAsText(
std::ostream& o)
const 28 o <<
" (as time_t): " << std::fixed << std::setprecision(5)
30 o <<
" (as TTimestamp): " << timestamp << std::endl;
#define IMPLEMENTS_VIRTUAL_SERIALIZABLE(class_name, base_class, NS)
This must be inserted as implementation of some required members for virtual CSerializable classes: ...
double timestampTotime_t(const mrpt::system::TTimeStamp t) noexcept
Transform from TTimeStamp to standard "time_t" (actually a double number, it can contain fractions of...
This namespace contains representation of robot actions and observations.
Declares a class for storing a robot action.
std::string dateTimeToString(const mrpt::system::TTimeStamp t)
Convert a timestamp into this textual form (UTC time): YEAR/MONTH/DAY,HH:MM:SS.MMM.
virtual void getDescriptionAsText(std::ostream &o) const
Build a detailed, multi-line textual description of the action contents and dump it to the output str...
std::string getDescriptionAsTextValue() const
Return by value version of getDescriptionAsText(std::ostream&)