Visual Servoing Platform version 3.7.0
Loading...
Searching...
No Matches
gen2.PythonWrapperGenerator Class Reference
Inheritance diagram for gen2.PythonWrapperGenerator:

Public Member Functions

 __init__ (self)
 clear (self)
 add_class (self, stype, name, decl)
 split_decl_name (self, name)
 add_const (self, name, decl)
 add_func (self, decl)
 gen_namespace (self, ns_name)
 gen_namespaces_reg (self)
 save (self, path, name, buf)
 save_json (self, path, name, value)
 gen (self, srcfiles, output_path)

Public Attributes

dict classes = {}
dict namespaces = {}
dict consts = {}
 code_include = StringIO()
 code_types = StringIO()
 code_funcs = StringIO()
 code_type_reg = StringIO()
 code_ns_reg = StringIO()
 code_type_publish = StringIO()
 py_signatures = dict()
int class_idx = 0
 parser = hdr_parser.CppHeaderParser(generate_umat_decls=True)

Detailed Description

Definition at line 832 of file gen2.py.

Constructor & Destructor Documentation

◆ __init__()

gen2.PythonWrapperGenerator.__init__ ( self)

Member Function Documentation

◆ add_class()

gen2.PythonWrapperGenerator.add_class ( self,
stype,
name,
decl )

Definition at line 849 of file gen2.py.

References class_idx, classes, py_signatures, and split_decl_name().

Referenced by gen_java.JavaWrapperGenerator.gen().

◆ add_const()

gen2.PythonWrapperGenerator.add_const ( self,
name,
decl )

Definition at line 879 of file gen2.py.

References namespaces, py_signatures, and split_decl_name().

Referenced by gen_java.JavaWrapperGenerator.gen().

◆ add_func()

gen2.PythonWrapperGenerator.add_func ( self,
decl )

◆ clear()

gen2.PythonWrapperGenerator.clear ( self)

Definition at line 836 of file gen2.py.

Referenced by __init__(), gen(), and gen_java.JavaWrapperGenerator.gen().

◆ gen()

gen2.PythonWrapperGenerator.gen ( self,
srcfiles,
output_path )

◆ gen_namespace()

gen2.PythonWrapperGenerator.gen_namespace ( self,
ns_name )

Definition at line 943 of file gen2.py.

References code_ns_reg, namespaces, and gen2.normalize_class_name().

◆ gen_namespaces_reg()

gen2.PythonWrapperGenerator.gen_namespaces_reg ( self)

Definition at line 962 of file gen2.py.

References code_ns_reg, namespaces, and gen2.normalize_class_name().

◆ save()

gen2.PythonWrapperGenerator.save ( self,
path,
name,
buf )

◆ save_json()

gen2.PythonWrapperGenerator.save_json ( self,
path,
name,
value )

Definition at line 975 of file gen2.py.

◆ split_decl_name()

gen2.PythonWrapperGenerator.split_decl_name ( self,
name )

Definition at line 870 of file gen2.py.

References parser.

Referenced by add_class(), add_const(), and add_func().

Member Data Documentation

◆ class_idx

int gen2.PythonWrapperGenerator.class_idx = 0

Definition at line 847 of file gen2.py.

Referenced by add_class().

◆ classes

◆ code_funcs

gen2.PythonWrapperGenerator.code_funcs = StringIO()

Definition at line 842 of file gen2.py.

◆ code_include

gen2.PythonWrapperGenerator.code_include = StringIO()

Definition at line 840 of file gen2.py.

◆ code_ns_reg

gen2.PythonWrapperGenerator.code_ns_reg = StringIO()

Definition at line 844 of file gen2.py.

Referenced by gen_namespace(), and gen_namespaces_reg().

◆ code_type_publish

gen2.PythonWrapperGenerator.code_type_publish = StringIO()

Definition at line 845 of file gen2.py.

◆ code_type_reg

gen2.PythonWrapperGenerator.code_type_reg = StringIO()

Definition at line 843 of file gen2.py.

◆ code_types

gen2.PythonWrapperGenerator.code_types = StringIO()

Definition at line 841 of file gen2.py.

◆ consts

dict gen2.PythonWrapperGenerator.consts = {}

Definition at line 839 of file gen2.py.

Referenced by gen_java.ClassInfo.addConst(), and gen_java.ClassInfo.getConst().

◆ namespaces

◆ parser

gen2.PythonWrapperGenerator.parser = hdr_parser.CppHeaderParser(generate_umat_decls=True)

Definition at line 982 of file gen2.py.

Referenced by split_decl_name().

◆ py_signatures

gen2.PythonWrapperGenerator.py_signatures = dict()

Definition at line 846 of file gen2.py.

Referenced by add_class(), and add_const().