本文整理汇总了C++中ChStreamInBinary类的典型用法代码示例。如果您正苦于以下问题:C++ ChStreamInBinary类的具体用法?C++ ChStreamInBinary怎么用?C++ ChStreamInBinary使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ChStreamInBinary类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: StreamIN
void ChLinkLimit::StreamIN(ChStreamInBinary& mstream)
{
// class version number
int version = mstream.VersionRead();
// stream in all member data
double dfoo;
int ifoo;
ChFunction* ffoo;
mstream >> ifoo; Set_active(ifoo);
mstream >> ifoo; Set_polar(ifoo);
mstream >> ifoo; Set_penalty(ifoo);
mstream >> dfoo; Set_min(dfoo);
mstream >> dfoo; Set_max(dfoo);
mstream >> dfoo; Set_minCushion(dfoo);
mstream >> dfoo; Set_maxCushion(dfoo);
mstream >> dfoo; Set_minElastic(dfoo);
mstream >> dfoo; Set_maxElastic(dfoo);
mstream >> dfoo; Set_Kmin(dfoo);
mstream >> dfoo; Set_Kmax(dfoo);
mstream >> dfoo; Set_Rmin(dfoo);
mstream >> dfoo; Set_Rmax(dfoo);
mstream.AbstractReadCreate(&ffoo); SetPolar_Max(ffoo);
mstream.AbstractReadCreate(&ffoo); SetModul_Kmin(ffoo);
mstream.AbstractReadCreate(&ffoo); SetModul_Kmax(ffoo);
mstream.AbstractReadCreate(&ffoo); SetModul_Rmin(ffoo);
mstream.AbstractReadCreate(&ffoo); SetModul_Rmax(ffoo);
}
示例2: StreamIN
void ChFunction_Operation::StreamIN(ChStreamInBinary& mstream)
{
// class version number
int version = mstream.VersionRead();
// deserialize parent class too
ChFunction::StreamIN(mstream);
// stream in all member data
mstream >> op_type;
if (fa) delete fa; fa=NULL;
mstream.AbstractReadCreate(&fa);
if (fb) delete fb; fb=NULL;
mstream.AbstractReadCreate(&fb);
}
示例3: StreamIN
void ChLinkGear::StreamIN(ChStreamInBinary& mstream)
{
// class version number
int version = mstream.VersionRead();
// deserialize parent class too
ChLinkLock::StreamIN(mstream);
// stream in all member data
mstream >> tau;
mstream >> alpha;
mstream >> beta;
mstream >> phase;
mstream >> checkphase;
mstream >> epicyclic;
mstream >> a1;
mstream >> a2;
mstream >> r1;
mstream >> r2;
if (version ==1)
{
Vector mvfoo;
mstream >> mvfoo;
mstream >> mvfoo;
mstream >> mvfoo;
mstream >> mvfoo;
}
示例4: StreamIN
void ChFunction_Integrate::StreamIN(ChStreamInBinary& mstream)
{
// class version number
int version = mstream.VersionRead();
// deserialize parent class too
ChFunction::StreamIN(mstream);
// stream in all member data
int ifoo;
double dfoo;
mstream >> ifoo; Set_order(ifoo);
mstream >> dfoo; Set_C_start(dfoo);
mstream >> dfoo; Set_x_start(dfoo);
mstream >> dfoo; Set_x_end(dfoo);
mstream >> ifoo; Set_num_samples(ifoo);
if (fa) delete fa; fa=NULL;
mstream.AbstractReadCreate(&fa);
}
示例5: StreamIN
void ChLcpConstraintTwoFrictionT::StreamIN(ChStreamInBinary& mstream)
{
// class version number
int version = mstream.VersionRead();
// deserialize parent class too
ChLcpConstraintTwoBodies::StreamIN(mstream);
}
示例6: StreamIN
void ChFunction_Jscript::StreamIN(ChStreamInBinary& mstream)
{
// class version number
int version = mstream.VersionRead();
// deserialize parent class too
ChFunction::StreamIN(mstream);
// stream in all member data
mstream >> js_command;
}
示例7: StreamIN
void ChShaftsTorsionSpring::StreamIN(ChStreamInBinary& mstream)
{
// class version number
int version = mstream.VersionRead();
// deserialize parent class too
ChShaftsCouple::StreamIN(mstream);
// deserialize class
mstream >> this->stiffness;
mstream >> this->damping;
}
示例8: StreamIN
void ChLinkBrake::StreamIN(ChStreamInBinary& mstream)
{
// class version number
int version = mstream.VersionRead();
// deserialize parent class too
ChLinkLock::StreamIN(mstream);
// stream in all member data
mstream >> brake_torque;
mstream >> stick_ratio;
mstream >> brake_mode;
}
示例9: StreamIN
void ChLcpConstraintThree::StreamIN(ChStreamInBinary& mstream)
{
// class version number
int version = mstream.VersionRead();
// deserialize parent class too
ChLcpConstraint::StreamIN(mstream);
// stream in all member data
// NOTHING INTERESTING TO DESERIALIZE (pointers to variables must be rebound in run-time.)
}
示例10: StreamIN
void ChFunction_ConstAcc::StreamIN(ChStreamInBinary& mstream)
{
// class version number
int version = mstream.VersionRead();
// deserialize parent class too
ChFunction::StreamIN(mstream);
// stream in all member data
mstream >> h;
mstream >> aw;
mstream >> av;
mstream >> end;
}
示例11: StreamIN
void ChFseqNode::StreamIN(ChStreamInBinary& mstream)
{
// class version number
int version = mstream.VersionRead();
// stream in 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;
ChFunction* fooshared;
mstream.AbstractReadCreate(&fooshared); // instance new
fx = ChSharedPtr<ChFunction>(fooshared); // swap old shared to new shared, may delete old
//***TODO*** better direct management of shared pointers serialization
}
示例12: StreamIN
void ChBox::StreamIN(ChStreamInBinary& mstream)
{
// class version number
int version = mstream.VersionRead();
// deserialize parent class too
ChGeometry::StreamIN(mstream);
// stream in all member data
mstream >> Pos;
mstream >> Rot;
mstream >> Size;
}
示例13: StreamIN
void ChFunction_Mocap::StreamIN(ChStreamInBinary& mstream)
{
// class version number
int version = mstream.VersionRead();
// deserialize parent class too
ChFunction::StreamIN(mstream);
// stream in all member data
double dfoo;
int ifoo;
mstream >> ifoo; Set_samples(ifoo);
mstream >> dfoo; Set_samp_freq(dfoo);
mstream >> *this->array_y;
}
示例14: StreamIN
void ChLcpConstraintThreeGeneric::StreamIN(ChStreamInBinary& mstream)
{
// class version number
int version = mstream.VersionRead();
// deserialize parent class too
ChLcpConstraintThree::StreamIN(mstream);
// stream in all member data
// NOTHING INTERESTING TO DESERIALIZE (the Cq jacobians are not so
// important to waste disk space.. they may be recomputed run-time,
// and pointers to variables must be rebound in run-time.)
// mstream >> Cq_a;
// mstream >> Cq_b;
}
示例15: StreamIN
void ChShaftsMotor::StreamIN(ChStreamInBinary& mstream)
{
// class version number
int version = mstream.VersionRead();
// deserialize parent class too
ChShaftsCouple::StreamIN(mstream);
// deserialize class
int ifoo;
mstream >> this->motor_torque;
mstream >> ifoo; this->motor_mode = (ChShaftsMotor::eCh_shaftsmotor_mode)ifoo;
mstream >> this->motor_set_rot;
mstream >> this->motor_set_rot_dt;
}