Skip to content

Commit

Permalink
Migrate include statements
Browse files Browse the repository at this point in the history
Signed-off-by: methylDragon <[email protected]>
  • Loading branch information
methylDragon committed Aug 19, 2022
1 parent 1712cf5 commit 4a53b07
Show file tree
Hide file tree
Showing 61 changed files with 99 additions and 99 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ set(IGN_CMAKE_VER ${ignition-cmake2_VERSION_MAJOR})
#============================================================================
ign_configure_project(
REPLACE_IGNITION_INCLUDE_PATH gz/plugin
VERSION_SUFFIX pre1
VERSION_SUFFIX
)

#============================================================================
Expand Down
6 changes: 3 additions & 3 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ simply need to make sure that the compiler can resolve the names of the classes
that you pass to it (and there will be a compilation error if it cannot).

It is now possible to register plugins across **multiple translation units**
within a single library. To do this, use `#include <ignition/plugin/Register.hh>`
within a single library. To do this, use `#include <gz/plugin/Register.hh>`
in **exactly one** of your library's translation units, and then use
`#include <ignition/plugin/RegisterMore.hh>` in all other translation units. It
`#include <gz/plugin/RegisterMore.hh>` in all other translation units. It
does not matter which translation unit you choose to be the "first", as long as
you choose exactly one.

Expand All @@ -84,7 +84,7 @@ then you should continue to use it. It does not have a replacement in `ign-plugi

Here is a list of things that you *should* replace:

* `#include <gz/common/PluginLoader.hh>` should be replaced with `#include <ignition/plugin/Loader.hh>`
* `#include <gz/common/PluginLoader.hh>` should be replaced with `#include <gz/plugin/Loader.hh>`
* `gz::common::PluginLoader` should be replaced with `gz::plugin::Loader`
* When calling `Loader::Instantiate("....")` do **NOT** prefix the class name with `::`. E.g. `"::some_namespace::MyClass"` should now be `"some_namespace::MyClass"`.

Expand Down
2 changes: 1 addition & 1 deletion core/include/gz/plugin/EnablePluginFromThis.hh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include <memory>

#include <ignition/plugin/PluginPtr.hh>
#include <gz/plugin/PluginPtr.hh>

