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


C++ TextStream::ok方法代码示例

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

示例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();
}
开发者ID:LudoSapiens,项目名称:Dev,代码行数:28,代码来源:DFImageGenerator.cpp

示例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();
}
开发者ID:LudoSapiens,项目名称:Dev,代码行数:10,代码来源:DFImageGenerator.cpp

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

示例5:

//------------------------------------------------------------------------------
//!
bool
DFMaterialIDNode::dumpCustom( TextStream& os, StreamIndent& indent ) const
{
   os << indent << "id = " << _matID << "," << nl;
   return os.ok();
}
开发者ID:LudoSapiens,项目名称:Dev,代码行数:8,代码来源:DFGeomModifier.cpp

示例6:

//------------------------------------------------------------------------------
//!
bool
DFImportImageNode::dumpCustom( TextStream& os, StreamIndent& indent ) const
{
   os << indent << "\"" << _imageID << "\"," << nl;
   return os.ok();
}
开发者ID:LudoSapiens,项目名称:Dev,代码行数:8,代码来源:DFImageGenerator.cpp


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