本文整理汇总了C++中ChStreamOutBinary类的典型用法代码示例。如果您正苦于以下问题:C++ ChStreamOutBinary类的具体用法?C++ ChStreamOutBinary怎么用?C++ ChStreamOutBinary使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ChStreamOutBinary类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: StreamOUT
void ChLinkLimit::StreamOUT(ChStreamOutBinary& mstream)
{
// class version number
mstream.VersionWrite(1);
// stream out all member data
mstream << Get_active();
mstream << Get_polar();
mstream << Get_penalty();
mstream << Get_min();
mstream << Get_max();
mstream << Get_minCushion();
mstream << Get_maxCushion();
mstream << Get_minElastic();
mstream << Get_maxElastic();
mstream << Get_Kmin();
mstream << Get_Kmax();
mstream << Get_Rmin();
mstream << Get_Rmax();
mstream.AbstractWrite(GetPolar_Max());
mstream.AbstractWrite(GetModul_Kmin());
mstream.AbstractWrite(GetModul_Kmax());
mstream.AbstractWrite(GetModul_Rmin());
mstream.AbstractWrite(GetModul_Rmax());
}
示例2: StreamOUT
void ChFunction_Operation::StreamOUT(ChStreamOutBinary& mstream)
{
// class version number
mstream.VersionWrite(1);
// serialize parent class too
ChFunction::StreamOUT(mstream);
// stream out all member data
mstream << op_type;
mstream.AbstractWrite(fa);
mstream.AbstractWrite(fb);
}
示例3: StreamOUT
void ChFunction_Integrate::StreamOUT(ChStreamOutBinary& mstream)
{
// class version number
mstream.VersionWrite(1);
// serialize parent class too
ChFunction::StreamOUT(mstream);
// stream out all member data
mstream << Get_order();
mstream << Get_C_start();
mstream << Get_x_start();
mstream << Get_x_end();
mstream << Get_num_samples();
mstream.AbstractWrite(fa);
}
示例4: StreamOUT
void ChModelBullet::StreamOUT(ChStreamOutBinary& mstream)
{
// class version number
mstream.VersionWrite(1);
// parent class serialize
ChCollisionModel::StreamOUT(mstream);
// serialize custom data:
int maxSerializeBufferSize = 1024*1024*5; //***TO DO*** make this more efficient
btDefaultSerializer* serializer = new btDefaultSerializer(maxSerializeBufferSize);
serializer->startSerialization();
this->bt_collision_object->getCollisionShape()->serializeSingleShape(serializer);
serializer->finishSerialization();
mstream << serializer->getCurrentBufferSize();
for (int mpt= 0; mpt < serializer->getCurrentBufferSize(); mpt++)
mstream << (char)(*(serializer->getBufferPointer()+mpt));
delete serializer;
}
示例5: StreamOUT
void ChLcpConstraintTwoFrictionT::StreamOUT(ChStreamOutBinary& mstream)
{
// class version number
mstream.VersionWrite(1);
// serialize parent class too
ChLcpConstraintTwoBodies::StreamOUT(mstream);
}
示例6: StreamOUT
void ChFunction_Jscript::StreamOUT(ChStreamOutBinary& mstream)
{
// class version number
mstream.VersionWrite(1);
// serialize parent class too
ChFunction::StreamOUT(mstream);
// stream out all member data
mstream << js_command;
}
示例7: StreamOUT
void ChFseqNode::StreamOUT(ChStreamOutBinary& mstream)
{
// class version number
mstream.VersionWrite(1);
// stream out all member data
mstream << this->duration;
mstream << this->weight;
mstream << this->t_start;
mstream << this->t_end;
mstream << this->Iy;
mstream << this->Iydt;
mstream << this->Iydtdt;
mstream << this->y_cont;
mstream << this->ydt_cont;
mstream << this->ydtdt_cont;
mstream.AbstractWrite(this->fx.get_ptr());
//***TODO*** better direct management of shared pointers serialization
}
示例8: StreamOUT
void ChShaftsTorsionSpring::StreamOUT(ChStreamOutBinary& mstream)
{
// class version number
mstream.VersionWrite(1);
// serialize parent class too
ChShaftsCouple::StreamOUT(mstream);
// stream out all member data
mstream << this->stiffness;
mstream << this->damping;
}
示例9: StreamOUT
void ChFunction_Mocap::StreamOUT(ChStreamOutBinary& mstream)
{
// class version number
mstream.VersionWrite(1);
// serialize parent class too
ChFunction::StreamOUT(mstream);
// stream out all member data
mstream << this->Get_samples();
mstream << this->Get_samp_freq();
mstream << *this->array_y;
}
示例10: StreamOUT
void ChLinkBrake::StreamOUT(ChStreamOutBinary& mstream)
{
// class version number
mstream.VersionWrite(1);
// serialize parent class too
ChLinkLock::StreamOUT(mstream);
// stream out all member data
mstream << brake_torque;
mstream << stick_ratio;
mstream << brake_mode;
}
示例11: StreamOUT
void ChLcpConstraintThree::StreamOUT(ChStreamOutBinary& mstream)
{
// class version number
mstream.VersionWrite(1);
// serialize parent class too
ChLcpConstraint::StreamOUT(mstream);
// stream out all member data
// NOTHING INTERESTING TO SERIALIZE (pointers to variables must be rebound in run-time.)
}
示例12: StreamOUT
void ChLink::StreamOUT(ChStreamOutBinary& mstream)
{
// class version number
mstream.VersionWrite(11);
// serialize parent class too
ChPhysicsItem::StreamOUT(mstream);
// stream out all member data
mstream << disabled;
mstream << valid;
mstream << broken;
}
示例13: StreamOUT
void ChBox::StreamOUT(ChStreamOutBinary& mstream)
{
// class version number
mstream.VersionWrite(1);
// serialize parent class too
ChGeometry::StreamOUT(mstream);
// stream out all member data
mstream << Pos;
mstream << Rot;
mstream << Size;
}
示例14: StreamOUT
void ChFunction_ConstAcc::StreamOUT(ChStreamOutBinary& mstream)
{
// class version number
mstream.VersionWrite(1);
// serialize parent class too
ChFunction::StreamOUT(mstream);
// stream out all member data
mstream << h;
mstream << aw;
mstream << av;
mstream << end;
}
示例15: StreamOUT
void ChShaftsMotor::StreamOUT(ChStreamOutBinary& mstream)
{
// class version number
mstream.VersionWrite(1);
// serialize parent class too
ChShaftsCouple::StreamOUT(mstream);
// stream out all member data
mstream << this->motor_torque;
mstream << (int)this->motor_mode;
mstream << this->motor_set_rot;
mstream << this->motor_set_rot_dt;
}