VTK
vtkParseMain.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkParseMain.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
43 #ifndef vtkParseMain_h
44 #define vtkParseMain_h
45 
46 #include "vtkParseData.h"
47 #include <stdio.h>
48 
52 typedef struct _OptionInfo
53 {
54  int NumberOfFiles; /* the total number of file arguments */
55  char **Files; /* all of the file arguments */
56  char *InputFileName; /* the first file argument */
57  char *OutputFileName; /* the second file, or the "-o" file */
58  char *HintFileName; /* the file preceded by "--hints" */
59  char *HierarchyFileName; /* the file preceded by "--types" */
60 } OptionInfo;
61 
62 #ifdef __cplusplus
63 extern "C" {
64 #endif
65 
70 
74 FileInfo *vtkParse_Main(int argc, char *argv[]);
75 
80 void vtkParse_MainMulti(int argc, char *argv[]);
81 
82 #ifdef __cplusplus
83 } /* extern "C" */
84 #endif
85 
86 #endif
OptionInfo * vtkParse_GetCommandLineOptions()
Return the options provided on the command line.
int NumberOfFiles
Definition: vtkParseMain.h:54
FileInfo is for header files.
Definition: vtkParseData.h:222
struct _OptionInfo OptionInfo
vtkParseMain.h provides argument parsing for the wrapper executables.
char * HintFileName
Definition: vtkParseMain.h:58
FileInfo * vtkParse_Main(int argc, char *argv[])
The main function, parses the file and returns the result.
char * InputFileName
Definition: vtkParseMain.h:56
char * HierarchyFileName
Definition: vtkParseMain.h:59
vtkParseMain.h provides argument parsing for the wrapper executables.
Definition: vtkParseMain.h:52
char * OutputFileName
Definition: vtkParseMain.h:57
void vtkParse_MainMulti(int argc, char *argv[])
A main function that can take multiple input files.
char ** Files
Definition: vtkParseMain.h:55