File: StdStorage.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 (652 lines) | stat: -rw-r--r-- 36,970 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
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
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652

// 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 <StdStorage_Data.hxx>
#include <Storage_BaseDriver.hxx>
#include <TCollection_AsciiString.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <StdObjMgt_Persistent.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <StdStorage_HeaderData.hxx>
#include <StdStorage_TypeData.hxx>
#include <StdStorage_RootData.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 <Storage_BaseDriver.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 <StdObjMgt_Persistent.hxx>
#include <Adaptor2d_Curve2d.hxx>
#include <Adaptor3d_Curve.hxx>
#include <Adaptor3d_Surface.hxx>
#include <Storage_BaseDriver.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 <Storage_BaseDriver.hxx>

// module includes
#include <StdStorage.hxx>
#include <StdStorage_BacketOfPersistent.hxx>
#include <StdStorage_Data.hxx>
#include <StdStorage_HeaderData.hxx>
#include <StdStorage_HSequenceOfRoots.hxx>
#include <StdStorage_MapOfRoots.hxx>
#include <StdStorage_MapOfTypes.hxx>
#include <StdStorage_Root.hxx>
#include <StdStorage_RootData.hxx>
#include <StdStorage_SequenceOfRoots.hxx>
#include <StdStorage_TypeData.hxx>

// template related includes

// ./opencascade/StdStorage_MapOfRoots.hxx
#include "NCollection_tmpl.hxx"

// ./opencascade/StdStorage_SequenceOfRoots.hxx
#include "NCollection_tmpl.hxx"


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

// user-defined inclusion per module

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


py::module m = static_cast<py::module>(main_module.attr("StdStorage"));
py::object klass;

//Python trampoline classes

