本文整理汇总了C++中MemberGroup::unmarshal方法的典型用法代码示例。如果您正苦于以下问题:C++ MemberGroup::unmarshal方法的具体用法?C++ MemberGroup::unmarshal怎么用?C++ MemberGroup::unmarshal使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MemberGroup
的用法示例。
在下文中一共展示了MemberGroup::unmarshal方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: unmarshal
void MemberList::unmarshal(StorageIntf *s)
{
m_listType = (MemberListType)unmarshalInt(s);
m_varCnt = unmarshalInt(s);
m_funcCnt = unmarshalInt(s);
m_enumCnt = unmarshalInt(s);
m_enumValCnt = unmarshalInt(s);
m_typeCnt = unmarshalInt(s);
m_protoCnt = unmarshalInt(s);
m_defCnt = unmarshalInt(s);
m_friendCnt = unmarshalInt(s);
m_numDecMembers = unmarshalInt(s);
m_numDocMembers = unmarshalInt(s);
m_inGroup = unmarshalBool(s);
m_inFile = unmarshalBool(s);
m_needsSorting = unmarshalBool(s);
uint i,count = unmarshalUInt(s);
if (count==NULL_LIST) // empty list
{
memberGroupList = 0;
}
else // add member groups
{
memberGroupList = new MemberGroupList;
for (i=0;i<count;i++)
{
MemberGroup *mg = new MemberGroup;
mg->unmarshal(s);
memberGroupList->append(mg);
}
}
}