Files
solver/MbDCode/ASMTItemIJ.cpp
2023-07-30 12:08:39 -06:00

70 lines
1.7 KiB
C++

#include "ASMTItemIJ.h"
void MbD::ASMTItemIJ::initialize()
{
fxs = std::make_shared<FullRow<double>>();
fys = std::make_shared<FullRow<double>>();
fzs = std::make_shared<FullRow<double>>();
txs = std::make_shared<FullRow<double>>();
tys = std::make_shared<FullRow<double>>();
tzs = std::make_shared<FullRow<double>>();
}
void MbD::ASMTItemIJ::readMarkerI(std::vector<std::string>& lines)
{
assert(lines[0].find("MarkerI") != std::string::npos);
lines.erase(lines.begin());
markerI = readString(lines[0]);
lines.erase(lines.begin());
}
void MbD::ASMTItemIJ::readMarkerJ(std::vector<std::string>& lines)
{
assert(lines[0].find("MarkerJ") != std::string::npos);
lines.erase(lines.begin());
markerJ = readString(lines[0]);
lines.erase(lines.begin());
}
void MbD::ASMTItemIJ::readFXonIs(std::vector<std::string>& lines)
{
std::string str = lines[0];
readDoublesInto(str, "FXonI", infxs);
lines.erase(lines.begin());
}
void MbD::ASMTItemIJ::readFYonIs(std::vector<std::string>& lines)
{
std::string str = lines[0];
readDoublesInto(str, "FYonI", infys);
lines.erase(lines.begin());
}
void MbD::ASMTItemIJ::readFZonIs(std::vector<std::string>& lines)
{
std::string str = lines[0];
readDoublesInto(str, "FZonI", infzs);
lines.erase(lines.begin());
}
void MbD::ASMTItemIJ::readTXonIs(std::vector<std::string>& lines)
{
std::string str = lines[0];
readDoublesInto(str, "TXonI", intxs);
lines.erase(lines.begin());
}
void MbD::ASMTItemIJ::readTYonIs(std::vector<std::string>& lines)
{
std::string str = lines[0];
readDoublesInto(str, "TYonI", intys);
lines.erase(lines.begin());
}
void MbD::ASMTItemIJ::readTZonIs(std::vector<std::string>& lines)
{
std::string str = lines[0];
readDoublesInto(str, "TZonI", intzs);
lines.erase(lines.begin());
}