Skip to content

Commit

Permalink
Use .hpp for header extension as proposed #568
Browse files Browse the repository at this point in the history
Here are exceptions:
./kido/lcpsolver/matrix.h
./kido/lcpsolver/misc.h
./kido/lcpsolver/lcp.h
./kido/lcpsolver/error.h
./kido/lcpsolver/common.h
./kido/lcpsolver/odeconfig.h
./unittests/gtest/include/gtest/gtest_pred_impl.h
./unittests/gtest/include/gtest/gtest-spi.h
./unittests/gtest/include/gtest/gtest-message.h
./unittests/gtest/include/gtest/internal/gtest-filepath.h
./unittests/gtest/include/gtest/internal/gtest-string.h
./unittests/gtest/include/gtest/internal/gtest-tuple.h
./unittests/gtest/include/gtest/internal/gtest-linked_ptr.h
./unittests/gtest/include/gtest/internal/gtest-type-util.h
./unittests/gtest/include/gtest/internal/gtest-param-util.h
./unittests/gtest/include/gtest/internal/gtest-internal.h
./unittests/gtest/include/gtest/internal/gtest-port.h
./unittests/gtest/include/gtest/internal/gtest-death-test-internal.h
./unittests/gtest/include/gtest/internal/gtest-param-util-generated.h
./unittests/gtest/include/gtest/gtest_prod.h
./unittests/gtest/include/gtest/gtest-printers.h
./unittests/gtest/include/gtest/gtest-death-test.h
./unittests/gtest/include/gtest/gtest.h
./unittests/gtest/include/gtest/gtest-param-test.h
./unittests/gtest/include/gtest/gtest-test-part.h
./unittests/gtest/include/gtest/gtest-typed-test.h
./unittests/gtest/src/gtest-internal-inl.h
  • Loading branch information
jslee02 committed Jan 13, 2016
1 parent cb4dbea commit eb38332
Show file tree
Hide file tree
Showing 493 changed files with 1,369 additions and 1,371 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,8 @@ message(STATUS "[ Configured files ]")

