File: Resource_pre.cpp

package info (click to toggle)
python-ocp 7.8.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 64,720 kB
  • sloc: cpp: 362,337; pascal: 33; python: 23; makefile: 4
file content (120 lines) | stat: -rw-r--r-- 6,205 bytes parent folder | download | duplicates (2)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120

// pybind 11 related includes
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>

namespace py = pybind11;


// Standard Handle
#include <Standard_Handle.hxx>

// user-defined inclusion per module before includes

// includes to resolve forward declarations
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TCollection_AsciiString.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <TCollection_ExtendedString.hxx>

// module includes
#include <Resource_ConvertUnicode.hxx>
#include <Resource_DataMapOfAsciiStringAsciiString.hxx>
#include <Resource_DataMapOfAsciiStringExtendedString.hxx>
#include <Resource_FormatType.hxx>
#include <Resource_LexicalCompare.hxx>
#include <Resource_Manager.hxx>
#include <Resource_NoSuchResource.hxx>
#include <Resource_Unicode.hxx>

// template related includes

#include "NCollection_tmpl.hxx"

#include "NCollection_tmpl.hxx"


// user-defined pre
#include "OCP_specific.inc"

// user-defined inclusion per module

// Module definiiton
void register_Resource_enums(py::module &main_module) {


py::module m = main_module.def_submodule("Resource", R"#()#");

// user-defined inclusion per module in the body

// enums
    py::enum_<Resource_FormatType>(m, "Resource_FormatType",R"#(List of non ASCII format types which may be converted into the Unicode 16 bits format type. Use the functions provided by the Resource_Unicode class to convert a string from one of these non ASCII format to Unicode, and vice versa.)#")
        .value("Resource_FormatType_SJIS",Resource_FormatType::Resource_FormatType_SJIS)
        .value("Resource_FormatType_EUC",Resource_FormatType::Resource_FormatType_EUC)
        .value("Resource_FormatType_NoConversion",Resource_FormatType::Resource_FormatType_NoConversion)
        .value("Resource_FormatType_GB",Resource_FormatType::Resource_FormatType_GB)
        .value("Resource_FormatType_UTF8",Resource_FormatType::Resource_FormatType_UTF8)
        .value("Resource_FormatType_SystemLocale",Resource_FormatType::Resource_FormatType_SystemLocale)
        .value("Resource_FormatType_CP1250",Resource_FormatType::Resource_FormatType_CP1250)
        .value("Resource_FormatType_CP1251",Resource_FormatType::Resource_FormatType_CP1251)
        .value("Resource_FormatType_CP1252",Resource_FormatType::Resource_FormatType_CP1252)
        .value("Resource_FormatType_CP1253",Resource_FormatType::Resource_FormatType_CP1253)
        .value("Resource_FormatType_CP1254",Resource_FormatType::Resource_FormatType_CP1254)
        .value("Resource_FormatType_CP1255",Resource_FormatType::Resource_FormatType_CP1255)
        .value("Resource_FormatType_CP1256",Resource_FormatType::Resource_FormatType_CP1256)
        .value("Resource_FormatType_CP1257",Resource_FormatType::Resource_FormatType_CP1257)
        .value("Resource_FormatType_CP1258",Resource_FormatType::Resource_FormatType_CP1258)
        .value("Resource_FormatType_iso8859_1",Resource_FormatType::Resource_FormatType_iso8859_1)
        .value("Resource_FormatType_iso8859_2",Resource_FormatType::Resource_FormatType_iso8859_2)
        .value("Resource_FormatType_iso8859_3",Resource_FormatType::Resource_FormatType_iso8859_3)
        .value("Resource_FormatType_iso8859_4",Resource_FormatType::Resource_FormatType_iso8859_4)
        .value("Resource_FormatType_iso8859_5",Resource_FormatType::Resource_FormatType_iso8859_5)
        .value("Resource_FormatType_iso8859_6",Resource_FormatType::Resource_FormatType_iso8859_6)
        .value("Resource_FormatType_iso8859_7",Resource_FormatType::Resource_FormatType_iso8859_7)
        .value("Resource_FormatType_iso8859_8",Resource_FormatType::Resource_FormatType_iso8859_8)
        .value("Resource_FormatType_iso8859_9",Resource_FormatType::Resource_FormatType_iso8859_9)
        .value("Resource_FormatType_CP850",Resource_FormatType::Resource_FormatType_CP850)
        .value("Resource_FormatType_GBK",Resource_FormatType::Resource_FormatType_GBK)
        .value("Resource_FormatType_Big5",Resource_FormatType::Resource_FormatType_Big5)
        .value("Resource_FormatType_ANSI",Resource_FormatType::Resource_FormatType_ANSI)
        .value("Resource_SJIS",Resource_FormatType::Resource_SJIS)
        .value("Resource_EUC",Resource_FormatType::Resource_EUC)
        .value("Resource_ANSI",Resource_FormatType::Resource_ANSI)
        .value("Resource_GB",Resource_FormatType::Resource_GB).export_values();

//Python trampoline classes

// pre-register typdefs+classes (topologically sorted)
    py::class_<Resource_LexicalCompare , shared_ptr<Resource_LexicalCompare>  >(m,"Resource_LexicalCompare",R"#(None)#");
    py::class_<Resource_Unicode , shared_ptr<Resource_Unicode>  >(m,"Resource_Unicode",R"#(This class provides functions used to convert a non-ASCII C string given in ANSI, EUC, GB or SJIS format, to a Unicode string of extended characters, and vice versa.)#");
    preregister_template_NCollection_DataMap<TCollection_AsciiString, TCollection_AsciiString>(m,"Resource_DataMapOfAsciiStringAsciiString");
    preregister_template_NCollection_DataMap<TCollection_AsciiString, TCollection_ExtendedString>(m,"Resource_DataMapOfAsciiStringExtendedString");
    py::class_<Resource_Manager ,opencascade::handle<Resource_Manager>  , Standard_Transient >(m,"Resource_Manager",R"#(Defines a resource structure and its management methods.Defines a resource structure and its management methods.Defines a resource structure and its management methods.)#");

};

// user-defined post-inclusion per module

// user-defined post