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
|
// 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 <Standard_GUID.hxx>
#include <BinMDF_ADriverTable.hxx>
#include <Message_Messenger.hxx>
#include <TDocStd_Application.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <BinMDF_ADriverTable.hxx>
#include <CDM_Document.hxx>
#include <CDM_Application.hxx>
#include <TDF_Label.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 <BinMDF_ADriverTable.hxx>
#include <CDM_Document.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 <BinLDrivers.hxx>
#include <BinLDrivers_DocumentRetrievalDriver.hxx>
#include <BinLDrivers_DocumentSection.hxx>
#include <BinLDrivers_DocumentStorageDriver.hxx>
#include <BinLDrivers_Marker.hxx>
#include <BinLDrivers_VectorOfDocumentSection.hxx>
// template related includes
// ./opencascade/BinLDrivers_VectorOfDocumentSection.hxx
#include "NCollection_tmpl.hxx"
// user-defined pre
#include "OCP_specific.inc"
// user-defined inclusion per module
#include <PCDM_ReaderFilter.hxx>
// Module definiiton
void register_BinLDrivers(py::module &main_module) {
py::module m = static_cast<py::module>(main_module.attr("BinLDrivers"));
py::object klass;
//Python trampoline classes
// classes
// Class BinLDrivers from ./opencascade/BinLDrivers.hxx
klass = m.attr("BinLDrivers");
// default constructor
register_default_constructor<BinLDrivers , shared_ptr<BinLDrivers>>(m,"BinLDrivers");
// nested enums
static_cast<py::class_<BinLDrivers , shared_ptr<BinLDrivers> >>(klass)
// constructors
// custom constructors
// methods
// methods using call by reference i.s.o. return
// static methods
.def_static("Factory_s",
(const opencascade::handle<Standard_Transient> & (*)( const Standard_GUID & ) ) static_cast<const opencascade::handle<Standard_Transient> & (*)( const Standard_GUID & ) >(&BinLDrivers::Factory),
R"#(None)#" , py::arg("theGUID")
)
.def_static("DefineFormat_s",
(void (*)( const opencascade::handle<TDocStd_Application> & ) ) static_cast<void (*)( const opencascade::handle<TDocStd_Application> & ) >(&BinLDrivers::DefineFormat),
R"#(Defines format "BinLOcaf" and registers its read and write drivers in the specified application)#" , py::arg("theApp")
)
.def_static("AttributeDrivers_s",
(opencascade::handle<BinMDF_ADriverTable> (*)( const opencascade::handle<Message_Messenger> & ) ) static_cast<opencascade::handle<BinMDF_ADriverTable> (*)( const opencascade::handle<Message_Messenger> & ) >(&BinLDrivers::AttributeDrivers),
R"#(Creates a table of the supported drivers' types)#" , py::arg("MsgDrv")
)
// 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 BinLDrivers_DocumentRetrievalDriver from ./opencascade/BinLDrivers_DocumentRetrievalDriver.hxx
klass = m.attr("BinLDrivers_DocumentRetrievalDriver");
// nested enums
static_cast<py::class_<BinLDrivers_DocumentRetrievalDriver ,opencascade::handle<BinLDrivers_DocumentRetrievalDriver> , PCDM_RetrievalDriver >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Read",
(void (BinLDrivers_DocumentRetrievalDriver::*)( const TCollection_ExtendedString & , const opencascade::handle<CDM_Document> & , const opencascade::handle<CDM_Application> & , const opencascade::handle<PCDM_ReaderFilter> & , const Message_ProgressRange & ) ) static_cast<void (BinLDrivers_DocumentRetrievalDriver::*)( const TCollection_ExtendedString & , const opencascade::handle<CDM_Document> & , const opencascade::handle<CDM_Application> & , const opencascade::handle<PCDM_ReaderFilter> & , const Message_ProgressRange & ) >(&BinLDrivers_DocumentRetrievalDriver::Read),
R"#(retrieves the content of the file into a new Document.)#" , py::arg("theFileName"), py::arg("theNewDocument"), py::arg("theApplication"), py::arg("theFilter")=static_cast<const opencascade::handle<PCDM_ReaderFilter> &>(Handle ( PCDM_ReaderFilter ) ( )), py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def("Read",
(void (BinLDrivers_DocumentRetrievalDriver::*)( std::istream & , const opencascade::handle<Storage_Data> & , const opencascade::handle<CDM_Document> & , const opencascade::handle<CDM_Application> & , const opencascade::handle<PCDM_ReaderFilter> & , const Message_ProgressRange & ) ) static_cast<void (BinLDrivers_DocumentRetrievalDriver::*)( std::istream & , const opencascade::handle<Storage_Data> & , const opencascade::handle<CDM_Document> & , const opencascade::handle<CDM_Application> & , const opencascade::handle<PCDM_ReaderFilter> & , const Message_ProgressRange & ) >(&BinLDrivers_DocumentRetrievalDriver::Read),
R"#(None)#" , py::arg("theIStream"), py::arg("theStorageData"), py::arg("theDoc"), py::arg("theApplication"), py::arg("theFilter")=static_cast<const opencascade::handle<PCDM_ReaderFilter> &>(Handle ( PCDM_ReaderFilter ) ( )), py::arg("theProgress")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def("AttributeDrivers",
(opencascade::handle<BinMDF_ADriverTable> (BinLDrivers_DocumentRetrievalDriver::*)( const opencascade::handle<Message_Messenger> & ) ) static_cast<opencascade::handle<BinMDF_ADriverTable> (BinLDrivers_DocumentRetrievalDriver::*)( const opencascade::handle<Message_Messenger> & ) >(&BinLDrivers_DocumentRetrievalDriver::AttributeDrivers),
R"#(None)#" , py::arg("theMsgDriver")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&BinLDrivers_DocumentRetrievalDriver::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&BinLDrivers_DocumentRetrievalDriver::get_type_descriptor),
R"#(None)#"
)
// 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("DynamicType",
(const opencascade::handle<Standard_Type> & (BinLDrivers_DocumentRetrievalDriver::*)() const) static_cast<const opencascade::handle<Standard_Type> & (BinLDrivers_DocumentRetrievalDriver::*)() const>(&BinLDrivers_DocumentRetrievalDriver::DynamicType),
R"#(None)#"
)
;
// Class BinLDrivers_DocumentSection from ./opencascade/BinLDrivers_DocumentSection.hxx
klass = m.attr("BinLDrivers_DocumentSection");
// nested enums
static_cast<py::class_<BinLDrivers_DocumentSection , shared_ptr<BinLDrivers_DocumentSection> >>(klass)
// constructors
.def(py::init< >() )
.def(py::init< const TCollection_AsciiString &,const Standard_Boolean >() , py::arg("theName"), py::arg("isPostRead") )
// custom constructors
// methods
.def("IsPostRead",
(Standard_Boolean (BinLDrivers_DocumentSection::*)() const) static_cast<Standard_Boolean (BinLDrivers_DocumentSection::*)() const>(&BinLDrivers_DocumentSection::IsPostRead),
R"#(Query the status: if the Section should be read after OCAF; False means that the Section is read before starting to read OCAF data.)#"
)
.def("Offset",
(uint64_t (BinLDrivers_DocumentSection::*)() const) static_cast<uint64_t (BinLDrivers_DocumentSection::*)() const>(&BinLDrivers_DocumentSection::Offset),
R"#(Query the offset of the section in the persistent file)#"
)
.def("SetOffset",
(void (BinLDrivers_DocumentSection::*)( const uint64_t ) ) static_cast<void (BinLDrivers_DocumentSection::*)( const uint64_t ) >(&BinLDrivers_DocumentSection::SetOffset),
R"#(Set the offset of the section in the persistent file)#" , py::arg("theOffset")
)
.def("Length",
(uint64_t (BinLDrivers_DocumentSection::*)() const) static_cast<uint64_t (BinLDrivers_DocumentSection::*)() const>(&BinLDrivers_DocumentSection::Length),
R"#(Query the length of the section in the persistent file)#"
)
.def("SetLength",
(void (BinLDrivers_DocumentSection::*)( const uint64_t ) ) static_cast<void (BinLDrivers_DocumentSection::*)( const uint64_t ) >(&BinLDrivers_DocumentSection::SetLength),
R"#(Set the length of the section in the persistent file)#" , py::arg("theLength")
)
.def("WriteTOC",
(void (BinLDrivers_DocumentSection::*)( std::ostream & , const TDocStd_FormatVersion ) ) static_cast<void (BinLDrivers_DocumentSection::*)( std::ostream & , const TDocStd_FormatVersion ) >(&BinLDrivers_DocumentSection::WriteTOC),
R"#(Create a Section entry in the Document TOC (list of sections))#" , py::arg("theOS"), py::arg("theDocFormatVersion")
)
.def("Write",
(void (BinLDrivers_DocumentSection::*)( std::ostream & , const uint64_t , const TDocStd_FormatVersion ) ) static_cast<void (BinLDrivers_DocumentSection::*)( std::ostream & , const uint64_t , const TDocStd_FormatVersion ) >(&BinLDrivers_DocumentSection::Write),
R"#(Save Offset and Length data into the Section entry in the Document TOC (list of sections))#" , py::arg("theOS"), py::arg("theOffset"), py::arg("theDocFormatVersion")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("ReadTOC_s",
(Standard_Boolean (*)( BinLDrivers_DocumentSection & , std::istream & , const TDocStd_FormatVersion ) ) static_cast<Standard_Boolean (*)( BinLDrivers_DocumentSection & , std::istream & , const TDocStd_FormatVersion ) >(&BinLDrivers_DocumentSection::ReadTOC),
R"#(Fill a DocumentSection instance from the data that are read from TOC. Returns false in case of the stream reading problem.)#" , py::arg("theSection"), py::arg("theIS"), py::arg("theDocFormatVersion")
)
// 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("Name",
(const TCollection_AsciiString & (BinLDrivers_DocumentSection::*)() const) static_cast<const TCollection_AsciiString & (BinLDrivers_DocumentSection::*)() const>(&BinLDrivers_DocumentSection::Name),
R"#(Query the name of the section.)#"
)
;
// Class BinLDrivers_DocumentStorageDriver from ./opencascade/BinLDrivers_DocumentStorageDriver.hxx
klass = m.attr("BinLDrivers_DocumentStorageDriver");
// nested enums
static_cast<py::class_<BinLDrivers_DocumentStorageDriver ,opencascade::handle<BinLDrivers_DocumentStorageDriver> , PCDM_StorageDriver >>(klass)
// constructors
.def(py::init< >() )
// custom constructors
// methods
.def("Write",
(void (BinLDrivers_DocumentStorageDriver::*)( const opencascade::handle<CDM_Document> & , const TCollection_ExtendedString & , const Message_ProgressRange & ) ) static_cast<void (BinLDrivers_DocumentStorageDriver::*)( const opencascade::handle<CDM_Document> & , const TCollection_ExtendedString & , const Message_ProgressRange & ) >(&BinLDrivers_DocumentStorageDriver::Write),
R"#(Write <theDocument> to the binary file <theFileName>)#" , py::arg("theDocument"), py::arg("theFileName"), py::arg("theRange")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def("Write",
(void (BinLDrivers_DocumentStorageDriver::*)( const opencascade::handle<CDM_Document> & , std::ostream & , const Message_ProgressRange & ) ) static_cast<void (BinLDrivers_DocumentStorageDriver::*)( const opencascade::handle<CDM_Document> & , std::ostream & , const Message_ProgressRange & ) >(&BinLDrivers_DocumentStorageDriver::Write),
R"#(Write <theDocument> to theOStream)#" , py::arg("theDocument"), py::arg("theOStream"), py::arg("theRange")=static_cast<const Message_ProgressRange &>(Message_ProgressRange ( ))
)
.def("AttributeDrivers",
(opencascade::handle<BinMDF_ADriverTable> (BinLDrivers_DocumentStorageDriver::*)( const opencascade::handle<Message_Messenger> & ) ) static_cast<opencascade::handle<BinMDF_ADriverTable> (BinLDrivers_DocumentStorageDriver::*)( const opencascade::handle<Message_Messenger> & ) >(&BinLDrivers_DocumentStorageDriver::AttributeDrivers),
R"#(None)#" , py::arg("theMsgDriver")
)
.def("AddSection",
(void (BinLDrivers_DocumentStorageDriver::*)( const TCollection_AsciiString & , const Standard_Boolean ) ) static_cast<void (BinLDrivers_DocumentStorageDriver::*)( const TCollection_AsciiString & , const Standard_Boolean ) >(&BinLDrivers_DocumentStorageDriver::AddSection),
R"#(Create a section that should be written after the OCAF data)#" , py::arg("theName"), py::arg("isPostRead")=static_cast<const Standard_Boolean>(Standard_True)
)
.def("IsQuickPart",
(Standard_Boolean (BinLDrivers_DocumentStorageDriver::*)( const Standard_Integer ) const) static_cast<Standard_Boolean (BinLDrivers_DocumentStorageDriver::*)( const Standard_Integer ) const>(&BinLDrivers_DocumentStorageDriver::IsQuickPart),
R"#(Return true if document should be stored in quick mode for partial reading)#" , py::arg("theVersion")
)
// methods using call by reference i.s.o. return
// static methods
.def_static("get_type_name_s",
(const char * (*)() ) static_cast<const char * (*)() >(&BinLDrivers_DocumentStorageDriver::get_type_name),
R"#(None)#"
)
.def_static("get_type_descriptor_s",
(const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&BinLDrivers_DocumentStorageDriver::get_type_descriptor),
R"#(None)#"
)
// 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("DynamicType",
(const opencascade::handle<Standard_Type> & (BinLDrivers_DocumentStorageDriver::*)() const) static_cast<const opencascade::handle<Standard_Type> & (BinLDrivers_DocumentStorageDriver::*)() const>(&BinLDrivers_DocumentStorageDriver::DynamicType),
R"#(None)#"
)
;
// functions
// ./opencascade/BinLDrivers.hxx
// ./opencascade/BinLDrivers_DocumentRetrievalDriver.hxx
// ./opencascade/BinLDrivers_DocumentSection.hxx
// ./opencascade/BinLDrivers_DocumentStorageDriver.hxx
// ./opencascade/BinLDrivers_Marker.hxx
// ./opencascade/BinLDrivers_VectorOfDocumentSection.hxx
// Additional functions
// operators
// register typdefs
register_template_NCollection_Vector<BinLDrivers_DocumentSection>(m,"BinLDrivers_VectorOfDocumentSection");
// exceptions
// user-defined post-inclusion per module in the body
};
// user-defined post-inclusion per module
// user-defined post
|