[DEV/API] change .h in .hpp

This commit is contained in:
Edouard DUPIN 2016-10-02 15:58:37 +02:00
parent d68ea37403
commit 885397c8a7
61 changed files with 175 additions and 173 deletions

View File

@ -26,10 +26,10 @@ def create(target, module_name):
'*operator<<*',
])
my_module.add_exclude_file([
'debug.h',
'debug.hpp',
])
my_module.add_file_patterns([
'*.h',
'*.hpp',
'*.md',
])

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file)
*/
#include <exml/Attribute.h>
#include <exml/debug.h>
#include <exml/internal/Attribute.h>
#include <exml/Attribute.hpp>
#include <exml/debug.hpp>
#include <exml/internal/Attribute.hpp>
exml::Attribute::Attribute(ememory::SharedPtr<exml::internal::Node> _internalNode) :
exml::Node(_internalNode) {

View File

@ -5,7 +5,7 @@
*/
#pragma once
#include <exml/Node.h>
#include <exml/Node.hpp>
#include <vector>
namespace exml {

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file)
*/
#include <exml/debug.h>
#include <exml/AttributeList.h>
#include <exml/internal/AttributeList.h>
#include <exml/debug.hpp>
#include <exml/AttributeList.hpp>
#include <exml/internal/AttributeList.hpp>
exml::AttributeList::AttributeList(const ememory::SharedPtr<exml::internal::Node>& _internalNode) :

View File

@ -5,9 +5,9 @@
*/
#pragma once
#include <exml/Node.h>
#include <exml/Attribute.h>
#include <exml/iterator.h>
#include <exml/Node.hpp>
#include <exml/Attribute.hpp>
#include <exml/iterator.hpp>
namespace exml {
class AttributeList;

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file)
*/
#include <exml/Comment.h>
#include <exml/debug.h>
#include <exml/internal/Comment.h>
#include <exml/Comment.hpp>
#include <exml/debug.hpp>
#include <exml/internal/Comment.hpp>
exml::Comment::Comment(ememory::SharedPtr<exml::internal::Node> _internalNode) :
exml::Node(_internalNode) {

View File

@ -5,7 +5,7 @@
*/
#pragma once
#include <exml/Node.h>
#include <exml/Node.hpp>
#include <vector>
namespace exml {

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file)
*/
#include <exml/Declaration.h>
#include <exml/debug.h>
#include <exml/internal/Declaration.h>
#include <exml/Declaration.hpp>
#include <exml/debug.hpp>
#include <exml/internal/Declaration.hpp>
exml::Declaration::Declaration(ememory::SharedPtr<exml::internal::Node> _internalNode) :
exml::AttributeList(_internalNode) {

View File

@ -5,8 +5,8 @@
*/
#pragma once
#include <exml/Node.h>
#include <exml/AttributeList.h>
#include <exml/Node.hpp>
#include <exml/AttributeList.hpp>
namespace exml {
/**

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file)
*/
#include <exml/Document.h>
#include <exml/debug.h>
#include <exml/internal/Document.h>
#include <exml/Document.hpp>
#include <exml/debug.hpp>
#include <exml/internal/Document.hpp>
exml::Document::Document(ememory::SharedPtr<exml::internal::Node> _internalNode) :
exml::Element(_internalNode) {

View File

@ -5,7 +5,7 @@
*/
#pragma once
#include <exml/Element.h>
#include <exml/Element.hpp>
#include <vector>
namespace exml {

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file)
*/
#include <exml/Element.h>
#include <exml/debug.h>
#include <exml/internal/Element.h>
#include <exml/Element.hpp>
#include <exml/debug.hpp>
#include <exml/internal/Element.hpp>
exml::Element::Element(const ememory::SharedPtr<exml::internal::Node>& _internalNode) :

View File

@ -5,10 +5,10 @@
*/
#pragma once
#include <exml/Node.h>
#include <exml/Node.hpp>
#include <vector>
#include <exml/AttributeList.h>
#include <exml/iterator.h>
#include <exml/AttributeList.hpp>
#include <exml/iterator.hpp>
namespace exml {

View File

@ -3,7 +3,7 @@
* @copyright 2011, Edouard DUPIN, all right reserved
* @license APACHE v2.0 (see license file)
*/
#include <exml/FilePos.h>
#include <exml/FilePos.hpp>
exml::FilePos::FilePos() :
m_col(0),

View File

@ -5,7 +5,7 @@
*/
#pragma once
#include <etk/types.h>
#include <etk/types.hpp>
namespace exml {
/**

View File

@ -4,15 +4,15 @@
* @license APACHE v2.0 (see license file)
*/
#include <exml/Node.h>
#include <exml/internal/Node.h>
#include <exml/debug.h>
#include <exml/Attribute.h>
#include <exml/Comment.h>
#include <exml/Declaration.h>
#include <exml/Document.h>
#include <exml/Element.h>
#include <exml/Text.h>
#include <exml/Node.hpp>
#include <exml/internal/Node.hpp>
#include <exml/debug.hpp>
#include <exml/Attribute.hpp>
#include <exml/Comment.hpp>
#include <exml/Declaration.hpp>
#include <exml/Document.hpp>
#include <exml/Element.hpp>
#include <exml/Text.hpp>
std::ostream& exml::operator <<(std::ostream& _os, const exml::Node& _obj) {
_os << "{";

View File

@ -5,12 +5,12 @@
*/
#pragma once
#include <ememory/memory.h>
#include <etk/types.h>
#include <etk/math/Vector2D.h>
#include <exml/FilePos.h>
#include <exml/internal/Node.h>
#include <exml/nodeType.h>
#include <ememory/memory.hpp>
#include <etk/types.hpp>
#include <etk/math/Vector2D.hpp>
#include <exml/FilePos.hpp>
#include <exml/internal/Node.hpp>
#include <exml/nodeType.hpp>
/**
* @brief exml namespace containing all function for XML interpretor

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file)
*/
#include <exml/Text.h>
#include <exml/internal/Text.h>
#include <exml/debug.h>
#include <exml/Text.hpp>
#include <exml/internal/Text.hpp>
#include <exml/debug.hpp>
#include <regex>
exml::Text::Text(ememory::SharedPtr<exml::internal::Node> _internalNode) :

View File

@ -5,7 +5,7 @@
*/
#pragma once
#include <exml/Node.h>
#include <exml/Node.hpp>
#include <vector>
namespace exml {

View File

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

View File

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

View File

@ -1,15 +0,0 @@
/** @file
* @author Edouard DUPIN
* @copyright 2011, Edouard DUPIN, all right reserved
* @license APACHE v2.0 (see license file)
*/
#pragma once
#include <exml/Document.h>
#include <exml/Node.h>
#include <exml/Element.h>
#include <exml/Attribute.h>
#include <exml/Declaration.h>
#include <exml/Comment.h>
#include <exml/Text.h>

15
exml/exml.hpp Normal file
View File

@ -0,0 +1,15 @@
/** @file
* @author Edouard DUPIN
* @copyright 2011, Edouard DUPIN, all right reserved
* @license APACHE v2.0 (see license file)
*/
#pragma once
#include <exml/Document.hpp>
#include <exml/Node.hpp>
#include <exml/Element.hpp>
#include <exml/Attribute.hpp>
#include <exml/Declaration.hpp>
#include <exml/Comment.hpp>
#include <exml/Text.hpp>

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file)
*/
#include <exml/internal/Attribute.h>
#include <exml/debug.h>
#include <exml/internal/Document.h>
#include <exml/internal/Attribute.hpp>
#include <exml/debug.hpp>
#include <exml/internal/Document.hpp>
ememory::SharedPtr<exml::internal::Attribute> exml::internal::Attribute::create(const std::string& _name, const std::string& _value) {
return ememory::SharedPtr<exml::internal::Attribute>(new exml::internal::Attribute(_name, _value));

View File

@ -5,7 +5,7 @@
*/
#pragma once
#include <exml/internal/Node.h>
#include <exml/internal/Node.hpp>
#include <vector>
namespace exml {

View File

@ -4,8 +4,8 @@
* @license APACHE v2.0 (see license file)
*/
#include <exml/internal/AttributeList.h>
#include <exml/debug.h>
#include <exml/internal/AttributeList.hpp>
#include <exml/debug.hpp>
ememory::SharedPtr<exml::internal::Attribute> exml::internal::AttributeList::getAttr(int32_t _id) {
if ( _id < 0

View File

@ -5,9 +5,9 @@
*/
#pragma once
#include <exml/internal/Node.h>
#include <exml/internal/Node.hpp>
#include <vector>
#include <exml/internal/Attribute.h>
#include <exml/internal/Attribute.hpp>
#include <utility>
namespace exml {

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file)
*/
#include <exml/internal/Comment.h>
#include <exml/debug.h>
#include <exml/internal/Document.h>
#include <exml/internal/Comment.hpp>
#include <exml/debug.hpp>
#include <exml/internal/Document.hpp>
static bool isWhiteChar(char32_t _val) {
if( _val == ' '

View File

@ -5,7 +5,7 @@
*/
#pragma once
#include <exml/internal/Node.h>
#include <exml/internal/Node.hpp>
#include <vector>
namespace exml {

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file)
*/
#include <exml/internal/Declaration.h>
#include <exml/debug.h>
#include <exml/internal/Document.h>
#include <exml/internal/Declaration.hpp>
#include <exml/debug.hpp>
#include <exml/internal/Document.hpp>
/* basic declaration have 3 attributes:
version

View File

@ -5,7 +5,7 @@
*/
#pragma once
#include <exml/internal/AttributeList.h>
#include <exml/internal/AttributeList.hpp>
namespace exml {
namespace internal {

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file)
*/
#include <exml/internal/Document.h>
#include <exml/debug.h>
#include <etk/os/FSNode.h>
#include <exml/internal/Document.hpp>
#include <exml/debug.hpp>
#include <etk/os/FSNode.hpp>
ememory::SharedPtr<exml::internal::Document> exml::internal::Document::create() {
return ememory::SharedPtr<exml::internal::Document>(new exml::internal::Document());

View File

@ -5,7 +5,7 @@
*/
#pragma once
#include <exml/internal/Element.h>
#include <exml/internal/Element.hpp>
#include <vector>
namespace exml {

View File

@ -4,13 +4,13 @@
* @license APACHE v2.0 (see license file)
*/
#include <exml/internal/Element.h>
#include <exml/debug.h>
#include <exml/internal/Text.h>
#include <exml/internal/Comment.h>
#include <exml/internal/Attribute.h>
#include <exml/internal/Declaration.h>
#include <exml/internal/Document.h>
#include <exml/internal/Element.hpp>
#include <exml/debug.hpp>
#include <exml/internal/Text.hpp>
#include <exml/internal/Comment.hpp>
#include <exml/internal/Attribute.hpp>
#include <exml/internal/Declaration.hpp>
#include <exml/internal/Document.hpp>
static bool isWhiteChar(char32_t _val) {
if( _val == ' '

View File

@ -5,9 +5,9 @@
*/
#pragma once
#include <exml/internal/Node.h>
#include <exml/internal/Node.hpp>
#include <vector>
#include <exml/internal/AttributeList.h>
#include <exml/internal/AttributeList.hpp>
namespace exml {
namespace internal {

View File

@ -4,14 +4,14 @@
* @license APACHE v2.0 (see license file)
*/
#include <exml/internal/Node.h>
#include <exml/internal/Document.h>
#include <exml/internal/Attribute.h>
#include <exml/internal/Comment.h>
#include <exml/internal/Declaration.h>
#include <exml/internal/Element.h>
#include <exml/internal/Text.h>
#include <exml/debug.h>
#include <exml/internal/Node.hpp>
#include <exml/internal/Document.hpp>
#include <exml/internal/Attribute.hpp>
#include <exml/internal/Comment.hpp>
#include <exml/internal/Declaration.hpp>
#include <exml/internal/Element.hpp>
#include <exml/internal/Text.hpp>
#include <exml/debug.hpp>
static bool isWhiteChar(char32_t _val) {
if( _val == ' '

View File

@ -5,11 +5,11 @@
*/
#pragma once
#include <ememory/memory.h>
#include <etk/types.h>
#include <etk/math/Vector2D.h>
#include <exml/FilePos.h>
#include <exml/nodeType.h>
#include <ememory/memory.hpp>
#include <etk/types.hpp>
#include <etk/math/Vector2D.hpp>
#include <exml/FilePos.hpp>
#include <exml/nodeType.hpp>
/**
* @brief exml namespace containing all function for XML interpretor

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file)
*/
#include <exml/internal/Text.h>
#include <exml/debug.h>
#include <exml/internal/Document.h>
#include <exml/internal/Text.hpp>
#include <exml/debug.hpp>
#include <exml/internal/Document.hpp>
#include <regex>
// transform the Text with :

View File

@ -5,7 +5,7 @@
*/
#pragma once
#include <exml/internal/Node.h>
#include <exml/internal/Node.hpp>
#include <vector>
namespace exml {

View File

@ -5,8 +5,8 @@
*/
#pragma once
#include <ememory/memory.h>
#include <etk/types.h>
#include <ememory/memory.hpp>
#include <etk/types.hpp>
namespace exml {
/**

View File

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

View File

@ -52,26 +52,26 @@ def create(target, module_name):
'exml/internal/Text.cpp'
])
my_module.add_header_file([
'exml/FilePos.h',
'exml/nodeType.h',
'exml/exml.h',
'exml/iterator.h',
'exml/Attribute.h',
'exml/AttributeList.h',
'exml/Comment.h',
'exml/Declaration.h',
'exml/Document.h',
'exml/Element.h',
'exml/Node.h',
'exml/Text.h',
'exml/internal/Attribute.h',
'exml/internal/AttributeList.h',
'exml/internal/Comment.h',
'exml/internal/Declaration.h',
'exml/internal/Document.h',
'exml/internal/Element.h',
'exml/internal/Node.h',
'exml/internal/Text.h'
'exml/FilePos.hpp',
'exml/nodeType.hpp',
'exml/exml.hpp',
'exml/iterator.hpp',
'exml/Attribute.hpp',
'exml/AttributeList.hpp',
'exml/Comment.hpp',
'exml/Declaration.hpp',
'exml/Document.hpp',
'exml/Element.hpp',
'exml/Node.hpp',
'exml/Text.hpp',
'exml/internal/Attribute.hpp',
'exml/internal/AttributeList.hpp',
'exml/internal/Comment.hpp',
'exml/internal/Declaration.hpp',
'exml/internal/Document.hpp',
'exml/internal/Element.hpp',
'exml/internal/Node.hpp',
'exml/internal/Text.hpp'
])
my_module.add_path(tools.get_current_path(__file__))
return my_module

View File

@ -4,10 +4,10 @@
* @license APACHE v2.0 (see license file)
*/
#include <test-debug/debug.h>
#include <etk/etk.h>
#include "read.h"
#include "write.h"
#include <test-debug/debug.hpp>
#include <etk/etk.hpp>
#include "read.hpp"
#include "write.hpp"
int main(int argc, const char *argv[]) {
// the only one init for etk:

View File

@ -4,11 +4,12 @@
* @license APACHE v2.0 (see license file)
*/
#include <test-debug/debug.h>
//! [exml_sample_read_all]
#include <test-debug/debug.hpp>
//! [exml_sample_include]
#include <exml/exml.h>
#include <exml/exml.hpp>
//! [exml_sample_include]
#include "read.h"
#include "read.hpp"
static void readFromFile() {

View File

@ -4,9 +4,10 @@
* @license APACHE v2.0 (see license file)
*/
#include <test-debug/debug.h>
#include <exml/exml.h>
#include "write.h"
//! [exml_sample_write_all]
#include <test-debug/debug.hpp>
#include <exml/exml.hpp>
#include "write.hpp"
static void writeToFile() {

View File

@ -4,7 +4,7 @@
* @license APACHE v2.0 (see license file)
*/
#include "exmlTestCommon.h"
#include "exmlTestCommon.hpp"
#include <gtest/gtest.h>

View File

@ -5,8 +5,8 @@
*/
#include <gtest/gtest.h>
#include <exml/exml.h>
#include <exml/Attribute.h>
#include <exml/exml.hpp>
#include <exml/Attribute.hpp>
TEST(TestAttribute, create) {

View File

@ -5,8 +5,8 @@
*/
#include <gtest/gtest.h>
#include <exml/exml.h>
#include <exml/Comment.h>
#include <exml/exml.hpp>
#include <exml/Comment.hpp>
TEST(TestComment, create) {
exml::Comment myComment("my Comment");

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file)
*/
#include <etk/types.h>
#include <test-debug/debug.h>
#include <exml/exml.h>
#include <etk/types.hpp>
#include <test-debug/debug.hpp>
#include <exml/exml.hpp>
#include <gtest/gtest.h>
// _errorPos : -1 : no error , 1 : parsing error, 2 generation error, 3 comparaison error ????

View File

@ -5,7 +5,7 @@
*/
#pragma once
#include <etk/types.h>
#include <etk/types.hpp>
// _errorPos : -1 : no error , 1 : parsing error, 2 generation error, 3 comparaison error ????
void exmlLocalTest(const std::string& _ref,

View File

@ -5,8 +5,8 @@
*/
#include <gtest/gtest.h>
#include <exml/exml.h>
#include <exml/Declaration.h>
#include <exml/exml.hpp>
#include <exml/Declaration.hpp>
TEST(TestDeclaration, create) {
exml::Declaration myDeclaration("type");

View File

@ -5,8 +5,8 @@
*/
#include <gtest/gtest.h>
#include <exml/exml.h>
#include <exml/Declaration.h>
#include <exml/exml.hpp>
#include <exml/Declaration.hpp>
TEST(TestDeclarationXML, create) {
exml::DeclarationXML myDeclarationXML("1.0", "UTF-8", true);

View File

@ -5,10 +5,10 @@
*/
#include <gtest/gtest.h>
#include <test-debug/debug.h>
#include <exml/exml.h>
#include <exml/Element.h>
#include <exml/Comment.h>
#include <test-debug/debug.hpp>
#include <exml/exml.hpp>
#include <exml/Element.hpp>
#include <exml/Comment.hpp>
TEST(TestElement, create) {

View File

@ -4,7 +4,7 @@
* @license APACHE v2.0 (see license file)
*/
#include "exmlTestCommon.h"
#include "exmlTestCommon.hpp"
#include <gtest/gtest.h>

View File

@ -4,7 +4,7 @@
* @license APACHE v2.0 (see license file)
*/
#include "exmlTestCommon.h"
#include "exmlTestCommon.hpp"
#include <gtest/gtest.h>

View File

@ -4,7 +4,7 @@
* @license APACHE v2.0 (see license file)
*/
#include "exmlTestCommon.h"
#include "exmlTestCommon.hpp"
#include <gtest/gtest.h>

View File

@ -4,7 +4,7 @@
* @license APACHE v2.0 (see license file)
*/
#include "exmlTestCommon.h"
#include "exmlTestCommon.hpp"
#include <gtest/gtest.h>

View File

@ -4,10 +4,10 @@
* @license APACHE v2.0 (see license file)
*/
#include <test-debug/debug.h>
#include <test-debug/debug.hpp>
#include <gtest/gtest.h>
#include <etk/os/FSNode.h>
#include <etk/etk.h>
#include <etk/os/FSNode.hpp>
#include <etk/etk.hpp>
int main(int argc, const char *argv[]) {
// init Google test :