00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include "msd_xml_xsd.h"
00013 using namespace std;
00015
00016
00017
00019
00020 xsd__anyType::xsd__anyType()
00021 { soap = NULL;
00022 }
00023
00024
00025 xsd__anyType::~xsd__anyType()
00026 { soap_unlink(soap, this);
00027 }
00028 xsd__anyType*& xsd__anyType::operator[](int i)
00029 { static xsd__anyType *p = this;
00030 return p;
00031 }
00032 void xsd__anyType::fprint(ofstream& s) const
00033 {
00034
00035 s << "<anyType>";
00036 }
00037 void xsd__anyType::print(std::ostream& s) const
00038 {
00039
00040 s << "<anyType>";
00041 }
00042 void xsd__anyType::setst(msdbStream& s){
00043
00044 s << __item;
00045 msd_val = msdConst(__item);
00046 }
00047 void xsd__anyType::getst(msdbStream& s){
00048
00049 s >> __item;
00050 msd_val = msdConst(__item);
00051 }
00052 void xsd__anyType::set(char* s){
00053
00054 }
00055
00056
00057 xsd__anySimpleType::xsd__anySimpleType()
00058 { }
00059
00060 xsd__anySimpleType::~xsd__anySimpleType()
00061 { }
00062 void xsd__anySimpleType::fprint(ofstream& s) const
00063 {
00064
00065 s << "<anySimpleType>";
00066 }
00067 void xsd__anySimpleType::print(std::ostream& s) const
00068 {
00069
00070 s << "<anySimpleType>";
00071 }
00072 void xsd__anySimpleType::setst(msdbStream& s)
00073 {
00074 s << __item;
00075 }
00076 void xsd__anySimpleType::getst(msdbStream& s)
00077 {
00078 s >> __item;
00079 msd_val = msdConst(__item);
00080 }
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092 xsd__anyURI::xsd__anyURI()
00093 { }
00094
00095
00096
00097
00098
00099 xsd__anyURI::~xsd__anyURI()
00100 { }
00101 xsd__anyURI::xsd__anyURI(char *s)
00102 { __item = s;
00103
00104 }
00105 void xsd__anyURI::fprint(ofstream& s) const
00106 {
00107
00108 s << __item;
00109 }
00110 void xsd__anyURI::print(std::ostream& s) const
00111 {
00112
00113 s << __item;
00114 }
00115 void xsd__anyURI::setst(msdbStream& s)
00116 {
00117 s << __item;
00118 }
00119 void xsd__anyURI::getst(msdbStream& s)
00120 {
00121 s >> __item;
00122 msd_val = msdConst(__item);
00123 }
00124
00125
00126
00127
00128
00129
00130
00131
00132 xsd__boolean::xsd__boolean()
00133 { }
00134
00135
00136
00137
00138
00139 xsd__boolean::~xsd__boolean()
00140 { }
00141 xsd__boolean::xsd__boolean(bool b)
00142 { __item = b;
00143 }
00144 void xsd__boolean::fprint(ofstream& s) const
00145 {
00146
00147 s << __item;
00148 }
00149 void xsd__boolean::print(std::ostream& s) const
00150 {
00151
00152 s << __item;
00153 }
00154 void xsd__boolean::setst(msdbStream& s)
00155 {
00156 if (__item == true)
00157 s << 1;
00158 else
00159 s << 0;
00160 }
00161 void xsd__boolean::getst(msdbStream& s)
00162 {int lv;
00163 s >> lv;
00164 if (lv == 0)
00165 __item =false;
00166 else
00167 __item =true;
00168 msd_val = msdConst(lv);
00169 }
00170 void xsd__boolean::set(bool& b){
00171 __item = b;
00172 }
00173
00174 xsd__date::xsd__date()
00175 { }
00176
00177
00178
00179
00180
00181 xsd__date::~xsd__date()
00182 { }
00183 xsd__date::xsd__date(char *s)
00184 { __item = s;
00185 }
00186 void xsd__date::fprint(ofstream& s) const
00187 {
00188
00189
00190 s <<__item;
00191 }
00192 void xsd__date::print(std::ostream& s) const
00193 {
00194
00195
00196 s <<__item;
00197 }
00198 void xsd__date::setst(msdbStream& s)
00199 {
00200 otl_datetime otl_item;
00201
00202 s <<otl_item;
00203 }
00204 void xsd__date::getst(msdbStream& s)
00205 {
00206 otl_datetime otl_item;
00207 s >> otl_item;
00208 __item=(char*)soap_malloc(soap, 11);
00209 sprintf(__item,"%d-%d-%d",otl_item.year,otl_item.month,otl_item.day);
00210 msd_val = msdConst(__item);
00211 }
00212
00213
00214
00215
00216
00217
00218
00219
00220 xsd__dateTime::xsd__dateTime()
00221 { }
00222
00223
00224
00225
00226
00227 xsd__dateTime::~xsd__dateTime()
00228 { }
00229 xsd__dateTime::xsd__dateTime(time_t t)
00230 { __item = t;
00231 }
00232 void xsd__dateTime::fprint(ofstream& s) const
00233 {
00234
00235 s << __item;
00236 }
00237 void xsd__dateTime::print(std::ostream& s) const
00238 {
00239
00240 s << __item;
00241 }
00242 void xsd__dateTime::setst(msdbStream& s)
00243 {otl_datetime tv;
00244 tv.second=__item;
00245 s <<tv;
00246 }
00247 void xsd__dateTime::getst(msdbStream& s)
00248 {otl_datetime tv;
00249 s >> tv;
00250 __item=tv.second;
00251 msd_val = msdConst(int (__item));
00252 }
00253 void xsd__dateTime::set(time_t& t){
00254 __item = t;
00255
00256
00257 }
00258
00259 xsd__double::xsd__double()
00260 { }
00261
00262
00263
00264
00265
00266 xsd__double::~xsd__double()
00267 { }
00268 xsd__double::xsd__double(double d)
00269 { __item = d;
00270 }
00271 void xsd__double::fprint(ofstream& s) const
00272 {
00273
00274 s << __item;
00275 }
00276 void xsd__double::print(std::ostream& s) const
00277 {
00278
00279 s << __item;
00280 }
00281 void xsd__double::setst(msdbStream& s)
00282 {
00283 s << __item;
00284 }
00285 void xsd__double::getst(msdbStream& s)
00286 {
00287 s >> __item;
00288 msd_val = msdConst(__item);
00289 }
00290 void xsd__double::set(double& d){
00291 __item = d;
00292 }
00293
00294 xsd__duration::xsd__duration()
00295 { }
00296
00297
00298
00299
00300
00301 xsd__duration::~xsd__duration()
00302 { }
00303 xsd__duration::xsd__duration(char *s)
00304 { __item = s;
00305 }
00306 void xsd__duration::fprint(ofstream& s) const
00307 {
00308
00309 s << __item;
00310 }
00311 void xsd__duration::print(std::ostream& s) const
00312 {
00313
00314 s << __item;
00315 }
00316 void xsd__duration::setst(msdbStream& s)
00317 {
00318 s << __item;
00319 }
00320 void xsd__duration::getst(msdbStream& s)
00321 {
00322 s >> __item;
00323 msd_val = msdConst(__item);
00324 }
00325
00326
00327
00328
00329
00330
00331
00332
00333 xsd__float::xsd__float()
00334 { }
00335
00336
00337
00338
00339
00340 xsd__float::~xsd__float()
00341 { }
00342 xsd__float::xsd__float(float f)
00343 { __item = f;
00344 }
00345 void xsd__float::fprint(ofstream& s) const
00346 {
00347
00348 s << __item;
00349 }
00350 void xsd__float::print(std::ostream& s) const
00351 {
00352
00353 s << __item;
00354 }
00355 void xsd__float::setst(msdbStream& s)
00356 {
00357 s << __item;
00358 }
00359 void xsd__float::getst(msdbStream& s)
00360 {
00361 s >> __item;
00362 msd_val = msdConst(__item);
00363 }
00364 void xsd__float::set(float& f){
00365 __item = f;
00366
00367 }
00368
00369 xsd__time::xsd__time()
00370 { }
00371
00372
00373
00374
00375
00376 xsd__time::~xsd__time()
00377 { }
00378 xsd__time::xsd__time(char *s)
00379 { __item = s;
00380 }
00381 void xsd__time::fprint(ofstream& s) const
00382 {
00383
00384 s << __item;
00385 }
00386 void xsd__time::print(std::ostream& s) const
00387 {
00388
00389 s << __item;
00390 }
00391 void xsd__time::setst(msdbStream& s)
00392 {
00393 s << __item;
00394 }
00395 void xsd__time::getst(msdbStream& s)
00396 {
00397 s >> __item;
00398 msd_val = msdConst(__item);
00399 }
00400
00401
00402
00403
00404
00405
00406
00407
00408
00409 xsd__string::xsd__string()
00410 { }
00411
00412
00413
00414
00415
00416 xsd__string::~xsd__string()
00417 {
00418
00419 }
00420
00421 xsd__string::xsd__string(int size)
00422 {
00423
00424 __item=(char*)soap_malloc(soap, size);
00425
00426
00427 }
00428
00429 xsd__string::xsd__string(char *s)
00430 {
00431
00432 __item=(char*)soap_malloc(soap, strlen(s)+1);
00433 sprintf(__item,"%s",s);
00434
00435 }
00436 void xsd__string::fprint(ofstream& s) const
00437 {
00438
00439 s << __item;
00440 }
00441 void xsd__string::print(std::ostream& s) const
00442 {
00443
00444 s << __item;
00445 }
00446 void xsd__string::setst(msdbStream& s)
00447 {
00448 s << __item;
00449 }
00450 void xsd__string::getst(msdbStream& s)
00451 {
00452 s >> __item;
00453 msd_val = msdConst(__item);
00454 }
00455 void xsd__string::set(char* s){
00456
00457
00458 __item=(char*)soap_malloc(soap, strlen(s)+1);
00459 sprintf(__item,"%s",s);
00460
00461
00462 }
00463
00464
00465
00466
00467
00468
00469
00470
00471
00472
00473
00474 xsd__normalizedString::xsd__normalizedString()
00475 { }
00476
00477
00478
00479
00480
00481 xsd__normalizedString::~xsd__normalizedString()
00482 { }
00483 xsd__normalizedString::xsd__normalizedString(char *s)
00484 { __item = s; }
00485 void xsd__normalizedString::fprint(ofstream& s) const
00486 {
00487 s << __item;
00488 }
00489 void xsd__normalizedString::print(std::ostream& s) const
00490 {
00491 s << __item;
00492 }
00493 void xsd__normalizedString::setst(msdbStream& s)
00494 {
00495 s << __item;
00496 }
00497 void xsd__normalizedString::getst(msdbStream& s)
00498 {
00499 s >>__item;
00500 msd_val = msdConst(__item);
00501 }
00502
00503
00504
00505
00506
00507
00508
00509
00510 xsd__token::xsd__token()
00511 { }
00512
00513
00514
00515
00516
00517 xsd__token::~xsd__token()
00518 { }
00519 xsd__token::xsd__token(char *s)
00520 { __item = s;
00521 }
00522 void xsd__token::fprint(ofstream& s) const
00523 {
00524
00525 s << __item;
00526 }
00527 void xsd__token::print(std::ostream& s) const
00528 {
00529
00530 s << __item;
00531 }
00532 void xsd__token::setst(msdbStream& s)
00533 {
00534 s << __item;
00535 }
00536 void xsd__token::getst(msdbStream& s)
00537 {
00538 s >>__item;
00539 msd_val = msdConst(__item);
00540 }
00541
00542
00543
00544
00545
00546
00547
00548
00549 xsd__decimal::xsd__decimal()
00550 { }
00551
00552
00553
00554
00555
00556 xsd__decimal::~xsd__decimal()
00557 { }
00558 xsd__decimal::xsd__decimal(char *s)
00559 { __item = s;
00560 }
00561 void xsd__decimal::fprint(ofstream& s) const
00562 {
00563
00564 s << __item;
00565 }
00566 void xsd__decimal::print(std::ostream& s) const
00567 {
00568
00569 s << __item;
00570 }
00571 void xsd__decimal::setst(msdbStream& s)
00572 {
00573 s << __item;
00574 }
00575 void xsd__decimal::getst(msdbStream& s)
00576 {
00577 s >> __item;
00578 msd_val = msdConst(__item);
00579 }
00580
00581
00582
00583
00584 xsd__integer::xsd__integer()
00585 { }
00586
00587
00588
00589
00590
00591 xsd__integer::~xsd__integer()
00592 { }
00593 xsd__integer::xsd__integer(char *s)
00594 { __item = s;
00595 }
00596 void xsd__integer::fprint(ofstream& s) const
00597 {
00598
00599 s << __item;
00600 }
00601 void xsd__integer::print(std::ostream& s) const
00602 {
00603
00604 s << __item;
00605 }
00606 void xsd__integer::setst(msdbStream& s)
00607 {
00608 s << __item;
00609 }
00610 void xsd__integer::getst(msdbStream& s)
00611 {
00612 s >> __item;
00613 msd_val = msdConst(__item);
00614 }
00615
00616
00617
00618
00619 xsd__nonPositiveInteger::xsd__nonPositiveInteger()
00620 { }
00621
00622
00623
00624
00625
00626 xsd__nonPositiveInteger::~xsd__nonPositiveInteger()
00627 { }
00628 xsd__nonPositiveInteger::xsd__nonPositiveInteger(char *s)
00629 { __item = s;
00630 }
00631 void xsd__nonPositiveInteger::fprint(ofstream& s) const
00632 {
00633
00634 s << __item;
00635 }
00636 void xsd__nonPositiveInteger::print(std::ostream& s) const
00637 {
00638
00639 s << __item;
00640 }
00641 void xsd__nonPositiveInteger::setst(msdbStream& s)
00642 {
00643 s << __item;
00644 }
00645 void xsd__nonPositiveInteger::getst(msdbStream& s)
00646 {
00647 s >> __item;
00648 msd_val = msdConst(__item);
00649 }
00650
00651
00652
00653
00654
00655
00656
00657
00658 xsd__negativeInteger::xsd__negativeInteger()
00659 { }
00660
00661
00662
00663
00664
00665 xsd__negativeInteger::~xsd__negativeInteger()
00666 { }
00667 xsd__negativeInteger::xsd__negativeInteger(char *s)
00668 { __item = s;
00669 }
00670 void xsd__negativeInteger::fprint(ofstream& s) const
00671 {
00672
00673 s << __item;
00674 }
00675 void xsd__negativeInteger::print(std::ostream& s) const
00676 {
00677
00678 s << __item;
00679 }
00680 void xsd__negativeInteger::setst(msdbStream& s)
00681 {
00682 s << __item;
00683 }
00684 void xsd__negativeInteger::getst(msdbStream& s)
00685 {
00686 s >> __item;
00687 msd_val = msdConst(__item);
00688 }
00689
00690
00691
00692
00693
00694
00695
00696
00697 xsd__nonNegativeInteger::xsd__nonNegativeInteger()
00698 { }
00699
00700
00701
00702
00703
00704 xsd__nonNegativeInteger::~xsd__nonNegativeInteger()
00705 { }
00706 xsd__nonNegativeInteger::xsd__nonNegativeInteger(char *s)
00707 { __item = s;
00708 }
00709 void xsd__nonNegativeInteger::fprint(ofstream& s) const
00710 {
00711
00712 s << __item;
00713 }
00714 void xsd__nonNegativeInteger::print(std::ostream& s) const
00715 {
00716
00717 s << __item;
00718 }
00719 void xsd__nonNegativeInteger::setst(msdbStream& s)
00720 {
00721 s << __item;
00722 }
00723 void xsd__nonNegativeInteger::getst(msdbStream& s)
00724 {
00725 s >> __item;
00726 msd_val = msdConst(__item);
00727 }
00728
00729
00730
00731
00732
00733
00734
00735
00736 xsd__positiveInteger::xsd__positiveInteger()
00737 { }
00738
00739
00740
00741
00742
00743 xsd__positiveInteger::~xsd__positiveInteger()
00744 { }
00745 xsd__positiveInteger::xsd__positiveInteger(char *s)
00746 { __item = s;
00747 }
00748 void xsd__positiveInteger::fprint(ofstream& s) const
00749 {
00750
00751 s <<__item;
00752 }
00753 void xsd__positiveInteger::print(std::ostream& s) const
00754 {
00755
00756 s <<__item;
00757 }
00758 void xsd__positiveInteger::setst(msdbStream& s)
00759 {
00760 s << __item;
00761 }
00762 void xsd__positiveInteger::getst(msdbStream& s)
00763 {
00764 s >> __item;
00765 msd_val = msdConst(__item);
00766 }
00767
00768
00769
00770
00771
00772
00773
00774
00775 xsd__long::xsd__long()
00776 { }
00777
00778
00779
00780
00781
00782 xsd__long::~xsd__long()
00783 { }
00784 xsd__long::xsd__long(LONG64 ll)
00785 { __item = ll;
00786 }
00787 void xsd__long::fprint(ofstream& s) const
00788 {
00789 s <<__item;
00790 }
00791 void xsd__long::print(std::ostream& s) const
00792 {
00793 s <<__item;
00794 }
00795
00796 void xsd__long::setst(msdbStream& s)
00797 {
00798
00799 }
00800 void xsd__long::getst(msdbStream& s)
00801 {
00802
00803
00804 }
00805 void xsd__long::set(LONG64& ll){
00806 __item = ll;
00807 }
00808
00809 xsd__int::xsd__int()
00810 { }
00811
00812
00813
00814
00815
00816 xsd__int::~xsd__int()
00817 { }
00818 xsd__int::xsd__int(int i)
00819 { __item = i;
00820 }
00821 void xsd__int::fprint(ofstream& s) const
00822 {
00823
00824 s << __item;
00825 }
00826 void xsd__int::print(std::ostream& s) const
00827 {
00828
00829 s << __item;
00830 }
00831
00832 void xsd__int::setst(msdbStream& s)
00833 {
00834 s << __item;
00835 }
00836 void xsd__int::getst(msdbStream& s)
00837 {
00838 s >> __item;
00839 msd_val = msdConst(__item);
00840 }
00841 void xsd__int::set(int& i){
00842 __item = i;
00843
00844 }
00845
00846 xsd__short::xsd__short()
00847 { }
00848
00849
00850
00851
00852
00853 xsd__short::~xsd__short()
00854 { }
00855 xsd__short::xsd__short(short h)
00856 { __item = h;
00857 }
00858 void xsd__short::fprint(ofstream& s) const
00859 {
00860 s << __item;
00861 }
00862 void xsd__short::print(std::ostream& s) const
00863 {
00864 s << __item;
00865 }
00866
00867 void xsd__short::setst(msdbStream& s)
00868 {
00869 s << __item;
00870 }
00871 void xsd__short::getst(msdbStream& s)
00872 {
00873 s >> __item;
00874 msd_val = msdConst(__item);
00875 }
00876 void xsd__short::set(short& h){
00877 __item = h;
00878
00879 }
00880
00881 xsd__byte::xsd__byte()
00882 { }
00883
00884
00885
00886
00887
00888 xsd__byte::~xsd__byte()
00889 { }
00890 xsd__byte::xsd__byte(char c)
00891 { __item = c;
00892 }
00893 void xsd__byte::fprint(ofstream& s) const
00894 {
00895 s << __item;
00896 }
00897 void xsd__byte::print(std::ostream& s) const
00898 {
00899 s << __item;
00900 }
00901
00902 void xsd__byte::setst(msdbStream& s)
00903 {
00904 s << __item;
00905 }
00906 void xsd__byte::getst(msdbStream& s)
00907 {
00908 s >> __item;
00909 msd_val = msdConst(__item);
00910 }
00911 void xsd__byte::set(char c){
00912 __item = c;
00913
00914 }
00915
00916 xsd__unsignedLong::xsd__unsignedLong()
00917 { }
00918
00919
00920
00921
00922
00923 xsd__unsignedLong::~xsd__unsignedLong()
00924 { }
00925 xsd__unsignedLong::xsd__unsignedLong(ULONG64 ull)
00926 { __item = ull;
00927 }
00928 void xsd__unsignedLong::fprint(ofstream& s) const
00929 {
00930 s << __item;
00931 }
00932 void xsd__unsignedLong::print(std::ostream& s) const
00933 {
00934 s << __item;
00935 }
00936
00937 void xsd__unsignedLong::setst(msdbStream& s)
00938 {
00939
00940 }
00941 void xsd__unsignedLong::getst(msdbStream& s)
00942 {
00943
00944
00945 }
00946 void xsd__unsignedLong::set(ULONG64& ull){
00947 __item = ull;
00948
00949 }
00950
00951 xsd__unsignedInt::xsd__unsignedInt()
00952 { }
00953
00954
00955
00956
00957
00958 xsd__unsignedInt::~xsd__unsignedInt()
00959 { }
00960 xsd__unsignedInt::xsd__unsignedInt(unsigned int ui)
00961 { __item = ui;
00962 }
00963 void xsd__unsignedInt::fprint(ofstream& s) const
00964 {
00965 s << __item;
00966 }
00967 void xsd__unsignedInt::print(std::ostream& s) const
00968 {
00969 s << __item;
00970 }
00971
00972 void xsd__unsignedInt::setst(msdbStream& s)
00973 {
00974
00975 }
00976 void xsd__unsignedInt::getst(msdbStream& s)
00977 {
00978
00979
00980 }
00981 void xsd__unsignedInt::set(unsigned int& ui){
00982 __item = ui;
00983 }
00984
00985 xsd__unsignedShort::xsd__unsignedShort()
00986 { }
00987
00988
00989
00990
00991
00992 xsd__unsignedShort::~xsd__unsignedShort()
00993 { }
00994 xsd__unsignedShort::xsd__unsignedShort(unsigned short uh)
00995 { __item = uh;
00996 }
00997 void xsd__unsignedShort::fprint(ofstream& s) const
00998 {
00999 s << __item;
01000 }
01001 void xsd__unsignedShort::print(std::ostream& s) const
01002 {
01003 s << __item;
01004 }
01005
01006 void xsd__unsignedShort::setst(msdbStream& s)
01007 {
01008
01009 }
01010 void xsd__unsignedShort::getst(msdbStream& s)
01011 {
01012
01013
01014 }
01015
01016 void xsd__unsignedShort::set(unsigned short& uh){
01017 __item = uh;
01018 }
01019
01020 xsd__unsignedByte::xsd__unsignedByte()
01021 { }
01022
01023
01024
01025
01026
01027 xsd__unsignedByte::~xsd__unsignedByte()
01028 { }
01029 xsd__unsignedByte::xsd__unsignedByte(unsigned char uc)
01030 { __item = uc;
01031 }
01032 void xsd__unsignedByte::fprint(ofstream& s) const
01033 {
01034 s << __item;
01035 }
01036 void xsd__unsignedByte::print(std::ostream& s) const
01037 {
01038 s << __item;
01039 }
01040
01041 void xsd__unsignedByte::setst(msdbStream& s)
01042 {
01043
01044 }
01045 void xsd__unsignedByte::getst(msdbStream& s)
01046 {
01047
01048
01049 }
01050 void xsd__unsignedByte::set(unsigned char uc){
01051 __item = uc;
01052 }
01053
01054
01055
01056 xsd__base64Binary::xsd__base64Binary()
01057 { }
01058
01059
01060
01061
01062
01063 xsd__base64Binary::~xsd__base64Binary()
01064 { }
01065 xsd__base64Binary::xsd__base64Binary(char *s)
01066 { __size = strlen(s)+1;
01067 __ptr = (unsigned char*)s;
01068 }
01069 void xsd__base64Binary::fprint(ofstream& s) const
01070 {
01071 s << __size;
01072
01073 }
01074 void xsd__base64Binary::print(std::ostream& s) const
01075 {
01076 s << __size;
01077
01078 }
01079
01080 void xsd__base64Binary::setst(msdbStream& s)
01081 {
01082 s << __size;
01083
01084 }
01085 void xsd__base64Binary::getst(msdbStream& s)
01086 {
01087 s >> __size;
01088 msd_val = msdConst(__size);
01089
01090 }
01091 void xsd__base64Binary::set(char* s){
01092 __size = strlen(s)+1;
01093 __ptr = (unsigned char*)s;
01094 }
01130 xsd__hexBinary::xsd__hexBinary()
01131 { }
01132
01133
01134
01135
01136
01137 xsd__hexBinary::~xsd__hexBinary()
01138 { }
01139 xsd__hexBinary::xsd__hexBinary(char *s)
01140 { __size = strlen(s)+1;
01141 __ptr = (unsigned char*)s;
01142 }
01143 void xsd__hexBinary::fprint(ofstream& s) const
01144 {
01145
01146 s << __size;
01147
01148 }
01149 void xsd__hexBinary::print(std::ostream& s) const
01150 {
01151
01152 s << __size;
01153
01154 }
01155
01156 void xsd__hexBinary::setst(msdbStream& s)
01157 {
01158
01159 s << __size;
01160
01161 }
01162 void xsd__hexBinary::getst(msdbStream& s)
01163 {
01164
01165 s >> __size;
01166 msd_val = msdConst(__size);
01167
01168 }
01169 void xsd__hexBinary::set(char* s){
01170 __size = strlen(s)+1;
01171 __ptr = (unsigned char*)s;
01172 }
01173
01174 array::array()
01175 { }
01176
01177
01178
01179
01180
01181 array::~array()
01182 { }
01183 array::array(int n)
01184 { __size = n;
01185 __ptr = (xsd__anyType**)soap_malloc(soap, n*sizeof(xsd__anyType*));
01186 }
01187 xsd__anyType*& array::operator[](int i)
01188 { return __ptr[i];
01189 }
01190 void array::fprint(ofstream& s) const
01191 {
01192 for (int i = 0; i < __size; i++){
01193 __ptr[i]->fprint(s);
01194
01195 s << ", ";
01196
01197 }
01198
01199 }
01200 void array::print(std::ostream& s) const
01201 {
01202 for (int i = 0; i < __size; i++){
01203 __ptr[i]->print(s);
01204
01205 s << ", ";
01206
01207 }
01208
01209 }
01210
01211 void array::setst(msdbStream& s)
01212 {
01213 for (int i = 0; i < __size; i++){
01214 __ptr[i]->setst(s);
01215 }
01216
01217 }
01218 void array::getst(msdbStream& s)
01219 {
01220 for (int i = 0; i < __size; i++){
01221 __ptr[i]->getst(s);
01222 }
01223
01224 }
01225
01226
01227 t__root::t__root()
01228 { soap = NULL;}
01229
01230 t__root::~t__root()
01231 {soap_unlink(soap, this);
01232
01233
01234 if (name)
01235 {soap_dealloc(soap,(void*)name);
01236 }
01237 }
01238
01239 void t__root::renew()
01240 { lease = time(NULL) + LEASETERM;
01241 }
01242
01243 t__connect::t__connect()
01244 {
01245 }
01246 t__connect::~t__connect()
01247 {if (dbserver)
01248 {soap_dealloc(soap,(void*)dbserver);
01249 }
01250 if (username)
01251 {soap_dealloc(soap,(void*)username);
01252 }
01253 if (password)
01254 {soap_dealloc(soap,(void*)password);
01255 }
01256
01257 }
01258
01259 t__query::t__query()
01260 {exf = 0;
01261 }
01262 t__query::~t__query()
01263 {if (conn_name)
01264 {soap_dealloc(soap,(void*)conn_name);
01265 }
01266 if (result_name)
01267 {soap_dealloc(soap,(void*)result_name);
01268 }
01269 if (loginstr)
01270 {soap_dealloc(soap,(void*)loginstr);
01271 }
01272 if (query_stm)
01273 {soap_dealloc(soap,(void*)query_stm);
01274 }
01275 }
01276
01277
01278 t__resultset::t__resultset()
01279 {size = 0;
01280 contents = makeHashTable();
01281 }
01282 t__resultset::~t__resultset()
01283 { clrhash(contents);
01284 gc(contents);
01285 if (conn_name)
01286 {soap_dealloc(soap,(void*)conn_name);
01287 }
01288 if (query_name)
01289 {soap_dealloc(soap,(void*)query_name);
01290 }
01291 }
01292
01293 int t__resultset::getSize()
01294 {return size;}
01295
01296
01297 void t__resultset::addEntity(let entity) {
01298 if (!gethash(entity, contents)) {
01299 puthash(entity, contents, 0);
01300 size++;}}
01301
01302
01303 void t__resultset::setValue(let entity, let attribute, let value) {
01304 let attributes = gethash(entity, contents);
01305 let old = assoc(attribute, attributes);
01306 if (old) rplacd(old, value);
01307 else {
01308 push(cons(attribute, value), attributes);
01309 puthash(entity, contents, attributes);}}
01310
01311
01312 let t__resultset::getValue(let entity, let attribute) {
01313 return cdr(assoc(attribute, gethash(entity, contents)));}
01314
01315
01316 void t__resultset::delEntity(let entity) {
01317 if (!gethash(entity, contents)) {
01318 remhash(entity, contents);
01319 size--;}}
01320
01322
01323
01324
01325
01326
01327
01328
01329
01330
01331
01332
01333
01334
01335
01336
01337
01338
01339
01340
01341
01342
01343
01344
01345
01346
01347
01348
01349
01350
01351
01352
01353
01354
01355
01356
01357
01358
01359
01360
01361
01362
01363
01364
01365
01366
01367
01368
01369
01370
01371
01372
01373
01374
01375
01376
01377
01378
01379
01380
01381
01382
01383
01384
01385
01386
01387
01388
01389
01390
01391
01392
01393
01394
01395
01396
01397
01398
01399
01400
01401
01403 t__rvec::t__rvec()
01404 { t__rvec(NULL);
01405 }
01406
01407 t__rvec::t__rvec(struct soap *env)
01408 { soap = env;
01409 __ptr = 0;
01410 __size = 0;
01411 __offset = 0;
01412 }
01413
01414 t__rvec::t__rvec(struct soap *env, int size)
01415 { soap = env;
01416 __size = size;
01417 __offset = 1;
01418 __ptr = (xsd__double*)soap_malloc(soap, size*sizeof(xsd__double));
01419 for (int i = 0; i < size; i++)
01420 __ptr[i] = 0.0;
01421 }
01422
01423 t__rvec::~t__rvec()
01424 {
01425 }
01426 int t__rvec::start()
01427 { return __offset;
01428 }
01429
01430 int t__rvec::end()
01431 { return __size+__offset-1;
01432 }
01433
01434 int t__rvec::size()
01435 { return __size;
01436 }
01437
01438 void t__rvec::resize(int size)
01439 { resize(1, size);
01440 }
01441
01442 void t__rvec::resize(int start, int end)
01443 { xsd__double *p;
01444 int n, size = end-start+1;
01445 if (__offset == start && __size == size)
01446 return;
01447 p = (xsd__double*)soap_malloc(soap, size*sizeof(xsd__double));
01448 for (int i = 0; i < size; i++)
01449 p[i] = 0.0;
01450 if (__ptr)
01451 { if (start < __offset)
01452 { n = (size-__offset+start <= __size ? size-__offset+start : __size);
01453 for (int i = 0; i < n; i++)
01454 p[__offset-start+i] = __ptr[i];
01455 }
01456 else
01457 { n = (__size-start+__offset <= size ? __size-start+__offset : size);
01458 for (int i = 0; i < n; i++)
01459 p[i] = __ptr[start-__offset+i];
01460 }
01461 soap_dealloc(soap, __ptr);
01462 }
01463 __ptr = p;
01464 __size = size;
01465 __offset = start;
01466 }
01467
01468 xsd__double& t__rvec::operator[](int i)
01469 { return __ptr[i-__offset];
01470 }
01471
01472 xsd__double t__rvec::operator()(int i)
01473 { if (i >= __offset && i < __size+__offset)
01474 return __ptr[i-__offset];
01475 return 0.0;
01476 }
01477
01478
01479
01480
01481
01482
01483
01484
01486
01487
01488
01490
01491 t__ivec::t__ivec()
01492 { t__ivec(NULL);
01493 }
01494
01495 t__ivec::t__ivec(struct soap *env)
01496 { soap = env;
01497 __ptr = 0;
01498 __size = 0;
01499 }
01500
01501 t__ivec::t__ivec(struct soap *env, int size)
01502 { soap = env;
01503 __size = size;
01504 __offset = 1;
01505 __ptr = (xsd__int*)soap_malloc(soap, size*sizeof(xsd__int));
01506 for (int i = 0; i < size; i++)
01507 __ptr[i] = 0;
01508 }
01509
01510 t__ivec::t__ivec(struct soap *env, int start, int end)
01511 { soap = env;
01512 __size = end-start+1;
01513 __offset = start;
01514 __ptr = (xsd__int*)soap_malloc(soap, __size*sizeof(xsd__int));
01515 for (int i = 0; i < __size; i++)
01516 __ptr[i] = 0;
01517 }
01518
01519 t__ivec::~t__ivec()
01520 {
01521 }
01522 int t__ivec::start()
01523 { return __offset;
01524 }
01525
01526 int t__ivec::end()
01527 { return __size+__offset-1;
01528 }
01529
01530 int t__ivec::size()
01531 { return __size;
01532 }
01533
01534 void t__ivec::resize(int size)
01535 { resize(1, size);
01536 }
01537
01538 void t__ivec::resize(int start, int end)
01539 { xsd__int *p;
01540 int n, size = end-start+1;
01541 if (__offset == start && __size == size)
01542 return;
01543 p = (xsd__int*)soap_malloc(soap, size*sizeof(xsd__int));
01544 for (int i = 0; i < size; i++)
01545 p[i] = 0;
01546 if (__ptr)
01547 { if (start < __offset)
01548 { n = (size-__offset+start <= __size ? size-__offset+start : __size);
01549 for (int i = 0; i < n; i++)
01550 p[__offset-start+i] = __ptr[i];
01551 }
01552 else
01553 { n = (__size-start+__offset <= size ? __size-start+__offset : size);
01554 for (int i = 0; i < n; i++)
01555 p[i] = __ptr[start-__offset+i];
01556 }
01557 soap_dealloc(soap, __ptr);
01558 }
01559 __ptr = p;
01560 __size = size;
01561 __offset = start;
01562 }
01563
01564
01565
01566
01567
01568
01569 xsd__int& t__ivec::operator[](int i)
01570 { return __ptr[i-__offset];
01571 }
01572
01573 xsd__int t__ivec::operator()(int i)
01574 { if (i >= __offset && i < __size+__offset)
01575 return __ptr[i-__offset];
01576 return 0;
01577 }
01578
01579
01580
01581
01582
01583
01584
01585
01587
01588
01589
01591
01592 t__rmat::t__rmat()
01593 { t__rmat(NULL);
01594 }
01595
01596 t__rmat::t__rmat(struct soap *env)
01597 { soap = env;
01598 __ptr = 0;
01599 __size = 0;
01600 __offset = 0;
01601 }
01602
01603
01604
01605 t__rmat::t__rmat(struct soap *env, int rows, int cols)
01606 { soap = env;
01607 __size = rows;
01608 __offset = 1;
01609 __ptr = soap_new_t__rvec(soap, __size);
01610 for (int i = 0; i < __size; i++)
01611 __ptr[i].resize(cols);
01612 }
01613 t__rmat::t__rmat(struct soap *env, int rowstart, int rowend, int colstart, int colend)
01614 { soap = env;
01615 __size = rowend-rowstart+1;
01616 __offset = rowstart;
01617 __ptr = soap_new_t__rvec(soap, __size);
01618 for (int i = 0; i <= __size-__offset; i++)
01619 __ptr[i].resize(colstart, colend);
01620 }
01621
01622
01623
01624 t__rmat::~t__rmat()
01625 {
01626 }
01627 int t__rmat::start()
01628 { return __offset;
01629 }
01630
01631 int t__rmat::end()
01632 { return __size+__offset-1;
01633 }
01634
01635 int t__rmat::size()
01636 { return __size;
01637 }
01638
01639 void t__rmat::resize(int rows, int cols)
01640 { resize(1, rows, 1, cols);
01641 }
01642
01643 void t__rmat::resize(int rowstart, int rowend, int colstart, int colend)
01644 { int i;
01645 t__rvec *p;
01646 int n, size = rowend-rowstart+1;
01647 if (__offset != rowstart || __size != rowend-rowstart+1)
01648 { if (__ptr)
01649 { p = soap_new_t__rvec(soap, size);
01650 if (rowstart < __offset)
01651 { for (i = 0; i < __offset-rowstart; i++)
01652 p[i].resize(colstart, colend);
01653 n = (size-__offset+rowstart <= __size ? size-__offset+rowstart : __size);
01654 for (i = 0; i < n; i++)
01655 { __ptr[i].resize(colstart, colend);
01656 p[__offset-rowstart+i] = __ptr[i];
01657 }
01658 for (; i < size-__offset+rowstart; i++)
01659 p[i].resize(colstart, colend);
01660 }
01661 else
01662 { n = (__size-rowstart+__offset <= size ? __size-rowstart+__offset : size);
01663 for (i = 0; i < n; i++)
01664 { __ptr[i].resize(colstart, colend);
01665 p[i] = __ptr[rowstart-__offset+i];
01666 }
01667 for (; i < size; i++)
01668 p[i].resize(colstart, colend);
01669 }
01670 __ptr = p;
01671 __size = size;
01672 __offset = rowstart;
01673 }
01674 else
01675 { __size = size;
01676 __offset = rowstart;
01677 __ptr = soap_new_t__rvec(soap, size);
01678 for (i = 0; i < size; i++)
01679 __ptr[i].resize(colstart, colend);
01680 }
01681 }
01682 else
01683 for (i = 0; i < size; i++)
01684 __ptr[i].resize(colstart, colend);
01685 }
01686
01687
01688
01689
01690 t__rvec& t__rmat::operator[](int i)
01691 { return __ptr[i-__offset];
01692 }
01693
01694 xsd__double t__rmat::operator()(int i, int j)
01695 { int s;
01696 if (i >= __offset && i < __size+__offset)
01697 { s = __ptr[i-__offset].__offset;
01698 if (j >= s && j < __ptr[i-__offset].__size+s)
01699 return __ptr[i-__offset].__ptr[j-s];
01700 }
01701 return 0.0;
01702 }
01703
01704
01705
01706
01707
01708
01709
01710
01711
01712
01713
01715
01716
01717
01719
01720 t__imat::t__imat()
01721 { t__rmat(NULL);
01722 }
01723
01724 t__imat::t__imat(struct soap *env)
01725 { soap = env;
01726 __ptr = 0;
01727 __size = 0;
01728 __offset = 0;
01729 }
01730
01731
01732
01733 t__imat::t__imat(struct soap *env, int rows, int cols)
01734 { soap = env;
01735 __size = rows;
01736 __offset = 1;
01737 __ptr = soap_new_t__ivec(soap, __size);
01738 for (int i = 0; i < __size; i++)
01739 __ptr[i].resize(cols);
01740 }
01741 t__imat::t__imat(struct soap *env, int rowstart, int rowend, int colstart, int colend)
01742 { soap = env;
01743 __size = rowend-rowstart+1;
01744 __offset = rowstart;
01745 __ptr = soap_new_t__ivec(soap, __size);
01746 for (int i = 0; i <= __size-__offset; i++)
01747 __ptr[i].resize(colstart, colend);
01748 }
01749
01750
01751 t__imat::~t__imat()
01752 {
01753 }
01754 int t__imat::start()
01755 { return __offset;
01756 }
01757
01758 int t__imat::end()
01759 { return __size+__offset-1;
01760 }
01761
01762 int t__imat::size()
01763 { return __size;
01764 }
01765
01766 void t__imat::resize(int rows, int cols)
01767 { resize(1, rows, 1, cols);
01768 }
01769
01770 void t__imat::resize(int rowstart, int rowend, int colstart, int colend)
01771 { int i;
01772 t__ivec *p;
01773 int n, size = rowend-rowstart+1;
01774 if (__offset != rowstart || __size != rowend-rowstart+1)
01775 { if (__ptr)
01776 { p = soap_new_t__ivec(soap, size);
01777 if (rowstart < __offset)
01778 { for (i = 0; i < __offset-rowstart; i++)
01779 p[i].resize(colstart, colend);
01780 n = (size-__offset+rowstart <= __size ? size-__offset+rowstart : __size);
01781 for (i = 0; i < n; i++)
01782 { __ptr[i].resize(colstart, colend);
01783 p[__offset-rowstart+i] = __ptr[i];
01784 }
01785 for (; i < size-__offset+rowstart; i++)
01786 p[i].resize(colstart, colend);
01787 }
01788 else
01789 { n = (__size-rowstart+__offset <= size ? __size-rowstart+__offset : size);
01790 for (i = 0; i < n; i++)
01791 { __ptr[i].resize(colstart, colend);
01792 p[i] = __ptr[rowstart-__offset+i];
01793 }
01794 for (; i < size; i++)
01795 p[i].resize(colstart, colend);
01796 }
01797 __ptr = p;
01798 __size = size;
01799 __offset = rowstart;
01800 }
01801 else
01802 { __size = size;
01803 __offset = rowstart;
01804 __ptr = soap_new_t__ivec(soap, size);
01805 for (i = 0; i < size; i++)
01806 __ptr[i].resize(colstart, colend);
01807 }
01808 }
01809 else
01810 for (i = 0; i < size; i++)
01811 __ptr[i].resize(colstart, colend);
01812 }
01813
01814
01815
01816
01817
01818 t__ivec& t__imat::operator[](int i)
01819 { return __ptr[i-__offset];
01820 }
01821
01822 xsd__int t__imat::operator()(int i, int j)
01823 { int s;
01824 if (i >= __offset && i < __size+__offset)
01825 { s = __ptr[i-__offset].__offset;
01826 if (j >= s && j < __ptr[i-__offset].__size+s)
01827 return __ptr[i-__offset].__ptr[j-s];
01828 }
01829 return 0;
01830 }
01831
01832
01833
01834
01835
01836
01837
01838
01839
01840
01841
01842
01843
01844
01845
01846
01847
01848
01849
01850
01851
01852
01853
01854
01855
01856
01858
01859
01860 ns__CHetCompound::ns__CHetCompound ()
01861 {}
01862 ns__CHetCompound::ns__CHetCompound ( xsd__string HetName )
01863 {}
01864
01865 ns__CHetCompound::~ns__CHetCompound()
01866 {}
01867
01868
01869
01870
01871
01872
01873 ns__CHetCompounds::ns__CHetCompounds ()
01874 {}
01875 ns__CHetCompounds::~ns__CHetCompounds()
01876 {}
01877 ns__CHetCompound*& ns__CHetCompounds::operator[](int i){
01878 return __ptr[i];
01879 }
01880
01881
01882
01883
01884
01885
01886 ns__CHelix::ns__CHelix ()
01887 {}
01888 ns__CHelix::ns__CHelix ( xsd__string S )
01889 {}
01890 ns__CHelix::~ns__CHelix()
01891 {}
01892
01893
01894
01895
01896
01897
01898
01899 ns__CStrand::ns__CStrand ()
01900 {}
01901
01902 ns__CStrand::~ns__CStrand()
01903 {}
01904
01905
01906
01907
01908
01909 ns__CStrands::ns__CStrands ()
01910 {}
01911 ns__CStrands::~ns__CStrands()
01912 {}
01913 ns__CStrand*& ns__CStrands::operator[](int i)
01914 {return __ptr[i];
01915 }
01916
01917
01918
01919 ns__CSheet::ns__CSheet ()
01920 {}
01921
01922 ns__CSheet::~ns__CSheet()
01923 {}
01924
01925
01926 ns__CSheets::ns__CSheets ()
01927 {}
01928
01929 ns__CSheets::~ns__CSheets()
01930 {}
01931 ns__CSheet*& ns__CSheets::operator[](int i)
01932 {return __ptr[i];}
01933
01934
01935
01936
01937
01938 ns__CTurn::ns__CTurn ()
01939 {}
01940 ns__CTurn::ns__CTurn ( xsd__string S )
01941 {}
01942 ns__CTurn::~ns__CTurn()
01943 {}
01944
01945 ns__CChainContainer::ns__CChainContainer ()
01946 {}
01947 ns__CChainContainer::~ns__CChainContainer ()
01948 {}
01949
01950
01951
01952 ns__CSeqRes::ns__CSeqRes ()
01953 {}
01954
01955 ns__CSeqRes::~ns__CSeqRes()
01956 {}
01957
01958
01959 ns__CAtom::ns__CAtom ()
01960 {}
01961
01962 ns__CAtom::~ns__CAtom()
01963 {}
01964
01965
01966
01967 ns__CAtoms::ns__CAtoms ()
01968 {}
01969
01970 ns__CAtoms::~ns__CAtoms()
01971 {}
01972 ns__CAtom*& ns__CAtoms::operator[](int i)
01973 {return __ptr[i];
01974 }
01975
01976
01977
01978
01979
01980 ns__CResidue::ns__CResidue ()
01981 {}
01982
01983 ns__CResidue::~ns__CResidue()
01984 {}
01985
01986
01987
01988 ns__CResidues::ns__CResidues ()
01989 {}
01990
01991 ns__CResidues::~ns__CResidues()
01992 {}
01993 ns__CResidue*& ns__CResidues::operator[](int i)
01994 {return __ptr[i];
01995 }
01996
01997
01998
01999
02000 ns__CChain::ns__CChain ()
02001 {}
02002
02003 ns__CChain::~ns__CChain()
02004 {}
02005
02006
02007
02008 ns__CChains::ns__CChains ()
02009 {}
02010
02011 ns__CChains::~ns__CChains()
02012 {}
02013 ns__CChain*& ns__CChains::operator[](int i)
02014 {return __ptr[i];}
02015
02016
02017
02018
02019 ns__CModel::ns__CModel ()
02020 {}
02021 ns__CModel::~ns__CModel()
02022 {}
02023
02024
02025
02026
02027 ns__CContainerChain::ns__CContainerChain ()
02028 {}
02029 ns__CContainerChain::~ns__CContainerChain ()
02030 {}
02031
02032
02033
02034
02035 ns__CDBReference::ns__CDBReference ()
02036 {}
02037
02038 ns__CDBReference::~ns__CDBReference()
02039 {}
02040
02041
02042
02043 ns__CSeqAdv::ns__CSeqAdv ()
02044 {}
02045
02046 ns__CSeqAdv::~ns__CSeqAdv()
02047 {}
02048
02049
02050
02051 ns__CModRes::ns__CModRes ()
02052 {}
02053 ns__CModRes::~ns__CModRes()
02054 {}
02055
02056
02057
02058 ns__CHetRec::ns__CHetRec ()
02059 {}
02060 ns__CHetRec::~ns__CHetRec()
02061 {}
02062
02063
02064 ns__CAtomPath::ns__CAtomPath ()
02065 {}
02066 ns__CAtomPath::~ns__CAtomPath ()
02067 {}
02068
02069
02070 ns__CListResidue::ns__CListResidue(){}
02071 ns__CListResidue::~ns__CListResidue(){}
02072
02073
02074
02075 ns__CListChain::ns__CListChain(){}
02076 ns__CListChain::~ns__CListChain(){}
02077
02078
02079 ns__CChainAssembly::ns__CChainAssembly(){}
02080 ns__CChainAssembly::~ns__CChainAssembly(){}
02081
02082
02083
02084 ns__CListChainAssembly::ns__CListChainAssembly(){}
02085 ns__CListChainAssembly::~ns__CListChainAssembly(){}
02086
02087
02088
02089
02090 ns__CModelAssembly::ns__CModelAssembly(){}
02092
02093
02094 ns__CModelAssembly::~ns__CModelAssembly(){}
02095
02096
02097
02098 ns__CListModelAssembly::ns__CListModelAssembly(){}
02099 ns__CListModelAssembly::~ns__CListModelAssembly(){}
02100
02101
02102
02103 ns__CAssembly::ns__CAssembly(){}
02104
02105
02106
02107
02108 ns__CAssembly::~ns__CAssembly(){}
02109
02110
02111
02112 ns__CMContact::ns__CMContact (){}
02113 ns__CMContact::~ns__CMContact(){}
02114
02115
02116 ns__CListAtom::ns__CListAtom(){}
02117 ns__CListAtom::~ns__CListAtom(){}
02118
02119
02120 ns__CManager::ns__CManager(){}
02122
02123
02124 ns__CManager::~ns__CManager(){}
02125