[DEV/API] change .h in .hpp

This commit is contained in:
Edouard DUPIN 2016-10-02 15:58:09 +02:00
parent 45158a56d8
commit 4ba1f5df60
37 changed files with 83 additions and 83 deletions

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>
#include <etk/tool.h> #include <etk/tool.hpp>
#include <etk/Color.h> #include <etk/Color.hpp>
#include <etk/debug.h> #include <etk/debug.hpp>
#include <etk/stdTools.h> #include <etk/stdTools.hpp>
#include <string> #include <string>
#include <sstream> #include <sstream>
#include <stdexcept> #include <stdexcept>

View File

@ -4,7 +4,7 @@
* @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

View File

@ -4,7 +4,7 @@
* @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

View File

@ -5,13 +5,13 @@
*/ */
#include <etk/types.h> #include <etk/types.hpp>
#include <etk/debug.h> #include <etk/debug.hpp>
#include <etk/tool.h> #include <etk/tool.hpp>
#include <etk/Noise.h> #include <etk/Noise.hpp>
// for the rand ... // for the rand ...
#include <time.h> #include <time.h>
#include <math.h> #include <cmath>
#include <unistd.h> #include <unistd.h>
#include <stdlib.h> #include <stdlib.h>

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 <etk/math/Vector2D.h> #include <etk/math/Vector2D.hpp>
namespace etk { namespace etk {
/** /**

View File

@ -5,9 +5,9 @@
*/ */
#ifdef ETK_BUILD_MINIZIP #ifdef ETK_BUILD_MINIZIP
#include <etk/archive/Archive.h> #include <etk/archive/Archive.hpp>
#include <etk/archive/Zip.h> #include <etk/archive/Zip.hpp>
#include <etk/debug.h> #include <etk/debug.hpp>
static const etk::ArchiveContent g_error; static const etk::ArchiveContent g_error;

View File

@ -5,13 +5,13 @@
*/ */
#ifdef ETK_BUILD_MINIZIP #ifdef ETK_BUILD_MINIZIP
#include <etk/types.h> #include <etk/types.hpp>
#pragma once #pragma once
#include <map> #include <map>
#include <mutex> #include <mutex>
#include <ememory/memory.h> #include <ememory/memory.hpp>
namespace etk { namespace etk {
/** /**

View File

@ -6,9 +6,9 @@
#ifdef ETK_BUILD_MINIZIP #ifdef ETK_BUILD_MINIZIP
#include <etk/archive/Zip.h> #include <etk/archive/Zip.hpp>
#include <etk/types.h> #include <etk/types.hpp>
#include <etk/debug.h> #include <etk/debug.hpp>
etk::archive::Zip::Zip(const std::string& _fileName, uint64_t _offset) : etk::archive::Zip::Zip(const std::string& _fileName, uint64_t _offset) :
etk::Archive(_fileName), etk::Archive(_fileName),

View File

@ -5,7 +5,7 @@
*/ */
#pragma once #pragma once
#include <etk/archive/Archive.h> #include <etk/archive/Archive.hpp>
#ifdef ETK_BUILD_MINIZIP #ifdef ETK_BUILD_MINIZIP
extern "C" { extern "C" {
#include <minizip/unzip.h> #include <minizip/unzip.h>

View File

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

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 etk { namespace etk {
int32_t getLogId(); int32_t getLogId();

View File

@ -4,12 +4,12 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <etk/etk.h> #include <etk/etk.hpp>
#include <elog/log.h> #include <elog/log.hpp>
#include <etk/types.h> #include <etk/types.hpp>
#include <etk/debug.h> #include <etk/debug.hpp>
#include <elog/elog.h> #include <elog/elog.hpp>
#include <etk/os/FSNode.h> #include <etk/os/FSNode.hpp>
void etk::init(int _argc, const char** _argv) { void etk::init(int _argc, const char** _argv) {
TK_INFO("E-TK system init (BEGIN) " << _argv[0]); TK_INFO("E-TK system init (BEGIN) " << _argv[0]);

View File

@ -5,8 +5,8 @@
*/ */
#pragma once #pragma once
#include <etk/types.h> #include <etk/types.hpp>
#include <etk/math/Vector2D.h> #include <etk/math/Vector2D.hpp>
#include <vector> #include <vector>
namespace etk { namespace etk {

View File

@ -4,7 +4,7 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <etk/math/Matrix2.h> #include <etk/math/Matrix2.hpp>
std::ostream& etk::operator <<(std::ostream& _os, const etk::Matrix2& _obj) { std::ostream& etk::operator <<(std::ostream& _os, const etk::Matrix2& _obj) {
_os << "{"; _os << "{";

View File

@ -6,8 +6,8 @@
#pragma once #pragma once
#include <etk/math/Vector2D.h> #include <etk/math/Vector2D.hpp>
#include <etk/types.h> #include <etk/types.hpp>
namespace etk { namespace etk {
/** /**
* @brief Transformation matrix for vector 2D. * @brief Transformation matrix for vector 2D.

View File

@ -4,10 +4,10 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <etk/types.h> #include <etk/types.hpp>
#include <etk/math/Matrix4.h> #include <etk/math/Matrix4.hpp>
#include <etk/debug.h> #include <etk/debug.hpp>
#include <math.h> #include <cmath>
void etk::Matrix4::identity() { void etk::Matrix4::identity() {
for(int32_t iii=0; iii<4*4 ; iii++) { for(int32_t iii=0; iii<4*4 ; iii++) {

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 <etk/math/Vector3D.h> #include <etk/math/Vector3D.hpp>
#include <math.h> #include <math.h>

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 <etk/debug.h> #include <etk/debug.hpp>
#include <vector> #include <vector>
namespace etk { namespace etk {

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <etk/math/Vector2D.h> #include <etk/math/Vector2D.hpp>
#include <etk/stdTools.h> #include <etk/stdTools.hpp>
#include <etk/debug.h> #include <etk/debug.hpp>
std::ostream& etk::operator <<(std::ostream& _os, const etk::Vector2D<int32_t>& _obj) { std::ostream& etk::operator <<(std::ostream& _os, const etk::Vector2D<int32_t>& _obj) {
_os << "("; _os << "(";

View File

@ -4,8 +4,8 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <etk/math/Vector3D.h> #include <etk/math/Vector3D.hpp>
#include <etk/types.h> #include <etk/types.hpp>
#pragma once #pragma once

View File

@ -4,9 +4,9 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <etk/math/Vector3D.h> #include <etk/math/Vector3D.hpp>
#include <etk/stdTools.h> #include <etk/stdTools.hpp>
#include <etk/debug.h> #include <etk/debug.hpp>
std::ostream& etk::operator <<(std::ostream& _os, const ivec3& _obj) { std::ostream& etk::operator <<(std::ostream& _os, const ivec3& _obj) {
_os << "("; _os << "(";

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 <math.h> #include <cmath>
#ifdef ETK_BUILD_LINEARMATH #ifdef ETK_BUILD_LINEARMATH
#include <LinearMath/btScalar.h> #include <LinearMath/btScalar.h>

View File

@ -4,7 +4,7 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <etk/math/Vector4D.h> #include <etk/math/Vector4D.hpp>
std::ostream& etk::operator <<(std::ostream &_os, const etk::Vector4D<int32_t>& _obj) { std::ostream& etk::operator <<(std::ostream &_os, const etk::Vector4D<int32_t>& _obj) {
_os << "("; _os << "(";

View File

@ -5,7 +5,7 @@
*/ */
#pragma once #pragma once
#include <etk/types.h> #include <etk/types.hpp>
#include <math.h> #include <math.h>
#ifdef ETK_BUILD_LINEARMATH #ifdef ETK_BUILD_LINEARMATH

View File

@ -5,12 +5,12 @@
*/ */
#include <etk/types.h> #include <etk/types.hpp>
#include <etk/os/FSNode.h> #include <etk/os/FSNode.hpp>
#include <unistd.h> #include <unistd.h>
#include <stdlib.h> #include <stdlib.h>
#include <etk/tool.h> #include <etk/tool.hpp>
#include <etk/debug.h> #include <etk/debug.hpp>
#include <map> #include <map>
#include <mutex> #include <mutex>
#ifdef __TARGET_OS__Windows #ifdef __TARGET_OS__Windows
@ -26,7 +26,7 @@ extern "C" {
} }
#ifdef HAVE_ZIP_DATA #ifdef HAVE_ZIP_DATA
# include <etk/archive/Archive.h> # include <etk/archive/Archive.hpp>
#endif #endif

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 <etk/os/FSNodeRight.h> #include <etk/os/FSNodeRight.hpp>
/** /**
* @brief Local maximum file name size * @brief Local maximum file name size
*/ */

View File

@ -5,7 +5,7 @@
*/ */
#include <etk/os/FSNodeRight.h> #include <etk/os/FSNodeRight.hpp>
// Right Flags : // Right Flags :
enum { enum {

View File

@ -4,7 +4,7 @@
* @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

View File

@ -4,7 +4,7 @@
* @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

View File

@ -4,8 +4,8 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <etk/stdTools.h> #include <etk/stdTools.hpp>
#include <etk/debug.h> #include <etk/debug.hpp>
const char32_t u32char::Null('\0'); const char32_t u32char::Null('\0');

View File

@ -5,7 +5,7 @@
*/ */
#pragma once #pragma once
#include <etk/types.h> #include <etk/types.hpp>
#include <vector> #include <vector>
#include <sstream> #include <sstream>
#include <iostream> #include <iostream>

View File

@ -4,11 +4,11 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <etk/tool.h> #include <etk/tool.hpp>
#include <etk/os/FSNode.h> #include <etk/os/FSNode.hpp>
// for the rand ... // for the rand ...
#include <time.h> #include <time.h>
#include <math.h> #include <cmath>
#include <unistd.h> #include <unistd.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -4,7 +4,7 @@
* @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

View File

@ -4,16 +4,16 @@
* @license APACHE v2.0 (see license file) * @license APACHE v2.0 (see license file)
*/ */
#include <etk/types.h> #include <etk/types.hpp>
#include <test-debug/debug.h> #include <test-debug/debug.hpp>
#include <vector> #include <vector>
#include <string> #include <string>
#include <etk/Hash.h> #include <etk/Hash.hpp>
#include <etk/os/FSNode.h> #include <etk/os/FSNode.hpp>
#include <etk/archive/Archive.h> #include <etk/archive/Archive.hpp>
#include <etk/etk.h> #include <etk/etk.hpp>
#include <etk/Color.h> #include <etk/Color.hpp>
#include <etk/stdTools.h> #include <etk/stdTools.hpp>
#include <string> #include <string>
#define NAME "Empty" #define NAME "Empty"

View File

@ -7,7 +7,7 @@
*/ */
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <ememory/memory.h> #include <ememory/memory.hpp>
#undef NAME #undef NAME
#define NAME "Shared_ptr" #define NAME "Shared_ptr"