[Paraview] vtkParseMain Bug?

Henry Lehmann henry.lehmann at informatik.tu-freiberg.de
Fri May 3 13:35:47 EDT 2013


Hello,

i am playing around with vtkParseMain, which is used by 
WrappingClientServer to
generate New, Init and Command functions for the ClientServer Interpreter.
I am using the ParaView source from tar.gz archive of version 3.98.1

i parse the file vtkXMLReader.h using this program:

int main(int argc, char *argv[])
{
   FileInfo *fileInfo;
   int i;

   /* get command-line args and parse the header file */
   fileInfo = vtkParse_Main(argc, argv);
   for (i = 0; i < fileInfo->MainClass->NumberOfFunctions; ++i)
   {
     if (strcmp("SetFileName", fileInfo->MainClass->Functions[i]->Name))
     {
         continue;
     }
     printf("%s \n", fileInfo->MainClass->Functions[i]->Signature);
   }
   return 0;
}

during reading output of member function signatures
i recognized that the constness is wrong. it shows:

void SetFileName(char *);

instead of

void SetFileName(const char *);

like it is shown in doxygen documentation.

Best regards,
Henry



More information about the ParaView mailing list