MCPcopy Create free account
hub / github.com/assimp/assimp / dump

Method dump

contrib/openddlparser/code/Value.cpp:296–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296void Value::dump(IOStreamBase &stream) {
297 switch (m_type) {
298 case ValueType::ddl_none:
299 stream.write("None\n");
300 break;
301 case ValueType::ddl_bool:
302 stream.write(std::to_string(getBool()) + "\n");
303 break;
304 case ValueType::ddl_int8:
305 stream.write(std::to_string(getInt8()) + "\n");
306 break;
307 case ValueType::ddl_int16:
308 stream.write(std::to_string(getInt16()) + "\n");
309 break;
310 case ValueType::ddl_int32:
311 stream.write(std::to_string(getInt32()) + "\n");
312 break;
313 case ValueType::ddl_int64:
314 stream.write(std::to_string(getInt64()) + "\n");
315 break;
316 case ValueType::ddl_unsigned_int8:
317 stream.write("Not supported\n");
318 break;
319 case ValueType::ddl_unsigned_int16:
320 stream.write("Not supported\n");
321 break;
322 case ValueType::ddl_unsigned_int32:
323 stream.write("Not supported\n");
324 break;
325 case ValueType::ddl_unsigned_int64:
326 stream.write("Not supported\n");
327 break;
328 case ValueType::ddl_half:
329 stream.write("Not supported\n");
330 break;
331 case ValueType::ddl_float:
332 stream.write(std::to_string(getFloat()) + "\n");
333 break;
334 case ValueType::ddl_double:
335 stream.write(std::to_string(getDouble()) + "\n");
336 break;
337 case ValueType::ddl_string:
338 stream.write(std::string(getString()) + "\n");
339 break;
340 case ValueType::ddl_ref:
341 stream.write("Not supported\n");
342 break;
343 default:
344 break;
345 }
346}
347
348void Value::setNext(Value *next) {
349 m_next = next;

Callers

nothing calls this directly

Calls 3

to_stringFunction · 0.85
getFloatFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected