Message.cpp
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright (C) 2015 by Ralf Kaestner *
3  * ralf.kaestner@gmail.com *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the Lesser GNU General Public License as published by*
7  * the Free Software Foundation; either version 3 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * Lesser GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the Lesser GNU General Public License *
16  * along with this program. If not, see <http://www.gnu.org/licenses/>. *
17  ******************************************************************************/
18 
19 #include "rqt_multiplot/Message.h"
20 
21 namespace rqt_multiplot {
22 
23 /*****************************************************************************/
24 /* Constructors and Destructor */
25 /*****************************************************************************/
26 
28 }
29 
32  variant_(src.variant_) {
33 }
34 
36 }
37 
38 /*****************************************************************************/
39 /* Accessors */
40 /*****************************************************************************/
41 
42 void Message::setReceiptTime(const ros::Time& receiptTime) {
43  receiptTime_ = receiptTime;
44 }
45 
47  return receiptTime_;
48 }
49 
50 void Message::setVariant(const variant_topic_tools::MessageVariant& variant) {
51  variant_ = variant;
52 }
53 
54 const variant_topic_tools::MessageVariant& Message::getVariant() const {
55  return variant_;
56 }
57 
58 bool Message::isEmpty() const {
59  return variant_.isEmpty();
60 }
61 
62 }
const variant_topic_tools::MessageVariant & getVariant() const
Definition: Message.cpp:54
variant_topic_tools::MessageVariant variant_
Definition: Message.h:41
ros::Time receiptTime_
Definition: Message.h:40
bool isEmpty() const
Definition: Message.cpp:58
void setReceiptTime(const ros::Time &receiptTime)
Definition: Message.cpp:42
void setVariant(const variant_topic_tools::MessageVariant &variant)
Definition: Message.cpp:50
const ros::Time & getReceiptTime() const
Definition: Message.cpp:46


rqt_multiplot
Author(s): Ralf Kaestner
autogenerated on Wed Jul 10 2019 03:49:44