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 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408
|
// std lib related includes
#include <tuple>
// pybind 11 related includes
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
namespace py = pybind11;
// Standard Handle
#include <Standard_Handle.hxx>
// 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 <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <gp_Trsf.hxx>
#include <gp_Mat.hxx>
#include <gp_XYZ.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>
// module includes
#include <XmlObjMgt.hxx>
#include <XmlObjMgt_Array1.hxx>
#include <XmlObjMgt_Document.hxx>
#include <XmlObjMgt_DOMString.hxx>
#include <XmlObjMgt_Element.hxx>
#include <XmlObjMgt_GP.hxx>
#include <XmlObjMgt_Persistent.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
// template related includes
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
// Module definiiton
void register_XmlObjMgt(py::module &main_module) {
py::module m = static_cast<py::module>(main_module.attr("XmlObjMgt"));
py::object klass;
//Python trampoline classes
// classes
// Class XmlObjMgt from ./opencascade/XmlObjMgt.hxx
klass = m.attr("XmlObjMgt");
// default constructor
register_default_constructor<XmlObjMgt , shared_ptr<XmlObjMgt>>(m,"XmlObjMgt");
// nested enums
static_cast<py::class_<XmlObjMgt , shared_ptr<XmlObjMgt> >>(klass)
// constructors
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("IdString_s",
(const XmlObjMgt_DOMString & (*)() ) static_cast<const XmlObjMgt_DOMString & (*)() >(&XmlObjMgt::IdString),
R"#(Define the name of XMLattribute 'ID' (to be used everywhere))#"
)
.def_static("SetExtendedString_s",
(Standard_Boolean (*)( LDOM_Element & , const TCollection_ExtendedString & ) ) static_cast<Standard_Boolean (*)( LDOM_Element & , const TCollection_ExtendedString & ) >(&XmlObjMgt::SetExtendedString),
R"#(Add attribute <theElement extstring="theString" ...>)#" , py::arg("theElement"), py::arg("theString")
)
.def_static("GetExtendedString_s",
(Standard_Boolean (*)( const LDOM_Element & , TCollection_ExtendedString & ) ) static_cast<Standard_Boolean (*)( const LDOM_Element & , TCollection_ExtendedString & ) >(&XmlObjMgt::GetExtendedString),
R"#(Get attribute <theElement extstring="theString" ...>)#" , py::arg("theElement"), py::arg("theString")
)
.def_static("GetStringValue_s",
(XmlObjMgt_DOMString (*)( const LDOM_Element & ) ) static_cast<XmlObjMgt_DOMString (*)( const LDOM_Element & ) >(&XmlObjMgt::GetStringValue),
R"#(Returns the first child text node)#" , py::arg("theElement")
)
.def_static("SetStringValue_s",
(void (*)( LDOM_Element & , const LDOMString & , const Standard_Boolean ) ) static_cast<void (*)( LDOM_Element & , const LDOMString & , const Standard_Boolean ) >(&XmlObjMgt::SetStringValue),
R"#(Add theData as the last child text node to theElement isClearText(True) avoids analysis of the string and replacement of characters like '<' and '&' during XML file storage. Do NEVER set isClearText unless you have a hell of a reason)#" , py::arg("theElement"), py::arg("theData"), py::arg("isClearText")=static_cast<const Standard_Boolean>(Standard_False)
)
.def_static("GetTagEntryString_s",
(Standard_Boolean (*)( const LDOMString & , TCollection_AsciiString & ) ) static_cast<Standard_Boolean (*)( const LDOMString & , TCollection_AsciiString & ) >(&XmlObjMgt::GetTagEntryString),
R"#(Convert XPath expression (DOMString) into TagEntry string returns False on Error)#" , py::arg("theTarget"), py::arg("theTagEntry")
)
.def_static("SetTagEntryString_s",
(void (*)( LDOMString & , const TCollection_AsciiString & ) ) static_cast<void (*)( LDOMString & , const TCollection_AsciiString & ) >(&XmlObjMgt::SetTagEntryString),
R"#(Convert XPath expression (DOMString) into TagEntry string returns False on Error)#" , py::arg("theSource"), py::arg("theTagEntry")
)
.def_static("FindChildElement_s",
(XmlObjMgt_Element (*)( const LDOM_Element & , const Standard_Integer ) ) static_cast<XmlObjMgt_Element (*)( const LDOM_Element & , const Standard_Integer ) >(&XmlObjMgt::FindChildElement),
R"#(None)#" , py::arg("theSource"), py::arg("theObjId")
)
.def_static("FindChildByRef_s",
(XmlObjMgt_Element (*)( const LDOM_Element & , const LDOMString & ) ) static_cast<XmlObjMgt_Element (*)( const LDOM_Element & , const LDOMString & ) >(&XmlObjMgt::FindChildByRef),
R"#(None)#" , py::arg("theSource"), py::arg("theRefName")
)
.def_static("FindChildByName_s",
(XmlObjMgt_Element (*)( const LDOM_Element & , const LDOMString & ) ) static_cast<XmlObjMgt_Element (*)( const LDOM_Element & , const LDOMString & ) >(&XmlObjMgt::FindChildByName),
R"#(None)#" , py::arg("theSource"), py::arg("theName")
)
.def_static("GetReal_s",
(Standard_Boolean (*)( const LDOMString & , Standard_Real & ) ) static_cast<Standard_Boolean (*)( const LDOMString & , Standard_Real & ) >(&XmlObjMgt::GetReal),
R"#(None)#" , py::arg("theString"), py::arg("theValue")
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class XmlObjMgt_Array1 from ./opencascade/XmlObjMgt_Array1.hxx
klass = m.attr("XmlObjMgt_Array1");
// nested enums
static_cast<py::class_<XmlObjMgt_Array1 , shared_ptr<XmlObjMgt_Array1> >>(klass)
// constructors
.def(py::init< const Standard_Integer,const Standard_Integer >() , py::arg("Low"), py::arg("Up") )
.def(py::init< const LDOM_Element &, const LDOMString & >() , py::arg("theParent"), py::arg("theName") )
// custom constructors
// methods
.def("CreateArrayElement",
(void (XmlObjMgt_Array1::*)( LDOM_Element & , const LDOMString & ) ) static_cast<void (XmlObjMgt_Array1::*)( LDOM_Element & , const LDOMString & ) >(&XmlObjMgt_Array1::CreateArrayElement),
R"#(Create DOM_Element representing the array, under 'theParent')#" , py::arg("theParent"), py::arg("theName")
)
.def("Length",
(Standard_Integer (XmlObjMgt_Array1::*)() const) static_cast<Standard_Integer (XmlObjMgt_Array1::*)() const>(&XmlObjMgt_Array1::Length),
R"#(Returns the number of elements of <me>.)#"
)
.def("Lower",
(Standard_Integer (XmlObjMgt_Array1::*)() const) static_cast<Standard_Integer (XmlObjMgt_Array1::*)() const>(&XmlObjMgt_Array1::Lower),
R"#(Returns the lower bound.)#"
)
.def("Upper",
(Standard_Integer (XmlObjMgt_Array1::*)() const) static_cast<Standard_Integer (XmlObjMgt_Array1::*)() const>(&XmlObjMgt_Array1::Upper),
R"#(Returns the upper bound.)#"
)
.def("SetValue",
(void (XmlObjMgt_Array1::*)( const Standard_Integer , LDOM_Element & ) ) static_cast<void (XmlObjMgt_Array1::*)( const Standard_Integer , LDOM_Element & ) >(&XmlObjMgt_Array1::SetValue),
R"#(Set the <Index>th element of the array to <Value>.)#" , py::arg("Index"), py::arg("Value")
)
.def("Value",
(XmlObjMgt_Element (XmlObjMgt_Array1::*)( const Standard_Integer ) const) static_cast<XmlObjMgt_Element (XmlObjMgt_Array1::*)( const Standard_Integer ) const>(&XmlObjMgt_Array1::Value),
R"#(Returns the value of <Index>th element of the array.)#" , py::arg("Index")
)
.def("Length",
(Standard_Integer (XmlObjMgt_Array1::*)() const) static_cast<Standard_Integer (XmlObjMgt_Array1::*)() const>(&XmlObjMgt_Array1::Length),
R"#(Returns the number of elements of <me>.)#"
)
.def("Lower",
(Standard_Integer (XmlObjMgt_Array1::*)() const) static_cast<Standard_Integer (XmlObjMgt_Array1::*)() const>(&XmlObjMgt_Array1::Lower),
R"#(Returns the lower bound.)#"
)
.def("Upper",
(Standard_Integer (XmlObjMgt_Array1::*)() const) static_cast<Standard_Integer (XmlObjMgt_Array1::*)() const>(&XmlObjMgt_Array1::Upper),
R"#(Returns the upper bound.)#"
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("Element",
(const XmlObjMgt_Element & (XmlObjMgt_Array1::*)() const) static_cast<const XmlObjMgt_Element & (XmlObjMgt_Array1::*)() const>(&XmlObjMgt_Array1::Element),
R"#(Returns the DOM element of <me>.)#"
)
.def("Element",
(const XmlObjMgt_Element & (XmlObjMgt_Array1::*)() const) static_cast<const XmlObjMgt_Element & (XmlObjMgt_Array1::*)() const>(&XmlObjMgt_Array1::Element),
R"#(Returns the DOM element of <me>.)#"
)
;
// Class XmlObjMgt_GP from ./opencascade/XmlObjMgt_GP.hxx
klass = m.attr("XmlObjMgt_GP");
// default constructor
register_default_constructor<XmlObjMgt_GP , shared_ptr<XmlObjMgt_GP>>(m,"XmlObjMgt_GP");
// nested enums
static_cast<py::class_<XmlObjMgt_GP , shared_ptr<XmlObjMgt_GP> >>(klass)
// constructors
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("Translate_s",
(XmlObjMgt_DOMString (*)( const gp_Trsf & ) ) static_cast<XmlObjMgt_DOMString (*)( const gp_Trsf & ) >(&XmlObjMgt_GP::Translate),
R"#(None)#" , py::arg("aTrsf")
)
.def_static("Translate_s",
(XmlObjMgt_DOMString (*)( const gp_Mat & ) ) static_cast<XmlObjMgt_DOMString (*)( const gp_Mat & ) >(&XmlObjMgt_GP::Translate),
R"#(None)#" , py::arg("aMat")
)
.def_static("Translate_s",
(XmlObjMgt_DOMString (*)( const gp_XYZ & ) ) static_cast<XmlObjMgt_DOMString (*)( const gp_XYZ & ) >(&XmlObjMgt_GP::Translate),
R"#(None)#" , py::arg("anXYZ")
)
.def_static("Translate_s",
(Standard_Boolean (*)( const LDOMString & , gp_Trsf & ) ) static_cast<Standard_Boolean (*)( const LDOMString & , gp_Trsf & ) >(&XmlObjMgt_GP::Translate),
R"#(None)#" , py::arg("aStr"), py::arg("T")
)
.def_static("Translate_s",
(Standard_Boolean (*)( const LDOMString & , gp_Mat & ) ) static_cast<Standard_Boolean (*)( const LDOMString & , gp_Mat & ) >(&XmlObjMgt_GP::Translate),
R"#(None)#" , py::arg("aStr"), py::arg("T")
)
.def_static("Translate_s",
(Standard_Boolean (*)( const LDOMString & , gp_XYZ & ) ) static_cast<Standard_Boolean (*)( const LDOMString & , gp_XYZ & ) >(&XmlObjMgt_GP::Translate),
R"#(None)#" , py::arg("aStr"), py::arg("T")
)
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
;
// Class XmlObjMgt_Persistent from ./opencascade/XmlObjMgt_Persistent.hxx
klass = m.attr("XmlObjMgt_Persistent");
// nested enums
static_cast<py::class_<XmlObjMgt_Persistent , shared_ptr<XmlObjMgt_Persistent> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const LDOM_Element & >() , py::arg("theElement") )
.def(py::init< const LDOM_Element &, const LDOMString & >() , py::arg("theElement"), py::arg("theRef") )
// custom constructors
// methods
.def("CreateElement",
(void (XmlObjMgt_Persistent::*)( LDOM_Element & , const LDOMString & , const Standard_Integer ) ) static_cast<void (XmlObjMgt_Persistent::*)( LDOM_Element & , const LDOMString & , const Standard_Integer ) >(&XmlObjMgt_Persistent::CreateElement),
R"#(myElement := <theType id="theID"/>)#" , py::arg("theParent"), py::arg("theType"), py::arg("theID")
)
.def("SetId",
(void (XmlObjMgt_Persistent::*)( const Standard_Integer ) ) static_cast<void (XmlObjMgt_Persistent::*)( const Standard_Integer ) >(&XmlObjMgt_Persistent::SetId),
R"#(None)#" , py::arg("theId")
)
.def("Id",
(Standard_Integer (XmlObjMgt_Persistent::*)() const) static_cast<Standard_Integer (XmlObjMgt_Persistent::*)() const>(&XmlObjMgt_Persistent::Id),
R"#(None)#"
)
.def("Id",
(Standard_Integer (XmlObjMgt_Persistent::*)() const) static_cast<Standard_Integer (XmlObjMgt_Persistent::*)() const>(&XmlObjMgt_Persistent::Id),
R"#(None)#"
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("Element",
(const XmlObjMgt_Element & (XmlObjMgt_Persistent::*)() const) static_cast<const XmlObjMgt_Element & (XmlObjMgt_Persistent::*)() const>(&XmlObjMgt_Persistent::Element),
R"#(return myElement)#"
)
.def("Element",
(XmlObjMgt_Element & (XmlObjMgt_Persistent::*)() ) static_cast<XmlObjMgt_Element & (XmlObjMgt_Persistent::*)() >(&XmlObjMgt_Persistent::Element),
R"#(return myElement)#"
, py::return_value_policy::reference_internal
)
.def("Element",
(const XmlObjMgt_Element & (XmlObjMgt_Persistent::*)() const) static_cast<const XmlObjMgt_Element & (XmlObjMgt_Persistent::*)() const>(&XmlObjMgt_Persistent::Element),
R"#(return myElement)#"
)
.def("Element",
(XmlObjMgt_Element & (XmlObjMgt_Persistent::*)() ) static_cast<XmlObjMgt_Element & (XmlObjMgt_Persistent::*)() >(&XmlObjMgt_Persistent::Element),
R"#(return myElement)#"
, py::return_value_policy::reference_internal
)
;
// Class XmlObjMgt_RRelocationTable from ./opencascade/XmlObjMgt_RRelocationTable.hxx
klass = m.attr("XmlObjMgt_RRelocationTable");
// default constructor
register_default_constructor<XmlObjMgt_RRelocationTable , shared_ptr<XmlObjMgt_RRelocationTable>>(m,"XmlObjMgt_RRelocationTable");
// nested enums
static_cast<py::class_<XmlObjMgt_RRelocationTable , shared_ptr<XmlObjMgt_RRelocationTable> >>(klass)
// constructors
// custom constructors
// methods
.def("SetHeaderData",
(void (XmlObjMgt_RRelocationTable::*)( const opencascade::handle<Storage_HeaderData> & ) ) static_cast<void (XmlObjMgt_RRelocationTable::*)( const opencascade::handle<Storage_HeaderData> & ) >(&XmlObjMgt_RRelocationTable::SetHeaderData),
R"#(Sets the storage header data.)#" , py::arg("theHeaderData")
)
.def("Clear",
(void (XmlObjMgt_RRelocationTable::*)( const Standard_Boolean ) ) static_cast<void (XmlObjMgt_RRelocationTable::*)( const Standard_Boolean ) >(&XmlObjMgt_RRelocationTable::Clear),
R"#(None)#" , py::arg("doReleaseMemory")=static_cast<const Standard_Boolean>(Standard_True)
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("GetHeaderData",
(const opencascade::handle<Storage_HeaderData> & (XmlObjMgt_RRelocationTable::*)() const) static_cast<const opencascade::handle<Storage_HeaderData> & (XmlObjMgt_RRelocationTable::*)() const>(&XmlObjMgt_RRelocationTable::GetHeaderData),
R"#(Returns a handle to the header data of the file that is begin read)#"
)
;
// Class XmlObjMgt_SRelocationTable from ./opencascade/XmlObjMgt_SRelocationTable.hxx
klass = m.attr("XmlObjMgt_SRelocationTable");
// default constructor
register_default_constructor<XmlObjMgt_SRelocationTable , shared_ptr<XmlObjMgt_SRelocationTable>>(m,"XmlObjMgt_SRelocationTable");
// nested enums
static_cast<py::class_<XmlObjMgt_SRelocationTable , shared_ptr<XmlObjMgt_SRelocationTable> >>(klass)
// constructors
// custom constructors
// methods
.def("SetHeaderData",
(void (XmlObjMgt_SRelocationTable::*)( const opencascade::handle<Storage_HeaderData> & ) ) static_cast<void (XmlObjMgt_SRelocationTable::*)( const opencascade::handle<Storage_HeaderData> & ) >(&XmlObjMgt_SRelocationTable::SetHeaderData),
R"#(Sets the storage header data.)#" , py::arg("theHeaderData")
)
.def("Clear",
(void (XmlObjMgt_SRelocationTable::*)( const Standard_Boolean ) ) static_cast<void (XmlObjMgt_SRelocationTable::*)( const Standard_Boolean ) >(&XmlObjMgt_SRelocationTable::Clear),
R"#(None)#" , py::arg("doReleaseMemory")=static_cast<const Standard_Boolean>(Standard_True)
)
// methods using call by reference i.s.o. return
// static methods
// static methods using call by reference i.s.o. return
// operators
// additional methods and static methods
// properties
// methods returning by ref wrapped as properties
.def("GetHeaderData",
(const opencascade::handle<Storage_HeaderData> & (XmlObjMgt_SRelocationTable::*)() const) static_cast<const opencascade::handle<Storage_HeaderData> & (XmlObjMgt_SRelocationTable::*)() const>(&XmlObjMgt_SRelocationTable::GetHeaderData),
R"#(Returns a handle to the header data of the file that is begin read)#"
)
;
// functions
// ./opencascade/XmlObjMgt.hxx
// ./opencascade/XmlObjMgt_Array1.hxx
// ./opencascade/XmlObjMgt_DOMString.hxx
// ./opencascade/XmlObjMgt_Document.hxx
// ./opencascade/XmlObjMgt_Element.hxx
// ./opencascade/XmlObjMgt_GP.hxx
// ./opencascade/XmlObjMgt_Persistent.hxx
// ./opencascade/XmlObjMgt_RRelocationTable.hxx
// ./opencascade/XmlObjMgt_SRelocationTable.hxx
// Additional functions
// operators
// register typdefs
// exceptions
// user-defined post-inclusion per module in the body
};
// user-defined post-inclusion per module
// user-defined post
|