[Doxygen-develop] Cannot get the correct informaition from the interfaces of 'IDocCodeLine'
Brought to you by:
dimitri
From: Qiuping Yi <yiq...@gm...> - 2013-03-17 14:14:52
|
Dear all, I am a doxygen user. I want to use doxygen's doxmlparser to analysis the generated xml files from C code. When I use the next code the print the line number and ref information for each C code line: if (comp->kind() == ICompound::File) { IFile *file = dynamic_cast<IFile*>(comp); IDoc *source = file->source(); IDocProgramListing *programListing = dynamic_cast<IDocProgramListing*>(source); IDocIterator *cli = programListing->codeLines(); IDoc *cx; for (cli->toFirst();(cx=cli->current());cli->toNext()) { IDocCodeLine *cl = dynamic_cast<IDocCodeLine*>(cx); ASSERT(cl!=0); printf("<codeline lineNumber=%d refId=`%s'>\n",cl->lineNumber(),cl->refId()->latin1()); } } } I can only get the next *"empty"* information. What's wrong of my code? Did I miss something? Thank you all in advance. <codeline lineNumber=0 refId=`'> <codeline lineNumber=0 refId=`'> <codeline lineNumber=0 refId=`'> <codeline lineNumber=0 refId=`'> <codeline lineNumber=0 refId=`'> <codeline lineNumber=0 refId=`'> <codeline lineNumber=0 refId=`'> <codeline lineNumber=0 refId=`'> <codeline lineNumber=0 refId=`'> <codeline lineNumber=0 refId=`'> <codeline lineNumber=0 refId=`'> ... ... -------------------------------------------- Qiuping Yi Institute Of Software Chinese Academy of Sciences |