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

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to