Skip to content

Commit

Permalink
update include statements and header guards to match new headers
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelarguedas committed Feb 9, 2018
1 parent 91e2e13 commit cac42ff
Show file tree
Hide file tree
Showing 15 changed files with 64 additions and 51 deletions.
14 changes: 8 additions & 6 deletions include/class_loader/class_loader.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, Willow Garage, Inc.
* All rights reserved.
*
Expand All @@ -10,7 +12,7 @@
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of the Willow Garage, Inc. nor the names of its
* * Neither the name of the copyright holders nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
Expand All @@ -27,8 +29,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef CLASS_LOADER__CLASS_LOADER_H_
#define CLASS_LOADER__CLASS_LOADER_H_
#ifndef CLASS_LOADER__CLASS_LOADER_HPP_
#define CLASS_LOADER__CLASS_LOADER_HPP_

#include <boost/bind.hpp>
#include <boost/shared_ptr.hpp>
Expand All @@ -39,8 +41,8 @@

#include "console_bridge/console.h"

#include "class_loader/class_loader_core.h"
#include "class_loader/class_loader_register_macro.h"
#include "class_loader/class_loader_core.hpp"
#include "class_loader/register_macro.hpp"

#if __cplusplus >= 201103L
#include <memory>
Expand Down Expand Up @@ -315,4 +317,4 @@ class ClassLoader
} // namespace class_loader


#endif // CLASS_LOADER__CLASS_LOADER_H_
#endif // CLASS_LOADER__CLASS_LOADER_HPP_
14 changes: 8 additions & 6 deletions include/class_loader/class_loader_core.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, Willow Garage, Inc.
* All rights reserved.
*
Expand All @@ -10,7 +12,7 @@
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of the Willow Garage, Inc. nor the names of its
* * Neither the name of the copyright holders nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
Expand All @@ -27,8 +29,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef CLASS_LOADER__CLASS_LOADER_CORE_H_
#define CLASS_LOADER__CLASS_LOADER_CORE_H_
#ifndef CLASS_LOADER__CLASS_LOADER_CORE_HPP_
#define CLASS_LOADER__CLASS_LOADER_CORE_HPP_

#include <boost/thread/recursive_mutex.hpp>
#include <cstddef>
Expand All @@ -41,8 +43,8 @@

#include "Poco/SharedLibrary.h"

#include "class_loader/meta_object.h"
#include "class_loader/class_loader_exceptions.h"
#include "class_loader/exceptions.hpp"
#include "class_loader/meta_object.hpp"

