当前位置: 首页>>代码示例>>C++>>正文


C++ ChStreamInBinary类代码示例

本文整理汇总了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);
}
开发者ID:DavidHammen,项目名称:chrono,代码行数:28,代码来源:ChLimit.cpp

示例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);
}
开发者ID:DavidHammen,项目名称:chrono,代码行数:15,代码来源:ChFunction_Operation.cpp

示例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;
	}
开发者ID:DavidHammen,项目名称:chrono,代码行数:26,代码来源:ChLinkGear.cpp

示例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);
}
开发者ID:DavidHammen,项目名称:chrono,代码行数:18,代码来源:ChFunction_Integrate.cpp

示例5: StreamIN

void ChLcpConstraintTwoFrictionT::StreamIN(ChStreamInBinary& mstream)
{
		// class version number
	int version = mstream.VersionRead();

		// deserialize parent class too
	ChLcpConstraintTwoBodies::StreamIN(mstream);

}
开发者ID:DavidHammen,项目名称:chrono,代码行数:9,代码来源:ChLcpConstraintTwoFrictionT.cpp

示例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;
}
开发者ID:saggita,项目名称:chrono,代码行数:10,代码来源:ChFunctionJS.cpp

示例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;
}
开发者ID:saggita,项目名称:chrono,代码行数:12,代码来源:ChShaftsTorsionSpring.cpp

示例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;
}
开发者ID:DavidHammen,项目名称:chrono,代码行数:12,代码来源:ChLinkBrake.cpp

示例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.)

}
开发者ID:DavidHammen,项目名称:chrono,代码行数:12,代码来源:ChLcpConstraintThree.cpp

示例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;
}
开发者ID:kelaogui,项目名称:chrono,代码行数:13,代码来源:ChFunction_ConstAcc.cpp

示例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
}
开发者ID:globus000,项目名称:cew,代码行数:22,代码来源:ChFunction_Sequence.cpp

示例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;
}
开发者ID:globus000,项目名称:cew,代码行数:13,代码来源:ChCBox.cpp

示例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;
}
开发者ID:globus000,项目名称:cew,代码行数:14,代码来源:ChFunction_Mocap.cpp

示例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;
}
开发者ID:DavidHammen,项目名称:chrono,代码行数:15,代码来源:ChLcpConstraintThreeGeneric.cpp

示例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;
}
开发者ID:DavidHammen,项目名称:chrono,代码行数:15,代码来源:ChShaftsMotor.cpp


注:本文中的ChStreamInBinary类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。