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 VTK_PARSE_MAIN_H
44 #define VTK_PARSE_MAIN_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" */
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
_FileInfo
FileInfo is for header files.
Definition: vtkParseData.h:223
OptionInfo
struct _OptionInfo OptionInfo
vtkParseMain.h provides argument parsing for the wrapper executables.
vtkParse_GetCommandLineOptions
OptionInfo * vtkParse_GetCommandLineOptions()
Return the options provided on the command line.
vtkParse_Main
FileInfo * vtkParse_Main(int argc, char *argv[])
The main function, parses the file and returns the result.
_OptionInfo
vtkParseMain.h provides argument parsing for the wrapper executables.
Definition: vtkParseMain.h:53
vtkParse_MainMulti
void vtkParse_MainMulti(int argc, char *argv[])
A main function that can take multiple input files.
vtkParseData.h
_OptionInfo::HierarchyFileName
char * HierarchyFileName
Definition: vtkParseMain.h:59
_OptionInfo::NumberOfFiles
int NumberOfFiles
Definition: vtkParseMain.h:54
_OptionInfo::OutputFileName
char * OutputFileName
Definition: vtkParseMain.h:57
_OptionInfo::HintFileName
char * HintFileName
Definition: vtkParseMain.h:58
_OptionInfo::Files
char ** Files
Definition: vtkParseMain.h:55
_OptionInfo::InputFileName
char * InputFileName
Definition: vtkParseMain.h:56