54 printf(
"Usage: %s xml_output_dir\n",
argv[0]);
72 int numDocPubMethods=0;
73 int numDocProMethods=0;
74 int numDocPriMethods=0;
78 int numDocFunctions=0;
79 int numDocAttributes=0;
80 int numDocVariables=0;
89 printf(
"Error reading %s/index.xml\n",
argv[1]);
97 printf(
"Processing %s...\n",comp->
name()->
latin1());
103 if (hasDocs) numDocClasses++;
208 if (type &&
strcmp(type,
"void"))
224 int numMethods = numPubMethods+numProMethods+numPriMethods;
225 int numDocMethods = numDocPubMethods+numDocProMethods+numDocPriMethods;
227 printf(
"Metrics:\n");
228 printf(
"-----------------------------------\n");
229 if (numClasses>0) printf(
"Classes: %10d (%d documented)\n",numClasses,numDocClasses);
230 if (numStructs>0) printf(
"Structs: %10d\n",numStructs);
231 if (numUnions>0) printf(
"Unions: %10d\n",numUnions);
232 if (numInterfaces>0) printf(
"Interfaces: %10d\n",numInterfaces);
233 if (numExceptions>0) printf(
"Exceptions: %10d\n",numExceptions);
234 if (numNamespaces>0) printf(
"Namespaces: %10d\n",numNamespaces);
235 if (numFiles>0) printf(
"Files: %10d\n",numFiles);
236 if (numGroups>0) printf(
"Groups: %10d\n",numGroups);
237 if (numPages>0) printf(
"Pages: %10d\n",numPages);
238 if (numPackages>0) printf(
"Packages: %10d\n",numPackages);
239 if (numMethods>0) printf(
"Methods: %10d (%d documented)\n",numMethods,numDocMethods);
240 if (numPubMethods>0) printf(
" Public: %10d (%d documented)\n",numPubMethods,numDocPubMethods);
241 if (numProMethods>0) printf(
" Protected: %10d (%d documented)\n",numProMethods,numDocProMethods);
242 if (numPriMethods>0) printf(
" Private: %10d (%d documented)\n",numPriMethods,numDocPriMethods);
243 if (numFunctions>0) printf(
"Functions: %10d (%d documented)\n",numFunctions,numDocFunctions);
244 if (numAttributes>0) printf(
"Attributes: %10d (%d documented)\n",numAttributes,numDocAttributes);
245 if (numVariables>0) printf(
"Variables: %10d (%d documented)\n",numVariables,numDocVariables);
246 if (numParams>0) printf(
"Params: %10d\n",numParams);
247 printf(
"-----------------------------------\n");
248 if (numClasses>0) printf(
"Avg. #methods/compound: %10f\n",(
double)numMethods/(
double)numClasses);
249 if (numMethods>0) printf(
"Avg. #params/method: %10f\n",(
double)numParams/(
double)numMethods);
250 printf(
"-----------------------------------\n");
virtual IParam * current() const =0
virtual IMember * current() const =0
virtual IDocRoot * briefDescription() const =0
virtual bool isPublic() const =0
virtual bool readXMLDir(const char *xmlDirName)=0
virtual IDocRoot * briefDescription() const =0
virtual IParamIterator * parameters() const =0
virtual IDocRoot * detailedDescription() const =0
virtual const char * latin1() const =0
virtual ISection * toFirst()=0
virtual IDocRoot * detailedDescription() const =0
virtual ICompound * current() const =0
virtual const IString * name() const =0
bool isDocumented(IDocRoot *brief, IDocRoot *detailed)
virtual ISection * toNext()=0
virtual ISection * current() const =0
virtual CompoundKind kind() const =0
virtual ICompoundIterator * compounds() const =0
virtual ISectionIterator * sections() const =0
virtual const IString * typeString() const =0
virtual ISection * section() const =0
virtual IParam * toNext()=0
virtual IMember * toFirst()=0
virtual void setDebugLevel(int level)=0
The interface to a compound in the object model.
The interface to a section in the object model.
virtual IMemberIterator * members() const =0
int strcmp(const String &s1, const String &s2)
IDoxygen * createObjectModel()
Representation of a parameter of a function.
virtual bool isPrivate() const =0
virtual bool isProtected() const =0
virtual IParam * toFirst()=0
virtual IMember * toNext()=0
virtual MemberKind kind() const =0