Gazebo Plugin

API Reference

3.0.0
Info.hh
Go to the documentation of this file.
1/*
2 * Copyright (C) 2017 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
18
19#ifndef GZ_PLUGIN_INFO_HH_
20#define GZ_PLUGIN_INFO_HH_
21
22#include <functional>
23#include <memory>
24#include <set>
25#include <string>
26#include <unordered_map>
27
28#include <gz/utils/SuppressWarning.hh>
29
30#include <gz/plugin/Export.hh>
31
32namespace gz
33{
34 namespace plugin
35 {
38 //
40 const int INFO_API_VERSION = 1;
41
42 // We use an inline namespace to assist in forward-compatibility. Eventually
43 // we may want to support a version-2 of the Info API, in which case
44 // we will remove the "inline" declaration here, and create a new inline
45 // namespace called "v2". This original Info object will continue to
46 // be accessible for backwards compatibility, and even its symbol name in
47 // the ABI should remain the same.
48 inline namespace v1
49 {
51 struct GZ_PLUGIN_VISIBLE Info
52 {
54 void Clear();
55
57 GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
59 GZ_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING
60
62 GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
64 GZ_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING
65
71 GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
75 GZ_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING
76
82 GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
84 GZ_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING
85
87 GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
88 std::function<void*()> factory;
89 GZ_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING
90
92 GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
93 std::function<void(void*)> deleter;
94 GZ_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING
95 };
96 }
97
102 }
103}
104
105#endif