| 125 | |
| 126 | |
| 127 | fmi2Status 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 | |
| 150 | fmi2Status fmi2SetupExperiment( |
nothing calls this directly
no test coverage detected