MCPcopy Create free account
hub / github.com/NTNU-IHB/PythonFMU / fmi2SetDebugLogging

Function fmi2SetDebugLogging

src/pythonfmu/fmi2.cpp:127–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125
126
127fmi2Status fmi2SetDebugLogging(
128 fmi2Component c,
129 fmi2Boolean loggingOn,
130 size_t nCategories,
131 const fmi2String categories[])
132{
133 const auto component = static_cast<Fmi2Component*>(c);
134
135 std::vector<std::string> categoriesVec;
136 if (nCategories > 0) {
137 // Convert categories to std::vector<std::string>
138 categoriesVec.reserve(nCategories);
139 for (size_t i = 0; i < nCategories; ++i) {
140 categoriesVec.emplace_back(categories[i]);
141 }
142 }
143
144 component->logger->setDebugLogging(loggingOn, categoriesVec);
145
146 return fmi2OK;
147}
148
149
150fmi2Status fmi2SetupExperiment(

Callers

nothing calls this directly

Calls 1

setDebugLoggingMethod · 0.80

Tested by

no test coverage detected