[DEV/API] change .h in .hpp

This commit is contained in:
Edouard DUPIN 2016-09-30 22:28:36 +02:00
parent 1ab071e3ce
commit 50e270b5a1
35 changed files with 146 additions and 141 deletions

View File

@ -4,14 +4,14 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <dollar/Engine.h> #include <dollar/Engine.hpp>
#include <dollar/debug.h> #include <dollar/debug.hpp>
#include <dollar/Rectangle.h> #include <dollar/Rectangle.hpp>
#include <dollar/tools.h> #include <dollar/tools.hpp>
#include <etk/os/FSNode.h> #include <etk/os/FSNode.hpp>
#include <dollar/EngineN.h> #include <dollar/EngineN.hpp>
#include <dollar/EngineP.h> #include <dollar/EngineP.hpp>
#include <dollar/EnginePPlus.h> #include <dollar/EnginePPlus.hpp>
dollar::Engine::Engine(): dollar::Engine::Engine():

View File

@ -6,13 +6,13 @@
#pragma once #pragma once
#include <etk/math/Vector2D.h> #include <etk/math/Vector2D.hpp>
#include <dollar/Results.hpp>
#include <dollar/Gesture.hpp>
#include <ememory/memory.hpp>
#include <limits> #include <limits>
#include <iostream> #include <iostream>
#include <dollar/Results.h>
#include <string> #include <string>
#include <dollar/Gesture.h>
#include <ememory/memory.h>
/** /**
* @brief dollar library main namespace * @brief dollar library main namespace

View File

@ -4,13 +4,15 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <dollar/EngineN.h> #include <dollar/EngineN.hpp>
#include <dollar/debug.h> #include <dollar/debug.hpp>
#include <dollar/Rectangle.h> #include <dollar/Rectangle.hpp>
#include <dollar/tools.h> #include <dollar/tools.hpp>
#include <etk/os/FSNode.h> #include <etk/os/FSNode.hpp>
#include <math.h> #include <math.h>
#include <algorithm> #include <algorithm>
#define MAX_FLOAT std::numeric_limits<float>::max() #define MAX_FLOAT std::numeric_limits<float>::max()
// simple decree to radian convertion // simple decree to radian convertion
#define DEG_2_RAD(ddd) (ddd*M_PI/180.0) #define DEG_2_RAD(ddd) (ddd*M_PI/180.0)

View File

@ -6,14 +6,14 @@
#pragma once #pragma once
#include <etk/math/Vector2D.h> #include <etk/math/Vector2D.hpp>
#include <dollar/Results.hpp>
#include <dollar/Gesture.hpp>
#include <dollar/Engine.hpp>
#include <dollar/GestureN.hpp>
#include <limits> #include <limits>
#include <iostream> #include <iostream>
#include <dollar/Results.h>
#include <string> #include <string>
#include <dollar/Gesture.h>
#include <dollar/Engine.h>
#include <dollar/GestureN.h>
namespace dollar { namespace dollar {
class EngineN : public dollar::Engine { class EngineN : public dollar::Engine {

View File

@ -4,11 +4,11 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <dollar/EngineP.h> #include <dollar/EngineP.hpp>
#include <dollar/debug.h> #include <dollar/debug.hpp>
#include <dollar/Rectangle.h> #include <dollar/Rectangle.hpp>
#include <dollar/tools.h> #include <dollar/tools.hpp>
#include <etk/os/FSNode.h> #include <etk/os/FSNode.hpp>
#include <math.h> #include <math.h>
#include <algorithm> #include <algorithm>
#define MAX_FLOAT std::numeric_limits<float>::max() #define MAX_FLOAT std::numeric_limits<float>::max()

View File

@ -6,13 +6,13 @@
#pragma once #pragma once
#include <etk/math/Vector2D.h> #include <etk/math/Vector2D.hpp>
#include <dollar/Results.hpp>
#include <dollar/Engine.hpp>
#include <dollar/GestureP.hpp>
#include <limits> #include <limits>
#include <iostream> #include <iostream>
#include <dollar/Results.h>
#include <string> #include <string>
#include <dollar/Engine.h>
#include <dollar/GestureP.h>
namespace dollar { namespace dollar {
class EngineP : public dollar::Engine { class EngineP : public dollar::Engine {

View File

@ -4,17 +4,17 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <dollar/EnginePPlus.h> #include <dollar/EnginePPlus.hpp>
#include <dollar/debug.h> #include <dollar/debug.hpp>
#include <dollar/Rectangle.h> #include <dollar/Rectangle.hpp>
#include <dollar/tools.h> #include <dollar/tools.hpp>
#include <etk/os/FSNode.h> #include <etk/os/FSNode.hpp>
#include <math.h> #include <math.h>
#include <algorithm> #include <algorithm>
#define MAX_FLOAT std::numeric_limits<float>::max() #define MAX_FLOAT std::numeric_limits<float>::max()
dollar::EnginePPlus::EnginePPlus(): dollar::EnginePPlus::EnginePPlus():
m_PPlusDistance(0.10f), m_PPlusDistance(0.10f),
m_PPlusExcludeDistance(0.2*0.2), m_PPlusExcludeDistance(0.2*0.2),

View File

@ -6,13 +6,13 @@
#pragma once #pragma once
#include <etk/math/Vector2D.h> #include <etk/math/Vector2D.hpp>
#include <dollar/Results.hpp>
#include <dollar/Engine.hpp>
#include <dollar/GesturePPlus.hpp>
#include <limits> #include <limits>
#include <iostream> #include <iostream>
#include <dollar/Results.h>
#include <string> #include <string>
#include <dollar/Engine.h>
#include <dollar/GesturePPlus.h>
namespace dollar { namespace dollar {
class EnginePPlus : public dollar::Engine { class EnginePPlus : public dollar::Engine {

View File

@ -4,13 +4,13 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <dollar/debug.h> #include <dollar/debug.hpp>
#include <dollar/Gesture.h> #include <dollar/Gesture.hpp>
#include <dollar/tools.h> #include <dollar/tools.hpp>
#include <etk/os/FSNode.h> #include <etk/os/FSNode.hpp>
#include <ejson/ejson.h> #include <ejson/ejson.hpp>
#include <esvg/esvg.h> #include <esvg/esvg.hpp>
#include <etk/stdTools.h> #include <etk/stdTools.hpp>
static std::vector<std::vector<vec2>> loadPointsJson(const ejson::Document& _doc) { static std::vector<std::vector<vec2>> loadPointsJson(const ejson::Document& _doc) {

View File

@ -3,11 +3,12 @@
* @copyright 2016, Edouard DUPIN, all right reserved * @copyright 2016, Edouard DUPIN, all right reserved
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#pragma once #pragma once
#include <etk/math/Vector2D.hpp>
#include <ememory/memory.hpp>
#include <string> #include <string>
#include <etk/math/Vector2D.h>
#include <ememory/memory.h>
namespace dollar { namespace dollar {
class Gesture { class Gesture {

View File

@ -4,13 +4,13 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <dollar/debug.h> #include <dollar/debug.hpp>
#include <dollar/GestureN.h> #include <dollar/GestureN.hpp>
#include <dollar/tools.h> #include <dollar/tools.hpp>
#include <etk/os/FSNode.h> #include <etk/os/FSNode.hpp>
#include <ejson/ejson.h> #include <ejson/ejson.hpp>
#include <esvg/esvg.h> #include <esvg/esvg.hpp>
#include <etk/stdTools.h> #include <etk/stdTools.hpp>

View File

@ -3,12 +3,12 @@
* @copyright 2016, Edouard DUPIN, all right reserved * @copyright 2016, Edouard DUPIN, all right reserved
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#pragma once #pragma once
#include <string>
#include <etk/math/Vector2D.h>
#include <dollar/Gesture.h> #include <etk/math/Vector2D.hpp>
#include <dollar/Gesture.hpp>
#include <string>
namespace dollar { namespace dollar {
class GestureN : public dollar::Gesture { class GestureN : public dollar::Gesture {

View File

@ -3,11 +3,12 @@
* @copyright 2016, Edouard DUPIN, all right reserved * @copyright 2016, Edouard DUPIN, all right reserved
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#pragma once #pragma once
#include <etk/math/Vector2D.hpp>
#include <dollar/Gesture.hpp>
#include <string> #include <string>
#include <etk/math/Vector2D.h>
#include <dollar/Gesture.h>
namespace dollar { namespace dollar {
class GestureP : public dollar::Gesture { class GestureP : public dollar::Gesture {

View File

@ -4,13 +4,13 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <dollar/debug.h> #include <dollar/debug.hpp>
#include <dollar/GesturePPlus.h> #include <dollar/GesturePPlus.hpp>
#include <dollar/tools.h> #include <dollar/tools.hpp>
#include <etk/os/FSNode.h> #include <etk/os/FSNode.hpp>
#include <ejson/ejson.h> #include <ejson/ejson.hpp>
#include <esvg/esvg.h> #include <esvg/esvg.hpp>
#include <etk/stdTools.h> #include <etk/stdTools.hpp>
dollar::GesturePPlus::GesturePPlus() { dollar::GesturePPlus::GesturePPlus() {

View File

@ -3,11 +3,12 @@
* @copyright 2016, Edouard DUPIN, all right reserved * @copyright 2016, Edouard DUPIN, all right reserved
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#pragma once #pragma once
#include <etk/math/Vector2D.hpp>
#include <dollar/Gesture.hpp>
#include <string> #include <string>
#include <etk/math/Vector2D.h>
#include <dollar/Gesture.h>
namespace dollar { namespace dollar {
class GesturePPlus : public dollar::Gesture { class GesturePPlus : public dollar::Gesture {

View File

@ -3,8 +3,8 @@
* @copyright 2016, Edouard DUPIN, all right reserved * @copyright 2016, Edouard DUPIN, all right reserved
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <dollar/Rectangle.h> #include <dollar/Rectangle.hpp>
#include <dollar/debug.h> #include <dollar/debug.hpp>
#define MAX_FLOAT std::numeric_limits<float>::max() #define MAX_FLOAT std::numeric_limits<float>::max()

View File

@ -5,11 +5,11 @@
*/ */
#pragma once #pragma once
#include <etk/math/Vector2D.hpp>
#include <math.h> #include <math.h>
#include <string> #include <string>
#include <list> #include <list>
#include <vector> #include <vector>
#include <etk/math/Vector2D.h>
namespace dollar { namespace dollar {
/** /**

View File

@ -4,8 +4,8 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <dollar/debug.h> #include <dollar/debug.hpp>
#include <dollar/Results.h> #include <dollar/Results.hpp>
dollar::Results::Results() { dollar::Results::Results() {

View File

@ -4,7 +4,7 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <dollar/debug.h> #include <dollar/debug.hpp>
int32_t dollar::getLogId() { int32_t dollar::getLogId() {
static int32_t g_val = elog::registerInstance("dollar"); static int32_t g_val = elog::registerInstance("dollar");

View File

@ -4,11 +4,11 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <etk/types.h> #include <etk/types.hpp>
#pragma once #pragma once
#include <elog/log.h> #include <elog/log.hpp>
namespace dollar { namespace dollar {
int32_t getLogId(); int32_t getLogId();

View File

@ -4,8 +4,9 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <dollar/tools.h> #include <dollar/tools.hpp>
#include <dollar/debug.h> #include <dollar/debug.hpp>
#include <math.h> #include <math.h>
#include <algorithm> #include <algorithm>

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#pragma once #pragma once
#include <etk/types.h> #include <etk/types.hpp>
#include <etk/math/Vector2D.h> #include <etk/math/Vector2D.hpp>
#include <dollar/Rectangle.h> #include <dollar/Rectangle.hpp>
namespace dollar { namespace dollar {
/** /**

View File

@ -44,7 +44,7 @@ def create(target, module_name):
]) ])
my_module.add_header_file([ my_module.add_header_file([
'dollar/*.h', 'dollar/*.hpp',
], ],
destination_path="dollar") destination_path="dollar")

View File

@ -5,10 +5,10 @@
*/ */
#include <iostream> #include <iostream>
#include <dollar/Engine.h> #include <dollar/Engine.hpp>
#include <etk/etk.h> #include <etk/etk.hpp>
#include <test-debug/debug.h> #include <test-debug/debug.hpp>
#include <gtest/gtest.h> #include <gtest/gtest.h>
int main(int _argc, const char *_argv[]) { int main(int _argc, const char *_argv[]) {

View File

@ -5,12 +5,12 @@
*/ */
#include <iostream> #include <iostream>
#include <dollar/EnginePPlus.h> #include <dollar/EnginePPlus.hpp>
#include <dollar/tools.h> #include <dollar/tools.hpp>
#include <etk/etk.h> #include <etk/etk.hpp>
#include <test-debug/debug.h> #include <test-debug/debug.hpp>
#include <etk/os/FSNode.h> #include <etk/os/FSNode.hpp>
#include <map> #include <map>
void usage(const std::string& _progName) { void usage(const std::string& _progName) {

View File

@ -5,10 +5,10 @@
*/ */
#include <iostream> #include <iostream>
#include <dollar/Engine.h> #include <dollar/Engine.hpp>
#include <etk/etk.h> #include <etk/etk.hpp>
#include <test-debug/debug.h> #include <test-debug/debug.hpp>
void usage(const std::string& _progName) { void usage(const std::string& _progName) {
TEST_PRINT("usage:"); TEST_PRINT("usage:");

View File

@ -4,13 +4,13 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <iostream> #include <dollar/EnginePPlus.hpp>
#include <dollar/EnginePPlus.h> #include <dollar/tools.hpp>
#include <dollar/tools.h> #include <etk/etk.hpp>
#include <test-debug/debug.hpp>
#include <etk/os/FSNode.hpp>
#include <etk/etk.h> #include <iostream>
#include <test-debug/debug.h>
#include <etk/os/FSNode.h>
#include <map> #include <map>
void usage(const std::string& _progName) { void usage(const std::string& _progName) {

View File

@ -5,16 +5,16 @@
*/ */
#include <etk/types.h> #include <etk/types.hpp>
#include <ewol/ewol.h> #include <ewol/ewol.hpp>
#include <gale/context/commandLine.h> #include <gale/context/commandLine.hpp>
#include <appl/debug.h> #include <appl/debug.hpp>
#include <appl/Windows.h> #include <appl/Windows.hpp>
#include <ewol/object/Object.h> #include <ewol/object/Object.hpp>
#include <ewol/widget/Manager.h> #include <ewol/widget/Manager.hpp>
#include <ewol/context/Context.h> #include <ewol/context/Context.hpp>
#include <appl/widget/TextAreaRecognition.h> #include <appl/widget/TextAreaRecognition.hpp>
class MainApplication : public ewol::context::Application { class MainApplication : public ewol::context::Application {

View File

@ -4,14 +4,14 @@
* @license PROPRIETARY (see license file) * @license PROPRIETARY (see license file)
*/ */
#include <ewol/ewol.h> #include <ewol/ewol.hpp>
#include <appl/debug.h> #include <appl/debug.hpp>
#include <appl/Windows.h> #include <appl/Windows.hpp>
#include <ewol/widget/Label.h> #include <ewol/widget/Label.hpp>
#include <ewol/widget/Button.h> #include <ewol/widget/Button.hpp>
#include <ewol/widget/Entry.h> #include <ewol/widget/Entry.hpp>
#include <appl/widget/TextAreaRecognition.h> #include <appl/widget/TextAreaRecognition.hpp>
#include <etk/tool.h> #include <etk/tool.hpp>
appl::Windows::Windows() : appl::Windows::Windows() :
m_composer(nullptr), m_composer(nullptr),

View File

@ -5,8 +5,8 @@
*/ */
#pragma once #pragma once
#include <ewol/widget/Windows.h> #include <ewol/widget/Windows.hpp>
#include <ewol/widget/Composer.h> #include <ewol/widget/Composer.hpp>
namespace appl { namespace appl {
class Windows; class Windows;

View File

@ -5,7 +5,7 @@
*/ */
#include <appl/debug.h> #include <appl/debug.hpp>
int32_t appl::getLogId() { int32_t appl::getLogId() {
static int32_t g_val = elog::registerInstance("LGDT-tool-rec"); static int32_t g_val = elog::registerInstance("LGDT-tool-rec");

View File

@ -5,7 +5,7 @@
*/ */
#pragma once #pragma once
#include <elog/log.h> #include <elog/log.hpp>
namespace appl { namespace appl {
int32_t getLogId(); int32_t getLogId();

View File

@ -4,14 +4,13 @@
* @license PROPRIETARY (see license file) * @license PROPRIETARY (see license file)
*/ */
#include <appl/debug.h> #include <appl/debug.hpp>
#include <appl/widget/TextAreaRecognition.h> #include <appl/widget/TextAreaRecognition.hpp>
#include <ewol/object/Manager.h> #include <ewol/object/Manager.hpp>
#include <etk/tool.h> #include <etk/tool.hpp>
#include <ejson/ejson.h> #include <ejson/ejson.hpp>
#include <esvg/esvg.h> #include <esvg/esvg.hpp>
//#include <algue/sha512.h> #include <etk/os/FSNode.hpp>
#include <etk/os/FSNode.h>
appl::widget::TextAreaRecognition::TextAreaRecognition() { appl::widget::TextAreaRecognition::TextAreaRecognition() {
addObjectType("appl::widget::TextAreaRecognition"); addObjectType("appl::widget::TextAreaRecognition");

View File

@ -5,12 +5,12 @@
*/ */
#pragma once #pragma once
#include <ewol/widget/Widget.h> #include <ewol/widget/Widget.hpp>
#include <ewol/compositing/Drawing.h> #include <ewol/compositing/Drawing.hpp>
#include <ewol/compositing/Text.h> #include <ewol/compositing/Text.hpp>
#include <ewol/widget/Manager.h> #include <ewol/widget/Manager.hpp>
#include <dollar/Engine.h> #include <dollar/Engine.hpp>
namespace appl { namespace appl {
class DrawingLine { class DrawingLine {