/**
* @note This header file is the internal implementation of the plugin system which is exposed via the ClassLoader class
Expand Down Expand Up @@ -340,4 +342,4 @@ void unloadLibrary(const std::string & library_path, ClassLoader * loader);
} // namespace class_loader_private
} // namespace class_loader

#endif // CLASS_LOADER__CLASS_LOADER_CORE_H_
#endif // CLASS_LOADER__CLASS_LOADER_CORE_HPP_
12 changes: 7 additions & 5 deletions include/class_loader/exceptions.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, Willow Garage, Inc.
* All rights reserved.
*
Expand All @@ -10,7 +12,7 @@
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of the Willow Garage, Inc. nor the names of its
* * Neither the name of the copyright holders nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
Expand All @@ -27,10 +29,10 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef CLASS_LOADER__CLASS_LOADER_EXCEPTIONS_H_
#define CLASS_LOADER__CLASS_LOADER_EXCEPTIONS_H_
#ifndef CLASS_LOADER__EXCEPTIONS_HPP_
#define CLASS_LOADER__EXCEPTIONS_HPP_

#include <exception>
#include <stdexcept>
#include <string>

namespace class_loader
Expand Down Expand Up @@ -92,4 +94,4 @@ class NoClassLoaderExistsException : public ClassLoaderException
};

} // namespace class_loader
#endif // CLASS_LOADER__CLASS_LOADER_EXCEPTIONS_H_
#endif // CLASS_LOADER__EXCEPTIONS_HPP_
10 changes: 6 additions & 4 deletions include/class_loader/meta_object.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, Willow Garage, Inc.
* All rights reserved.
*
Expand All @@ -10,7 +12,7 @@
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of the Willow Garage, Inc. nor the names of its
* * Neither the name of the copyright holders nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
Expand All @@ -30,8 +32,8 @@
// Note: This header defines a simplication of Poco::MetaObject
// that allows us to tag MetaObjects with an associated library name.

#ifndef CLASS_LOADER__META_OBJECT_H_
#define CLASS_LOADER__META_OBJECT_H_
#ifndef CLASS_LOADER__META_OBJECT_HPP_
#define CLASS_LOADER__META_OBJECT_HPP_

#include <console_bridge/console.h>
#include <typeinfo>
Expand Down Expand Up @@ -198,4 +200,4 @@ class MetaObject : public AbstractMetaObject<B>
} // namespace class_loader_private
} // namespace class_loader

#endif // CLASS_LOADER__META_OBJECT_H_
#endif // CLASS_LOADER__META_OBJECT_HPP_
13 changes: 8 additions & 5 deletions include/class_loader/multi_library_class_loader.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, Willow Garage, Inc.
* All rights reserved.
*
Expand All @@ -10,7 +12,7 @@
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of the Willow Garage, Inc. nor the names of its
* * Neither the name of the copyright holders nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
Expand All @@ -27,16 +29,17 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef CLASS_LOADER__MULTI_LIBRARY_CLASS_LOADER_H_
#define CLASS_LOADER__MULTI_LIBRARY_CLASS_LOADER_H_
#ifndef CLASS_LOADER__MULTI_LIBRARY_CLASS_LOADER_HPP_
#define CLASS_LOADER__MULTI_LIBRARY_CLASS_LOADER_HPP_

#include <boost/thread.hpp>
#include <cstddef>
#include <map>
#include <string>
#include <vector>

#include "class_loader/class_loader.h"
#include "console_bridge/console.h"
#include "class_loader/class_loader.hpp"

namespace class_loader
{
Expand Down Expand Up @@ -324,4 +327,4 @@ class MultiLibraryClassLoader


} // namespace class_loader
#endif // CLASS_LOADER__MULTI_LIBRARY_CLASS_LOADER_H_
#endif // CLASS_LOADER__MULTI_LIBRARY_CLASS_LOADER_HPP_
11 changes: 5 additions & 6 deletions include/class_loader/register_macro.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of the Willow Garage, Inc. nor the names of its
* * Neither the name of the copyright holders nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
Expand All @@ -27,13 +27,12 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef CLASS_LOADER__CLASS_LOADER_REGISTER_MACRO_H_
#define CLASS_LOADER__CLASS_LOADER_REGISTER_MACRO_H_
#ifndef CLASS_LOADER__REGISTER_MACRO_HPP_
#define CLASS_LOADER__REGISTER_MACRO_HPP_

#include <string>

#include "class_loader/class_loader_core.h"

#include "class_loader/class_loader_core.hpp"
#include "console_bridge/console.h"

#define CLASS_LOADER_REGISTER_CLASS_INTERNAL_WITH_MESSAGE(Derived, Base, UniqueID, Message) \
Expand Down Expand Up @@ -70,4 +69,4 @@
#define CLASS_LOADER_REGISTER_CLASS(Derived, Base) \
CLASS_LOADER_REGISTER_CLASS_WITH_MESSAGE(Derived, Base, "")

#endif // CLASS_LOADER__CLASS_LOADER_REGISTER_MACRO_H_
#endif // CLASS_LOADER__REGISTER_MACRO_HPP_
2 changes: 1 addition & 1 deletion src/class_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#include "class_loader/class_loader.h"
#include "class_loader/class_loader.hpp"

#include <string>

Expand Down
7 changes: 5 additions & 2 deletions src/class_loader_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#include "class_loader/class_loader_core.h"
#include "class_loader/class_loader.h"
#include "class_loader/class_loader_core.hpp"
#include "class_loader/class_loader.hpp"

#include <Poco/SharedLibrary.h>

#include <cassert>
#include <cstddef>
#include <string>
Expand Down
4 changes: 2 additions & 2 deletions src/meta_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@

#include <string>

#include "class_loader/meta_object.h"
#include "class_loader/class_loader.h"
#include "class_loader/meta_object.hpp"
#include "class_loader/class_loader.hpp"

namespace class_loader
{
Expand Down
2 changes: 1 addition & 1 deletion src/multi_library_class_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#include "class_loader/multi_library_class_loader.h"
#include "class_loader/multi_library_class_loader.hpp"

#include <cstddef>
#include <string>
Expand Down
6 changes: 3 additions & 3 deletions test/base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#ifndef BASE_H_
#define BASE_H_
#ifndef BASE_HPP_
#define BASE_HPP_

class Base
{
Expand All @@ -37,4 +37,4 @@ class Base
virtual void saySomething() = 0;
};

#endif // BASE_H_
#endif // BASE_HPP_
4 changes: 2 additions & 2 deletions test/plugins1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@

#include <iostream>

#include "class_loader/class_loader.h"
#include "class_loader/class_loader.hpp"

#include "./base.h"
#include "./base.hpp"

class Dog : public Base
{
Expand Down
4 changes: 2 additions & 2 deletions test/plugins2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@

#include <iostream>

#include "class_loader/class_loader.h"
#include "class_loader/class_loader.hpp"

#include "./base.h"
#include "./base.hpp"

class Robot : public Base
{
Expand Down
6 changes: 3 additions & 3 deletions test/unique_ptr_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#include <class_loader/class_loader.h>
#include <class_loader/multi_library_class_loader.h>
#include <class_loader/class_loader.hpp>
#include <class_loader/multi_library_class_loader.hpp>

#include <gtest/gtest.h>
#include <boost/thread.hpp>
Expand All @@ -40,7 +40,7 @@
#include <string>
#include <vector>

#include "./base.h"
#include "./base.hpp"

const std::string LIBRARY_1 = class_loader::systemLibraryFormat("class_loader_TestPlugins1"); // NOLINT
const std::string LIBRARY_2 = class_loader::systemLibraryFormat("class_loader_TestPlugins2"); // NOLINT
Expand Down
6 changes: 3 additions & 3 deletions test/utest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
#include <string>
#include <vector>

#include "class_loader/class_loader.h"
#include "class_loader/multi_library_class_loader.h"
#include "class_loader/class_loader.hpp"
#include "class_loader/multi_library_class_loader.hpp"

#include "gtest/gtest.h"

#include "./base.h"
#include "./base.hpp"

const std::string LIBRARY_1 = class_loader::systemLibraryFormat("class_loader_TestPlugins1"); // NOLINT
const std::string LIBRARY_2 = class_loader::systemLibraryFormat("class_loader_TestPlugins2"); // NOLINT
Expand Down

0 comments on commit cac42ff

Please sign in to comment.