本文整理汇总了C++中StreamSerialiser::writeChunkEnd方法的典型用法代码示例。如果您正苦于以下问题:C++ StreamSerialiser::writeChunkEnd方法的具体用法?C++ StreamSerialiser::writeChunkEnd怎么用?C++ StreamSerialiser::writeChunkEnd使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StreamSerialiser
的用法示例。
在下文中一共展示了StreamSerialiser::writeChunkEnd方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: save
//---------------------------------------------------------------------
void PagedWorldSection::save(StreamSerialiser& ser)
{
ser.writeChunkBegin(CHUNK_ID, CHUNK_VERSION);
// Name
ser.write(&mName);
// AABB
ser.write(&mAABB);
// SceneManager type & name
ser.write(&mSceneMgr->getTypeName());
ser.write(&mSceneMgr->getName());
// Page Strategy Name
ser.write(&mStrategy->getName());
// Page Strategy Data
mStrategyData->save(ser);
/// Save any data specific to a subtype of this class
saveSubtypeData(ser);
ser.writeChunkEnd(CHUNK_ID);
// save all pages (in separate files)
for (PageMap::iterator i = mPages.begin(); i != mPages.end(); ++i)
{
i->second->save();
}
}
示例2: save
//---------------------------------------------------------------------
void SimplePageContentCollection::save(StreamSerialiser& stream)
{
stream.writeChunkBegin(SUBCLASS_CHUNK_ID, SUBCLASS_CHUNK_VERSION);
for (ContentList::iterator i = mContentList.begin(); i != mContentList.end(); ++i)
(*i)->save(stream);
stream.writeChunkEnd(SUBCLASS_CHUNK_ID);
}
示例3: save
//---------------------------------------------------------------------
void PagedWorld::save(StreamSerialiser& ser)
{
ser.writeChunkBegin(CHUNK_ID, CHUNK_VERSION);
// Name
ser.write(&mName);
// Sections
for (SectionMap::iterator i = mSections.begin(); i != mSections.end(); ++i)
{
PagedWorldSection* sec = i->second;
// declaration
ser.writeChunkBegin(CHUNK_SECTIONDECLARATION_ID);
ser.write(&sec->getType());
ser.write(&sec->getName());
ser.writeChunkEnd(CHUNK_SECTIONDECLARATION_ID);
// data
i->second->save(ser);
}
ser.writeChunkEnd(CHUNK_ID);
}
示例4: save
//---------------------------------------------------------------------
void Page::save(StreamSerialiser& stream)
{
stream.writeChunkBegin(CHUNK_ID, CHUNK_VERSION);
// page id
stream.write(&mID);
// content collections
for (ContentCollectionList::iterator i = mContentCollections.begin();
i != mContentCollections.end(); ++i)
{
// declaration
stream.writeChunkBegin(CHUNK_CONTENTCOLLECTION_DECLARATION_ID);
stream.write(&(*i)->getType());
stream.writeChunkEnd(CHUNK_CONTENTCOLLECTION_DECLARATION_ID);
// data
(*i)->save(stream);
}
stream.writeChunkEnd(CHUNK_ID);
mModified = false;
}
示例5:
//---------------------------------------------------------------------
void Grid3DPageStrategyData::save(StreamSerialiser& ser)
{
ser.writeChunkBegin(CHUNK_ID, CHUNK_VERSION);
ser.write(&mWorldOrigin);
ser.write(&mCellSize);
ser.write(&mLoadRadius);
ser.write(&mHoldRadius);
ser.write(&mMinCellX);
ser.write(&mMaxCellX);
ser.write(&mMinCellY);
ser.write(&mMaxCellY);
ser.write(&mMinCellZ);
ser.write(&mMaxCellZ);
ser.writeChunkEnd(CHUNK_ID);
}