Assimp  v3.1.1 (June 2014)
CppGenerator Namespace Reference

Functions

def count_args_up
 
def gen_converter
 
def gen_type_struct
 
def generate_fields
 
def get_base_classes
 
def get_cpp_type
 
def get_derived
 
def get_hierarchy
 
def get_list_bounds
 
def get_single_conversion
 
def handle_unset_args
 
def resolve_base_type
 
def sort_entity_list
 
def work
 

Variables

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

Function Documentation

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)

Variable Documentation

string CppGenerator.input_template_cpp = 'IFCReaderGen.cpp.template'
string CppGenerator.input_template_h = 'IFCReaderGen.h.template'
tuple CppGenerator.output_file_cpp = os.path.join('..','..','code','IFCReaderGen.cpp')
tuple CppGenerator.output_file_h = os.path.join('..','..','code','IFCReaderGen.h')
string CppGenerator.template_allow_derived = r""
string CppGenerator.template_allow_optional = r""
string CppGenerator.template_convert_single = r""
string CppGenerator.template_converter = r""
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 = r""
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 = r""
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}",NULL )\n'
string CppGenerator.template_stub_decl = '\tDECL_CONV_STUB({type});\n'
string CppGenerator.template_type = r""