log.h
Go to the documentation of this file.
00001 #ifndef _MRTA_LOG_H_
00002 #define _MRTA_LOG_H_
00003 
00004 #include <QObject>
00005 #include <ros/time.h>
00006 
00007 namespace mrta
00008 {
00009 class History;
00010 class Log : public QObject
00011 {
00012   Q_OBJECT
00013 public:
00014   enum Type
00015   {
00016     Robot,
00017     Task,
00018     Allocation
00019   };
00020   enum Severity
00021   {
00022     Debug,
00023     Info,
00024     Warn,
00025     Error,
00026     Fatal
00027   };
00028   Log(History* history, const ros::Time& timestamp, Type type,
00029       Severity severity, const QString& id, int state);
00030   Log(const Log& log);
00031   virtual ~Log();
00032   ros::Time getTimestamp() const;
00033   Type getType() const;
00034   Severity getSeverity() const;
00035   QString getId() const;
00036   int getState() const;
00037   QString toString() const;
00038   const char* toCString() const;
00039 
00040 private:
00041   ros::Time timestamp_;
00042   Type type_;
00043   Severity severity_;
00044   QString id_;
00045   int state_;
00046 };
00047 }
00048 
00049 #endif // _MRTA_LOG_H_


rqt_mrta
Author(s): Adriano Henrique Rossette Leite
autogenerated on Thu Jun 6 2019 18:50:52