00001 #ifndef _UTILITIES_MESSAGE_H_ 00002 #define _UTILITIES_MESSAGE_H_ 00003 00004 #include <ros/time.h> 00005 #include <variant_topic_tools/MessageVariant.h> 00006 00007 namespace utilities 00008 { 00009 class Message 00010 { 00011 public: 00012 Message(); 00013 Message(const Message& src); 00014 virtual ~Message(); 00015 void setReceiptTime(const ros::Time& receipt_time); 00016 const ros::Time& getReceiptTime() const; 00017 void setVariant(const variant_topic_tools::MessageVariant& variant); 00018 const variant_topic_tools::MessageVariant& getVariant() const; 00019 bool isEmpty() const; 00020 void clear(); 00021 00022 private: 00023 ros::Time receipt_time_; 00024 variant_topic_tools::MessageVariant variant_; 00025 }; 00026 } 00027 00028 #endif // _UTILITIES_MESSAGE_H_