本文整理汇总了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());
}
示例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 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
}