# Generate the kido config file
# Ref: http://www.vtk.org/Wiki/CMake:How_To_Write_Platform_Checks
set(KIDO_CONFIG_IN ${CMAKE_SOURCE_DIR}/kido/config.h.in)
set(KIDO_CONFIG_OUT ${CMAKE_BINARY_DIR}/kido/config.h)
set(KIDO_CONFIG_IN ${CMAKE_SOURCE_DIR}/kido/config.hpp.in)
set(KIDO_CONFIG_OUT ${CMAKE_BINARY_DIR}/kido/config.hpp)
message(STATUS ${KIDO_CONFIG_OUT})
configure_file(${KIDO_CONFIG_IN} ${KIDO_CONFIG_OUT} @ONLY)
install(FILES ${KIDO_CONFIG_OUT} DESTINATION include/kido)
Expand Down
2 changes: 1 addition & 1 deletion apps/addDeleteSkels/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
###############################################
# apps/addDeleteSkels
file(GLOB addDeleteSkels_srcs "*.cpp")
file(GLOB addDeleteSkels_hdrs "*.h")
file(GLOB addDeleteSkels_hdrs "*.hpp")
add_executable(addDeleteSkels ${addDeleteSkels_srcs} ${addDeleteSkels_hdrs})
target_link_libraries(addDeleteSkels kido)
set_target_properties(addDeleteSkels PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
4 changes: 2 additions & 2 deletions apps/addDeleteSkels/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@

#include <iostream>

#include "kido/kido.h"
#include "kido/kido.hpp"

#include "MyWindow.h"
#include "MyWindow.hpp"

int main(int argc, char* argv[]) {
// create and initialize the world
Expand Down
2 changes: 1 addition & 1 deletion apps/addDeleteSkels/MyWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#include "MyWindow.h"
#include "MyWindow.hpp"

MyWindow::MyWindow()
: SimWindow() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#ifndef APPS_ADDDELETESKELS_MYWINDOW_H_
#define APPS_ADDDELETESKELS_MYWINDOW_H_

#include "kido/kido.h"
#include "kido/kido.hpp"

/// \brief
class MyWindow : public kido::gui::SimWindow {
Expand Down
2 changes: 1 addition & 1 deletion apps/atlasSimbicon/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
###############################################
# apps/atlasSimbicon
file(GLOB atlasSimbicon_srcs "*.cpp")
file(GLOB atlasSimbicon_hdrs "*.h")
file(GLOB atlasSimbicon_hdrs "*.hpp")
add_executable(atlasSimbicon ${atlasSimbicon_srcs} ${atlasSimbicon_hdrs})
target_link_libraries(atlasSimbicon kido)
set_target_properties(atlasSimbicon PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
8 changes: 4 additions & 4 deletions apps/atlasSimbicon/Controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#include "apps/atlasSimbicon/Controller.h"
#include "apps/atlasSimbicon/Controller.hpp"

#include "apps/atlasSimbicon/State.h"
#include "apps/atlasSimbicon/StateMachine.h"
#include "apps/atlasSimbicon/TerminalCondition.h"
#include "apps/atlasSimbicon/State.hpp"
#include "apps/atlasSimbicon/StateMachine.hpp"
#include "apps/atlasSimbicon/TerminalCondition.hpp"

using namespace std;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

#include <Eigen/Dense>

#include "kido/kido.h"
#include "kido/kido.hpp"

class StateMachine;

Expand Down
4 changes: 2 additions & 2 deletions apps/atlasSimbicon/Humanoid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#include "apps/atlasSimbicon/Humanoid.h"
#include "apps/atlasSimbicon/Humanoid.hpp"

#include "apps/atlasSimbicon/State.h"
#include "apps/atlasSimbicon/State.hpp"

// Macro for functions not implemented yet
#define NOT_YET(FUNCTION) std::cout << #FUNCTION\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

#include <Eigen/Dense>

#include "kido/kido.h"
#include "kido/kido.hpp"

class State;

Expand Down
6 changes: 3 additions & 3 deletions apps/atlasSimbicon/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@

#include <iostream>

#include "kido/kido.h"
#include "kido/kido.hpp"

#include "apps/atlasSimbicon/MyWindow.h"
#include "apps/atlasSimbicon/Controller.h"
#include "apps/atlasSimbicon/MyWindow.hpp"
#include "apps/atlasSimbicon/Controller.hpp"

using namespace std;
using namespace Eigen;
Expand Down
2 changes: 1 addition & 1 deletion apps/atlasSimbicon/MyWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#include "apps/atlasSimbicon/MyWindow.h"
#include "apps/atlasSimbicon/MyWindow.hpp"

//==============================================================================
MyWindow::MyWindow(Controller* _controller)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
#ifndef APPS_ATLASROBOT_MYWINDOW_H_
#define APPS_ATLASROBOT_MYWINDOW_H_

#include "kido/kido.h"
#include "kido/kido.hpp"

#include "apps/atlasSimbicon/Controller.h"
#include "apps/atlasSimbicon/Controller.hpp"

/// \brief class MyWindow
class MyWindow : public kido::gui::SimWindow
Expand Down
4 changes: 2 additions & 2 deletions apps/atlasSimbicon/State.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#include "apps/atlasSimbicon/State.h"
#include "apps/atlasSimbicon/State.hpp"

#include "apps/atlasSimbicon/TerminalCondition.h"
#include "apps/atlasSimbicon/TerminalCondition.hpp"

// Macro for functions not implemented yet
#define NOT_YET(FUNCTION) std::cout << #FUNCTION\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

#include <Eigen/Dense>

#include "kido/kido.h"
#include "kido/kido.hpp"

#define ATLAS_DEFAULT_KD 1.0 // No more than 1.0
#define ATLAS_DEFAULT_KP 1e+3
Expand Down
4 changes: 2 additions & 2 deletions apps/atlasSimbicon/StateMachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#include "apps/atlasSimbicon/StateMachine.h"
#include "apps/atlasSimbicon/StateMachine.hpp"

#include "apps/atlasSimbicon/State.h"
#include "apps/atlasSimbicon/State.hpp"

// Macro for functions not implemented yet
#define NOT_YET(FUNCTION) std::cout << #FUNCTION\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

#include <Eigen/Dense>

#include "kido/kido.h"
#include "kido/kido.hpp"

class State;

Expand Down
4 changes: 2 additions & 2 deletions apps/atlasSimbicon/TerminalCondition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#include "apps/atlasSimbicon/TerminalCondition.h"
#include "apps/atlasSimbicon/TerminalCondition.hpp"

#include "apps/atlasSimbicon/State.h"
#include "apps/atlasSimbicon/State.hpp"

// Macro for functions not implemented yet
#define NOT_YET(FUNCTION) std::cout << #FUNCTION\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

#include <Eigen/Dense>

#include "kido/kido.h"
#include "kido/kido.hpp"

class State;

Expand Down
2 changes: 1 addition & 1 deletion apps/bipedStand/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
###############################################
# apps/bipedStand
file(GLOB bipedStand_srcs "*.cpp")
file(GLOB bipedStand_hdrs "*.h")
file(GLOB bipedStand_hdrs "*.hpp")
add_executable(bipedStand ${bipedStand_srcs} ${bipedStand_hdrs})
target_link_libraries(bipedStand kido)
set_target_properties(bipedStand PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
2 changes: 1 addition & 1 deletion apps/bipedStand/Controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#include "apps/bipedStand/Controller.h"
#include "apps/bipedStand/Controller.hpp"

Controller::Controller(kido::dynamics::SkeletonPtr _skel,
double _t) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

#include <Eigen/Dense>

#include "kido/kido.h"
#include "kido/kido.hpp"

class Controller {
public:
Expand Down
4 changes: 2 additions & 2 deletions apps/bipedStand/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
#include <iostream>
#include <vector>

#include "kido/kido.h"
#include "kido/kido.hpp"

#include "apps/bipedStand/MyWindow.h"
#include "apps/bipedStand/MyWindow.hpp"

int main(int argc, char* argv[]) {
// create and initialize the world
Expand Down
2 changes: 1 addition & 1 deletion apps/bipedStand/MyWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#include "apps/bipedStand/MyWindow.h"
#include "apps/bipedStand/MyWindow.hpp"

MyWindow::MyWindow(): SimWindow() {
mForce = Eigen::Vector3d::Zero();
Expand Down
4 changes: 2 additions & 2 deletions apps/bipedStand/MyWindow.h → apps/bipedStand/MyWindow.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@

#include <Eigen/Dense>

#include "kido/kido.h"
#include "kido/kido.hpp"

#include "apps/bipedStand/Controller.h"
#include "apps/bipedStand/Controller.hpp"

class MyWindow : public kido::gui::SimWindow {
public:
Expand Down
2 changes: 1 addition & 1 deletion apps/hardcodedDesign/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# apps/hardcodedDesign

file(GLOB hardcodedDesign_srcs "*.cpp")
file(GLOB hardcodedDesign_hdrs "*.h")
file(GLOB hardcodedDesign_hdrs "*.hpp")
add_executable(hardcodedDesign ${hardcodedDesign_srcs} ${hardcodedDesign_hdrs})
target_link_libraries(hardcodedDesign kido)
set_target_properties(hardcodedDesign PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
4 changes: 2 additions & 2 deletions apps/hardcodedDesign/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
* direction.
*/

#include "kido/kido.h"
#include "kido/kido.hpp"

#include "apps/hardcodedDesign/MyWindow.h"
#include "apps/hardcodedDesign/MyWindow.hpp"

int main(int argc, char* argv[]) {
// Create Left Leg skeleton
Expand Down
2 changes: 1 addition & 1 deletion apps/hardcodedDesign/MyWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
* @brief Simple example of a skeleton created from scratch.
*/

#include "apps/hardcodedDesign/MyWindow.h"
#include "apps/hardcodedDesign/MyWindow.hpp"

void MyWindow::draw() {
glDisable(GL_LIGHTING);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
#include <cstdio>
#include <cstdarg>

#include "kido/kido.h"
#include "kido/kido.hpp"

class MyWindow : public kido::gui::Win3D {
public:
Expand Down
2 changes: 1 addition & 1 deletion apps/hybridDynamics/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
###############################################
# apps/hybridDynamics
file(GLOB hybridDynamics_srcs "*.cpp")
file(GLOB hybridDynamics_hdrs "*.h")
file(GLOB hybridDynamics_hdrs "*.hpp")
add_executable(hybridDynamics ${hybridDynamics_srcs} ${hybridDynamics_hdrs})
target_link_libraries(hybridDynamics kido)
set_target_properties(hybridDynamics PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
4 changes: 2 additions & 2 deletions apps/hybridDynamics/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
*/

#include <iostream>
#include "kido/kido.h"
#include "MyWindow.h"
#include "kido/kido.hpp"
#include "MyWindow.hpp"

int main(int argc, char* argv[])
{
Expand Down
2 changes: 1 addition & 1 deletion apps/hybridDynamics/MyWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#include "MyWindow.h"
#include "MyWindow.hpp"

//==============================================================================
MyWindow::MyWindow()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#ifndef APPS_HYBRIDDYNAMICS_MYWINDOW_H_
#define APPS_HYBRIDDYNAMICS_MYWINDOW_H_

#include "kido/kido.h"
#include "kido/kido.hpp"

/// \brief
class MyWindow : public kido::gui::SimWindow
Expand Down
2 changes: 1 addition & 1 deletion apps/jointConstraints/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
###############################################
# apps/jointConstraints
file(GLOB jointConstraints_srcs "*.cpp")
file(GLOB jointConstraints_hdrs "*.h")
file(GLOB jointConstraints_hdrs "*.hpp")
add_executable(jointConstraints ${jointConstraints_srcs} ${jointConstraints_hdrs})
target_link_libraries(jointConstraints kido)
set_target_properties(jointConstraints PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
2 changes: 1 addition & 1 deletion apps/jointConstraints/Controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#include "apps/jointConstraints/Controller.h"
#include "apps/jointConstraints/Controller.hpp"

using namespace kido;
using namespace dynamics;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

#include <Eigen/Dense>

#include "kido/kido.h"
#include "kido/kido.hpp"

class Controller
{
Expand Down
4 changes: 2 additions & 2 deletions apps/jointConstraints/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#include "apps/jointConstraints/MyWindow.h"
#include "apps/jointConstraints/MyWindow.hpp"

#include <iostream>

#include "kido/kido.h"
#include "kido/kido.hpp"

using namespace kido;
using namespace dynamics;
Expand Down
2 changes: 1 addition & 1 deletion apps/jointConstraints/MyWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#include "apps/jointConstraints/MyWindow.h"
#include "apps/jointConstraints/MyWindow.hpp"

using namespace kido;
using namespace math;
Expand Down
Loading

0 comments on commit eb38332

Please sign in to comment.