StepFile: introduce generated parser code.
This commit is contained in:
@@ -724,6 +724,9 @@ SET( Step_SRCS
|
||||
STEPFile.h
|
||||
Importer/StepFile/StepFileImporter.h
|
||||
Importer/StepFile/StepFileImporter.cpp
|
||||
Importer/StepFile/StepFileGen1.cpp
|
||||
Importer/StepFile/StepFileGen2.cpp
|
||||
Importer/StepFile/StepReaderGen.h
|
||||
StepExporter.h
|
||||
StepExporter.cpp
|
||||
)
|
||||
|
||||
0
code/Importer/StepFile/StepFileGen2.cpp
Normal file
0
code/Importer/StepFile/StepFileGen2.cpp
Normal file
@@ -49,7 +49,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#include <assimp/DefaultIOSystem.h>
|
||||
|
||||
namespace Assimp {
|
||||
namespace STEP {
|
||||
namespace StepFile {
|
||||
|
||||
using namespace STEP;
|
||||
|
||||
static const aiImporterDesc desc = { "StepFile Importer",
|
||||
"",
|
||||
@@ -105,7 +107,7 @@ void StepFileImporter::InternReadFile(const std::string &file, aiScene* pScene,
|
||||
}
|
||||
}
|
||||
|
||||
} // Namespace STEP
|
||||
} // Namespace StepFile
|
||||
} // Namespace Assimp
|
||||
|
||||
#endif // ASSIMP_BUILD_NO_STEPFILE_IMPORTER
|
||||
|
||||
@@ -48,7 +48,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#include <assimp/BaseImporter.h>
|
||||
|
||||
namespace Assimp {
|
||||
namespace STEP {
|
||||
namespace StepFile {
|
||||
|
||||
class StepFileImporter : public BaseImporter {
|
||||
public:
|
||||
@@ -63,7 +63,7 @@ protected:
|
||||
private:
|
||||
};
|
||||
|
||||
} // Namespace STEP
|
||||
} // Namespace StepFile
|
||||
} // Namespace Assimp
|
||||
|
||||
#endif // ASSIMP_BUILD_NO_STEPFILE_IMPORTER
|
||||
|
||||
10908
code/Importer/StepFile/StepReaderGen.cpp
Normal file
10908
code/Importer/StepFile/StepReaderGen.cpp
Normal file
File diff suppressed because it is too large
Load Diff
7288
code/Importer/StepFile/StepReaderGen.h
Normal file
7288
code/Importer/StepFile/StepReaderGen.h
Normal file
File diff suppressed because it is too large
Load Diff
@@ -356,7 +356,7 @@ void GetImporterInstanceList(std::vector< BaseImporter* >& out)
|
||||
out.push_back( new MMDImporter() );
|
||||
#endif
|
||||
#ifndef ASSIMP_BUILD_NO_STEPFILE_IMPORTER
|
||||
out.push_back(new STEP::StepFileImporter());
|
||||
out.push_back(new StepFile::StepFileImporter());
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -164,7 +164,6 @@ namespace STEP {
|
||||
class DataType
|
||||
{
|
||||
public:
|
||||
|
||||
typedef std::shared_ptr<const DataType> Out;
|
||||
|
||||
public:
|
||||
@@ -357,6 +356,18 @@ namespace STEP {
|
||||
MemberList members;
|
||||
};
|
||||
|
||||
class BINARY : public PrimitiveDataType<uint32_t> {
|
||||
public:
|
||||
BINARY(uint32_t val)
|
||||
: PrimitiveDataType<uint32_t>(val) {
|
||||
// empty
|
||||
}
|
||||
|
||||
BINARY()
|
||||
: PrimitiveDataType<uint32_t>(TypeError::ENTITY_NOT_SPECIFIED) {
|
||||
// empty
|
||||
}
|
||||
};
|
||||
|
||||
// -------------------------------------------------------------------------------
|
||||
/* Not exactly a full EXPRESS schema but rather a list of conversion functions
|
||||
|
||||
Reference in New Issue
Block a user