Change the project name from MbDCode to OndselSolver.

This commit is contained in:
Paddle
2023-10-04 18:35:36 +02:00
parent 02e77eb6cc
commit 9fd22a5504
592 changed files with 277 additions and 276 deletions

View File

@@ -0,0 +1,31 @@
#include "MBDynLabels.h"
using namespace MbD;
void MbD::MBDynLabels::initialize()
{
}
void MbD::MBDynLabels::parseMBDyn(std::vector<std::string>& lines)
{
labels = std::make_shared<std::map<std::string, int>>();
std::string str, label;
int intValue;
std::vector<std::string> tokens{"set:", "integer"};
while (true) {
auto it = findLineWith(lines, tokens);
if (it != lines.end()) {
std::istringstream iss(*it);
iss >> str;
iss >> str;
iss >> label;
iss >> str;
iss >> intValue;
labels->insert(std::make_pair(label, intValue));
lines.erase(it);
}
else {
break;
}
}
}