From e103df58cdebc9ec3a905144e554054f39b5f1bb Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Fri, 30 Sep 2016 22:28:36 +0200 Subject: [PATCH] [DEV/API] change .h in .hpp --- doxy_esignal.py | 2 +- esignal/Base.cpp | 8 ++++---- esignal/{Base.h => Base.hpp} | 6 +++--- esignal/Connection.cpp | 4 ++-- esignal/{Connection.h => Connection.hpp} | 6 +++--- esignal/{Interface.h => Interface.hpp} | 2 +- esignal/InterfaceData.cpp | 8 ++++---- esignal/{InterfaceData.h => InterfaceData.hpp} | 0 esignal/{Signal.h => Signal.hpp} | 10 +++++----- esignal/debug.cpp | 2 +- esignal/{debug.h => debug.hpp} | 2 +- esignal/details/Signal.cpp | 8 ++++---- lutin_esignal.py | 12 ++++++------ sample/sampleAll.cpp | 6 +++--- test/declareSignals.cpp | 2 +- test/main.cpp | 6 +++--- test/test_isignal.cpp | 8 ++++---- test/test_signal_class_func.cpp | 8 ++++---- test/test_signal_counter.cpp | 8 ++++---- test/test_signal_recursive.cpp | 8 ++++---- test/test_signal_shared_ptr_func.cpp | 8 ++++---- test/test_signal_static_func.cpp | 8 ++++---- 22 files changed, 66 insertions(+), 66 deletions(-) rename esignal/{Base.h => Base.hpp} (97%) rename esignal/{Connection.h => Connection.hpp} (94%) rename esignal/{Interface.h => Interface.hpp} (93%) rename esignal/{InterfaceData.h => InterfaceData.hpp} (100%) rename esignal/{Signal.h => Signal.hpp} (99%) rename esignal/{debug.h => debug.hpp} (97%) diff --git a/doxy_esignal.py b/doxy_esignal.py index 1ae730c..b408b7c 100644 --- a/doxy_esignal.py +++ b/doxy_esignal.py @@ -25,7 +25,7 @@ def create(target, module_name): '*operator<<*', ]) my_module.add_exclude_file([ - 'debug.h', + 'debug.hpp', ]) my_module.add_file_patterns([ '*.h', diff --git a/esignal/Base.cpp b/esignal/Base.cpp index 695c48a..f05c43f 100644 --- a/esignal/Base.cpp +++ b/esignal/Base.cpp @@ -6,10 +6,10 @@ * @license APACHE v2.0 (see license file) */ -#include -#include -#include -#include +#include +#include +#include +#include size_t esignal::BaseInternal::s_uid = 1; int64_t esignal::BaseInternal::s_uidSignalEmit = 1; diff --git a/esignal/Base.h b/esignal/Base.hpp similarity index 97% rename from esignal/Base.h rename to esignal/Base.hpp index 04b813b..8d17f52 100644 --- a/esignal/Base.h +++ b/esignal/Base.hpp @@ -8,9 +8,9 @@ #pragma once #include -#include -#include -#include +#include +#include +#include #include #include #include diff --git a/esignal/Connection.cpp b/esignal/Connection.cpp index 50aebc5..df61d97 100644 --- a/esignal/Connection.cpp +++ b/esignal/Connection.cpp @@ -5,8 +5,8 @@ * * @license APACHE v2.0 (see license file) */ -#include -#include +#include +#include esignal::Connection::Connection(): m_data(nullptr), diff --git a/esignal/Connection.h b/esignal/Connection.hpp similarity index 94% rename from esignal/Connection.h rename to esignal/Connection.hpp index bdb0267..74dc394 100644 --- a/esignal/Connection.h +++ b/esignal/Connection.hpp @@ -8,9 +8,9 @@ #pragma once #include -#include -#include -#include +#include +#include +#include namespace esignal { /** diff --git a/esignal/Interface.h b/esignal/Interface.hpp similarity index 93% rename from esignal/Interface.h rename to esignal/Interface.hpp index 108818e..6efd742 100644 --- a/esignal/Interface.h +++ b/esignal/Interface.hpp @@ -9,7 +9,7 @@ #include #include -#include +#include namespace esignal { /** diff --git a/esignal/InterfaceData.cpp b/esignal/InterfaceData.cpp index 9fd36e6..75e85c8 100644 --- a/esignal/InterfaceData.cpp +++ b/esignal/InterfaceData.cpp @@ -6,10 +6,10 @@ * @license APACHE v2.0 (see license file) */ -#include -#include -#include -#include +#include +#include +#include +#include esignal::InterfaceData::InterfaceData() { diff --git a/esignal/InterfaceData.h b/esignal/InterfaceData.hpp similarity index 100% rename from esignal/InterfaceData.h rename to esignal/InterfaceData.hpp diff --git a/esignal/Signal.h b/esignal/Signal.hpp similarity index 99% rename from esignal/Signal.h rename to esignal/Signal.hpp index a57ce24..621ff81 100644 --- a/esignal/Signal.h +++ b/esignal/Signal.hpp @@ -9,12 +9,12 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include -#include +#include namespace esignal { diff --git a/esignal/debug.cpp b/esignal/debug.cpp index 26b1bee..6a123a2 100644 --- a/esignal/debug.cpp +++ b/esignal/debug.cpp @@ -6,7 +6,7 @@ * @license APACHE v2.0 (see license file) */ -#include +#include int32_t esignal::getLogId() { static int32_t g_val = elog::registerInstance("esignal"); diff --git a/esignal/debug.h b/esignal/debug.hpp similarity index 97% rename from esignal/debug.h rename to esignal/debug.hpp index f0e3feb..539c499 100644 --- a/esignal/debug.h +++ b/esignal/debug.hpp @@ -7,7 +7,7 @@ */ #pragma once -#include +#include namespace esignal { int32_t getLogId(); diff --git a/esignal/details/Signal.cpp b/esignal/details/Signal.cpp index 9bf9285..c657cb0 100644 --- a/esignal/details/Signal.cpp +++ b/esignal/details/Signal.cpp @@ -6,10 +6,10 @@ * @license APACHE v2.0 (see license file) */ #include -#include -#include -#include -#include +#include +#include +#include +#include // void generic signal ESIGNAL_DECLARE_SIGNAL(); diff --git a/lutin_esignal.py b/lutin_esignal.py index c69872e..6a6cbdd 100644 --- a/lutin_esignal.py +++ b/lutin_esignal.py @@ -38,12 +38,12 @@ def create(target, module_name): 'esignal/details/Signal.cpp', ]) my_module.add_header_file([ - 'esignal/debug.h', - 'esignal/Interface.h', - 'esignal/InterfaceData.h', - 'esignal/Base.h', - 'esignal/Signal.h', - 'esignal/Connection.h', + 'esignal/debug.hpp', + 'esignal/Interface.hpp', + 'esignal/InterfaceData.hpp', + 'esignal/Base.hpp', + 'esignal/Signal.hpp', + 'esignal/Connection.hpp', 'esignal/details/Signal.hxx', ]) my_module.compile_version("c++", 2011) diff --git a/sample/sampleAll.cpp b/sample/sampleAll.cpp index 7dd87a8..1621a23 100644 --- a/sample/sampleAll.cpp +++ b/sample/sampleAll.cpp @@ -5,11 +5,11 @@ * * @license APACHE v2.0 (see license file) */ -#include -#include +#include +#include //! [esignal_sample_declare] -#include +#include //! [esignal_sample_declare] void declareSignals() { diff --git a/test/declareSignals.cpp b/test/declareSignals.cpp index 9b712d0..354e6b2 100644 --- a/test/declareSignals.cpp +++ b/test/declareSignals.cpp @@ -6,7 +6,7 @@ * @license APACHE v2.0 (see license file) */ #include -#include +#include ESIGNAL_DECLARE_SIGNAL(int32_t, std::string); diff --git a/test/main.cpp b/test/main.cpp index ec40de1..1ee2025 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -7,9 +7,9 @@ */ #define NAME "Empty" -#include -#include -#include +#include +#include +#include #include int main(int _argc, const char *_argv[]) { diff --git a/test/test_isignal.cpp b/test/test_isignal.cpp index f60c5e4..b342fd3 100644 --- a/test/test_isignal.cpp +++ b/test/test_isignal.cpp @@ -8,10 +8,10 @@ #define NAME "SingleArg" #include -#include -#include -#include -#include +#include +#include +#include +#include class testISignal : public esignal::Interface { diff --git a/test/test_signal_class_func.cpp b/test/test_signal_class_func.cpp index 6f82027..a8c6f8b 100644 --- a/test/test_signal_class_func.cpp +++ b/test/test_signal_class_func.cpp @@ -8,10 +8,10 @@ #define NAME "SingleArg" #include -#include -#include -#include -#include +#include +#include +#include +#include class testCallback { public: diff --git a/test/test_signal_counter.cpp b/test/test_signal_counter.cpp index 3686f5a..661ed43 100644 --- a/test/test_signal_counter.cpp +++ b/test/test_signal_counter.cpp @@ -8,10 +8,10 @@ #define NAME "SingleArg" #include -#include -#include -#include -#include +#include +#include +#include +#include class testCounter { public: diff --git a/test/test_signal_recursive.cpp b/test/test_signal_recursive.cpp index eca0175..21e9490 100644 --- a/test/test_signal_recursive.cpp +++ b/test/test_signal_recursive.cpp @@ -8,10 +8,10 @@ #define NAME "SingleArg" #include -#include -#include -#include -#include +#include +#include +#include +#include static esignal::Signal* signalll; static int32_t tmpRetInt32 = 0; diff --git a/test/test_signal_shared_ptr_func.cpp b/test/test_signal_shared_ptr_func.cpp index a4c043a..951b08a 100644 --- a/test/test_signal_shared_ptr_func.cpp +++ b/test/test_signal_shared_ptr_func.cpp @@ -8,10 +8,10 @@ #define NAME "SingleArg" #include -#include -#include -#include -#include +#include +#include +#include +#include class testCallbackShared : public ememory::EnableSharedFromThis { public: diff --git a/test/test_signal_static_func.cpp b/test/test_signal_static_func.cpp index 52eae09..dead029 100644 --- a/test/test_signal_static_func.cpp +++ b/test/test_signal_static_func.cpp @@ -8,10 +8,10 @@ #define NAME "SingleArg" #include -#include -#include -#include -#include +#include +#include +#include +#include static int32_t tmpRetInt32 = 0; static std::string tmpRetString = "";