MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / FlagsToString

Function FlagsToString

COLLADAMaya/src/COLLADAMayaPhysXXML.cpp:356–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354
355 template<typename E>
356 String FlagsToString(const Flags<E> & flags, const std::map<E, String> & flagToStringMap)
357 {
358 String s;
359 for (int i = 0; i < 32; ++i)
360 {
361 E flag = static_cast<E>(1 << i);
362 if (flags & flag)
363 {
364 typename std::map<E, String>::const_iterator it = flagToStringMap.find(flag);
365 if (!s.empty())
366 s += '|';
367 s += it->second;
368 }
369 }
370 return s;
371 }
372
373 bool equal(xmlNode* node, const String& name)
374 {

Callers 1

exportElementMethod · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected