My Project
|
#include <qfile.h>
#include <assert.h>
#include "sortdict.h"
#include "marshal.h"
#include "entry.h"
#include "section.h"
#include "memberlist.h"
#include "definition.h"
#include "groupdef.h"
#include "example.h"
#include "arguments.h"
Go to the source code of this file.
Macros | |
#define | HEADER ('D'<<24)+('O'<<16)+('X'<<8)+'!' |
#define HEADER ('D'<<24)+('O'<<16)+('X'<<8)+'!' |
Definition at line 14 of file marshal.cpp.
Referenced by marshalEntry(), and unmarshalEntry().
void marshalArgumentList | ( | StorageIntf * | s, |
ArgumentList * | argList | ||
) |
Definition at line 62 of file marshal.cpp.
References ArgumentList::marshal().
Referenced by marshalArgumentLists(), and marshalEntry().
void marshalArgumentLists | ( | StorageIntf * | s, |
QList< ArgumentList > * | argLists | ||
) |
Definition at line 67 of file marshal.cpp.
References marshalArgumentList(), marshalUInt(), and NULL_LIST.
Referenced by marshalEntry().
void marshalBaseInfoList | ( | StorageIntf * | s, |
QList< BaseInfo > * | baseList | ||
) |
Definition at line 85 of file marshal.cpp.
References marshalInt(), marshalQCString(), marshalUInt(), BaseInfo::name, NULL_LIST, BaseInfo::prot, and BaseInfo::virt.
Referenced by marshalEntry().
void marshalBodyInfo | ( | StorageIntf * | s, |
BodyInfo * | bodyInfo | ||
) |
Definition at line 247 of file marshal.cpp.
References BodyInfo::endLine, BodyInfo::fileDef, marshalInt(), marshalObjPointer(), marshalUInt(), NULL_LIST, and BodyInfo::startLine.
void marshalBool | ( | StorageIntf * | s, |
bool | b | ||
) |
Definition at line 42 of file marshal.cpp.
References StorageIntf::write().
Referenced by MemberList::marshal(), MemberGroup::marshal(), ArgumentList::marshal(), and marshalEntry().
void marshalBriefInfo | ( | StorageIntf * | s, |
BriefInfo * | briefInfo | ||
) |
Definition at line 231 of file marshal.cpp.
References BriefInfo::doc, BriefInfo::file, BriefInfo::line, marshalInt(), marshalQCString(), marshalUInt(), NULL_LIST, and BriefInfo::tooltip.
void marshalDocInfo | ( | StorageIntf * | s, |
DocInfo * | docInfo | ||
) |
Definition at line 216 of file marshal.cpp.
References DocInfo::doc, DocInfo::file, DocInfo::line, marshalInt(), marshalQCString(), marshalUInt(), and NULL_LIST.
void marshalEntry | ( | StorageIntf * | s, |
Entry * | e | ||
) |
Definition at line 347 of file marshal.cpp.
References Entry::anchors, Entry::argList, Entry::args, Entry::artificial, Entry::bitfields, Entry::bodyLine, Entry::brief, Entry::briefFile, Entry::briefLine, Entry::callerGraph, Entry::callGraph, Entry::doc, Entry::docFile, Entry::docLine, Entry::endBodyLine, Entry::exception, Entry::explicitExternal, Entry::extends, Entry::fileName, Entry::groupDocType, Entry::groups, HEADER, Entry::hidden, Entry::id, Entry::inbodyDocs, Entry::inbodyFile, Entry::inbodyLine, Entry::includeFile, Entry::includeName, Entry::initializer, Entry::initLines, Entry::inside, Entry::lang, marshalArgumentList(), marshalArgumentLists(), marshalBaseInfoList(), marshalBool(), marshalGroupingList(), marshalInt(), marshalItemInfoList(), marshalQCString(), marshalQGString(), marshalSectionInfoList(), marshalUInt(), marshalUInt64(), Entry::mGrpId, Entry::mtype, Entry::name, Entry::program, Entry::protection, Entry::proto, Entry::read, Entry::relates, Entry::relatesType, Entry::section, Entry::sli, Entry::spec, Entry::startLine, Entry::stat, Entry::subGrouping, Entry::tArgLists, Entry::type, Entry::typeConstr, Entry::virt, and Entry::write.
Referenced by marshalEntryTree(), and EntryNav::saveEntry().
void marshalEntryTree | ( | StorageIntf * | s, |
Entry * | e | ||
) |
Definition at line 404 of file marshal.cpp.
References Entry::children(), marshalEntry(), marshalEntryTree(), and marshalUInt().
Referenced by marshalEntryTree().
void marshalExampleSDict | ( | StorageIntf * | s, |
ExampleSDict * | ed | ||
) |
Definition at line 303 of file marshal.cpp.
References Example::anchor, SDict< T >::count(), Example::file, marshalQCString(), marshalUInt(), Example::name, and NULL_LIST.
void marshalGroupingList | ( | StorageIntf * | s, |
QList< Grouping > * | groups | ||
) |
Definition at line 105 of file marshal.cpp.
References Grouping::groupname, marshalInt(), marshalQCString(), marshalUInt(), NULL_LIST, and Grouping::pri.
Referenced by marshalEntry().
void marshalGroupList | ( | StorageIntf * | s, |
GroupList * | groupList | ||
) |
Definition at line 262 of file marshal.cpp.
References marshalObjPointer(), marshalUInt(), and NULL_LIST.
void marshalInt | ( | StorageIntf * | s, |
int | v | ||
) |
Definition at line 16 of file marshal.cpp.
References StorageIntf::write().
Referenced by MemberList::marshal(), MemberGroup::marshal(), marshalBaseInfoList(), marshalBodyInfo(), marshalBriefInfo(), marshalDocInfo(), marshalEntry(), marshalGroupingList(), marshalItemInfoList(), and marshalSectionInfoList().
void marshalItemInfoList | ( | StorageIntf * | s, |
QList< ListItemInfo > * | sli | ||
) |
Definition at line 148 of file marshal.cpp.
References ListItemInfo::itemId, marshalInt(), marshalQCString(), marshalUInt(), NULL_LIST, and ListItemInfo::type.
Referenced by MemberGroup::marshal(), and marshalEntry().
void marshalMemberList | ( | StorageIntf * | s, |
MemberList * | ml | ||
) |
Definition at line 280 of file marshal.cpp.
References MemberList::count(), MemberList::marshal(), marshalObjPointer(), marshalUInt(), and NULL_LIST.
Referenced by MemberGroup::marshal().
void marshalMemberLists | ( | StorageIntf * | s, |
SDict< MemberList > * | mls | ||
) |
Definition at line 326 of file marshal.cpp.
References SDict< T >::count(), marshalObjPointer(), marshalQCString(), marshalUInt(), and NULL_LIST.
void marshalMemberSDict | ( | StorageIntf * | s, |
MemberSDict * | memberSDict | ||
) |
Definition at line 192 of file marshal.cpp.
References SDict< T >::count(), marshalObjPointer(), marshalQCString(), marshalUInt(), and NULL_LIST.
void marshalObjPointer | ( | StorageIntf * | s, |
void * | obj | ||
) |
Definition at line 167 of file marshal.cpp.
References StorageIntf::write().
Referenced by MemberGroup::marshal(), marshalBodyInfo(), marshalGroupList(), marshalMemberList(), marshalMemberLists(), marshalMemberSDict(), and marshalSectionDict().
void marshalQCString | ( | StorageIntf * | s, |
const QCString & | str | ||
) |
Definition at line 48 of file marshal.cpp.
References marshalUInt(), and StorageIntf::write().
Referenced by MemberGroup::marshal(), ArgumentList::marshal(), marshalBaseInfoList(), marshalBriefInfo(), marshalDocInfo(), marshalEntry(), marshalExampleSDict(), marshalGroupingList(), marshalItemInfoList(), marshalMemberLists(), marshalMemberSDict(), marshalSectionDict(), and marshalSectionInfoList().
void marshalQGString | ( | StorageIntf * | s, |
const QGString & | str | ||
) |
Definition at line 55 of file marshal.cpp.
References marshalUInt(), and StorageIntf::write().
Referenced by marshalEntry().
void marshalSectionDict | ( | StorageIntf * | s, |
SectionDict * | sections | ||
) |
Definition at line 173 of file marshal.cpp.
References SDict< T >::count(), marshalObjPointer(), marshalQCString(), marshalUInt(), and NULL_LIST.
void marshalSectionInfoList | ( | StorageIntf * | s, |
QList< SectionInfo > * | anchors | ||
) |
Definition at line 124 of file marshal.cpp.
References SectionInfo::fileName, SectionInfo::label, SectionInfo::level, SectionInfo::lineNr, marshalInt(), marshalQCString(), marshalUInt(), NULL_LIST, SectionInfo::ref, SectionInfo::title, and SectionInfo::type.
Referenced by marshalEntry().
void marshalUInt | ( | StorageIntf * | s, |
uint | v | ||
) |
Definition at line 26 of file marshal.cpp.
References StorageIntf::write().
Referenced by MemberList::marshal(), ArgumentList::marshal(), marshalArgumentLists(), marshalBaseInfoList(), marshalBodyInfo(), marshalBriefInfo(), marshalDocInfo(), marshalEntry(), marshalEntryTree(), marshalExampleSDict(), marshalGroupingList(), marshalGroupList(), marshalItemInfoList(), marshalMemberList(), marshalMemberLists(), marshalMemberSDict(), marshalQCString(), marshalQGString(), marshalSectionDict(), marshalSectionInfoList(), and marshalUInt64().
void marshalUInt64 | ( | StorageIntf * | s, |
uint64 | v | ||
) |
ArgumentList* unmarshalArgumentList | ( | StorageIntf * | s | ) |
Definition at line 479 of file marshal.cpp.
References ArgumentList::unmarshal().
Referenced by unmarshalArgumentLists(), and unmarshalEntry().
QList<ArgumentList>* unmarshalArgumentLists | ( | StorageIntf * | s | ) |
Definition at line 484 of file marshal.cpp.
References NULL_LIST, unmarshalArgumentList(), and unmarshalUInt().
Referenced by unmarshalEntry().
QList<BaseInfo>* unmarshalBaseInfoList | ( | StorageIntf * | s | ) |
Definition at line 500 of file marshal.cpp.
References NULL_LIST, unmarshalInt(), unmarshalQCString(), and unmarshalUInt().
Referenced by unmarshalEntry().
BodyInfo* unmarshalBodyInfo | ( | StorageIntf * | s | ) |
Definition at line 650 of file marshal.cpp.
References BodyInfo::endLine, BodyInfo::fileDef, NULL_LIST, BodyInfo::startLine, unmarshalInt(), unmarshalObjPointer(), and unmarshalUInt().
bool unmarshalBool | ( | StorageIntf * | s | ) |
Definition at line 443 of file marshal.cpp.
References StorageIntf::read().
Referenced by MemberList::unmarshal(), MemberGroup::unmarshal(), ArgumentList::unmarshal(), and unmarshalEntry().
BriefInfo* unmarshalBriefInfo | ( | StorageIntf * | s | ) |
Definition at line 638 of file marshal.cpp.
References BriefInfo::doc, BriefInfo::file, BriefInfo::line, NULL_LIST, BriefInfo::tooltip, unmarshalInt(), unmarshalQCString(), and unmarshalUInt().
DocInfo* unmarshalDocInfo | ( | StorageIntf * | s | ) |
Definition at line 627 of file marshal.cpp.
References DocInfo::doc, DocInfo::file, DocInfo::line, NULL_LIST, unmarshalInt(), unmarshalQCString(), and unmarshalUInt().
Entry* unmarshalEntry | ( | StorageIntf * | s | ) |
Definition at line 727 of file marshal.cpp.
References Entry::anchors, Entry::argList, Entry::args, Entry::artificial, Entry::bitfields, Entry::bodyLine, Entry::brief, Entry::briefFile, Entry::briefLine, Entry::callerGraph, Entry::callGraph, Entry::doc, Entry::docFile, Entry::docLine, Entry::endBodyLine, Entry::exception, Entry::explicitExternal, Entry::extends, Entry::fileName, Entry::groupDocType, Entry::groups, HEADER, Entry::hidden, Entry::id, Entry::inbodyDocs, Entry::inbodyFile, Entry::inbodyLine, Entry::includeFile, Entry::includeName, Entry::initializer, Entry::initLines, Entry::inside, Entry::lang, Entry::mGrpId, Entry::mtype, Entry::name, Entry::program, Entry::protection, Entry::proto, Entry::read, Entry::relates, Entry::relatesType, Entry::section, Entry::sli, Entry::spec, Entry::startLine, Entry::stat, Entry::subGrouping, Entry::tArgLists, Entry::type, Entry::typeConstr, unmarshalArgumentList(), unmarshalArgumentLists(), unmarshalBaseInfoList(), unmarshalBool(), unmarshalGroupingList(), unmarshalInt(), unmarshalItemInfoList(), unmarshalQCString(), unmarshalQGString(), unmarshalSectionInfoList(), unmarshalUInt(), unmarshalUInt64(), Entry::virt, and Entry::write.
Referenced by EntryNav::loadEntry(), and unmarshalEntryTree().
Entry* unmarshalEntryTree | ( | StorageIntf * | s | ) |
Definition at line 791 of file marshal.cpp.
References Entry::addSubEntry(), unmarshalEntry(), unmarshalEntryTree(), and unmarshalUInt().
Referenced by unmarshalEntryTree().
ExampleSDict* unmarshalExampleSDict | ( | StorageIntf * | s | ) |
Definition at line 692 of file marshal.cpp.
References Example::anchor, Example::file, SDict< T >::inSort(), Example::name, NULL_LIST, unmarshalQCString(), and unmarshalUInt().
QList<Grouping>* unmarshalGroupingList | ( | StorageIntf * | s | ) |
Definition at line 518 of file marshal.cpp.
References NULL_LIST, unmarshalInt(), unmarshalQCString(), and unmarshalUInt().
Referenced by unmarshalEntry().
GroupList* unmarshalGroupList | ( | StorageIntf * | s | ) |
Definition at line 661 of file marshal.cpp.
References NULL_LIST, unmarshalObjPointer(), and unmarshalUInt().
int unmarshalInt | ( | StorageIntf * | s | ) |
Definition at line 418 of file marshal.cpp.
References StorageIntf::read().
Referenced by MemberList::unmarshal(), MemberGroup::unmarshal(), unmarshalBaseInfoList(), unmarshalBodyInfo(), unmarshalBriefInfo(), unmarshalDocInfo(), unmarshalEntry(), unmarshalGroupingList(), unmarshalItemInfoList(), and unmarshalSectionInfoList().
QList<ListItemInfo>* unmarshalItemInfoList | ( | StorageIntf * | s | ) |
Definition at line 557 of file marshal.cpp.
References ListItemInfo::itemId, NULL_LIST, ListItemInfo::type, unmarshalInt(), unmarshalQCString(), and unmarshalUInt().
Referenced by MemberGroup::unmarshal(), and unmarshalEntry().
MemberList* unmarshalMemberList | ( | StorageIntf * | s | ) |
Definition at line 676 of file marshal.cpp.
References MemberList::append(), NULL_LIST, MemberList::unmarshal(), unmarshalObjPointer(), and unmarshalUInt().
Referenced by MemberGroup::unmarshal().
SDict<MemberList>* unmarshalMemberLists | ( | StorageIntf * | s | ) |
Definition at line 711 of file marshal.cpp.
References SDict< T >::append(), NULL_LIST, unmarshalObjPointer(), unmarshalQCString(), and unmarshalUInt().
MemberSDict* unmarshalMemberSDict | ( | StorageIntf * | s | ) |
Definition at line 600 of file marshal.cpp.
References SDict< T >::append(), NULL_LIST, unmarshalObjPointer(), unmarshalQCString(), and unmarshalUInt().
void* unmarshalObjPointer | ( | StorageIntf * | s | ) |
Definition at line 575 of file marshal.cpp.
References StorageIntf::read().
Referenced by MemberGroup::unmarshal(), unmarshalBodyInfo(), unmarshalGroupList(), unmarshalMemberList(), unmarshalMemberLists(), unmarshalMemberSDict(), and unmarshalSectionDict().
QCString unmarshalQCString | ( | StorageIntf * | s | ) |
Definition at line 451 of file marshal.cpp.
References StorageIntf::read(), and unmarshalUInt().
Referenced by MemberGroup::unmarshal(), ArgumentList::unmarshal(), unmarshalBaseInfoList(), unmarshalBriefInfo(), unmarshalDocInfo(), unmarshalEntry(), unmarshalExampleSDict(), unmarshalGroupingList(), unmarshalItemInfoList(), unmarshalMemberLists(), unmarshalMemberSDict(), unmarshalSectionDict(), and unmarshalSectionInfoList().
QGString unmarshalQGString | ( | StorageIntf * | s | ) |
Definition at line 465 of file marshal.cpp.
References StorageIntf::read(), and unmarshalUInt().
Referenced by unmarshalEntry().
SectionDict* unmarshalSectionDict | ( | StorageIntf * | s | ) |
Definition at line 582 of file marshal.cpp.
References SDict< T >::append(), NULL_LIST, unmarshalObjPointer(), unmarshalQCString(), and unmarshalUInt().
QList<SectionInfo>* unmarshalSectionInfoList | ( | StorageIntf * | s | ) |
Definition at line 535 of file marshal.cpp.
References NULL_LIST, unmarshalInt(), unmarshalQCString(), and unmarshalUInt().
Referenced by unmarshalEntry().
uint unmarshalUInt | ( | StorageIntf * | s | ) |
Definition at line 427 of file marshal.cpp.
References StorageIntf::read().
Referenced by MemberList::unmarshal(), ArgumentList::unmarshal(), unmarshalArgumentLists(), unmarshalBaseInfoList(), unmarshalBodyInfo(), unmarshalBriefInfo(), unmarshalDocInfo(), unmarshalEntry(), unmarshalEntryTree(), unmarshalExampleSDict(), unmarshalGroupingList(), unmarshalGroupList(), unmarshalItemInfoList(), unmarshalMemberList(), unmarshalMemberLists(), unmarshalMemberSDict(), unmarshalQCString(), unmarshalQGString(), unmarshalSectionDict(), unmarshalSectionInfoList(), and unmarshalUInt64().
uint64 unmarshalUInt64 | ( | StorageIntf * | s | ) |
Definition at line 436 of file marshal.cpp.
References unmarshalUInt().
Referenced by unmarshalEntry().