MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / toString

Method toString

src/App/ObjectIdentifier.cpp:753–782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

751}
752
753void ObjectIdentifier::Component::toString(std::ostream& ss, bool toPython) const
754{
755 switch (type) {
756 case Component::SIMPLE:
757 ss << name.getString();
758 break;
759 case Component::MAP:
760 ss << "[" << name.toString(toPython) << "]";
761 break;
762 case Component::ARRAY:
763 ss << "[" << begin << "]";
764 break;
765 case Component::RANGE:
766 ss << '[';
767 if (begin != std::numeric_limits<int>::max()) {
768 ss << begin;
769 }
770 ss << ':';
771 if (end != std::numeric_limits<int>::max()) {
772 ss << end;
773 }
774 if (step != 1) {
775 ss << ':' << step;
776 }
777 ss << ']';
778 break;
779 default:
780 assert(0);
781 }
782}
783
784enum ResolveFlags
785{

Callers 13

operator==Method · 0.45
operator<Method · 0.45
verifyMethod · 0.45
toPersistentStringMethod · 0.45
getSubPathStrMethod · 0.45
resolveMethod · 0.45
getDocumentMethod · 0.45
getStringListMethod · 0.45
resolvePropertyMethod · 0.45
setDocumentNameMethod · 0.45
checkImportMethod · 0.45

Calls 3

maxFunction · 0.85
quoteFunction · 0.85
getStringMethod · 0.45

Tested by

no test coverage detected