File: vtkWrapPythonMethod.h

package info (click to toggle)
vtk9 9.5.2%2Bdfsg3-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 205,916 kB
  • sloc: cpp: 2,336,565; ansic: 327,116; python: 111,200; yacc: 4,104; java: 3,977; sh: 3,032; xml: 2,771; perl: 2,189; lex: 1,787; makefile: 178; javascript: 165; objc: 153; tcl: 59
file content (32 lines) | stat: -rw-r--r-- 1,376 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
// SPDX-License-Identifier: BSD-3-Clause

#ifndef vtkWrapPythonMethod_h
#define vtkWrapPythonMethod_h

#include "vtkParse.h"
#include "vtkParseData.h"
#include "vtkParseHierarchy.h"

/* print out the code for one method, including all of its overloads */
void vtkWrapPython_GenerateOneMethod(FILE* fp, const char* classname, ClassInfo* data,
  FileInfo* finfo, const HierarchyInfo* hinfo, FunctionInfo* wrappedFunctions[],
  int numberOfWrappedFunctions, int fnum, int is_vtkobject, int do_constructors);

/* declare all variables needed by the wrapper method */
void vtkWrapPython_DeclareVariables(FILE* fp, const ClassInfo* data, const FunctionInfo* theFunc);

/* Write the code to convert an argument with vtkPythonArgs */
void vtkWrapPython_GetSingleArgument(
  FILE* fp, const ClassInfo* data, int i, const ValueInfo* arg, int static_call);

/* print the code to build python return value from a method */
void vtkWrapPython_ReturnValue(
  FILE* fp, const ClassInfo* data, const ValueInfo* val, int static_call);

/* print the code that generates a DeprecationWarning */
void vtkWrapPython_DeprecationWarning(
  FILE* fp, const char* what, const char* name, const char* reason, const char* version);

#endif /* vtkWrapPythonMethod_h */
/* VTK-HeaderTest-Exclude: vtkWrapPythonMethod.h */