summaryrefslogtreecommitdiffstats
path: root/src/filedef.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-07-30 13:58:29 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-07-30 13:58:29 (GMT)
commit3876f92c80e9cc62af30916f0ccdeb83cdc2ff05 (patch)
tree2d71d4688e381dc8e0c968d120b25fdd0763c27e /src/filedef.cpp
parent7295388a3c6b3a12a77dc7a56862333c97e4ccb6 (diff)
downloadDoxygen-3876f92c80e9cc62af30916f0ccdeb83cdc2ff05.zip
Doxygen-3876f92c80e9cc62af30916f0ccdeb83cdc2ff05.tar.gz
Doxygen-3876f92c80e9cc62af30916f0ccdeb83cdc2ff05.tar.bz2
Release-1.2.0-20000730
Diffstat (limited to 'src/filedef.cpp')
-rw-r--r--src/filedef.cpp81
1 files changed, 41 insertions, 40 deletions
diff --git a/src/filedef.cpp b/src/filedef.cpp
index eefb1ad..e35875f 100644
--- a/src/filedef.cpp
+++ b/src/filedef.cpp
@@ -39,8 +39,8 @@ FileDef::FileDef(const char *p,const char *nm,const char *lref)
{
path=p;
filepath=path+nm;
- filename=nameToFile(nm);
- diskname=filename.copy();
+ filename=nameToFile(nm,TRUE);
+ diskname=nameToFile(nm,FALSE);
setReference(lref);
classList = new ClassList;
includeList = new QList<IncludeInfo>;
@@ -388,16 +388,6 @@ void FileDef::writeDocumentation(OutputList &ol)
enumMembers.writeDocumentation(ol,name());
}
- //enumValMembers.countDocMembers();
- //if (enumValMembers.totalCount()>0 )
- //{
- // ol.writeRuler();
- // ol.startGroupHeader();
- // parseText(ol,theTranslator->trEnumerationValueDocumentation());
- // ol.endGroupHeader();
- // enumValMembers.writeDocumentation(ol,name());
- //}
-
funcMembers.countDocMembers();
if (funcMembers.totalCount()>0 )
{
@@ -532,10 +522,10 @@ void FileDef::insertMember(MemberDef *md)
enumMembers.append(md);
break;
case MemberDef::EnumValue:
- if (Config::sortMembersFlag)
- enumValMembers.inSort(md);
- else
- enumValMembers.append(md);
+ //if (Config::sortMembersFlag)
+ // enumValMembers.inSort(md);
+ //else
+ // enumValMembers.append(md);
break;
case MemberDef::Prototype:
if (Config::sortMembersFlag)
@@ -658,33 +648,44 @@ void FileDef::addIncludedByDependency(FileDef *fd,const char *incName,bool local
}
}
-//-----------------------------------------------------------------------------
-
-#if 0
-/*! Creates a file list. */
-FileList::FileList() : QList<FileDef>()
-{
-}
-
-/*! Destroys a file list */
-FileList::~FileList()
+void FileDef::generateXMLSection(QTextStream &t,MemberList *ml,const char *type)
{
+ if (ml->count()>0)
+ {
+ t << " <sectiondef type=\"" << type << "\">" << endl;
+ t << " <memberlist>" << endl;
+ MemberListIterator mli(*ml);
+ MemberDef *md;
+ for (mli.toFirst();(md=mli.current());++mli)
+ {
+ md->generateXML(t,this);
+ }
+ t << " </memberlist>" << endl;
+ t << " </sectiondef>" << endl;
+ }
}
-/*! Compares two files by name. */
-int FileList::compareItems(GCI item1, GCI item2)
+void FileDef::generateXML(QTextStream &t)
{
- FileDef *f1=(FileDef *)item1;
- FileDef *f2=(FileDef *)item2;
- ASSERT(f1!=0 && f2!=0);
- return Config::fullPathNameFlag ?
- stricmp(f1->absFilePath(),f2->absFilePath()) :
- stricmp(f1->name(),f2->name());
+ t << " <compounddef id=\""
+ << getOutputFileBase() << "\" type=\"file\">" << endl;
+ t << " <compoundname>";
+ writeXMLString(t,name());
+ t << "</compoundname>" << endl;
+ int numMembers = defineMembers.count()+protoMembers.count()+
+ typedefMembers.count()+enumMembers.count()+
+ funcMembers.count()+varMembers.count();
+ if (numMembers>0)
+ {
+ t << " <sectionlist>" << endl;
+ generateXMLSection(t,&defineMembers,"define");
+ generateXMLSection(t,&protoMembers,"prototype");
+ generateXMLSection(t,&typedefMembers,"typedef");
+ generateXMLSection(t,&enumMembers,"enum");
+ generateXMLSection(t,&funcMembers,"func");
+ generateXMLSection(t,&varMembers,"var");
+ t << " </sectionlist>" << endl;
+ }
+ t << " </compounddef>" << endl;
}
-/*! Create a file list iterator. */
-FileListIterator::FileListIterator(const FileList &cllist) :
- QListIterator<FileDef>(cllist)
-{
-}
-#endif