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


C++ ChStreamOutBinary类代码示例

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

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

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

示例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;

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

示例5: StreamOUT

void ChLcpConstraintTwoFrictionT::StreamOUT(ChStreamOutBinary& mstream)
{
		// class version number
	mstream.VersionWrite(1);

		// serialize parent class too
	ChLcpConstraintTwoBodies::StreamOUT(mstream);

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

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

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

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

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

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

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

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

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

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

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

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


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