// classes

    // Class StdStorage from ./opencascade/StdStorage.hxx
    klass = m.attr("StdStorage");

    // default constructor
    register_default_constructor<StdStorage , shared_ptr<StdStorage>>(m,"StdStorage");

    // nested enums

    static_cast<py::class_<StdStorage , shared_ptr<StdStorage>  >>(klass)
    // constructors
    // custom constructors
    // methods
    // methods using call by reference i.s.o. return
    // static methods
        .def_static("Version_s",
                    (TCollection_AsciiString (*)() ) static_cast<TCollection_AsciiString (*)() >(&StdStorage::Version),
                    R"#(Returns the version of Storage's read/write routines)#" 
          )
        .def_static("Read_s",
                    (Storage_Error (*)( const TCollection_AsciiString & ,  opencascade::handle<StdStorage_Data> &  ) ) static_cast<Storage_Error (*)( const TCollection_AsciiString & ,  opencascade::handle<StdStorage_Data> &  ) >(&StdStorage::Read),
                    R"#(Returns the data read from a file located at theFileName. The storage format is compartible with legacy persistent one. These data are aggregated in a StdStorage_Data object which may be browsed in order to extract the root objects from the container. Note: - theData object will be created if it is null or cleared otherwise.)#"  , py::arg("theFileName"),  py::arg("theData")
          )
        .def_static("Read_s",
                    (Storage_Error (*)( const opencascade::handle<Storage_BaseDriver> & ,  opencascade::handle<StdStorage_Data> &  ) ) static_cast<Storage_Error (*)( const opencascade::handle<Storage_BaseDriver> & ,  opencascade::handle<StdStorage_Data> &  ) >(&StdStorage::Read),
                    R"#(Returns the data read from the container defined by theDriver. The storage format is compartible with legacy persistent one. These data are aggregated in a StdStorage_Data object which may be browsed in order to extract the root objects from the container. Note: - theData object will be created if it is null or cleared otherwise.)#"  , py::arg("theDriver"),  py::arg("theData")
          )
        .def_static("Write_s",
                    (Storage_Error (*)( const opencascade::handle<Storage_BaseDriver> & ,  const opencascade::handle<StdStorage_Data> &  ) ) static_cast<Storage_Error (*)( const opencascade::handle<Storage_BaseDriver> & ,  const opencascade::handle<StdStorage_Data> &  ) >(&StdStorage::Write),
                    R"#(Writes the data aggregated in theData object into the container defined by theDriver. The storage format is compartible with legacy persistent one. Note: - theData may aggregate several root objects to be stored together. - createion date specified in the srorage header will be overwritten.)#"  , py::arg("theDriver"),  py::arg("theData")
          )
    // 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 StdStorage_BucketIterator from ./opencascade/StdStorage_BacketOfPersistent.hxx
    klass = m.attr("StdStorage_BucketIterator");


    // nested enums

    static_cast<py::class_<StdStorage_BucketIterator , shared_ptr<StdStorage_BucketIterator>  >>(klass)
    // constructors
        .def(py::init< StdStorage_BucketOfPersistent * >()  , py::arg("arg") )
    // custom constructors
    // methods
        .def("Init",
             (void (StdStorage_BucketIterator::*)( StdStorage_BucketOfPersistent *  ) ) static_cast<void (StdStorage_BucketIterator::*)( StdStorage_BucketOfPersistent *  ) >(&StdStorage_BucketIterator::Init),
             R"#(None)#"  , py::arg("arg")
          )
        .def("Reset",
             (void (StdStorage_BucketIterator::*)() ) static_cast<void (StdStorage_BucketIterator::*)() >(&StdStorage_BucketIterator::Reset),
             R"#(None)#" 
          )
        .def("Value",
             (StdObjMgt_Persistent * (StdStorage_BucketIterator::*)() const) static_cast<StdObjMgt_Persistent * (StdStorage_BucketIterator::*)() const>(&StdStorage_BucketIterator::Value),
             R"#(None)#" 
          )
        .def("More",
             (Standard_Boolean (StdStorage_BucketIterator::*)() const) static_cast<Standard_Boolean (StdStorage_BucketIterator::*)() const>(&StdStorage_BucketIterator::More),
             R"#(None)#" 
          )
        .def("Next",
             (void (StdStorage_BucketIterator::*)() ) static_cast<void (StdStorage_BucketIterator::*)() >(&StdStorage_BucketIterator::Next),
             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
;

    // Class StdStorage_Data from ./opencascade/StdStorage_Data.hxx
    klass = m.attr("StdStorage_Data");


    // nested enums

    static_cast<py::class_<StdStorage_Data ,opencascade::handle<StdStorage_Data>  , Standard_Transient >>(klass)
    // constructors
        .def(py::init<  >()  )
    // custom constructors
    // methods
        .def("Clear",
             (void (StdStorage_Data::*)() ) static_cast<void (StdStorage_Data::*)() >(&StdStorage_Data::Clear),
             R"#(Makes the container empty)#" 
          )
        .def("HeaderData",
             (opencascade::handle<StdStorage_HeaderData> (StdStorage_Data::*)() ) static_cast<opencascade::handle<StdStorage_HeaderData> (StdStorage_Data::*)() >(&StdStorage_Data::HeaderData),
             R"#(Returns the header data section)#" 
          )
        .def("TypeData",
             (opencascade::handle<StdStorage_TypeData> (StdStorage_Data::*)() ) static_cast<opencascade::handle<StdStorage_TypeData> (StdStorage_Data::*)() >(&StdStorage_Data::TypeData),
             R"#(Returns the type data section)#" 
          )
        .def("RootData",
             (opencascade::handle<StdStorage_RootData> (StdStorage_Data::*)() ) static_cast<opencascade::handle<StdStorage_RootData> (StdStorage_Data::*)() >(&StdStorage_Data::RootData),
             R"#(Returns the root data section)#" 
          )
    // 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
;

    // Class StdStorage_HSequenceOfRoots from ./opencascade/StdStorage_HSequenceOfRoots.hxx
    klass = m.attr("StdStorage_HSequenceOfRoots");


    // nested enums

    static_cast<py::class_<StdStorage_HSequenceOfRoots ,opencascade::handle<StdStorage_HSequenceOfRoots>  , StdStorage_SequenceOfRoots , Standard_Transient >>(klass)
    // constructors
        .def(py::init<  >()  )
        .def(py::init<  const NCollection_Sequence<opencascade::handle<StdStorage_Root>> & >()  , py::arg("theOther") )
    // custom constructors
    // methods
        .def("Append",
             (void (StdStorage_HSequenceOfRoots::*)(  const opencascade::handle<StdStorage_Root> &  ) ) static_cast<void (StdStorage_HSequenceOfRoots::*)(  const opencascade::handle<StdStorage_Root> &  ) >(&StdStorage_HSequenceOfRoots::Append),
             R"#(None)#"  , py::arg("theItem")
          )
        .def("Append",
             (void (StdStorage_HSequenceOfRoots::*)( NCollection_Sequence<opencascade::handle<StdStorage_Root>> &  ) ) static_cast<void (StdStorage_HSequenceOfRoots::*)( NCollection_Sequence<opencascade::handle<StdStorage_Root>> &  ) >(&StdStorage_HSequenceOfRoots::Append),
             R"#(None)#"  , py::arg("theSequence")
          )
    // methods using call by reference i.s.o. return
    // static methods
        .def_static("get_type_name_s",
                    (const char * (*)() ) static_cast<const char * (*)() >(&StdStorage_HSequenceOfRoots::get_type_name),
                    R"#(None)#" 
          )
        .def_static("get_type_descriptor_s",
                    (const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&StdStorage_HSequenceOfRoots::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("Sequence",
             (const StdStorage_SequenceOfRoots & (StdStorage_HSequenceOfRoots::*)() const) static_cast<const StdStorage_SequenceOfRoots & (StdStorage_HSequenceOfRoots::*)() const>(&StdStorage_HSequenceOfRoots::Sequence),
             R"#(None)#"
             
         )
       .def("ChangeSequence",
             (StdStorage_SequenceOfRoots & (StdStorage_HSequenceOfRoots::*)() ) static_cast<StdStorage_SequenceOfRoots & (StdStorage_HSequenceOfRoots::*)() >(&StdStorage_HSequenceOfRoots::ChangeSequence),
             R"#(None)#"
             
             , py::return_value_policy::reference_internal
         )
       .def("DynamicType",
             (const opencascade::handle<Standard_Type> & (StdStorage_HSequenceOfRoots::*)() const) static_cast<const opencascade::handle<Standard_Type> & (StdStorage_HSequenceOfRoots::*)() const>(&StdStorage_HSequenceOfRoots::DynamicType),
             R"#(None)#"
             
         )
;

    // Class StdStorage_HeaderData from ./opencascade/StdStorage_HeaderData.hxx
    klass = m.attr("StdStorage_HeaderData");


    // nested enums

    static_cast<py::class_<StdStorage_HeaderData ,opencascade::handle<StdStorage_HeaderData>  , Standard_Transient >>(klass)
    // constructors
    // custom constructors
    // methods
        .def("Read",
             (Standard_Boolean (StdStorage_HeaderData::*)( const opencascade::handle<Storage_BaseDriver> &  ) ) static_cast<Standard_Boolean (StdStorage_HeaderData::*)( const opencascade::handle<Storage_BaseDriver> &  ) >(&StdStorage_HeaderData::Read),
             R"#(Reads the header data section from the container defined by theDriver. Returns Standard_True in case of success. Otherwise, one need to get an error code and description using ErrorStatus and ErrorStatusExtension functions correspondingly.)#"  , py::arg("theDriver")
          )
        .def("Write",
             (Standard_Boolean (StdStorage_HeaderData::*)( const opencascade::handle<Storage_BaseDriver> &  ) ) static_cast<Standard_Boolean (StdStorage_HeaderData::*)( const opencascade::handle<Storage_BaseDriver> &  ) >(&StdStorage_HeaderData::Write),
             R"#(Writes the header data section to the container defined by theDriver. Returns Standard_True in case of success. Otherwise, one need to get an error code and description using ErrorStatus and ErrorStatusExtension functions correspondingly.)#"  , py::arg("theDriver")
          )
        .def("CreationDate",
             (TCollection_AsciiString (StdStorage_HeaderData::*)() const) static_cast<TCollection_AsciiString (StdStorage_HeaderData::*)() const>(&StdStorage_HeaderData::CreationDate),
             R"#(Return the creation date)#" 
          )
        .def("StorageVersion",
             (TCollection_AsciiString (StdStorage_HeaderData::*)() const) static_cast<TCollection_AsciiString (StdStorage_HeaderData::*)() const>(&StdStorage_HeaderData::StorageVersion),
             R"#(Return the Storage package version)#" 
          )
        .def("SchemaVersion",
             (TCollection_AsciiString (StdStorage_HeaderData::*)() const) static_cast<TCollection_AsciiString (StdStorage_HeaderData::*)() const>(&StdStorage_HeaderData::SchemaVersion),
             R"#(Get the version of the schema)#" 
          )
        .def("SetApplicationVersion",
             (void (StdStorage_HeaderData::*)( const TCollection_AsciiString &  ) ) static_cast<void (StdStorage_HeaderData::*)( const TCollection_AsciiString &  ) >(&StdStorage_HeaderData::SetApplicationVersion),
             R"#(Set the version of the application)#"  , py::arg("aVersion")
          )
        .def("ApplicationVersion",
             (TCollection_AsciiString (StdStorage_HeaderData::*)() const) static_cast<TCollection_AsciiString (StdStorage_HeaderData::*)() const>(&StdStorage_HeaderData::ApplicationVersion),
             R"#(Get the version of the application)#" 
          )
        .def("SetApplicationName",
             (void (StdStorage_HeaderData::*)( const TCollection_ExtendedString &  ) ) static_cast<void (StdStorage_HeaderData::*)( const TCollection_ExtendedString &  ) >(&StdStorage_HeaderData::SetApplicationName),
             R"#(Set the name of the application)#"  , py::arg("aName")
          )
        .def("ApplicationName",
             (TCollection_ExtendedString (StdStorage_HeaderData::*)() const) static_cast<TCollection_ExtendedString (StdStorage_HeaderData::*)() const>(&StdStorage_HeaderData::ApplicationName),
             R"#(Get the name of the application)#" 
          )
        .def("SetDataType",
             (void (StdStorage_HeaderData::*)( const TCollection_ExtendedString &  ) ) static_cast<void (StdStorage_HeaderData::*)( const TCollection_ExtendedString &  ) >(&StdStorage_HeaderData::SetDataType),
             R"#(Set the data type)#"  , py::arg("aType")
          )
        .def("DataType",
             (TCollection_ExtendedString (StdStorage_HeaderData::*)() const) static_cast<TCollection_ExtendedString (StdStorage_HeaderData::*)() const>(&StdStorage_HeaderData::DataType),
             R"#(Returns data type)#" 
          )
        .def("AddToUserInfo",
             (void (StdStorage_HeaderData::*)( const TCollection_AsciiString &  ) ) static_cast<void (StdStorage_HeaderData::*)( const TCollection_AsciiString &  ) >(&StdStorage_HeaderData::AddToUserInfo),
             R"#(Add <theUserInfo> to the user information)#"  , py::arg("theUserInfo")
          )
        .def("AddToComments",
             (void (StdStorage_HeaderData::*)( const TCollection_ExtendedString &  ) ) static_cast<void (StdStorage_HeaderData::*)( const TCollection_ExtendedString &  ) >(&StdStorage_HeaderData::AddToComments),
             R"#(Add <theUserInfo> to the user information)#"  , py::arg("aComment")
          )
        .def("NumberOfObjects",
             (Standard_Integer (StdStorage_HeaderData::*)() const) static_cast<Standard_Integer (StdStorage_HeaderData::*)() const>(&StdStorage_HeaderData::NumberOfObjects),
             R"#(Returns the number of persistent objects)#" 
          )
        .def("ErrorStatus",
             (Storage_Error (StdStorage_HeaderData::*)() const) static_cast<Storage_Error (StdStorage_HeaderData::*)() const>(&StdStorage_HeaderData::ErrorStatus),
             R"#(Returns a status of the latest call to Read / Write functions)#" 
          )
        .def("ErrorStatusExtension",
             (TCollection_AsciiString (StdStorage_HeaderData::*)() const) static_cast<TCollection_AsciiString (StdStorage_HeaderData::*)() const>(&StdStorage_HeaderData::ErrorStatusExtension),
             R"#(Returns an error message if any of the latest call to Read / Write functions)#" 
          )
        .def("ClearErrorStatus",
             (void (StdStorage_HeaderData::*)() ) static_cast<void (StdStorage_HeaderData::*)() >(&StdStorage_HeaderData::ClearErrorStatus),
             R"#(Clears error status)#" 
          )
        .def("SetNumberOfObjects",
             (void (StdStorage_HeaderData::*)( const Standard_Integer  ) ) static_cast<void (StdStorage_HeaderData::*)( const Standard_Integer  ) >(&StdStorage_HeaderData::SetNumberOfObjects),
             R"#(None)#"  , py::arg("anObjectNumber")
          )
        .def("SetStorageVersion",
             (void (StdStorage_HeaderData::*)( const TCollection_AsciiString &  ) ) static_cast<void (StdStorage_HeaderData::*)( const TCollection_AsciiString &  ) >(&StdStorage_HeaderData::SetStorageVersion),
             R"#(None)#"  , py::arg("aVersion")
          )
        .def("SetCreationDate",
             (void (StdStorage_HeaderData::*)( const TCollection_AsciiString &  ) ) static_cast<void (StdStorage_HeaderData::*)( const TCollection_AsciiString &  ) >(&StdStorage_HeaderData::SetCreationDate),
             R"#(None)#"  , py::arg("aDate")
          )
        .def("SetSchemaVersion",
             (void (StdStorage_HeaderData::*)( const TCollection_AsciiString &  ) ) static_cast<void (StdStorage_HeaderData::*)( const TCollection_AsciiString &  ) >(&StdStorage_HeaderData::SetSchemaVersion),
             R"#(None)#"  , py::arg("aVersion")
          )
        .def("SetSchemaName",
             (void (StdStorage_HeaderData::*)( const TCollection_AsciiString &  ) ) static_cast<void (StdStorage_HeaderData::*)( const TCollection_AsciiString &  ) >(&StdStorage_HeaderData::SetSchemaName),
             R"#(None)#"  , py::arg("aName")
          )
    // methods using call by reference i.s.o. return
    // static methods
        .def_static("get_type_name_s",
                    (const char * (*)() ) static_cast<const char * (*)() >(&StdStorage_HeaderData::get_type_name),
                    R"#(None)#" 
          )
        .def_static("get_type_descriptor_s",
                    (const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&StdStorage_HeaderData::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> & (StdStorage_HeaderData::*)() const) static_cast<const opencascade::handle<Standard_Type> & (StdStorage_HeaderData::*)() const>(&StdStorage_HeaderData::DynamicType),
             R"#(None)#"
             
         )
       .def("UserInfo",
             (const TColStd_SequenceOfAsciiString & (StdStorage_HeaderData::*)() const) static_cast<const TColStd_SequenceOfAsciiString & (StdStorage_HeaderData::*)() const>(&StdStorage_HeaderData::UserInfo),
             R"#(Return the user information)#"
             
             , py::return_value_policy::reference_internal
         )
       .def("Comments",
             (const TColStd_SequenceOfExtendedString & (StdStorage_HeaderData::*)() const) static_cast<const TColStd_SequenceOfExtendedString & (StdStorage_HeaderData::*)() const>(&StdStorage_HeaderData::Comments),
             R"#(Return the user information)#"
             
             , py::return_value_policy::reference_internal
         )
;

    // Class StdStorage_Root from ./opencascade/StdStorage_Root.hxx
    klass = m.attr("StdStorage_Root");


    // nested enums

    static_cast<py::class_<StdStorage_Root ,opencascade::handle<StdStorage_Root>  , Standard_Transient >>(klass)
    // constructors
        .def(py::init<  >()  )
        .def(py::init< const TCollection_AsciiString &,const opencascade::handle<StdObjMgt_Persistent> & >()  , py::arg("theName"),  py::arg("theObject") )
    // custom constructors
    // methods
        .def("Name",
             (TCollection_AsciiString (StdStorage_Root::*)() const) static_cast<TCollection_AsciiString (StdStorage_Root::*)() const>(&StdStorage_Root::Name),
             R"#(Returns a name of the root)#" 
          )
        .def("SetName",
             (void (StdStorage_Root::*)( const TCollection_AsciiString &  ) ) static_cast<void (StdStorage_Root::*)( const TCollection_AsciiString &  ) >(&StdStorage_Root::SetName),
             R"#(Sets a name to the root object)#"  , py::arg("theName")
          )
        .def("Object",
             (opencascade::handle<StdObjMgt_Persistent> (StdStorage_Root::*)() const) static_cast<opencascade::handle<StdObjMgt_Persistent> (StdStorage_Root::*)() const>(&StdStorage_Root::Object),
             R"#(Returns a root's persistent object)#" 
          )
        .def("SetObject",
             (void (StdStorage_Root::*)( const opencascade::handle<StdObjMgt_Persistent> &  ) ) static_cast<void (StdStorage_Root::*)( const opencascade::handle<StdObjMgt_Persistent> &  ) >(&StdStorage_Root::SetObject),
             R"#(Sets a root's persistent object)#"  , py::arg("anObject")
          )
        .def("Type",
             (TCollection_AsciiString (StdStorage_Root::*)() const) static_cast<TCollection_AsciiString (StdStorage_Root::*)() const>(&StdStorage_Root::Type),
             R"#(Returns a root's persistent type)#" 
          )
        .def("SetType",
             (void (StdStorage_Root::*)( const TCollection_AsciiString &  ) ) static_cast<void (StdStorage_Root::*)( const TCollection_AsciiString &  ) >(&StdStorage_Root::SetType),
             R"#(Sets a root's persistent type)#"  , py::arg("aType")
          )
        .def("Reference",
             (Standard_Integer (StdStorage_Root::*)() const) static_cast<Standard_Integer (StdStorage_Root::*)() const>(&StdStorage_Root::Reference),
             R"#(Returns root's position in the root data section)#" 
          )
    // methods using call by reference i.s.o. return
    // static methods
        .def_static("get_type_name_s",
                    (const char * (*)() ) static_cast<const char * (*)() >(&StdStorage_Root::get_type_name),
                    R"#(None)#" 
          )
        .def_static("get_type_descriptor_s",
                    (const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&StdStorage_Root::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> & (StdStorage_Root::*)() const) static_cast<const opencascade::handle<Standard_Type> & (StdStorage_Root::*)() const>(&StdStorage_Root::DynamicType),
             R"#(None)#"
             
         )
;

    // Class StdStorage_RootData from ./opencascade/StdStorage_RootData.hxx
    klass = m.attr("StdStorage_RootData");


    // nested enums

    static_cast<py::class_<StdStorage_RootData ,opencascade::handle<StdStorage_RootData>  , Standard_Transient >>(klass)
    // constructors
    // custom constructors
    // methods
        .def("Read",
             (Standard_Boolean (StdStorage_RootData::*)( const opencascade::handle<Storage_BaseDriver> &  ) ) static_cast<Standard_Boolean (StdStorage_RootData::*)( const opencascade::handle<Storage_BaseDriver> &  ) >(&StdStorage_RootData::Read),
             R"#(Reads the root data section from the container defined by theDriver. Returns Standard_True in case of success. Otherwise, one need to get an error code and description using ErrorStatus and ErrorStatusExtension functions correspondingly.)#"  , py::arg("theDriver")
          )
        .def("Write",
             (Standard_Boolean (StdStorage_RootData::*)( const opencascade::handle<Storage_BaseDriver> &  ) ) static_cast<Standard_Boolean (StdStorage_RootData::*)( const opencascade::handle<Storage_BaseDriver> &  ) >(&StdStorage_RootData::Write),
             R"#(Writes the root data section to the container defined by theDriver. Returns Standard_True in case of success. Otherwise, one need to get an error code and description using ErrorStatus and ErrorStatusExtension functions correspondingly.)#"  , py::arg("theDriver")
          )
        .def("NumberOfRoots",
             (Standard_Integer (StdStorage_RootData::*)() const) static_cast<Standard_Integer (StdStorage_RootData::*)() const>(&StdStorage_RootData::NumberOfRoots),
             R"#(Returns the number of roots.)#" 
          )
        .def("AddRoot",
             (void (StdStorage_RootData::*)( const opencascade::handle<StdStorage_Root> &  ) ) static_cast<void (StdStorage_RootData::*)( const opencascade::handle<StdStorage_Root> &  ) >(&StdStorage_RootData::AddRoot),
             R"#(Add a root to <me>. If a root with same name is present, it will be replaced by <aRoot>.)#"  , py::arg("aRoot")
          )
        .def("Roots",
             (opencascade::handle<StdStorage_HSequenceOfRoots> (StdStorage_RootData::*)() const) static_cast<opencascade::handle<StdStorage_HSequenceOfRoots> (StdStorage_RootData::*)() const>(&StdStorage_RootData::Roots),
             R"#(Returns a sequence of all roots)#" 
          )
        .def("Find",
             (opencascade::handle<StdStorage_Root> (StdStorage_RootData::*)( const TCollection_AsciiString &  ) const) static_cast<opencascade::handle<StdStorage_Root> (StdStorage_RootData::*)( const TCollection_AsciiString &  ) const>(&StdStorage_RootData::Find),
             R"#(Finds a root with name <aName>.)#"  , py::arg("aName")
          )
        .def("IsRoot",
             (Standard_Boolean (StdStorage_RootData::*)( const TCollection_AsciiString &  ) const) static_cast<Standard_Boolean (StdStorage_RootData::*)( const TCollection_AsciiString &  ) const>(&StdStorage_RootData::IsRoot),
             R"#(Returns Standard_True if <me> contains a root named <aName>)#"  , py::arg("aName")
          )
        .def("RemoveRoot",
             (void (StdStorage_RootData::*)( const TCollection_AsciiString &  ) ) static_cast<void (StdStorage_RootData::*)( const TCollection_AsciiString &  ) >(&StdStorage_RootData::RemoveRoot),
             R"#(Removes the root named <aName>.)#"  , py::arg("aName")
          )
        .def("ErrorStatus",
             (Storage_Error (StdStorage_RootData::*)() const) static_cast<Storage_Error (StdStorage_RootData::*)() const>(&StdStorage_RootData::ErrorStatus),
             R"#(Returns a status of the latest call to Read / Write functions)#" 
          )
        .def("ErrorStatusExtension",
             (TCollection_AsciiString (StdStorage_RootData::*)() const) static_cast<TCollection_AsciiString (StdStorage_RootData::*)() const>(&StdStorage_RootData::ErrorStatusExtension),
             R"#(Returns an error message if any of the latest call to Read / Write functions)#" 
          )
        .def("ClearErrorStatus",
             (void (StdStorage_RootData::*)() ) static_cast<void (StdStorage_RootData::*)() >(&StdStorage_RootData::ClearErrorStatus),
             R"#(Clears error status)#" 
          )
        .def("Clear",
             (void (StdStorage_RootData::*)() ) static_cast<void (StdStorage_RootData::*)() >(&StdStorage_RootData::Clear),
             R"#(Removes all persistent root objects)#" 
          )
    // methods using call by reference i.s.o. return
    // static methods
        .def_static("get_type_name_s",
                    (const char * (*)() ) static_cast<const char * (*)() >(&StdStorage_RootData::get_type_name),
                    R"#(None)#" 
          )
        .def_static("get_type_descriptor_s",
                    (const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&StdStorage_RootData::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> & (StdStorage_RootData::*)() const) static_cast<const opencascade::handle<Standard_Type> & (StdStorage_RootData::*)() const>(&StdStorage_RootData::DynamicType),
             R"#(None)#"
             
         )
;

    // Class StdStorage_TypeData from ./opencascade/StdStorage_TypeData.hxx
    klass = m.attr("StdStorage_TypeData");


    // nested enums

    static_cast<py::class_<StdStorage_TypeData ,opencascade::handle<StdStorage_TypeData>  , Standard_Transient >>(klass)
    // constructors
    // custom constructors
    // methods
        .def("Read",
             (Standard_Boolean (StdStorage_TypeData::*)( const opencascade::handle<Storage_BaseDriver> &  ) ) static_cast<Standard_Boolean (StdStorage_TypeData::*)( const opencascade::handle<Storage_BaseDriver> &  ) >(&StdStorage_TypeData::Read),
             R"#(Reads the type data section from the container defined by theDriver. Returns Standard_True in case of success. Otherwise, one need to get an error code and description using ErrorStatus and ErrorStatusExtension functions correspondingly.)#"  , py::arg("theDriver")
          )
        .def("Write",
             (Standard_Boolean (StdStorage_TypeData::*)( const opencascade::handle<Storage_BaseDriver> &  ) ) static_cast<Standard_Boolean (StdStorage_TypeData::*)( const opencascade::handle<Storage_BaseDriver> &  ) >(&StdStorage_TypeData::Write),
             R"#(Writes the type data section to the container defined by theDriver. Returns Standard_True in case of success. Otherwise, one need to get an error code and description using ErrorStatus and ErrorStatusExtension functions correspondingly.)#"  , py::arg("theDriver")
          )
        .def("NumberOfTypes",
             (Standard_Integer (StdStorage_TypeData::*)() const) static_cast<Standard_Integer (StdStorage_TypeData::*)() const>(&StdStorage_TypeData::NumberOfTypes),
             R"#(Returns the number of registered types)#" 
          )
        .def("AddType",
             (void (StdStorage_TypeData::*)( const TCollection_AsciiString & ,  const Standard_Integer  ) ) static_cast<void (StdStorage_TypeData::*)( const TCollection_AsciiString & ,  const Standard_Integer  ) >(&StdStorage_TypeData::AddType),
             R"#(Add a type to the list in case of reading data)#"  , py::arg("aTypeName"),  py::arg("aTypeNum")
          )
        .def("AddType",
             (Standard_Integer (StdStorage_TypeData::*)( const opencascade::handle<StdObjMgt_Persistent> &  ) ) static_cast<Standard_Integer (StdStorage_TypeData::*)( const opencascade::handle<StdObjMgt_Persistent> &  ) >(&StdStorage_TypeData::AddType),
             R"#(Add a type of the persistent object in case of writing data)#"  , py::arg("aPObj")
          )
        .def("Type",
             (TCollection_AsciiString (StdStorage_TypeData::*)( const Standard_Integer  ) const) static_cast<TCollection_AsciiString (StdStorage_TypeData::*)( const Standard_Integer  ) const>(&StdStorage_TypeData::Type),
             R"#(Returns the name of the type with number <aTypeNum>)#"  , py::arg("aTypeNum")
          )
        .def("Type",
             (Standard_Integer (StdStorage_TypeData::*)( const TCollection_AsciiString &  ) const) static_cast<Standard_Integer (StdStorage_TypeData::*)( const TCollection_AsciiString &  ) const>(&StdStorage_TypeData::Type),
             R"#(Returns the name of the type with number <aTypeNum>)#"  , py::arg("aTypeName")
          )
        .def("IsType",
             (Standard_Boolean (StdStorage_TypeData::*)( const TCollection_AsciiString &  ) const) static_cast<Standard_Boolean (StdStorage_TypeData::*)( const TCollection_AsciiString &  ) const>(&StdStorage_TypeData::IsType),
             R"#(Checks if <aName> is a registered type)#"  , py::arg("aName")
          )
        .def("Types",
             (opencascade::handle<TColStd_HSequenceOfAsciiString> (StdStorage_TypeData::*)() const) static_cast<opencascade::handle<TColStd_HSequenceOfAsciiString> (StdStorage_TypeData::*)() const>(&StdStorage_TypeData::Types),
             R"#(Returns a sequence of all registered types)#" 
          )
        .def("ErrorStatus",
             (Storage_Error (StdStorage_TypeData::*)() const) static_cast<Storage_Error (StdStorage_TypeData::*)() const>(&StdStorage_TypeData::ErrorStatus),
             R"#(Returns a status of the latest call to Read / Write functions)#" 
          )
        .def("ErrorStatusExtension",
             (TCollection_AsciiString (StdStorage_TypeData::*)() const) static_cast<TCollection_AsciiString (StdStorage_TypeData::*)() const>(&StdStorage_TypeData::ErrorStatusExtension),
             R"#(Returns an error message if any of the latest call to Read / Write functions)#" 
          )
        .def("ClearErrorStatus",
             (void (StdStorage_TypeData::*)() ) static_cast<void (StdStorage_TypeData::*)() >(&StdStorage_TypeData::ClearErrorStatus),
             R"#(Clears error status)#" 
          )
        .def("Clear",
             (void (StdStorage_TypeData::*)() ) static_cast<void (StdStorage_TypeData::*)() >(&StdStorage_TypeData::Clear),
             R"#(Unregisters all types)#" 
          )
    // methods using call by reference i.s.o. return
    // static methods
        .def_static("get_type_name_s",
                    (const char * (*)() ) static_cast<const char * (*)() >(&StdStorage_TypeData::get_type_name),
                    R"#(None)#" 
          )
        .def_static("get_type_descriptor_s",
                    (const opencascade::handle<Standard_Type> & (*)() ) static_cast<const opencascade::handle<Standard_Type> & (*)() >(&StdStorage_TypeData::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> & (StdStorage_TypeData::*)() const) static_cast<const opencascade::handle<Standard_Type> & (StdStorage_TypeData::*)() const>(&StdStorage_TypeData::DynamicType),
             R"#(None)#"
             
         )
;

// functions
// ./opencascade/StdStorage.hxx
// ./opencascade/StdStorage_BacketOfPersistent.hxx
// ./opencascade/StdStorage_Data.hxx
// ./opencascade/StdStorage_HSequenceOfRoots.hxx
// ./opencascade/StdStorage_HeaderData.hxx
// ./opencascade/StdStorage_MapOfRoots.hxx
// ./opencascade/StdStorage_MapOfTypes.hxx
// ./opencascade/StdStorage_Root.hxx
// ./opencascade/StdStorage_RootData.hxx
// ./opencascade/StdStorage_SequenceOfRoots.hxx
// ./opencascade/StdStorage_TypeData.hxx

// Additional functions

// operators

// register typdefs
    register_template_NCollection_Sequence<opencascade::handle<StdStorage_Root>>(m,"StdStorage_SequenceOfRoots");


// exceptions

// user-defined post-inclusion per module in the body

};

// user-defined post-inclusion per module

// user-defined post