MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / buildLongClassName

Function buildLongClassName

src/modelica/ModelicaFileImpl.cpp:18–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17namespace {
18 std::string buildLongClassName(modelicaParser::Long_class_specifierContext* longClass) {
19 if (!longClass) {
20 return {};
21 }
22 std::string name;
23 const auto& identifiers = longClass->IDENT();
24 for (size_t i = 0; i < identifiers.size(); ++i) {
25 if (i > 0) {
26 name += ".";
27 }
28 name += identifiers[i]->getText();
29 }
30 return name;
31 }
32} // namespace
33
34ModelicaFileImpl::ModelicaFileImpl(const openstudio::path& path) {

Callers 2

longClassSpecifierMethod · 0.85
idFromCTXMethod · 0.85

Calls 3

IDENTMethod · 0.80
sizeMethod · 0.45
getTextMethod · 0.45

Tested by

no test coverage detected