• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ opstream类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中opstream的典型用法代码示例。如果您正苦于以下问题:C++ opstream类的具体用法?C++ opstream怎么用?C++ opstream使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了opstream类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: write

void TCalcDisplay::write( opstream& os )
{
    TView::write( os );
    os.writeBytes(&status, sizeof(status));
    os.writeString(number);
    os.writeByte(sign);
    os.writeByte(operate);
    os.writeBytes(&operand, sizeof(operand));
}
开发者ID:OS2World,项目名称:DEV-CPLUSPLUS-UTIL-Turbo_Vision_C--,代码行数:9,代码来源:calc.cpp


示例2: write

void THiddenConstField::write( opstream& os )
{
	os << stringLength;
	os << necessary;

	os.writeBytes( &devOptions, sizeof( devOptions ) );

	os << infoLevel;
	if( infoLevel > 0 )
		os << infoIndex;

	os.writeString( text );
}
开发者ID:jskripsky,项目名称:ancient,代码行数:13,代码来源:SPECFLDS.CPP


示例3: write

void TDataBase::write( opstream& os )
{
	dataCache->flush();
	os.flush();
	indexCache->flush();
	os.flush();

	TSortedCollection::write( os );
	os.flush();
	os << indexFile;
	os.flush();
	os << dataFile;
	os.flush();
}
开发者ID:jskripsky,项目名称:ancient,代码行数:14,代码来源:DATABASE.CPP


示例4: WriteBaseObject

void TCadMultiLine::Streamer::Write(opstream& out) const
{
  WriteBaseObject((TCadObjectBase*) this, out);
  out.writeWord32(GetObject()->points.size());
  TPoints::size_type i=0;
  while (i<GetObject()->points.size()) out << GetObject()->points[i++];
}
开发者ID:double16,项目名称:switchmin-w32,代码行数:7,代码来源:primitive.cpp


示例5: write

void TProgressBar::write( opstream& os )
{
    TView::write( os );
    os.writeString( bar );
    os << backChar << total << progress << dispLen <<
          curPercent << curWidth << numOffset << charValue;
}
开发者ID:idispatch,项目名称:tvision,代码行数:7,代码来源:tprogbar.cpp


示例6: GetObject

void
TDocument::Streamer::Write(opstream& os) const
{
  TDocument* o = GetObject();

  while (!o->CanClose())   // can't permit cancel here
    ;
  os << o->OpenMode;
  _USES_CONVERSION;
  os.fwriteString(_W2A(o->DocPath));
  os.fwriteString(_W2A(o->Title));
  os << o->Template;       // templates already streamed, must be so if static
  os << o->ParentDoc;
  os << o->ViewList;       // each view streams out the next
  os << TView::NextViewId; // insure that this static var gets set on reload
}
开发者ID:Darkman-M59,项目名称:Meridian59_115,代码行数:16,代码来源:document.cpp


示例7: write

void TInputLine::write( opstream& os )
{
    TView::write( os );
    os << maxLen << curPos << firstPos
       << selStart << selEnd;
    os.writeString( data);
}
开发者ID:WiLLStenico,项目名称:TestesEOutrasBrincadeiras,代码行数:7,代码来源:tinputli.cpp


示例8: write

void TWindow::write( opstream& os )
{
    TGroup::write( os );
    os << flags << zoomRect << number << palette;
    os << frame;
    os.writeString( title );
}
开发者ID:OS2World,项目名称:DEV-CPLUSPLUS-UTIL-Turbo_Vision_C--,代码行数:7,代码来源:TWindow.cpp


示例9: GetObject

//
// writes the TEditFile to the passed opstream
//
void
TEditFile::Streamer::Write(opstream& os) const
{
  TEditFile* o = GetObject();
  WriteBaseObject((TEditSearch*)o, os);
  _USES_CONVERSION;
  os.fwriteString(o->FileName ? _W2A(o->FileName) : "");
}
开发者ID:Meridian59,项目名称:Meridian59,代码行数:11,代码来源:editfile.cpp


示例10: GetObject

void TermSet::Streamer::Write(opstream& out) const
{
  out.writeWord32(GetObject()->size());
  iterator i = GetObject()->begin(), e = GetObject()->end();
  while (i!=e) {
    out << *i;
    i++;
  }
}
开发者ID:double16,项目名称:switchmin-w32,代码行数:9,代码来源:termset.cpp


