本文整理汇总了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;未经允许,请勿转载。 |
请发表评论