All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFIDTagManager.hh
Go to the documentation of this file.
1 /* Copyright (C) 2012
2  * Jonas Mellin & Zakiruz Zaman
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 /* Desc: RFID Tag Manager
17  * Author: Jonas Mellin & Zakiruz Zaman
18  * Date: 6th December 2011
19  */
20 
21 #ifndef _RFID_TAG_MANAGER_
22 #define _RFID_TAG_MANAGER_
23 
24 #include <vector>
25 #include "common/SingletonT.hh"
26 #include "RFIDTag.hh"
27 
28 namespace gazebo
29 {
32  namespace sensors
33  {
36 
39  class RFIDTagManager : public SingletonT<RFIDTagManager>
40  {
44  public: void AddTaggedModel(RFIDTag *_model);
45 
49  public: std::vector<RFIDTag*> GetTags()
50  {return this->taggedModels;}
51 
52  private: std::vector<RFIDTag*> taggedModels;
53 
54  private: friend class SingletonT<RFIDTagManager>;
55  };
57  }
58 }
59 #endif