00001 /***************************************************************** 00002 * 00003 * This file is part of the FLIRTLib project 00004 * 00005 * FLIRTLib Copyright (c) 2010 Gian Diego Tipaldi and Kai O. Arras 00006 * 00007 * This software is licensed under the "Creative Commons 00008 * License (Attribution-NonCommercial-ShareAlike 3.0)" 00009 * and is copyrighted by Gian Diego Tipaldi and Kai O. Arras 00010 * 00011 * Further information on this license can be found at: 00012 * http://creativecommons.org/licenses/by-nc-sa/3.0/ 00013 * 00014 * FLIRTLib is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied 00016 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00017 * PURPOSE. 00018 * 00019 *****************************************************************/ 00020 00021 00022 00023 #ifndef ABSTRACTREADING_H_ 00024 #define ABSTRACTREADING_H_ 00025 00026 #include <string> 00027 00035 class AbstractReading { 00036 public: 00043 AbstractReading(double _time, const std::string& _name, const std::string& _robot); 00045 virtual ~AbstractReading() {}; 00046 00048 virtual AbstractReading* clone() const = 0; 00049 00051 inline double getTime() const {return m_time;} 00053 inline const std::string& getName() const {return m_name;} 00055 inline const std::string& getRobot() const {return m_robot;} 00056 00057 00058 protected: 00060 double m_time; // maybe using a better timing representation 00062 std::string m_name; 00064 std::string m_robot; 00065 }; 00066 00067 #endif