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

Method getStringList

src/App/ObjectIdentifier.cpp:1127–1153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1125}
1126
1127std::vector<std::string> ObjectIdentifier::getStringList() const
1128{
1129 std::vector<std::string> l;
1130 ResolveResults result(*this);
1131
1132 if (!result.resolvedProperty || result.resolvedDocumentObject != owner) {
1133 if (documentNameSet) {
1134 l.push_back(documentName.toString());
1135 }
1136
1137 if (documentObjectNameSet) {
1138 l.push_back(documentObjectName.toString());
1139 }
1140 }
1141 if (!subObjectName.getString().empty()) {
1142 l.back() += subObjectName.toString();
1143 }
1144 std::vector<Component>::const_iterator i = components.begin();
1145 while (i != components.end()) {
1146 std::ostringstream ss;
1147 i->toString(ss);
1148 l.push_back(ss.str());
1149 ++i;
1150 }
1151
1152 return l;
1153}
1154
1155ObjectIdentifier ObjectIdentifier::relativeTo(const ObjectIdentifier& other) const
1156{

Callers 2

splitPathMethod · 0.80
ActivatedMethod · 0.80

Calls 8

push_backMethod · 0.45
toStringMethod · 0.45
emptyMethod · 0.45
getStringMethod · 0.45
backMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected