Lib: reduce number of header files included.

pull/812/head
Kim Kulling 2016-02-28 17:30:11 +01:00
parent 58fc3940f2
commit 2496e8a0a3
9 changed files with 31 additions and 51 deletions

View File

@ -44,9 +44,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define AI_ASEFILEHELPER_H_INC #define AI_ASEFILEHELPER_H_INC
// STL/CRT headers // STL/CRT headers
#include <string> //#include <string>
#include <vector> //#include <vector>
#include <list> //#include <list>
// public ASSIMP headers // public ASSIMP headers
#include "../include/assimp/types.h" #include "../include/assimp/types.h"

View File

@ -46,8 +46,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "BlenderIntermediate.h" #include "BlenderIntermediate.h"
#include "TinyFormatter.h" #include "TinyFormatter.h"
namespace Assimp { namespace Assimp {
namespace Blender { namespace Blender {
// ------------------------------------------------------------------------------------------- // -------------------------------------------------------------------------------------------
/** Dummy base class for all blender modifiers. Modifiers are reused between imports, so /** Dummy base class for all blender modifiers. Modifiers are reused between imports, so
@ -56,8 +57,8 @@ namespace Assimp {
class BlenderModifier class BlenderModifier
{ {
public: public:
virtual ~BlenderModifier() { virtual ~BlenderModifier() {
// empty
} }
public: public:

View File

@ -47,7 +47,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "BlenderDNA.h" #include "BlenderDNA.h"
namespace Assimp { namespace Assimp {
namespace Blender { namespace Blender {
// Minor parts of this file are extracts from blender data structures, // Minor parts of this file are extracts from blender data structures,
// declared in the ./source/blender/makesdna directory. // declared in the ./source/blender/makesdna directory.

View File

@ -48,8 +48,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "BlenderScene.h" #include "BlenderScene.h"
namespace Assimp { namespace Assimp {
namespace Blender { namespace Blender {
template <> void Structure :: Convert<Object> ( template <> void Structure :: Convert<Object> (
Object& dest, Object& dest,

View File

@ -2,7 +2,7 @@
Open Asset Import Library (assimp) Open Asset Import Library (assimp)
---------------------------------------------------------------------- ----------------------------------------------------------------------
Copyright (c) 2006-2013, assimp team Copyright (c) 2006-2016, assimp team
All rights reserved. All rights reserved.
Redistribution and use of this software in source and binary forms, Redistribution and use of this software in source and binary forms,

View File

@ -49,7 +49,7 @@ struct aiScene;
namespace Assimp { namespace Assimp {
namespace FBX { namespace FBX {
class Document; class Document;
/** Convert a FBX #Document to #aiScene /** Convert a FBX #Document to #aiScene

View File

@ -44,16 +44,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef INCLUDED_AI_FBX_DOCUMENT_H #ifndef INCLUDED_AI_FBX_DOCUMENT_H
#define INCLUDED_AI_FBX_DOCUMENT_H #define INCLUDED_AI_FBX_DOCUMENT_H
#include <vector>
#include <map>
#include <string>
#include <stdint.h>
#include <numeric> #include <numeric>
#include <boost/scoped_ptr.hpp>
#include "../include/assimp/ai_assert.h"
#include "../include/assimp/vector3.h"
#include "../include/assimp/vector2.h"
#include "../include/assimp/color4.h"
#include "../include/assimp/mesh.h" #include "../include/assimp/mesh.h"
#include "FBXProperties.h" #include "FBXProperties.h"
#include "FBXParser.h" #include "FBXParser.h"
@ -179,7 +170,7 @@ class NodeAttribute : public Object
public: public:
NodeAttribute(uint64_t id, const Element& element, const Document& doc, const std::string& name); NodeAttribute(uint64_t id, const Element& element, const Document& doc, const std::string& name);
~NodeAttribute(); virtual ~NodeAttribute();
public: public:
@ -200,7 +191,7 @@ class CameraSwitcher : public NodeAttribute
public: public:
CameraSwitcher(uint64_t id, const Element& element, const Document& doc, const std::string& name); CameraSwitcher(uint64_t id, const Element& element, const Document& doc, const std::string& name);
~CameraSwitcher(); virtual ~CameraSwitcher();
public: public:
@ -251,7 +242,7 @@ class Camera : public NodeAttribute
public: public:
Camera(uint64_t id, const Element& element, const Document& doc, const std::string& name); Camera(uint64_t id, const Element& element, const Document& doc, const std::string& name);
~Camera(); virtual ~Camera();
public: public:
@ -280,7 +271,7 @@ class Null : public NodeAttribute
public: public:
Null(uint64_t id, const Element& element, const Document& doc, const std::string& name); Null(uint64_t id, const Element& element, const Document& doc, const std::string& name);
~Null(); virtual ~Null();
}; };
@ -290,7 +281,7 @@ class LimbNode : public NodeAttribute
public: public:
LimbNode(uint64_t id, const Element& element, const Document& doc, const std::string& name); LimbNode(uint64_t id, const Element& element, const Document& doc, const std::string& name);
~LimbNode(); virtual ~LimbNode();
}; };
@ -298,9 +289,8 @@ public:
class Light : public NodeAttribute class Light : public NodeAttribute
{ {
public: public:
Light(uint64_t id, const Element& element, const Document& doc, const std::string& name); Light(uint64_t id, const Element& element, const Document& doc, const std::string& name);
~Light(); virtual ~Light();
public: public:
@ -370,7 +360,7 @@ class Model : public Object
public: public:
Model(uint64_t id, const Element& element, const Document& doc, const std::string& name); Model(uint64_t id, const Element& element, const Document& doc, const std::string& name);
~Model(); virtual ~Model();
public: public:
@ -535,7 +525,7 @@ class Texture : public Object
public: public:
Texture(uint64_t id, const Element& element, const Document& doc, const std::string& name); Texture(uint64_t id, const Element& element, const Document& doc, const std::string& name);
~Texture(); virtual ~Texture();
public: public:
@ -599,7 +589,7 @@ class LayeredTexture : public Object
public: public:
LayeredTexture(uint64_t id, const Element& element, const Document& doc, const std::string& name); LayeredTexture(uint64_t id, const Element& element, const Document& doc, const std::string& name);
~LayeredTexture(); virtual ~LayeredTexture();
//Can only be called after construction of the layered texture object due to construction flag. //Can only be called after construction of the layered texture object due to construction flag.
void fillTexture(const Document& doc); void fillTexture(const Document& doc);
@ -668,7 +658,7 @@ class Video : public Object
public: public:
Video(uint64_t id, const Element& element, const Document& doc, const std::string& name); Video(uint64_t id, const Element& element, const Document& doc, const std::string& name);
~Video(); virtual ~Video();
public: public:
@ -721,7 +711,7 @@ class Material : public Object
public: public:
Material(uint64_t id, const Element& element, const Document& doc, const std::string& name); Material(uint64_t id, const Element& element, const Document& doc, const std::string& name);
~Material(); virtual ~Material();
public: public:
@ -763,7 +753,7 @@ class Geometry : public Object
public: public:
Geometry(uint64_t id, const Element& element, const std::string& name, const Document& doc); Geometry(uint64_t id, const Element& element, const std::string& name, const Document& doc);
~Geometry(); virtual ~Geometry();
public: public:
@ -788,7 +778,7 @@ class MeshGeometry : public Geometry
public: public:
MeshGeometry(uint64_t id, const Element& element, const std::string& name, const Document& doc); MeshGeometry(uint64_t id, const Element& element, const std::string& name, const Document& doc);
~MeshGeometry(); virtual ~MeshGeometry();
public: public:
@ -891,8 +881,6 @@ public:
return static_cast<unsigned int>(std::distance(facesVertexStartIndices.begin(), it - 1)); return static_cast<unsigned int>(std::distance(facesVertexStartIndices.begin(), it - 1));
} }
public:
private: private:
void ReadLayer(const Scope& layer); void ReadLayer(const Scope& layer);
@ -952,7 +940,7 @@ class AnimationCurve : public Object
public: public:
AnimationCurve(uint64_t id, const Element& element, const std::string& name, const Document& doc); AnimationCurve(uint64_t id, const Element& element, const std::string& name, const Document& doc);
~AnimationCurve(); virtual ~AnimationCurve();
public: public:
@ -995,13 +983,13 @@ class AnimationCurveNode : public Object
{ {
public: public:
/* the optional whitelist specifies a list of property names for which the caller /* the optional white list specifies a list of property names for which the caller
wants animations for. If the curve node does not match one of these, std::range_error wants animations for. If the curve node does not match one of these, std::range_error
will be thrown. */ will be thrown. */
AnimationCurveNode(uint64_t id, const Element& element, const std::string& name, const Document& doc, AnimationCurveNode(uint64_t id, const Element& element, const std::string& name, const Document& doc,
const char* const * target_prop_whitelist = NULL, size_t whitelist_size = 0); const char* const * target_prop_whitelist = NULL, size_t whitelist_size = 0);
~AnimationCurveNode(); virtual ~AnimationCurveNode();
public: public:
@ -1053,7 +1041,7 @@ public:
AnimationLayer(uint64_t id, const Element& element, const std::string& name, const Document& doc); AnimationLayer(uint64_t id, const Element& element, const std::string& name, const Document& doc);
~AnimationLayer(); virtual ~AnimationLayer();
public: public:
@ -1062,7 +1050,7 @@ public:
return *props.get(); return *props.get();
} }
/* the optional whitelist specifies a list of property names for which the caller /* the optional white list specifies a list of property names for which the caller
wants animations for. Curves not matching this list will not be added to the wants animations for. Curves not matching this list will not be added to the
animation layer. */ animation layer. */
AnimationCurveNodeList Nodes(const char* const * target_prop_whitelist = NULL, size_t whitelist_size = 0) const; AnimationCurveNodeList Nodes(const char* const * target_prop_whitelist = NULL, size_t whitelist_size = 0) const;
@ -1083,7 +1071,7 @@ class AnimationStack : public Object
public: public:
AnimationStack(uint64_t id, const Element& element, const std::string& name, const Document& doc); AnimationStack(uint64_t id, const Element& element, const std::string& name, const Document& doc);
~AnimationStack(); virtual ~AnimationStack();
public: public:
@ -1117,7 +1105,7 @@ class Deformer : public Object
public: public:
Deformer(uint64_t id, const Element& element, const Document& doc, const std::string& name); Deformer(uint64_t id, const Element& element, const Document& doc, const std::string& name);
~Deformer(); virtual ~Deformer();
public: public:
@ -1191,7 +1179,7 @@ class Skin : public Deformer
public: public:
Skin(uint64_t id, const Element& element, const Document& doc, const std::string& name); Skin(uint64_t id, const Element& element, const Document& doc, const std::string& name);
~Skin(); virtual ~Skin();
public: public:

View File

@ -44,13 +44,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef INCLUDED_AI_FBX_PARSER_H #ifndef INCLUDED_AI_FBX_PARSER_H
#define INCLUDED_AI_FBX_PARSER_H #define INCLUDED_AI_FBX_PARSER_H
#include <vector>
#include <map>
#include <string>
#include <utility>
#include <stdint.h>
#include <boost/shared_ptr.hpp>
#include <boost/scoped_ptr.hpp> #include <boost/scoped_ptr.hpp>
#include "LogAux.h" #include "LogAux.h"

View File

@ -45,7 +45,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define INCLUDED_AI_FBX_PROPERTIES_H #define INCLUDED_AI_FBX_PROPERTIES_H
#include <map> #include <map>
#include <string>
#include "FBXCompileConfig.h" #include "FBXCompileConfig.h"
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>