iri_fake_recorder.h
Go to the documentation of this file.
00001 #ifndef IRI_FAKE_RECORDER_H_
00002 #define IRI_FAKE_RECORDER_H_
00003 
00004 template<class T>
00005 class IRIFakeRecorder
00006 {
00007     typedef std::vector<T> MsgContainer;
00008 
00009     public:
00010         IRIFakeRecorder()
00011         { }
00012 
00013         T getLastMsg() const
00014         {
00015             return msg_recieved_history_.back();
00016         }
00017 
00018         MsgContainer getHistoryOfMsg() const
00019         {
00020             return msg_recieved_history_;
00021         }
00022 
00023     protected:
00024         MsgContainer msg_recieved_history_;
00025 
00026         void addRecievedMsg(const T msg)
00027         {
00028             msg_recieved_history_.push_back(msg);
00029             return;
00030         }
00031 };
00032 
00033 #endif


iri_grasp_actions
Author(s): pmonso
autogenerated on Fri Dec 6 2013 20:14:56