Assimp  v4.1. (December 2018)
CppGenerator.py File Reference

Namespaces

 CppGenerator
 

Functions

def CppGenerator.count_args_up (entity, schema)
 
def CppGenerator.gen_converter (entity, schema)
 
def CppGenerator.gen_type_struct (typen, schema)
 
def CppGenerator.generate_fields (entity, schema)
 
def CppGenerator.get_base_classes (e, schema)
 
def CppGenerator.get_cpp_type (field, schema)
 
def CppGenerator.get_derived (e, schema)
 
def CppGenerator.get_hierarchy (e, schema)
 
def CppGenerator.get_list_bounds (collection_spec)
 
def CppGenerator.get_single_conversion (field, schema, argnum=0, classname='?')
 
def CppGenerator.handle_unset_args (field, entity, schema, argnum)
 
def CppGenerator.resolve_base_type (base, schema)
 
def CppGenerator.sort_entity_list (schema)
 
def CppGenerator.work (filename)
 

Variables

string CppGenerator.cpp_keywords = "class"
 
string CppGenerator.input_ifc_template_cpp = 'IFCReaderGen.cpp.template'
 
string CppGenerator.input_ifc_template_h = 'IFCReaderGen.h.template'
 
string CppGenerator.input_step_template_cpp = 'StepReaderGen.cpp.template'
 
string CppGenerator.input_step_template_h = 'StepReaderGen.h.template'
 
string CppGenerator.input_template_cpp = input_ifc_template_cpp
 
string CppGenerator.input_template_h = input_ifc_template_h
 
string CppGenerator.output_file_cpp = ""
 
string CppGenerator.output_file_h = ""
 
string CppGenerator.template_allow_derived
 
string CppGenerator.template_allow_optional
 
string CppGenerator.template_convert_single
 
string CppGenerator.template_converter
 
string CppGenerator.template_converter_check_argcnt = '\tif (params.GetSize() < {max_arg}) {{ throw STEP::TypeError("expected {max_arg} arguments to {name}"); }}'
 
string CppGenerator.template_converter_code_per_field
 
string CppGenerator.template_converter_epilogue = '\treturn base;'
 
string CppGenerator.template_converter_omitted = '// this data structure is not used yet, so there is no code generated to fill its members\n'
 
string CppGenerator.template_converter_prologue_a = '\tsize_t base = GenericFill(db,params,static_cast<{parent}*>(in));\n'
 
string CppGenerator.template_converter_prologue_b = '\tsize_t base = 0;\n'
 
string CppGenerator.template_entity
 
string CppGenerator.template_entity_ni = ''
 
string CppGenerator.template_entity_predef = '\tstruct {entity};\n'
 
string CppGenerator.template_entity_predef_ni = '\ttypedef NotImplemented {entity}; // (not currently used by Assimp)\n'
 
string CppGenerator.template_schema = '\t\tSchemaEntry("{normalized_name}",&STEP::ObjectHelper<{type},{argcnt}>::Construct )\n'
 
string CppGenerator.template_schema_type = '\t\tSchemaEntry("{normalized_name}",nullptr )\n'
 
string CppGenerator.template_stub_decl = '\tDECL_CONV_STUB({type});\n'
 
string CppGenerator.template_type
 
bool CppGenerator.use_ifc_template = False