VTK
vtkWrapPythonEnum.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkWrapPythonEnum.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 
16 #ifndef VTK_WRAP_PYTHON_ENUM_H
17 #define VTK_WRAP_PYTHON_ENUM_H
18 
19 #include "vtkParse.h"
20 #include "vtkParseData.h"
21 #include "vtkParseHierarchy.h"
22 
23 /* check whether an enum type will be wrapped */
25  HierarchyInfo *hinfo, const char *enumname);
26 
27 /* write out an enum type wrapped in python */
29  FILE *fp, const char *classname, EnumInfo *data);
30 
31 /* generate code that adds an enum type to a python dict */
33  FILE *fp, const char *indent, const char *dictvar, const char *objvar,
34  const char *scope, EnumInfo *cls);
35 
36 /* generate code that adds all public enum types to a python dict */
38  FILE *fp, const char *indent, const char *dictvar, const char *objvar,
40 
41 #endif /* VTK_WRAP_PYTHON_ENUM_H */
int vtkWrapPython_IsEnumWrapped(HierarchyInfo *hinfo, const char *enumname)
All the entries from a hierarchy file.
void vtkWrapPython_AddPublicEnumTypes(FILE *fp, const char *indent, const char *dictvar, const char *objvar, NamespaceInfo *data)
void vtkWrapPython_GenerateEnumType(FILE *fp, const char *classname, EnumInfo *data)
ClassInfo is for classes, structs, unions, and namespaces.
Definition: vtkParseData.h:175
void vtkWrapPython_AddEnumType(FILE *fp, const char *indent, const char *dictvar, const char *objvar, const char *scope, EnumInfo *cls)