namespace gz
{
Expand Down
2 changes: 1 addition & 1 deletion core/include/gz/plugin/Factory.hh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <memory>
#include <tuple>

#include <ignition/plugin/EnablePluginFromThis.hh>
#include <gz/plugin/EnablePluginFromThis.hh>

namespace gz
{
Expand Down
4 changes: 2 additions & 2 deletions core/include/gz/plugin/Info.hh
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
#include <string>
#include <unordered_map>

#include <ignition/utilities/SuppressWarning.hh>
#include <gz/utilities/SuppressWarning.hh>

#include <ignition/plugin/Export.hh>
#include <gz/plugin/Export.hh>

namespace gz
{
Expand Down
6 changes: 3 additions & 3 deletions core/include/gz/plugin/Plugin.hh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
#include <map>
#include <string>

#include <ignition/utilities/SuppressWarning.hh>
#include <gz/utilities/SuppressWarning.hh>

#include <ignition/plugin/Export.hh>
#include <ignition/plugin/Info.hh>
#include <gz/plugin/Export.hh>
#include <gz/plugin/Info.hh>

namespace gz
{
Expand Down
2 changes: 1 addition & 1 deletion core/include/gz/plugin/PluginPtr.hh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <string>
#include <memory>

#include <ignition/plugin/Plugin.hh>
#include <gz/plugin/Plugin.hh>

namespace gz
{
Expand Down
2 changes: 1 addition & 1 deletion core/include/gz/plugin/SpecializedPlugin.hh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#define GZ_PLUGIN_SPECIALIZEDPLUGIN_HH_

#include <memory>
#include "ignition/plugin/Plugin.hh"
#include "gz/plugin/Plugin.hh"

namespace gz
{
Expand Down
4 changes: 2 additions & 2 deletions core/include/gz/plugin/SpecializedPluginPtr.hh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
#ifndef GZ_PLUGIN_SPECIALIZEDPLUGINPTR_HH_
#define GZ_PLUGIN_SPECIALIZEDPLUGINPTR_HH_

#include "ignition/plugin/PluginPtr.hh"
#include "ignition/plugin/SpecializedPlugin.hh"
#include "gz/plugin/PluginPtr.hh"
#include "gz/plugin/SpecializedPlugin.hh"

namespace gz
{
Expand Down
2 changes: 1 addition & 1 deletion core/include/gz/plugin/WeakPluginPtr.hh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include <memory>

#include <ignition/plugin/PluginPtr.hh>
#include <gz/plugin/PluginPtr.hh>

namespace gz
{
Expand Down
4 changes: 2 additions & 2 deletions core/include/gz/plugin/detail/Factory.hh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
#include <memory>
#include <utility>

#include <ignition/utilities/SuppressWarning.hh>
#include <gz/utilities/SuppressWarning.hh>

#include <ignition/plugin/Factory.hh>
#include <gz/plugin/Factory.hh>

namespace gz
{
Expand Down
2 changes: 1 addition & 1 deletion core/include/gz/plugin/detail/Plugin.hh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include <memory>
#include <string>
#include <ignition/plugin/Plugin.hh>
#include <gz/plugin/Plugin.hh>

namespace gz
{
Expand Down
4 changes: 2 additions & 2 deletions core/include/gz/plugin/detail/PluginPtr.hh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

#include <memory>
#include <utility>
#include <ignition/plugin/PluginPtr.hh>
#include <ignition/plugin/utility.hh>
#include <gz/plugin/PluginPtr.hh>
#include <gz/plugin/utility.hh>

namespace gz
{
Expand Down
2 changes: 1 addition & 1 deletion core/include/gz/plugin/detail/SpecializedPlugin.hh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#define GZ_PLUGIN_DETAIL_SPECIALIZEDPLUGIN_HH_

#include <memory>
#include "ignition/plugin/SpecializedPlugin.hh"
#include "gz/plugin/SpecializedPlugin.hh"

// This preprocessor token should only be used by the unittest that is
// responsible for checking that the specialized routines are being used to
Expand Down
2 changes: 1 addition & 1 deletion core/include/gz/plugin/utility.hh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <string>

#include <gz/plugin/detail/utility.hh>
#include <ignition/plugin/Export.hh>
#include <gz/plugin/Export.hh>

namespace gz
{
Expand Down
4 changes: 2 additions & 2 deletions core/src/EnablePluginFromThis.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
*
*/

#include <ignition/plugin/EnablePluginFromThis.hh>
#include <ignition/plugin/WeakPluginPtr.hh>
#include <gz/plugin/EnablePluginFromThis.hh>
#include <gz/plugin/WeakPluginPtr.hh>

namespace gz
{
Expand Down
2 changes: 1 addition & 1 deletion core/src/Factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <thread>
#include <vector>

#include <ignition/plugin/Factory.hh>
#include <gz/plugin/Factory.hh>

namespace
{
Expand Down
2 changes: 1 addition & 1 deletion core/src/Factory_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <string>
#include <vector>

#include <ignition/plugin/Factory.hh>
#include <gz/plugin/Factory.hh>

// Dev Note (MXG): These tests are just here to make sure that the template and
// inheritance schemes for Factories are working as expected. If the
Expand Down
2 changes: 1 addition & 1 deletion core/src/Info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
*/

#include <ignition/plugin/Info.hh>
#include <gz/plugin/Info.hh>

namespace gz
{
Expand Down
2 changes: 1 addition & 1 deletion core/src/Info_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include <gtest/gtest.h>

#include <ignition/plugin/Info.hh>
#include <gz/plugin/Info.hh>

struct SomeInterface
{
Expand Down
4 changes: 2 additions & 2 deletions core/src/Plugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
#include <cassert>
#include <iostream>

#include "ignition/plugin/Plugin.hh"
#include "ignition/plugin/Info.hh"
#include "gz/plugin/Plugin.hh"
#include "gz/plugin/Info.hh"

namespace gz
{
Expand Down
2 changes: 1 addition & 1 deletion core/src/WeakPluginPtr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
*/

#include <ignition/plugin/WeakPluginPtr.hh>
#include <gz/plugin/WeakPluginPtr.hh>

namespace gz
{
Expand Down
2 changes: 1 addition & 1 deletion core/src/utility.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <cxxabi.h>
#endif

#include <ignition/plugin/utility.hh>
#include <gz/plugin/utility.hh>

namespace gz
{
Expand Down
2 changes: 1 addition & 1 deletion core/src/utility_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include <gtest/gtest.h>

#include <ignition/plugin/utility.hh>
#include <gz/plugin/utility.hh>

using namespace gz::plugin;

Expand Down
4 changes: 2 additions & 2 deletions examples/integrators.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
#include <cmath>
#include <set>

#include <ignition/plugin/Loader.hh>
#include <ignition/common/SystemPaths.hh>
#include <gz/plugin/Loader.hh>
#include <gz/common/SystemPaths.hh>

#include "plugins/integrators.hh"

Expand Down
2 changes: 1 addition & 1 deletion examples/plugins/ExponentialODE.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include <cmath>

#include <ignition/plugin/Register.hh>
#include <gz/plugin/Register.hh>

#include "integrators.hh"

Expand Down
2 changes: 1 addition & 1 deletion examples/plugins/ForwardEuler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include <cassert>

#include <ignition/plugin/Register.hh>
#include <gz/plugin/Register.hh>

#include "integrators.hh"

Expand Down
2 changes: 1 addition & 1 deletion examples/plugins/PolynomialODE.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include <cmath>

#include <ignition/plugin/Register.hh>
#include <gz/plugin/Register.hh>

#include "integrators.hh"

Expand Down
2 changes: 1 addition & 1 deletion examples/plugins/RungeKutta4.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include <cassert>

#include <ignition/plugin/Register.hh>
#include <gz/plugin/Register.hh>

#include "integrators.hh"

Expand Down
6 changes: 3 additions & 3 deletions examples/plugins/robot.hh
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@

#include <utility>

#include <ignition/math/Vector2.hh>
#include <ignition/math/Vector3.hh>
#include <gz/math/Vector2.hh>
#include <gz/math/Vector3.hh>

#include <ignition/plugin/Register.hh>
#include <gz/plugin/Register.hh>

namespace gz
{
Expand Down
6 changes: 3 additions & 3 deletions examples/robot.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@

#include "plugins/robot.hh"

#include <ignition/common/SystemPaths.hh>
#include <ignition/plugin/SpecializedPluginPtr.hh>
#include <ignition/plugin/Loader.hh>
#include <gz/common/SystemPaths.hh>
#include <gz/plugin/SpecializedPluginPtr.hh>
#include <gz/plugin/Loader.hh>

#ifdef HAVE_BOOST_PROGRAM_OPTIONS
#include <boost/program_options.hpp>
Expand Down
6 changes: 3 additions & 3 deletions loader/include/gz/plugin/Loader.hh
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
#include <typeinfo>
#include <unordered_set>

#include <ignition/utilities/SuppressWarning.hh>
#include <gz/utilities/SuppressWarning.hh>

#include <ignition/plugin/loader/Export.hh>
#include <ignition/plugin/PluginPtr.hh>
#include <gz/plugin/loader/Export.hh>
#include <gz/plugin/PluginPtr.hh>

namespace gz
{
Expand Down
4 changes: 2 additions & 2 deletions loader/include/gz/plugin/detail/Loader.hh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
#include <memory>
#include <string>
#include <unordered_set>
#include <ignition/plugin/EnablePluginFromThis.hh>
#include <ignition/plugin/Loader.hh>
#include <gz/plugin/EnablePluginFromThis.hh>
#include <gz/plugin/Loader.hh>

namespace gz
{
Expand Down
8 changes: 4 additions & 4 deletions loader/src/Loader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
#include <unordered_map>
#include <vector>

#include <ignition/plugin/Info.hh>
#include <ignition/plugin/Loader.hh>
#include <ignition/plugin/Plugin.hh>
#include <gz/plugin/Info.hh>
#include <gz/plugin/Loader.hh>
#include <gz/plugin/Plugin.hh>

#include <ignition/plugin/utility.hh>
#include <gz/plugin/utility.hh>

namespace gz
{
Expand Down
6 changes: 3 additions & 3 deletions loader/src/Loader_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@

#include <algorithm>

#include <ignition/plugin/Loader.hh>
#include <ignition/plugin/config.hh>
#include <gz/plugin/Loader.hh>
#include <gz/plugin/config.hh>

#include <ignition/plugin/SpecializedPluginPtr.hh>
#include <gz/plugin/SpecializedPluginPtr.hh>

/////////////////////////////////////////////////
TEST(Loader, InitialNoInterfacesImplemented)
Expand Down
4 changes: 2 additions & 2 deletions loader/src/gz.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#include <iostream>
#include <string>

#include "ignition/plugin/Loader.hh"
#include "ignition/plugin/config.hh"
#include "gz/plugin/Loader.hh"
#include "gz/plugin/config.hh"

using namespace gz;
using namespace plugin;
Expand Down
2 changes: 1 addition & 1 deletion loader/src/gz_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <string>

#include "gtest/gtest.h"
#include "ignition/plugin/Loader.hh"
#include "gz/plugin/Loader.hh"

#ifdef _MSC_VER
# define popen _popen
Expand Down
Loading

0 comments on commit 4a53b07

Please sign in to comment.