From 49008b722036bdadc235167f665f2aea5b4cb54c 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_ejson.py | 2 +- ejson/Array.cpp | 14 ++++---- ejson/{Array.h => Array.hpp} | 6 ++-- ejson/Boolean.cpp | 6 ++-- ejson/{Boolean.h => Boolean.hpp} | 4 +-- ejson/Document.cpp | 8 ++--- ejson/{Document.h => Document.hpp} | 10 +++--- ejson/FilePos.cpp | 2 +- ejson/{FilePos.h => FilePos.hpp} | 2 +- ejson/Null.cpp | 6 ++-- ejson/{Null.h => Null.hpp} | 4 +-- ejson/Number.cpp | 6 ++-- ejson/{Number.h => Number.hpp} | 4 +-- ejson/Object.cpp | 6 ++-- ejson/{Object.h => Object.hpp} | 8 ++--- ejson/String.cpp | 6 ++-- ejson/{String.h => String.hpp} | 4 +-- ejson/Value.cpp | 8 ++--- ejson/{Value.h => Value.hpp} | 22 ++++++------ ejson/debug.cpp | 2 +- ejson/{debug.h => debug.hpp} | 2 +- ejson/{ejson.h => ejson.hpp} | 2 +- ejson/internal/Array.cpp | 16 ++++----- ejson/internal/{Array.h => Array.hpp} | 4 +-- ejson/internal/Boolean.cpp | 6 ++-- ejson/internal/{Boolean.h => Boolean.hpp} | 4 +-- ejson/internal/Document.cpp | 18 +++++----- ejson/internal/{Document.h => Document.hpp} | 10 +++--- ejson/internal/Null.cpp | 6 ++-- ejson/internal/{Null.h => Null.hpp} | 4 +-- ejson/internal/Number.cpp | 6 ++-- ejson/internal/{Number.h => Number.hpp} | 4 +-- ejson/internal/Object.cpp | 16 ++++----- ejson/internal/{Object.h => Object.hpp} | 6 ++-- ejson/internal/String.cpp | 10 +++--- ejson/internal/{String.h => String.hpp} | 4 +-- ejson/internal/Value.cpp | 6 ++-- ejson/internal/{Value.h => Value.hpp} | 22 ++++++------ ejson/{iterator.h => iterator.hpp} | 4 +-- ejson/valueType.cpp | 4 +-- ejson/{valueType.h => valueType.hpp} | 0 lutin_ejson.py | 40 ++++++++++----------- sample/main.cpp | 8 ++--- sample/read.cpp | 6 ++-- sample/{read.h => read.hpp} | 0 sample/write.cpp | 6 ++-- sample/{write.h => write.hpp} | 0 test/test.cpp | 22 ++++++------ test/{testAll.h => testAll.hpp} | 2 +- test/{testBoolean.h => testBoolean.hpp} | 2 +- test/{testCommon.h => testCommon.hpp} | 6 ++-- test/{testDocument.h => testDocument.hpp} | 2 +- test/{testNull.h => testNull.hpp} | 2 +- test/{testNumber.h => testNumber.hpp} | 2 +- 54 files changed, 191 insertions(+), 191 deletions(-) rename ejson/{Array.h => Array.hpp} (96%) rename ejson/{Boolean.h => Boolean.hpp} (95%) rename ejson/{Document.h => Document.hpp} (95%) rename ejson/{FilePos.h => FilePos.hpp} (98%) rename ejson/{Null.h => Null.hpp} (93%) rename ejson/{Number.h => Number.hpp} (97%) rename ejson/{Object.h => Object.hpp} (97%) rename ejson/{String.h => String.hpp} (96%) rename ejson/{Value.h => Value.hpp} (94%) rename ejson/{debug.h => debug.hpp} (97%) rename ejson/{ejson.h => ejson.hpp} (83%) rename ejson/internal/{Array.h => Array.hpp} (97%) rename ejson/internal/{Boolean.h => Boolean.hpp} (96%) rename ejson/internal/{Document.h => Document.hpp} (95%) rename ejson/internal/{Null.h => Null.hpp} (94%) rename ejson/internal/{Number.h => Number.hpp} (97%) rename ejson/internal/{Object.h => Object.hpp} (98%) rename ejson/internal/{String.h => String.hpp} (96%) rename ejson/internal/{Value.h => Value.hpp} (93%) rename ejson/{iterator.h => iterator.hpp} (98%) rename ejson/{valueType.h => valueType.hpp} (100%) rename sample/{read.h => read.hpp} (100%) rename sample/{write.h => write.hpp} (100%) rename test/{testAll.h => testAll.hpp} (99%) rename test/{testBoolean.h => testBoolean.hpp} (98%) rename test/{testCommon.h => testCommon.hpp} (94%) rename test/{testDocument.h => testDocument.hpp} (93%) rename test/{testNull.h => testNull.hpp} (96%) rename test/{testNumber.h => testNumber.hpp} (96%) diff --git a/doxy_ejson.py b/doxy_ejson.py index b29c480..8f072e7 100644 --- a/doxy_ejson.py +++ b/doxy_ejson.py @@ -26,7 +26,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/ejson/Array.cpp b/ejson/Array.cpp index 015f71f..9dd8ac1 100644 --- a/ejson/Array.cpp +++ b/ejson/Array.cpp @@ -3,13 +3,13 @@ * @copyright 2011, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file) */ -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include ejson::Array::Array(ememory::SharedPtr _internalValue) : ejson::Value(_internalValue) { diff --git a/ejson/Array.h b/ejson/Array.hpp similarity index 96% rename from ejson/Array.h rename to ejson/Array.hpp index dcb87d0..ffdeb58 100644 --- a/ejson/Array.h +++ b/ejson/Array.hpp @@ -5,9 +5,9 @@ */ #pragma once -#include -#include -#include +#include +#include +#include namespace ejson { /** diff --git a/ejson/Boolean.cpp b/ejson/Boolean.cpp index 19f8f30..2b1bdf5 100644 --- a/ejson/Boolean.cpp +++ b/ejson/Boolean.cpp @@ -4,9 +4,9 @@ * @license APACHE v2.0 (see license file) */ -#include -#include -#include +#include +#include +#include ejson::Boolean::Boolean(ememory::SharedPtr _internalValue) : diff --git a/ejson/Boolean.h b/ejson/Boolean.hpp similarity index 95% rename from ejson/Boolean.h rename to ejson/Boolean.hpp index 741dde3..b3d65a7 100644 --- a/ejson/Boolean.h +++ b/ejson/Boolean.hpp @@ -5,8 +5,8 @@ */ #pragma once -#include -#include +#include +#include namespace ejson { /** diff --git a/ejson/Document.cpp b/ejson/Document.cpp index ebb7e35..f832c14 100644 --- a/ejson/Document.cpp +++ b/ejson/Document.cpp @@ -3,10 +3,10 @@ * @copyright 2011, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file) */ -#include -#include -#include -#include +#include +#include +#include +#include ejson::Document::Document(ememory::SharedPtr _internalValue) : ejson::Object(_internalValue) { diff --git a/ejson/Document.h b/ejson/Document.hpp similarity index 95% rename from ejson/Document.h rename to ejson/Document.hpp index a0ae522..8f5add0 100644 --- a/ejson/Document.h +++ b/ejson/Document.hpp @@ -5,12 +5,12 @@ */ #pragma once -#include +#include #include -#include -#include -#include -#include +#include +#include +#include +#include namespace ejson { /** diff --git a/ejson/FilePos.cpp b/ejson/FilePos.cpp index 1d3ce00..2ac3991 100644 --- a/ejson/FilePos.cpp +++ b/ejson/FilePos.cpp @@ -4,7 +4,7 @@ * @license APACHE v2.0 (see license file) */ -#include +#include ejson::FilePos::FilePos() : m_col(0), diff --git a/ejson/FilePos.h b/ejson/FilePos.hpp similarity index 98% rename from ejson/FilePos.h rename to ejson/FilePos.hpp index 6b6c65e..9d44408 100644 --- a/ejson/FilePos.h +++ b/ejson/FilePos.hpp @@ -5,7 +5,7 @@ */ #pragma once -#include +#include namespace ejson { /** diff --git a/ejson/Null.cpp b/ejson/Null.cpp index 95ed1f1..339a67d 100644 --- a/ejson/Null.cpp +++ b/ejson/Null.cpp @@ -3,9 +3,9 @@ * @copyright 2011, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file) */ -#include -#include -#include +#include +#include +#include ejson::Null::Null(ememory::SharedPtr _internalValue) : ejson::Value(_internalValue) { diff --git a/ejson/Null.h b/ejson/Null.hpp similarity index 93% rename from ejson/Null.h rename to ejson/Null.hpp index ffc5d11..ea69b99 100644 --- a/ejson/Null.h +++ b/ejson/Null.hpp @@ -5,8 +5,8 @@ */ #pragma once -#include -#include +#include +#include namespace ejson { /** diff --git a/ejson/Number.cpp b/ejson/Number.cpp index ec6ebce..854cfe3 100644 --- a/ejson/Number.cpp +++ b/ejson/Number.cpp @@ -3,9 +3,9 @@ * @copyright 2011, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file) */ -#include -#include -#include +#include +#include +#include ejson::Number::Number(ememory::SharedPtr _internalValue) : diff --git a/ejson/Number.h b/ejson/Number.hpp similarity index 97% rename from ejson/Number.h rename to ejson/Number.hpp index 6e6f24a..6492ed8 100644 --- a/ejson/Number.h +++ b/ejson/Number.hpp @@ -5,8 +5,8 @@ */ #pragma once -#include -#include +#include +#include namespace ejson { /** diff --git a/ejson/Object.cpp b/ejson/Object.cpp index e2def7e..a60d7d9 100644 --- a/ejson/Object.cpp +++ b/ejson/Object.cpp @@ -3,9 +3,9 @@ * @copyright 2011, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file) */ -#include -#include -#include +#include +#include +#include ejson::Object::Object(ememory::SharedPtr _internalValue) : diff --git a/ejson/Object.h b/ejson/Object.hpp similarity index 97% rename from ejson/Object.h rename to ejson/Object.hpp index 8839654..7ba698c 100644 --- a/ejson/Object.h +++ b/ejson/Object.hpp @@ -5,11 +5,11 @@ */ #pragma once -#include -#include +#include +#include #include -#include -#include +#include +#include namespace ejson { /** diff --git a/ejson/String.cpp b/ejson/String.cpp index 071b634..4f060a8 100644 --- a/ejson/String.cpp +++ b/ejson/String.cpp @@ -3,9 +3,9 @@ * @copyright 2011, Edouard DUPIN, all right reserved * @license APACHE v2.0 (see license file) */ -#include -#include -#include +#include +#include +#include ejson::String::String(ememory::SharedPtr _internalValue) : ejson::Value(_internalValue) { diff --git a/ejson/String.h b/ejson/String.hpp similarity index 96% rename from ejson/String.h rename to ejson/String.hpp index c94b98a..1d18151 100644 --- a/ejson/String.h +++ b/ejson/String.hpp @@ -5,8 +5,8 @@ */ #pragma once -#include -#include +#include +#include namespace ejson { /** diff --git a/ejson/Value.cpp b/ejson/Value.cpp index 06b4fd1..91477cf 100644 --- a/ejson/Value.cpp +++ b/ejson/Value.cpp @@ -4,10 +4,10 @@ * @license APACHE v2.0 (see license file) */ -#include -#include -#include -#include +#include +#include +#include +#include ejson::Value ejson::empty() { return ejson::Value(ememory::SharedPtr(nullptr)); diff --git a/ejson/Value.h b/ejson/Value.hpp similarity index 94% rename from ejson/Value.h rename to ejson/Value.hpp index 3c03a7b..f7814fe 100644 --- a/ejson/Value.h +++ b/ejson/Value.hpp @@ -5,11 +5,11 @@ */ #pragma once -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include /** * @brief ejson namespace containing all function for JSON interpretor @@ -208,11 +208,11 @@ namespace ejson { ejson::Value empty(); } -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include diff --git a/ejson/debug.cpp b/ejson/debug.cpp index a76f987..a0ce36a 100644 --- a/ejson/debug.cpp +++ b/ejson/debug.cpp @@ -4,7 +4,7 @@ * @license APACHE v2.0 (see license file) */ -#include +#include int32_t ejson::getLogId() { static int32_t g_val = elog::registerInstance("ejson"); diff --git a/ejson/debug.h b/ejson/debug.hpp similarity index 97% rename from ejson/debug.h rename to ejson/debug.hpp index 0144e21..6d3356b 100644 --- a/ejson/debug.h +++ b/ejson/debug.hpp @@ -5,7 +5,7 @@ */ #pragma once -#include +#include namespace ejson { int32_t getLogId(); diff --git a/ejson/ejson.h b/ejson/ejson.hpp similarity index 83% rename from ejson/ejson.h rename to ejson/ejson.hpp index 1c45951..65c1d2b 100644 --- a/ejson/ejson.h +++ b/ejson/ejson.hpp @@ -5,5 +5,5 @@ */ #pragma once -#include +#include diff --git a/ejson/internal/Array.cpp b/ejson/internal/Array.cpp index 2bc7512..52b0316 100644 --- a/ejson/internal/Array.cpp +++ b/ejson/internal/Array.cpp @@ -5,14 +5,14 @@ */ -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include ememory::SharedPtr ejson::internal::Array::create() { return ememory::SharedPtr(new ejson::internal::Array()); diff --git a/ejson/internal/Array.h b/ejson/internal/Array.hpp similarity index 97% rename from ejson/internal/Array.h rename to ejson/internal/Array.hpp index c1808c3..c744da9 100644 --- a/ejson/internal/Array.h +++ b/ejson/internal/Array.hpp @@ -5,8 +5,8 @@ */ #pragma once -#include -#include +#include +#include namespace ejson { namespace internal { diff --git a/ejson/internal/Boolean.cpp b/ejson/internal/Boolean.cpp index 0f4510e..db89b95 100644 --- a/ejson/internal/Boolean.cpp +++ b/ejson/internal/Boolean.cpp @@ -4,9 +4,9 @@ * @license APACHE v2.0 (see license file) */ -#include -#include -#include +#include +#include +#include ememory::SharedPtr ejson::internal::Boolean::create(bool _value) { return ememory::SharedPtr(new ejson::internal::Boolean(_value)); diff --git a/ejson/internal/Boolean.h b/ejson/internal/Boolean.hpp similarity index 96% rename from ejson/internal/Boolean.h rename to ejson/internal/Boolean.hpp index efdd314..0a9a5c8 100644 --- a/ejson/internal/Boolean.h +++ b/ejson/internal/Boolean.hpp @@ -5,8 +5,8 @@ */ #pragma once -#include -#include +#include +#include namespace ejson { namespace internal { diff --git a/ejson/internal/Document.cpp b/ejson/internal/Document.cpp index 18c018b..a633afd 100644 --- a/ejson/internal/Document.cpp +++ b/ejson/internal/Document.cpp @@ -4,16 +4,16 @@ * @license APACHE v2.0 (see license file) */ -#include -#include -#include +#include +#include +#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include ememory::SharedPtr ejson::internal::Document::create() { return ememory::SharedPtr(new ejson::internal::Document()); diff --git a/ejson/internal/Document.h b/ejson/internal/Document.hpp similarity index 95% rename from ejson/internal/Document.h rename to ejson/internal/Document.hpp index a2c26c6..b8b0fba 100644 --- a/ejson/internal/Document.h +++ b/ejson/internal/Document.hpp @@ -5,12 +5,12 @@ */ #pragma once -#include +#include #include -#include -#include -#include -#include +#include +#include +#include +#include namespace ejson { namespace internal { diff --git a/ejson/internal/Null.cpp b/ejson/internal/Null.cpp index 587feea..4e6fd43 100644 --- a/ejson/internal/Null.cpp +++ b/ejson/internal/Null.cpp @@ -4,9 +4,9 @@ * @license APACHE v2.0 (see license file) */ -#include -#include -#include +#include +#include +#include ememory::SharedPtr ejson::internal::Null::create() { return ememory::SharedPtr(new ejson::internal::Null()); diff --git a/ejson/internal/Null.h b/ejson/internal/Null.hpp similarity index 94% rename from ejson/internal/Null.h rename to ejson/internal/Null.hpp index 5866187..e39c31a 100644 --- a/ejson/internal/Null.h +++ b/ejson/internal/Null.hpp @@ -5,8 +5,8 @@ */ #pragma once -#include -#include +#include +#include namespace ejson { namespace internal { diff --git a/ejson/internal/Number.cpp b/ejson/internal/Number.cpp index 2bb5908..fdbad49 100644 --- a/ejson/internal/Number.cpp +++ b/ejson/internal/Number.cpp @@ -5,9 +5,9 @@ */ -#include -#include -#include +#include +#include +#include ememory::SharedPtr ejson::internal::Number::create(double _value) { return ememory::SharedPtr(new ejson::internal::Number(_value)); diff --git a/ejson/internal/Number.h b/ejson/internal/Number.hpp similarity index 97% rename from ejson/internal/Number.h rename to ejson/internal/Number.hpp index 30e0f22..445c7d8 100644 --- a/ejson/internal/Number.h +++ b/ejson/internal/Number.hpp @@ -5,8 +5,8 @@ */ #pragma once -#include -#include +#include +#include namespace ejson { namespace internal { diff --git a/ejson/internal/Object.cpp b/ejson/internal/Object.cpp index b2a5b02..1952d03 100644 --- a/ejson/internal/Object.cpp +++ b/ejson/internal/Object.cpp @@ -5,14 +5,14 @@ */ -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include ememory::SharedPtr ejson::internal::Object::create() { diff --git a/ejson/internal/Object.h b/ejson/internal/Object.hpp similarity index 98% rename from ejson/internal/Object.h rename to ejson/internal/Object.hpp index 6e1bf7b..299bc50 100644 --- a/ejson/internal/Object.h +++ b/ejson/internal/Object.hpp @@ -5,10 +5,10 @@ */ #pragma once -#include -#include +#include +#include #include -#include +#include namespace ejson { namespace internal { diff --git a/ejson/internal/String.cpp b/ejson/internal/String.cpp index b8d75ba..98a22a8 100644 --- a/ejson/internal/String.cpp +++ b/ejson/internal/String.cpp @@ -5,11 +5,11 @@ */ -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include ememory::SharedPtr ejson::internal::String::create(const std::string& _value) { return ememory::SharedPtr(new ejson::internal::String(_value)); diff --git a/ejson/internal/String.h b/ejson/internal/String.hpp similarity index 96% rename from ejson/internal/String.h rename to ejson/internal/String.hpp index fbff743..c7c4dc8 100644 --- a/ejson/internal/String.h +++ b/ejson/internal/String.hpp @@ -5,8 +5,8 @@ */ #pragma once -#include -#include +#include +#include namespace ejson { namespace internal { diff --git a/ejson/internal/Value.cpp b/ejson/internal/Value.cpp index 29fb3a3..16e80bc 100644 --- a/ejson/internal/Value.cpp +++ b/ejson/internal/Value.cpp @@ -4,9 +4,9 @@ * @license APACHE v2.0 (see license file) */ -#include -#include -#include +#include +#include +#include enum ejson::valueType ejson::internal::Value::getType() const { diff --git a/ejson/internal/Value.h b/ejson/internal/Value.hpp similarity index 93% rename from ejson/internal/Value.h rename to ejson/internal/Value.hpp index c836b97..73cc887 100644 --- a/ejson/internal/Value.h +++ b/ejson/internal/Value.hpp @@ -5,10 +5,10 @@ */ #pragma once -#include -#include -#include -#include +#include +#include +#include +#include /** * @brief ejson namespace containing all function for JSON interpretor @@ -155,11 +155,11 @@ namespace ejson { } } -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include diff --git a/ejson/iterator.h b/ejson/iterator.hpp similarity index 98% rename from ejson/iterator.h rename to ejson/iterator.hpp index 63f6658..6f48fbe 100644 --- a/ejson/iterator.h +++ b/ejson/iterator.hpp @@ -5,8 +5,8 @@ */ #pragma once -#include -#include +#include +#include namespace ejson { /** diff --git a/ejson/valueType.cpp b/ejson/valueType.cpp index 52c486d..48899be 100644 --- a/ejson/valueType.cpp +++ b/ejson/valueType.cpp @@ -4,8 +4,8 @@ * @license APACHE v2.0 (see license file) */ -#include -#include +#include +#include diff --git a/ejson/valueType.h b/ejson/valueType.hpp similarity index 100% rename from ejson/valueType.h rename to ejson/valueType.hpp diff --git a/lutin_ejson.py b/lutin_ejson.py index b2039ba..ea35fda 100644 --- a/lutin_ejson.py +++ b/lutin_ejson.py @@ -50,27 +50,27 @@ def create(target, module_name): 'ejson/internal/Value.cpp' ]) my_module.add_header_file([ - 'ejson/FilePos.h', - 'ejson/ejson.h', - 'ejson/valueType.h', - 'ejson/Document.h', - 'ejson/Array.h', - 'ejson/Boolean.h', - 'ejson/Null.h', - 'ejson/Number.h', - 'ejson/String.h', - 'ejson/Object.h', - 'ejson/Value.h', - 'ejson/iterator.h', + 'ejson/FilePos.hpp', + 'ejson/ejson.hpp', + 'ejson/valueType.hpp', + 'ejson/Document.hpp', + 'ejson/Array.hpp', + 'ejson/Boolean.hpp', + 'ejson/Null.hpp', + 'ejson/Number.hpp', + 'ejson/String.hpp', + 'ejson/Object.hpp', + 'ejson/Value.hpp', + 'ejson/iterator.hpp', 'ejson/details/iterator.hxx', - 'ejson/internal/Document.h', - 'ejson/internal/Array.h', - 'ejson/internal/Boolean.h', - 'ejson/internal/Null.h', - 'ejson/internal/Number.h', - 'ejson/internal/String.h', - 'ejson/internal/Object.h', - 'ejson/internal/Value.h' + 'ejson/internal/Document.hpp', + 'ejson/internal/Array.hpp', + 'ejson/internal/Boolean.hpp', + 'ejson/internal/Null.hpp', + 'ejson/internal/Number.hpp', + 'ejson/internal/String.hpp', + 'ejson/internal/Object.hpp', + 'ejson/internal/Value.hpp' ]) my_module.add_path(tools.get_current_path(__file__)) return my_module diff --git a/sample/main.cpp b/sample/main.cpp index e535cd9..33248cd 100644 --- a/sample/main.cpp +++ b/sample/main.cpp @@ -4,10 +4,10 @@ * @license APACHE v2.0 (see license file) */ -#include -#include -#include "read.h" -#include "write.h" +#include +#include +#include "read.hpp" +#include "write.hpp" int main(int argc, const char *argv[]) { // the only one init for etk: diff --git a/sample/read.cpp b/sample/read.cpp index f27ef34..ee94a99 100644 --- a/sample/read.cpp +++ b/sample/read.cpp @@ -4,11 +4,11 @@ * @license APACHE v2.0 (see license file) */ -#include +#include //! [ejson_sample_include] -#include +#include //! [ejson_sample_include] -#include "read.h" +#include "read.hpp" static void readFromFile() { diff --git a/sample/read.h b/sample/read.hpp similarity index 100% rename from sample/read.h rename to sample/read.hpp diff --git a/sample/write.cpp b/sample/write.cpp index c4d1d8b..55e7d39 100644 --- a/sample/write.cpp +++ b/sample/write.cpp @@ -4,9 +4,9 @@ * @license APACHE v2.0 (see license file) */ -#include -#include -#include "write.h" +#include +#include +#include "write.hpp" static void writeToFile() { ejson::Document doc; diff --git a/sample/write.h b/sample/write.hpp similarity index 100% rename from sample/write.h rename to sample/write.hpp diff --git a/test/test.cpp b/test/test.cpp index a0a6712..f4510e2 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -7,19 +7,19 @@ */ #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include -#include +#include -#include "testDocument.h" -#include "testBoolean.h" -#include "testNull.h" -#include "testNumber.h" -#include "testAll.h" +#include "testDocument.hpp" +#include "testBoolean.hpp" +#include "testNull.hpp" +#include "testNumber.hpp" +#include "testAll.hpp" int main(int argc, const char *argv[]) { // init Google test : diff --git a/test/testAll.h b/test/testAll.hpp similarity index 99% rename from test/testAll.h rename to test/testAll.hpp index 939e110..2e2c617 100644 --- a/test/testAll.h +++ b/test/testAll.hpp @@ -7,7 +7,7 @@ */ #pragma once -#include "testCommon.h" +#include "testCommon.hpp" #include TEST(TestAll, testBaseObject) { diff --git a/test/testBoolean.h b/test/testBoolean.hpp similarity index 98% rename from test/testBoolean.h rename to test/testBoolean.hpp index 7391c9e..8a2d062 100644 --- a/test/testBoolean.h +++ b/test/testBoolean.hpp @@ -7,7 +7,7 @@ */ #pragma once -#include "testCommon.h" +#include "testCommon.hpp" #include diff --git a/test/testCommon.h b/test/testCommon.hpp similarity index 94% rename from test/testCommon.h rename to test/testCommon.hpp index 6c7ae65..7548f79 100644 --- a/test/testCommon.h +++ b/test/testCommon.hpp @@ -7,9 +7,9 @@ */ #pragma once -#include -#include -#include +#include +#include +#include // _errorPos : -1 : no error , 1 : parsing error, 2 generation error, 3 comparaison error ???? static void localTest(const std::string& _ref, const std::string& _input, int32_t _errorPos) { diff --git a/test/testDocument.h b/test/testDocument.hpp similarity index 93% rename from test/testDocument.h rename to test/testDocument.hpp index 8a70fc3..efd1d24 100644 --- a/test/testDocument.h +++ b/test/testDocument.hpp @@ -7,7 +7,7 @@ */ #pragma once -#include "testCommon.h" +#include "testCommon.hpp" #include static std::string refOutputDocument("{\n}\n"); diff --git a/test/testNull.h b/test/testNull.hpp similarity index 96% rename from test/testNull.h rename to test/testNull.hpp index 0784eb2..e42378f 100644 --- a/test/testNull.h +++ b/test/testNull.hpp @@ -7,7 +7,7 @@ */ #pragma once -#include "testCommon.h" +#include "testCommon.hpp" #include diff --git a/test/testNumber.h b/test/testNumber.hpp similarity index 96% rename from test/testNumber.h rename to test/testNumber.hpp index 0dd973d..675bc8b 100644 --- a/test/testNumber.h +++ b/test/testNumber.hpp @@ -7,7 +7,7 @@ */ #pragma once -#include "testCommon.h" +#include "testCommon.hpp" #include static std::string refOutputNumber("{\n\t\"tmpElement\": 956256\n}\n");