Skip to content

Commit

Permalink
Merge branch 'master' into fix-miniz-bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kimkulling authored Mar 27, 2019
2 parents 4efa373 + deceb4e commit f653c48
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 25 deletions.
8 changes: 4 additions & 4 deletions scripts/StepImporter/CppGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@

input_step_template_h = 'StepReaderGen.h.template'
input_step_template_cpp = 'StepReaderGen.cpp.template'
input_ifc_template_h = 'IFCReaderGen.h.template'
input_ifc_template_cpp = 'IFCReaderGen.cpp.template'
input_ifc_template_h = 'IFCReaderGen.h.template'
input_ifc_template_cpp = 'IFCReaderGen.cpp.template'

cpp_keywords = "class"

Expand Down Expand Up @@ -87,7 +87,7 @@

template_stub_decl = '\tDECL_CONV_STUB({type});\n'
template_schema = '\t\tSchemaEntry("{normalized_name}",&STEP::ObjectHelper<{type},{argcnt}>::Construct )\n'
template_schema_type = '\t\tSchemaEntry("{normalized_name}",NULL )\n'
template_schema_type = '\t\tSchemaEntry("{normalized_name}",nullptr )\n'
template_converter = r"""
// -----------------------------------------------------------------------------------------------------------
template <> size_t GenericFill<{type}>(const DB& db, const LIST& params, {type}* in)
Expand All @@ -99,7 +99,7 @@
template_converter_prologue_b = '\tsize_t base = 0;\n'
template_converter_check_argcnt = '\tif (params.GetSize() < {max_arg}) {{ throw STEP::TypeError("expected {max_arg} arguments to {name}"); }}'
template_converter_code_per_field = r""" do {{ // convert the '{fieldname}' argument
boost::shared_ptr<const DataType> arg = params[base++];{handle_unset}{convert}
std::shared_ptr<const DataType> arg = params[base++];{handle_unset}{convert}
}} while(0);
"""
template_allow_optional = r"""
Expand Down
4 changes: 2 additions & 2 deletions scripts/StepImporter/StepReaderGen.cpp.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Open Asset Import Library (ASSIMP)
----------------------------------------------------------------------

Copyright (c) 2006-2018, ASSIMP Development Team
Copyright (c) 2006-2019, ASSIMP Development Team
All rights reserved.

Redistribution and use of this software in source and binary forms,
Expand Down Expand Up @@ -66,7 +66,7 @@ namespace STEP {
// -----------------------------------------------------------------------------------------------------------
template <> size_t GenericFill<NotImplemented>(const STEP::DB& db, const LIST& params, NotImplemented* in)
{
return 0;
return 0u;
}


Expand Down
37 changes: 18 additions & 19 deletions scripts/StepImporter/StepReaderGen.h.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Open Asset Import Library (ASSIMP)
----------------------------------------------------------------------

Copyright (c) 2006-2018, ASSIMP Development Team
Copyright (c) 2006-2019, ASSIMP Development Team
All rights reserved.

Redistribution and use of this software in source and binary forms,
Expand Down Expand Up @@ -47,37 +47,36 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

namespace Assimp {
namespace StepFile {
using namespace STEP;
using namespace STEP::EXPRESS;


struct NotImplemented : public ObjectHelper<NotImplemented,0> {

};


// ******************************************************************************
// StepFile Custom data types
// ******************************************************************************
using namespace STEP;
using namespace STEP::EXPRESS;

{types}
struct NotImplemented : public ObjectHelper<NotImplemented,0> {

};

// ******************************************************************************
// StepFile Entities
// ******************************************************************************
// ******************************************************************************
// StepFile Custom data types
// ******************************************************************************

{types}

// ******************************************************************************
// StepFile Entities
// ******************************************************************************

{predefs}
{entities}

void GetSchema(EXPRESS::ConversionSchema& out);

} //! StepFile

namespace STEP {

// ******************************************************************************
// Converter stubs
// ******************************************************************************
// ******************************************************************************
// Converter stubs
// ******************************************************************************

#define DECL_CONV_STUB(type) template <> size_t GenericFill<IFC::type>(const STEP::DB& db, const EXPRESS::LIST& params, IFC::type* in)

Expand Down

0 comments on commit f653c48

Please sign in to comment.