示例11: write

void tvFormStaticText::write( opstream& os )
{
    tvFormObj::write( os );
    tvFormText::write( os );

    os << (int)0x0100;

    os.writeString( text );
}
开发者ID:jskripsky,项目名称:ancient,代码行数:9,代码来源:TVFRMSTX.CPP


示例12: writeMenu

void TMenuView::writeMenu( opstream& os, TMenu *menu )
{
    uchar tok = 0xFF;
    for( TMenuItem *item = menu->items; item != 0; item = item->next )
        {
        os << tok;
        os.writeString( item->name );
        os << item->command << (int)(item->disabled)
           << item->keyCode << item->helpCtx;
        if( item->name != 0 )
            {
            if( item->command == 0 )
                writeMenu( os, item->subMenu );
            else
                os.writeString( item->param );
            }
        }
    tok = 0;
    os << tok;
}
开发者ID:WiLLStenico,项目名称:TestesEOutrasBrincadeiras,代码行数:20,代码来源:tmnuview.cpp


示例13: writeItems

void TStatusLine::writeItems( opstream& os, TStatusItem *ts )
{
    int count = 0;
    for( TStatusItem *t = ts; t != 0; t = t->next )
        count++;
    os << count;
    for( ; ts != 0; ts = ts->next )
        {
        os.writeString( ts->text );
        os << ts->keyCode << ts->command;
        }
}
开发者ID:LucasvBerkel,项目名称:TweedejaarsProject,代码行数:12,代码来源:TSTATUSL.CPP


示例14: writeNode

void TOutline::writeNode(TNode *node, opstream &op) {
   uchar more = (node->next != 0) ? 1 : 0;
   uchar expand = (node->expanded) ? 1 : 0;

   op << more;
   op << expand;
   op << getNumChildren(node);
   op.writeString(node->text);

   if (node->childList != 0)
      writeNode(node->childList, op);

   if (node->next != 0)
      writeNode(node->next, op);
}
开发者ID:OS2World,项目名称:SYSTEM-LOADER-QSINIT,代码行数:15,代码来源:toutline.cpp


示例15: recordReference

void recordReference( char *topic, opstream& s )
{
    int i;
    TReference *ref;
    TFixUp *fixUp;

    initRefTable();
    ref = refTable->getReference(topic);
    if (ref->resolved == True)
        s << ref->val.value;
    else
        {
        fixUp =  new TFixUp;
        fixUp->pos = s.tellp();
        i = -1;
        s << i;
        fixUp->next = ref->val.fixUpList;
        ref->val.fixUpList = fixUp;
        }
}
开发者ID:LucasvBerkel,项目名称:TweedejaarsProject,代码行数:20,代码来源:TVHC.CPP


示例16: write

void TFileViewer::write(opstream& os)
{
    TScroller::write(os);
    os.writeString(fileName);
}
开发者ID:WiLLStenico,项目名称:TestesEOutrasBrincadeiras,代码行数:5,代码来源:fileview.cpp


示例17: write

void TStaticText::write( opstream& os )
{
    TView::write( os );
    os.writeString( text );
}
开发者ID:hackshields,项目名称:antivirus,代码行数:5,代码来源:TSTATICT.cpp


示例18: write

void DynamicText::write( opstream& os )
{
  TView::write( os );
  os.writeString( text );
  os << (int)rightJustify;
}
开发者ID:Mermouy,项目名称:archlinux-stuff,代码行数:6,代码来源:dyntext.cpp


示例19: write

void TButton::write( opstream& os )
{
    TView::write( os );
    os.writeString( title );
    os << command << flags << (int)amDefault;
}
开发者ID:LucasvBerkel,项目名称:TweedejaarsProject,代码行数:6,代码来源:TBUTTON.CPP


示例20: writeItem

void TDataBase::writeItem( void *obj, opstream& os )
{
	os.writeBytes( obj, sizeof( RecordDescriptor ) );
}
开发者ID:jskripsky,项目名称:ancient,代码行数:4,代码来源:DATABASE.CPP



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ optional类代码示例发布时间:2022-05-31
下一篇:
C++ operations类代码示例发布时间:2022-05-31
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap