[DEV/API] change .h in .hpp

This commit is contained in:
Edouard DUPIN 2016-09-30 22:28:36 +02:00
parent 10221e57cc
commit ce80d954b7
24 changed files with 76 additions and 75 deletions

View File

@ -4,10 +4,10 @@
* @license APACHE v2.0 (see license file)
*/
#include <egami/Image.h>
#include <egami/debug.h>
#include <egami/ImagePrivate.h>
#include <ememory/memory.h>
#include <egami/Image.hpp>
#include <egami/debug.hpp>
#include <egami/ImagePrivate.hpp>
#include <ememory/memory.hpp>
std::ostream& egami::operator <<(std::ostream& _os, const enum egami::colorType _type) {
switch (_type) {

View File

@ -5,12 +5,12 @@
*/
#pragma once
#include <etk/types.h>
#include <etk/types.hpp>
#include <vector>
#include <etk/math/Vector2D.h>
#include <etk/Color.h>
#include <etk/stdTools.h>
#include <ememory/memory.h>
#include <etk/math/Vector2D.hpp>
#include <etk/Color.hpp>
#include <etk/stdTools.hpp>
#include <ememory/memory.hpp>
namespace egami {
enum class colorType {

View File

@ -4,8 +4,8 @@
* @license APACHE v2.0 (see license file)
*/
#include <egami/ImageMono.h>
#include <egami/debug.h>
#include <egami/ImageMono.hpp>
#include <egami/debug.hpp>
egami::ImageMono::ImageMono(const ivec2& _size) :
m_size(_size) {

View File

@ -3,13 +3,13 @@
* @copyright 2011, Edouard DUPIN, all right reserved
* @license APACHE v2.0 (see license file)
*/
#pragma once
#include <etk/types.h>
#include <etk/types.hpp>
#include <etk/math/Vector2D.hpp>
#include <etk/Color.hpp>
#include <vector>
#include <etk/math/Vector2D.h>
#include <etk/Color.h>
namespace egami {
class ImageMono {

View File

@ -5,11 +5,12 @@
*/
#pragma once
#include <etk/types.h>
#include <etk/types.hpp>
#include <etk/math/Vector2D.hpp>
#include <etk/Color.hpp>
#include <egami/debug.hpp>
#include <vector>
#include <etk/math/Vector2D.h>
#include <etk/Color.h>
#include <egami/debug.h>
namespace egami {

View File

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

View File

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

View File

@ -4,14 +4,14 @@
* @license APACHE v2.0 (see license file)
*/
#include <egami/egami.h>
#include <egami/debug.h>
#include <egami/egami.hpp>
#include <egami/debug.hpp>
#include <egami/wrapperSVG.h>
#include <egami/wrapperPNG.h>
#include <egami/wrapperBMP.h>
#include <egami/wrapperEDF.h>
#include <edtaa3/edtaa3func.h>
#include <egami/wrapperSVG.hpp>
#include <egami/wrapperPNG.hpp>
#include <egami/wrapperBMP.hpp>
#include <egami/wrapperEDF.hpp>
#include <edtaa3/edtaa3func.hpp>
bool egami::scalable(const std::string& _fileName) {
if (true == etk::end_with(_fileName, ".svg") ) {

View File

@ -5,12 +5,12 @@
*/
#pragma once
#include <etk/types.h>
#include <etk/types.hpp>
#include <vector>
#include <etk/math/Vector2D.h>
#include <etk/Color.h>
#include <egami/Image.h>
#include <egami/ImageMono.h>
#include <etk/math/Vector2D.hpp>
#include <etk/Color.hpp>
#include <egami/Image.hpp>
#include <egami/ImageMono.hpp>
namespace egami {
/**

View File

@ -4,11 +4,11 @@
* @license APACHE v2.0 (see license file)
*/
#include <etk/types.h>
#include <egami/debug.h>
#include <egami/Image.h>
#include <egami/wrapperBMP.h>
#include <etk/os/FSNode.h>
#include <etk/types.hpp>
#include <egami/debug.hpp>
#include <egami/Image.hpp>
#include <egami/wrapperBMP.hpp>
#include <etk/os/FSNode.hpp>
extern "C" {
#pragma pack(push,1)
struct bitmapFileHeader {

View File

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

View File

@ -4,11 +4,11 @@
* @license APACHE v2.0 (see license file)
*/
#include <etk/types.h>
#include <egami/debug.h>
#include <egami/Image.h>
#include <egami/wrapperEDF.h>
#include <etk/os/FSNode.h>
#include <etk/types.hpp>
#include <egami/debug.hpp>
#include <egami/Image.hpp>
#include <egami/wrapperEDF.hpp>
#include <etk/os/FSNode.hpp>
//EDF format is a simple format for image in text for distance field image (special case)
// it is composed of the fist line : description of type (starting with #EDF and some other information, the data start just after the first \n

View File

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

View File

@ -4,12 +4,12 @@
* @license APACHE v2.0 (see license file)
*/
#include <etk/types.h>
#include <egami/debug.h>
#include <egami/Image.h>
#include <egami/wrapperPNG.h>
#include <etk/os/FSNode.h>
#include <png/png.h>
#include <etk/types.hpp>
#include <egami/debug.hpp>
#include <egami/Image.hpp>
#include <egami/wrapperPNG.hpp>
#include <etk/os/FSNode.hpp>
#include <png/png.hpp>
// we must change the access of the IO of the png lib :
static void local_ReadData(png_structp png_ptr, png_bytep data, png_size_t length) {

View File

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

View File

@ -4,12 +4,12 @@
* @license APACHE v2.0 (see license file)
*/
#include <etk/types.h>
#include <egami/debug.h>
#include <egami/Image.h>
#include <egami/wrapperSVG.h>
#include <etk/os/FSNode.h>
#include <esvg/esvg.h>
#include <etk/types.hpp>
#include <egami/debug.hpp>
#include <egami/Image.hpp>
#include <egami/wrapperSVG.hpp>
#include <etk/os/FSNode.hpp>
#include <esvg/esvg.hpp>
egami::Image egami::loadSVG(const std::string& _fileName, const ivec2& _size) {

View File

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

View File

@ -38,9 +38,9 @@ def create(target, module_name):
'egami/wrapperEDF.cpp'
])
my_module.add_header_file([
'egami/Image.h',
'egami/ImageMono.h',
'egami/egami.h',
'egami/Image.hpp',
'egami/ImageMono.hpp',
'egami/egami.hpp',
])
my_module.add_depend(['etk', 'png', 'esvg', 'edtaa3'])
my_module.add_flag('c++', [

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

@ -5,12 +5,12 @@
*/
//! [egami_sample_read_all]
#include <test-debug/debug.h>
#include <etk/math/Vector2D.h>
#include <test-debug/debug.hpp>
#include <etk/math/Vector2D.hpp>
//! [egami_sample_include]
#include <egami/egami.h>
#include <egami/egami.hpp>
//! [egami_sample_include]
#include "read.h"
#include "read.hpp"
static void readBMP() {

View File

@ -5,9 +5,9 @@
*/
//! [egami_sample_write_all]
#include <test-debug/debug.h>
#include <egami/egami.h>
#include "write.h"
#include <test-debug/debug.hpp>
#include <egami/egami.hpp>
#include "write.hpp"
static void writeBMP() {

View File

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