+/*\r
+ if(!vt) {\r
+ printf("No type definition\n");\r
+ return;\r
+ }\r
+\r
+ quan = fmi1_import_get_type_quantity(vt);\r
+\r
+ printf("Type %s\n description: %s\n", fmi1_import_get_type_name(vt), fmi1_import_get_type_description(vt));\r
+\r
+ printf("Base type: %s\n", fmi1_base_type_to_string(fmi1_import_get_base_type(vt)));\r
+\r
+ if(quan) {\r
+ printf("Quantity: %s\n", quan);\r
+ }\r
+ switch(fmi1_import_get_base_type(vt)) {\r
+ case fmi1_base_type_real: {\r
+ fmi1_import_real_typedef_t* rt = fmi1_import_get_type_as_real(vt);\r
+ fmi1_real_t min = fmi1_import_get_real_type_min(rt);\r
+ fmi1_real_t max = fmi1_import_get_real_type_max(rt);\r
+ fmi1_real_t nom = fmi1_import_get_real_type_nominal(rt);\r
+ fmi1_import_unit_t* u = fmi1_import_get_real_type_unit(rt);\r
+ fmi1_import_display_unit_t* du = fmi1_import_get_type_display_unit(rt);\r
+\r
+ printf("Min %g, max %g, nominal %g\n", min, max, nom);\r
+\r
+ if(u) {\r
+ printf("Unit: %s\n", fmi1_import_get_unit_name(u));\r
+ }\r
+ if(du) {\r
+ printf("Display unit: %s, gain: %g, offset: %g, is relative: %s",\r
+ fmi1_import_get_display_unit_name(du),\r
+ fmi1_import_get_display_unit_gain(du),\r
+ fmi1_import_get_display_unit_offset(du),\r
+ fmi1_import_get_real_type_is_relative_quantity(rt)?"yes":"no"\r
+ );\r
+ }\r
+\r
+ break;\r
+ }\r
+ case fmi1_base_type_int:{\r
+ fmi1_import_integer_typedef_t* it = fmi1_import_get_type_as_int(vt);\r
+ int min = fmi1_import_get_integer_type_min(it);\r
+ int max = fmi1_import_get_integer_type_max(it);\r
+ printf("Min %d, max %d\n", min, max);\r
+ break;\r
+ }\r
+ case fmi1_base_type_bool:{\r
+ break;\r
+ }\r
+ case fmi1_base_type_str:{\r
+ break;\r
+ }\r
+ case fmi1_base_type_enum:{\r
+ fmi1_import_enumeration_typedef_t* et = fmi1_import_get_type_as_enum(vt);\r
+ int min = fmi1_import_get_enum_type_min(et);\r
+ int max = fmi1_import_get_enum_type_max(et);\r
+ printf("Min %d, max %d\n", min, max);\r
+ {\r
+ size_t ni;\r
+ unsigned i;\r
+ ni = fmi1_import_get_enum_type_size(et);\r
+ i = (unsigned)(ni);\r
+ assert( i == ni);\r
+ printf("There are %u items \n",(unsigned)ni);\r
+ for(i = 0; i < ni; i++) {\r
+ printf("[%u] %s (%s) \n", (unsigned)i+1, fmi1_import_get_enum_type_item_name(et, i), fmi1_import_get_enum_type_item_description(et, i));\r
+ }\r
+ }\r
+ break;\r
+ }\r
+ default:\r
+ printf("Error in fmiGetBaseType()\n");\r
+ }\r
+*/\r
+\r