OndselSolver can read and write *.asmt files
This commit is contained in:
@@ -5,7 +5,8 @@
|
||||
* *
|
||||
* See LICENSE file for details about copyright. *
|
||||
***************************************************************************/
|
||||
|
||||
#include <fstream>
|
||||
|
||||
#include "ASMTUniversalJoint.h"
|
||||
#include "UniversalJoint.h"
|
||||
|
||||
@@ -15,3 +16,17 @@ std::shared_ptr<Joint> MbD::ASMTUniversalJoint::mbdClassNew()
|
||||
{
|
||||
return CREATE<UniversalJoint>::With();
|
||||
}
|
||||
|
||||
void MbD::ASMTUniversalJoint::storeOnLevel(std::ofstream& os, int level)
|
||||
{
|
||||
storeOnLevelString(os, level, "UniversalJoint");
|
||||
storeOnLevelString(os, level + 1, "Name");
|
||||
storeOnLevelString(os, level + 2, name);
|
||||
ASMTItemIJ::storeOnLevel(os, level);
|
||||
}
|
||||
|
||||
void MbD::ASMTUniversalJoint::storeOnTimeSeries(std::ofstream& os)
|
||||
{
|
||||
os << "UniversalJointSeries\t" << fullName("") << std::endl;
|
||||
ASMTItemIJ::storeOnTimeSeries(os);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user