[DEV] replace 'include guard' with 'pragma once'

This commit is contained in:
Edouard DUPIN 2016-02-02 21:18:54 +01:00
parent 4866eddf59
commit 74c2fc7364
42 changed files with 55 additions and 212 deletions

View File

@ -10,8 +10,7 @@
#include <esvg/join.h>
#include <esvg/cap.h>
#ifndef __ESVG_BASE_H__
#define __ESVG_BASE_H__
#pragma once
#include <etk/types.h>
#include <vector>
@ -111,6 +110,3 @@ namespace esvg {
void setId(const std::string& _newId);
};
};
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_CIRCLE_H__
#define __ESVG_CIRCLE_H__
#pragma once
#include <esvg/Base.h>
@ -23,7 +21,6 @@ namespace esvg {
virtual void display(int32_t _spacing);
virtual void draw(esvg::Renderer& _myRenderer, mat2& _basicTrans, int32_t _level);
};
};
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_DIMENSION_H__
#define __ESVG_DIMENSION_H__
#pragma once
#include <etk/types.h>
#include <etk/types.h>
@ -253,7 +251,5 @@ namespace esvg {
}
};
std::ostream& operator <<(std::ostream& _os, const esvg::Dimension1D& _obj);
};
#endif
}

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_ELLIPSE_H__
#define __ESVG_ELLIPSE_H__
#pragma once
#include <esvg/Base.h>
@ -23,7 +21,5 @@ namespace esvg {
virtual void display(int32_t _spacing);
virtual void draw(esvg::Renderer& _myRenderer, mat2& _basicTrans, int32_t _level);
};
};
#endif
}

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_GROUP_H__
#define __ESVG_GROUP_H__
#pragma once
#include <esvg/Base.h>
#include <vector>
@ -23,7 +21,5 @@ namespace esvg {
virtual void display(int32_t spacing);
virtual void draw(esvg::Renderer& _myRenderer, mat2& _basicTrans, int32_t _level);
};
};
#endif
}

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_LINE_H__
#define __ESVG_LINE_H__
#pragma once
#include <esvg/Base.h>
@ -23,7 +21,5 @@ namespace esvg {
virtual void display(int32_t _spacing);
virtual void draw(esvg::Renderer& _myRenderer, mat2& _basicTrans, int32_t _level);
};
};
#endif
}

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_LINEAR_GRANDIENT_H__
#define __ESVG_LINEAR_GRANDIENT_H__
#pragma once
#include <esvg/Base.h>
#include <esvg/gradientUnits.h>
@ -36,7 +34,5 @@ namespace esvg {
const esvg::Dimension& getPosition2();
const std::vector<std::pair<float, etk::Color<float,4>>>& getColors(esvg::Document* _document);
};
};
#endif
}

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_PATH_H__
#define __ESVG_PATH_H__
#pragma once
#include <esvg/Base.h>
#include <esvg/render/Path.h>
@ -23,7 +21,5 @@ namespace esvg {
virtual void display(int32_t _spacing);
virtual void draw(esvg::Renderer& _myRenderer, mat2& _basicTrans, int32_t _level);
};
};
#endif
}

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_POLYGON_H__
#define __ESVG_POLYGON_H__
#pragma once
#include <esvg/Base.h>
#include <vector>
@ -30,7 +28,5 @@ namespace esvg {
virtual void display(int32_t _spacing);
virtual void draw(esvg::Renderer& _myRenderer, mat2& _basicTrans, int32_t _level);
};
};
#endif
}

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_POLYLINE_H__
#define __ESVG_POLYLINE_H__
#pragma once
#include <esvg/Base.h>
#include <vector>
@ -23,7 +21,5 @@ namespace esvg {
virtual void display(int32_t _spacing);
virtual void draw(esvg::Renderer& _myRenderer, mat2& _basicTrans, int32_t _level);
};
};
#endif
}

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_RADIAL_GRANDIENT_H__
#define __ESVG_RADIAL_GRANDIENT_H__
#pragma once
#include <esvg/Base.h>
#include <esvg/gradientUnits.h>
@ -38,6 +36,5 @@ namespace esvg {
const esvg::Dimension1D& getRadius();
const std::vector<std::pair<float, etk::Color<float,4>>>& getColors(esvg::Document* _document);
};
};
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_RECTANGLE_H__
#define __ESVG_RECTANGLE_H__
#pragma once
#include <esvg/Base.h>
@ -24,7 +22,5 @@ namespace esvg {
virtual void display(int32_t _spacing);
virtual void draw(esvg::Renderer& _myRenderer, mat2& _basicTrans, int32_t _level);
};
};
#endif
}

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_RENDERER_H__
#define __ESVG_RENDERER_H__
#pragma once
#include <etk/types.h>
#include <etk/math/Vector2D.h>
@ -72,6 +70,5 @@ namespace esvg {
return m_document;
}
};
};
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_STROKING_H__
#define __ESVG_STROKING_H__
#pragma once
#include <esvg/Base.h>
@ -15,5 +13,3 @@ namespace esvg {
};
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_TEXT_H__
#define __ESVG_TEXT_H__
#pragma once
#include <esvg/Base.h>
@ -19,7 +17,5 @@ namespace esvg {
virtual bool parse(const std::shared_ptr<exml::Element>& _element, mat2& _parentTrans, vec2& _sizeMax);
virtual void display(int32_t _spacing);
};
};
#endif
}

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_CAP_H__
#define __ESVG_CAP_H__
#pragma once
#include <etk/types.h>
@ -23,5 +21,3 @@ namespace esvg {
std::ostream& operator <<(std::ostream& _os, enum esvg::cap _obj);
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_DEBUG_H__
#define __ESVG_DEBUG_H__
#pragma once
#include <etk/log.h>
@ -40,5 +38,4 @@ namespace esvg {
} \
} while (0)
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_H__
#define __ESVG_H__
#pragma once
#include <etk/types.h>
#include <vector>
@ -95,7 +93,5 @@ namespace esvg {
};
std::shared_ptr<esvg::Base> getReference(const std::string& _name);
};
};
#endif
}

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_GRADIENT_UNIT_H__
#define __ESVG_GRADIENT_UNIT_H__
#pragma once
#include <etk/types.h>
@ -21,6 +19,3 @@ namespace esvg {
*/
std::ostream& operator <<(std::ostream& _os, enum esvg::gradientUnits _obj);
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_JOIN_H__
#define __ESVG_JOIN_H__
#pragma once
#include <etk/types.h>
@ -23,5 +21,4 @@ namespace esvg {
std::ostream& operator <<(std::ostream& _os, enum esvg::join _obj);
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_RENDER_DYNAMIC_COLOR_H__
#define __ESVG_RENDER_DYNAMIC_COLOR_H__
#pragma once
#include <memory>
#include <etk/types.h>
@ -81,5 +79,3 @@ namespace esvg {
}
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_RENDER_ELEMENT_H__
#define __ESVG_RENDER_ELEMENT_H__
#pragma once
#include <etk/types.h>
#include <etk/math/Vector2D.h>
@ -91,8 +89,6 @@ namespace esvg {
std::ostream& operator <<(std::ostream& _os, enum esvg::render::path _obj);
}
#endif
#include <esvg/render/ElementStop.h>
#include <esvg/render/ElementClose.h>
#include <esvg/render/ElementMoveTo.h>

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_RENDER_ELEMENT_BEZIER_CURVE_TO_H__
#define __ESVG_RENDER_ELEMENT_BEZIER_CURVE_TO_H__
#pragma once
#include <etk/types.h>
#include <etk/math/Vector2D.h>
@ -24,5 +22,3 @@ namespace esvg {
}
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_RENDER_ELEMENT_BEZIER_SMOOTH_CURVE_TO_H__
#define __ESVG_RENDER_ELEMENT_BEZIER_SMOOTH_CURVE_TO_H__
#pragma once
#include <etk/types.h>
#include <etk/math/Vector2D.h>
@ -24,5 +22,4 @@ namespace esvg {
}
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_RENDER_ELEMENT_CLOSE_H__
#define __ESVG_RENDER_ELEMENT_CLOSE_H__
#pragma once
#include <etk/types.h>
#include <etk/math/Vector2D.h>
@ -24,5 +22,3 @@ namespace esvg {
}
}
#endif

View File

@ -6,8 +6,6 @@
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_RENDER_ELEMENT_CURVE_TO_H__
#define __ESVG_RENDER_ELEMENT_CURVE_TO_H__
#include <etk/types.h>
#include <etk/math/Vector2D.h>
@ -24,5 +22,3 @@ namespace esvg {
}
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_RENDER_ELEMENT_ELLIPTIC_H__
#define __ESVG_RENDER_ELEMENT_ELLIPTIC_H__
#pragma once
#include <etk/types.h>
#include <etk/math/Vector2D.h>
@ -33,4 +31,3 @@ namespace esvg {
}
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_RENDER_ELEMENT_LINE_TO_H__
#define __ESVG_RENDER_ELEMENT_LINE_TO_H__
#pragma once
#include <etk/types.h>
#include <etk/math/Vector2D.h>
@ -24,5 +22,3 @@ namespace esvg {
}
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_RENDER_ELEMENT_LINE_TO_H_H__
#define __ESVG_RENDER_ELEMENT_LINE_TO_H_H__
#pragma once
#include <etk/types.h>
#include <etk/math/Vector2D.h>
@ -24,5 +22,3 @@ namespace esvg {
}
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_RENDER_ELEMENT_LINE_TO_V_H__
#define __ESVG_RENDER_ELEMENT_LINE_TO_V_H__
#pragma once
#include <etk/types.h>
#include <etk/math/Vector2D.h>
@ -24,5 +22,4 @@ namespace esvg {
}
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_RENDER_ELEMENT_MOVE_TO_H__
#define __ESVG_RENDER_ELEMENT_MOVE_TO_H__
#pragma once
#include <etk/types.h>
#include <etk/math/Vector2D.h>
@ -24,5 +22,3 @@ namespace esvg {
}
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_RENDER_ELEMENT_SMOOTH_CURVE_TO_H__
#define __ESVG_RENDER_ELEMENT_SMOOTH_CURVE_TO_H__
#pragma once
#include <etk/types.h>
#include <etk/math/Vector2D.h>
@ -24,5 +22,3 @@ namespace esvg {
}
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_RENDER_ELEMENT_STOP_H__
#define __ESVG_RENDER_ELEMENT_STOP_H__
#pragma once
#include <etk/types.h>
#include <etk/math/Vector2D.h>
@ -24,5 +22,3 @@ namespace esvg {
}
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_RENDER_PATH_H__
#define __ESVG_RENDER_PATH_H__
#pragma once
#include <etk/types.h>
#include <etk/math/Vector2D.h>
@ -57,4 +55,3 @@ namespace esvg {
}
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_RENDER_POINT_H__
#define __ESVG_RENDER_POINT_H__
#pragma once
#include <etk/types.h>
#include <etk/math/Vector2D.h>
@ -46,5 +44,3 @@ namespace esvg {
}
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_RENDER_POINT_LIST_H__
#define __ESVG_RENDER_POINT_LIST_H__
#pragma once
#include <etk/types.h>
#include <etk/math/Vector2D.h>
@ -29,6 +27,3 @@ namespace esvg {
};
}
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_RENDER_SCANLINE_H__
#define __ESVG_RENDER_SCANLINE_H__
#pragma once
#include <etk/types.h>
#include <etk/math/Vector2D.h>
@ -31,4 +29,3 @@ namespace esvg {
}
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_RENDER_SEGMENT_H__
#define __ESVG_RENDER_SEGMENT_H__
#pragma once
#include <etk/types.h>
#include <etk/math/Vector2D.h>
@ -27,4 +25,3 @@ namespace esvg {
}
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_RENDER_SEGMENT_LIST_H__
#define __ESVG_RENDER_SEGMENT_LIST_H__
#pragma once
#include <etk/types.h>
#include <etk/math/Vector2D.h>
@ -52,5 +50,3 @@ namespace esvg {
};
}
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_RENDER_WEIGTH_H__
#define __ESVG_RENDER_WEIGTH_H__
#pragma once
#include <etk/types.h>
#include <etk/math/Vector2D.h>
@ -44,4 +42,3 @@ namespace esvg {
}
}
#endif

View File

@ -5,9 +5,7 @@
*
* @license APACHE v2.0 (see license file)
*/
#ifndef __ESVG_SPREAD_METHOD_H__
#define __ESVG_SPREAD_METHOD_H__
#pragma once
#include <etk/types.h>
@ -23,5 +21,4 @@ namespace esvg {
std::ostream& operator <<(std::ostream& _os, enum esvg::spreadMethod _obj);
}
#endif

View File

@ -8,10 +8,6 @@
#include <etk/types.h>
#ifndef __ESVG_TEST_MAIN_H__
#define __ESVG_TEST_MAIN_H__
#pragma once
extern bool g_visualDebug;
#endif