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


C++ ChStreamOutBinary::AbstractWrite方法代码示例

本文整理汇总了C++中ChStreamOutBinary::AbstractWrite方法的典型用法代码示例。如果您正苦于以下问题:C++ ChStreamOutBinary::AbstractWrite方法的具体用法?C++ ChStreamOutBinary::AbstractWrite怎么用?C++ ChStreamOutBinary::AbstractWrite使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ChStreamOutBinary的用法示例。


在下文中一共展示了ChStreamOutBinary::AbstractWrite方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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 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


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