summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/assimp/code/STEPFile.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/assimp/code/STEPFile.h')
-rw-r--r--src/3rdparty/assimp/code/STEPFile.h39
1 files changed, 16 insertions, 23 deletions
diff --git a/src/3rdparty/assimp/code/STEPFile.h b/src/3rdparty/assimp/code/STEPFile.h
index e09add1eb..8a30beb3f 100644
--- a/src/3rdparty/assimp/code/STEPFile.h
+++ b/src/3rdparty/assimp/code/STEPFile.h
@@ -2,7 +2,8 @@
Open Asset Import Library (assimp)
----------------------------------------------------------------------
-Copyright (c) 2006-2016, assimp team
+Copyright (c) 2006-2017, assimp team
+
All rights reserved.
Redistribution and use of this software in source and binary forms,
@@ -54,7 +55,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
#if _MSC_VER > 1500 || (defined __GNUC___)
# define ASSIMP_STEP_USE_UNORDERED_MULTIMAP
-# else
+#else
# define step_unordered_map map
# define step_unordered_multimap multimap
#endif
@@ -72,7 +73,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "LineSplitter.h"
-
// uncomment this to have the loader evaluate all entities upon loading.
// this is intended as stress test - by default, entities are evaluated
// lazily and therefore not unless needed.
@@ -118,15 +118,13 @@ namespace STEP {
// ********************************************************************************
-
namespace STEP {
// -------------------------------------------------------------------------------
/** Exception class used by the STEP loading & parsing code. It is typically
* coupled with a line number. */
// -------------------------------------------------------------------------------
- struct SyntaxError : DeadlyImportError
- {
+ struct SyntaxError : DeadlyImportError {
enum {
LINE_NOT_SPECIFIED = 0xffffffffffffffffLL
};
@@ -253,7 +251,7 @@ namespace STEP {
{
public:
- // This is the type that will ultimatively be used to
+ // This is the type that will cd ultimatively be used to
// expose this data type to the user.
typedef T Out;
@@ -441,13 +439,17 @@ namespace STEP {
// ------------------------------------------------------------------------------
/** Base class for all concrete object instances */
// ------------------------------------------------------------------------------
- class Object
- {
+ class Object {
public:
-
- virtual ~Object() {}
Object(const char* classname = "unknown")
- : classname(classname) {}
+ : id( 0 )
+ , classname(classname) {
+ // empty
+ }
+
+ virtual ~Object() {
+ // empty
+ }
public:
@@ -462,7 +464,6 @@ namespace STEP {
return dynamic_cast<T&>(*this);
}
-
template <typename T>
const T* ToPtr() const {
return dynamic_cast<const T*>(this);
@@ -474,7 +475,6 @@ namespace STEP {
}
public:
-
uint64_t GetID() const {
return id;
}
@@ -492,7 +492,6 @@ namespace STEP {
const char* const classname;
};
-
template <typename T>
size_t GenericFill(const STEP::DB& db, const EXPRESS::LIST& params, T* in);
// (intentionally undefined)
@@ -1001,26 +1000,20 @@ namespace STEP {
refs.insert(std::make_pair(who,by_whom));
}
-
-
private:
-
HeaderInfo header;
ObjectMap objects;
ObjectMapByType objects_bytype;
RefMap refs;
InverseWhitelist inv_whitelist;
-
std::shared_ptr<StreamReaderLE> reader;
LineSplitter splitter;
-
uint64_t evaluated_count;
-
const EXPRESS::ConversionSchema* schema;
};
}
-
} // end Assimp
-#endif
+
+#endif // INCLUDED_AI_STEPFILE_H