Class
List
Hierarchy
Modules
Common
Events
Math
Messages
Physics
Rendering
Sensors
Transport
Links
Gazebo Website
Wiki
Tutorials
Download
Report Documentation Issues
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
gazebo
common
ModelDatabasePrivate.hh
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2012-2013 Open Source Robotics Foundation
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
*/
17
#ifndef _GAZEBO_MODELDATABSE_PRIVATE_HH_
18
#define _GAZEBO_MODELDATABSE_PRIVATE_HH_
19
20
#include <list>
21
#include <map>
22
#include <string>
23
24
#include <boost/thread.hpp>
25
#include <boost/thread/mutex.hpp>
26
27
#include "
gazebo/common/Event.hh
"
28
#include "
gazebo/util/system.hh
"
29
30
namespace
gazebo
31
{
32
namespace
common
33
{
35
class
GAZEBO_VISIBLE
ModelDatabasePrivate
36
{
38
public
: boost::thread *
updateCacheThread
;
39
41
public
: std::map<std::string, std::string>
modelCache
;
42
44
public
:
bool
stop
;
45
47
public
: boost::mutex
updateMutex
;
48
50
public
: boost::mutex
callbacksMutex
;
51
53
public
: boost::recursive_mutex
startCacheMutex
;
54
56
public
: boost::condition_variable
updateCacheCondition
;
57
59
public
: boost::condition_variable
updateCacheCompleteCondition
;
60
63
public
:
typedef
boost::function<
64
void (
const
std::map<std::string, std::string> &)>
CallbackFunc
;
65
66
// \todo Remove this along with the deprecated version of GetModels.
67
public
: std::list<CallbackFunc>
deprecatedCallbacks
;
68
71
public
:
event::EventT
<
72
void (std::map<std::string, std::string>)>
modelDBUpdated
;
73
};
74
}
75
}
76
#endif