Gazebo Sim

API Reference

9.0.0~pre1
SystemLoader.hh
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018 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 GZ_SIM_SYSTEMLOADER_HH_
18#define GZ_SIM_SYSTEMLOADER_HH_
19
20#include <list>
21#include <memory>
22#include <optional>
23#include <string>
24
25#include <sdf/Element.hh>
26#include <sdf/Plugin.hh>
27
28#include <gz/sim/Export.hh>
29#include <gz/sim/System.hh>
31
32namespace gz
33{
34 namespace sim
35 {
36 // Inline bracket to help doxygen filtering.
37 inline namespace GZ_SIM_VERSION_NAMESPACE {
38 // Forward declarations.
39 class GZ_SIM_HIDDEN SystemLoaderPrivate;
40
43 class GZ_SIM_VISIBLE SystemLoader
44 {
46 public: explicit SystemLoader();
47
49 public: ~SystemLoader();
50
53 public: void AddSystemPluginPath(const std::string &_path);
54
58 public: std::optional<SystemPluginPtr> LoadPlugin(
59 const sdf::Plugin &_plugin);
60
63 public: std::string PrettyStr() const;
64
68
71 };
72 }
74 }
75}
76#endif // GZ_SIM_SYSTEMLOADER_HH_