本文整理汇总了C++中TextStream::ok方法的典型用法代码示例。如果您正苦于以下问题:C++ TextStream::ok方法的具体用法?C++ TextStream::ok怎么用?C++ TextStream::ok使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TextStream
的用法示例。
在下文中一共展示了TextStream::ok方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: VMFmt
//------------------------------------------------------------------------------
//!
bool
DFMappingNode::dumpCustom( TextStream& os, StreamIndent& indent ) const
{
os << indent << "scale = " << _scale << "," << nl;
os << indent << "offset = " << VMFmt( _offset ) << "," << nl;
return os.ok();
}
示例2: switch
//------------------------------------------------------------------------------
//!
bool
DFNoiseImageNode::dumpCustom( TextStream& os, StreamIndent& indent ) const
{
os << indent << "type = " << _type << "," << nl;
switch( _type )
{
case TYPE_CELL:
case TYPE_PERLIN:
break;
case TYPE_PERLIN_FILTERED:
os << indent << "perfilwidth = " << _perFil._width << "," << nl;
break;
case TYPE_VORONOI:
os << indent << "jitter = " << _vor._jitter << "," << nl;
break;
case TYPE_FBM:
os << indent << "fbmwidth = " << _fbm._width << "," << nl;
os << indent << "octaves = " << _fbm._octaves << "," << nl;
os << indent << "lacunarity = " << _fbm._lacunarity << "," << nl;
os << indent << "gain = " << _fbm._gain << "," << nl;
break;
default:
break;
}
return os.ok();
}
示例3: VMFmt
//------------------------------------------------------------------------------
//!
bool
DFDrawCircleNode::dumpCustom( TextStream& os, StreamIndent& indent ) const
{
os << indent << "color=" << VMFmt(_color) << "," << nl;
os << indent << "center=" << VMFmt(_center) << "," << nl;
os << indent << "radius=" << VMFmt(_radius) << "," << nl;
return os.ok();
}
示例4: VMFmt
//------------------------------------------------------------------------------
//!
bool
DFPolygonNode::dumpCustom( TextStream& os, StreamIndent& indent ) const
{
os << indent << "{" << nl;
++indent;
for( auto cur = _polygon->begin(); cur != _polygon->end(); ++cur )
{
os << indent << VMFmt( *cur ) << "," << nl;
}
--indent;
os << indent << "}" << nl;
return os.ok();
}
示例5:
//------------------------------------------------------------------------------
//!
bool
DFMaterialIDNode::dumpCustom( TextStream& os, StreamIndent& indent ) const
{
os << indent << "id = " << _matID << "," << nl;
return os.ok();
}
示例6:
//------------------------------------------------------------------------------
//!
bool
DFImportImageNode::dumpCustom( TextStream& os, StreamIndent& indent ) const
{
os << indent << "\"" << _imageID << "\"," << nl;
return os.ok();
}