Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

msd_xml_xsd.cc

00001 //--------------------------------
00002 // msd_xml_xsd.cc
00003 //
00004 // Project: PDBe API Framework, EBI 
00005 // Module: implementation of SOAP xml schema definition Classes for PDBe API Framework 
00006 //
00007 // SOAP User Layer
00008 // Last updated: 25 February 2004 10:17
00009 // (C) Siamak Sobhany
00010 //--------------------------------
00011 
00012 #include "msd_xml_xsd.h"
00013 using namespace std;
00015 //
00016 //  XSD schema class hierarchy
00017 //
00019 
00020 xsd__anyType::xsd__anyType()
00021 { soap = NULL;                  // This will be set by gSOAP environment later (upon deserialization or calling soap_new_X()
00022 }
00023 
00024 
00025 xsd__anyType::~xsd__anyType()
00026 { soap_unlink(soap, this);      // Let gSOAP not deallocate this object again if this object was explicitly removed
00027 }
00028 xsd__anyType*& xsd__anyType::operator[](int i)
00029 { static xsd__anyType *p = this;        // trick: we don't expect the operator to be applied, but we need a method
00030   return p;
00031 }
00032 void xsd__anyType::fprint(ofstream& s) const
00033 {
00034 //printf("%s", __item);
00035 s << "<anyType>"; // __item;
00036 }
00037 void xsd__anyType::print(std::ostream& s) const
00038 {
00039 //printf("%s", __item);
00040 s << "<anyType>"; // __item;
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 //this->__item=s;
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 //printf("%s", __item);
00065 s << "<anySimpleType>"; // __item;
00066 }
00067 void xsd__anySimpleType::print(std::ostream& s) const
00068 {
00069 //printf("%s", __item);
00070 s << "<anySimpleType>"; // __item;
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 //void xsd__anySimpleType::set(double d){
00084 //}
00085 //void xsd__anySimpleType::set(bool b){
00086 //}
00087 //void xsd__anySimpleType::set(float f){
00088 //}
00089 //void xsd__anySimpleType::set(int i){
00090 //}
00091 
00092 xsd__anyURI::xsd__anyURI()
00093 { }
00094 //xsd__anyURI::xsd__anyURI(xsd__anyURI& src)
00095 //{src.__item = __item;
00096 // src.msd_sym = msd_sym;
00097 // src.msd_val = msd_val;  
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 //s << this->__item;
00108 s << __item;
00109 }
00110 void xsd__anyURI::print(std::ostream& s) const
00111 { 
00112 //s << this->__item;
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 //void xsd__anyURI::set(char* s){
00125 //      if (__item)
00126 // free(__item);
00127 // __item=(char*)malloc(strlen(s)+1);
00128 // sprintf(__item,"%s",s);
00129 // __item = s;
00130 // }
00131 
00132 xsd__boolean::xsd__boolean()
00133 { }
00134 //xsd__boolean::xsd__boolean(xsd__boolean& src)
00135 //{__item = src.__item;
00136 //msd_sym = src.msd_sym;
00137 //msd_val = src.msd_val; 
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 //s << this->__item;
00147 s << __item;
00148 }
00149 void xsd__boolean::print(std::ostream& s) const
00150 { 
00151 //s << this->__item;
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 //xsd__date::xsd__date(xsd__date& src)
00177 //{__item = src.__item;
00178 //msd_sym = src.msd_sym;
00179 //msd_val = src.msd_val; 
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 //s << this->__item;
00190 s <<__item;
00191 }
00192 void xsd__date::print(std::ostream& s) const
00193 { 
00194 
00195 //s << this->__item;
00196 s <<__item;
00197 }
00198 void xsd__date::setst(msdbStream& s)
00199 { 
00200  otl_datetime otl_item;
00201  // str2otl_datetime(__item, otl_item); // not implemented yet!
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 //void xsd__date::set(char* s){
00213 //      if (__item)
00214 // free(__item);
00215 // __item=(char*)malloc(strlen(s)+1);
00216 // sprintf(__item,"%s",s);
00217 //__item = s;
00218 // }
00219 
00220 xsd__dateTime::xsd__dateTime()
00221 { }
00222 //xsd__dateTime::xsd__dateTime(xsd__dateTime& src)
00223 //{__item = src.__item;
00224 //msd_sym = src.msd_sym;
00225 //msd_val = src.msd_val; 
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 //s << this->__item;
00235 s << __item;
00236 }
00237 void xsd__dateTime::print(std::ostream& s) const
00238 {
00239 //s << this->__item;
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         //this->msd_val = msdConst(t);
00257  }
00258 
00259 xsd__double::xsd__double()
00260 { }
00261 //xsd__double::xsd__double(xsd__double& src)
00262 //{__item = src.__item;
00263 //msd_sym = src.msd_sym;
00264 //msd_val = src.msd_val; 
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 //s << this->__item;
00274 s << __item;
00275 }
00276 void xsd__double::print(std::ostream& s) const
00277 { 
00278 //s << this->__item;
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 //xsd__duration::xsd__duration(xsd__duration& src)
00297 //{__item = src.__item;
00298 //msd_sym = src.msd_sym;
00299 //msd_val = src.msd_val; 
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 //s << this->__item;
00309 s << __item;
00310 }
00311 void xsd__duration::print(std::ostream& s) const
00312 { 
00313 //s << this->__item;
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 //void xsd__duration::set(char* s){
00326 //      if (__item)
00327 // free(__item);
00328 // __item=(char*)malloc(strlen(s)+1);
00329 // sprintf(__item,"%s",s);
00330 //__item = s;
00331 // }
00332 
00333 xsd__float::xsd__float()
00334 { }
00335 //xsd__float::xsd__float(xsd__float& src)
00336 //{__item = src.__item;
00337 //msd_sym = src.msd_sym;
00338 //msd_val = src.msd_val; 
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 //s << this->__item;
00348 s << __item;
00349 }
00350 void xsd__float::print(std::ostream& s) const
00351 { 
00352 //s << this->__item;
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         //this->msd_val=C(f);
00367  }
00368 
00369 xsd__time::xsd__time()
00370 { }
00371 //xsd__time::xsd__time(xsd__time& src)
00372 //{__item = src.__item;
00373 //msd_sym = src.msd_sym;
00374 //msd_val = src.msd_val; 
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 //s << this->__item;
00384 s << __item;
00385 }
00386 void xsd__time::print(std::ostream& s) const
00387 { 
00388 //s << this->__item;
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 //void xsd__time::set(char* s){
00402 //      if (__item)
00403 // free(__item);
00404 // __item=(char*)malloc(strlen(s)+1);
00405 // sprintf(__item,"%s",s);
00406 //__item = s;
00407 // }
00408 
00409 xsd__string::xsd__string()
00410 { }
00411 //xsd__string::xsd__string(xsd__string& src)
00412 //{__item = src.__item;
00413 //msd_sym = src.msd_sym;
00414 //msd_val = src.msd_val; 
00415 //}
00416 xsd__string::~xsd__string()
00417 {//if (__item)
00418  //soap_dealloc(soap, __item); 
00419  }
00420 
00421 xsd__string::xsd__string(int size)
00422 {//if (__item)
00423  //soap_dealloc(soap, __item);
00424         __item=(char*)soap_malloc(soap, size);
00425         
00426   
00427 }
00428 
00429 xsd__string::xsd__string(char *s)
00430 { //if (__item)
00431   //soap_dealloc(soap, __item);
00432         __item=(char*)soap_malloc(soap, strlen(s)+1);
00433    sprintf(__item,"%s",s);
00434   //__item = s;
00435  }
00436 void xsd__string::fprint(ofstream& s) const
00437 { 
00438 //s << this->__item;
00439 s << __item;
00440 }
00441 void xsd__string::print(std::ostream& s) const
00442 { 
00443 //s << this->__item;
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         //if (__item)
00457  //free(__item);
00458  __item=(char*)soap_malloc(soap, strlen(s)+1);
00459  sprintf(__item,"%s",s);
00460 //__item = s;
00461 
00462  }
00463 
00464 
00465 
00466 
00467 
00468 
00469 
00470 
00471 
00472 
00473 
00474 xsd__normalizedString::xsd__normalizedString()
00475 { }
00476 //xsd__normalizedString::xsd__normalizedString(xsd__normalizedString& src)
00477 //{__item = src.__item;
00478 //msd_sym = src.msd_sym;
00479 //msd_val = src.msd_val; 
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 //void xsd__normalizedString::set(char* s){
00503 //      if (__item)
00504 // free(__item);
00505 // __item=(char*)malloc(strlen(s)+1);
00506 // sprintf(__item,"%s",s);
00507 //__item = s;
00508 // }
00509 
00510 xsd__token::xsd__token()
00511 { }
00512 //xsd__token::xsd__token(xsd__token& src)
00513 //{__item = src.__item;
00514 //msd_sym = src.msd_sym;
00515 //msd_val = src.msd_val; 
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 //s << this->__item;
00525 s << __item;
00526 }
00527 void xsd__token::print(std::ostream& s) const
00528 { 
00529 //s << this->__item;
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 //void xsd__token::set(char* s){
00542 //      if (__item)
00543 // free(__item);
00544 // __item=(char*)malloc(strlen(s)+1);
00545 // sprintf(__item,"%s",s);
00546 //__item = s;
00547 // }
00548 
00549 xsd__decimal::xsd__decimal()
00550 { }
00551 //xsd__decimal::xsd__decimal(xsd__decimal& src)
00552 //{__item = src.__item;
00553 //msd_sym = src.msd_sym;
00554 //msd_val = src.msd_val; 
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 //printf("%s", __item);
00564 s << __item;
00565 }
00566 void xsd__decimal::print(std::ostream& s) const
00567 {  
00568 //printf("%s", __item);
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 //void xsd__decimal::set(char* s){
00581 //      __item = s;
00582 // }
00583 
00584 xsd__integer::xsd__integer()
00585 { }
00586 //xsd__integer::xsd__integer(xsd__integer& src)
00587 //{__item = src.__item;
00588 //msd_sym = src.msd_sym;
00589 //msd_val = src.msd_val; 
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 //s << this->__item;
00599 s << __item;
00600 }
00601 void xsd__integer::print(std::ostream& s) const
00602 {  
00603 //s << this->__item;
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 //void xsd__integer::set(char* s){
00616 //      __item = s;
00617 // }
00618 
00619 xsd__nonPositiveInteger::xsd__nonPositiveInteger()
00620 { }
00621 //xsd__nonPositiveInteger::xsd__nonPositiveInteger(xsd__nonPositiveInteger& src)
00622 //{__item = src.__item;
00623 //msd_sym = src.msd_sym;
00624 //msd_val = src.msd_val; 
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 //s << this->__item;
00634 s << __item;
00635 }
00636 void xsd__nonPositiveInteger::print(std::ostream& s) const
00637 { 
00638 //s << this->__item;
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 //void xsd__nonPositiveInteger::set(char* s){
00651 //      if (__item)
00652 // free(__item);
00653 // __item=(char*)malloc(strlen(s)+1);
00654 // sprintf(__item,"%s",s);
00655 //__item = s;
00656 // }
00657 
00658 xsd__negativeInteger::xsd__negativeInteger()
00659 { }
00660 //xsd__negativeInteger::xsd__negativeInteger(xsd__negativeInteger& src)
00661 //{__item = src.__item;
00662 //msd_sym = src.msd_sym;
00663 //msd_val = src.msd_val; 
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 //s << this->__item;
00673 s << __item;
00674 }
00675 void xsd__negativeInteger::print(std::ostream& s) const
00676 {
00677 //s << this->__item;
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 //void xsd__negativeInteger::set(char* s){
00690 //      if (__item)
00691 // free(__item);
00692 // __item=(char*)malloc(strlen(s)+1);
00693 // sprintf(__item,"%s",s);
00694 //__item = s;
00695 // }
00696 
00697 xsd__nonNegativeInteger::xsd__nonNegativeInteger()
00698 { }
00699 //xsd__nonNegativeInteger::xsd__nonNegativeInteger(xsd__nonNegativeInteger& src)
00700 //{__item = src.__item;
00701 //msd_sym = src.msd_sym;
00702 //msd_val = src.msd_val; 
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 //s << this->__item;
00712 s << __item;
00713 }
00714 void xsd__nonNegativeInteger::print(std::ostream& s) const
00715 { 
00716 //s << this->__item;
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 //void xsd__nonNegativeInteger::set(char* s){
00729 //      if (__item)
00730 // free(__item);
00731 // __item=(char*)malloc(strlen(s)+1);
00732 // sprintf(__item,"%s",s);
00733 //__item = s;
00734 // }
00735 
00736 xsd__positiveInteger::xsd__positiveInteger()
00737 { }
00738 //xsd__positiveInteger::xsd__positiveInteger(xsd__positiveInteger& src)
00739 //{__item = src.__item;
00740 //msd_sym = src.msd_sym;
00741 //msd_val = src.msd_val; 
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 //s << this->__item;
00751 s <<__item;
00752 }
00753 void xsd__positiveInteger::print(std::ostream& s) const
00754 { 
00755 //s << this->__item;
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 //void xsd__positiveInteger::set(char* s){
00768 //      if (__item)
00769 // free(__item);
00770 // __item=(char*)malloc(strlen(s)+1);
00771 // sprintf(__item,"%s",s);
00772 //__item = s;
00773 // }
00774 
00775 xsd__long::xsd__long()
00776 { }
00777 //xsd__long::xsd__long(xsd__long& src)
00778 //{__item = src.__item;
00779 //msd_sym = src.msd_sym;
00780 //msd_val = src.msd_val; 
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 // s <<__item; // should be implementd
00799 }
00800 void xsd__long::getst(msdbStream& s)
00801 { 
00802 // s >>__item;  // should be implementd
00803 // msd_val = msdConst(__item);
00804 }
00805 void xsd__long::set(LONG64& ll){
00806         __item = ll;
00807         }
00808 
00809 xsd__int::xsd__int()
00810 { }
00811 //xsd__int::xsd__int(xsd__int& src)
00812 //{__item = src.__item;
00813 //msd_sym = src.msd_sym;
00814 //msd_val = src.msd_val; 
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 //s << this->__item;
00824 s << __item;
00825 }
00826 void xsd__int::print(std::ostream& s) const
00827 { 
00828 //s << this->__item;
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 //xsd__short::xsd__short(xsd__short& src)
00849 //{__item = src.__item;
00850 //msd_sym = src.msd_sym;
00851 //msd_val = src.msd_val; 
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 //xsd__byte::xsd__byte(xsd__byte& src)
00884 //{__item = src.__item;
00885 //msd_sym = src.msd_sym;
00886 //msd_val = src.msd_val; 
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 //xsd__unsignedLong::xsd__unsignedLong(xsd__unsignedLong& src)
00919 //{__item = src.__item;
00920 //msd_sym = src.msd_sym;
00921 //msd_val = src.msd_val; 
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 //s << __item; // should be implementd
00940 }
00941 void xsd__unsignedLong::getst(msdbStream& s)
00942 { 
00943 //s >> __item;  // should be implementd
00944 // msd_val = msdConst(__item);
00945 }
00946 void xsd__unsignedLong::set(ULONG64& ull){
00947         __item = ull;
00948         
00949  }
00950 
00951 xsd__unsignedInt::xsd__unsignedInt()
00952 { }
00953 //xsd__unsignedInt::xsd__unsignedInt(xsd__unsignedInt& src)
00954 //{__item = src.__item;
00955 //msd_sym = src.msd_sym;
00956 //msd_val = src.msd_val; 
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 // s << __item; // should be implementd
00975 }
00976 void xsd__unsignedInt::getst(msdbStream& s)
00977 { 
00978 // s >> __item;
00979 // msd_val = msdConst(__item); // should be implementd
00980 }
00981 void xsd__unsignedInt::set(unsigned int& ui){
00982         __item = ui;
00983          }
00984 
00985 xsd__unsignedShort::xsd__unsignedShort()
00986 { }
00987 //xsd__unsignedShort::xsd__unsignedShort(xsd__unsignedShort& src)
00988 //{__item = src.__item;
00989 //msd_sym = src.msd_sym;
00990 //msd_val = src.msd_val; 
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 //s << __item; // should be implementd
01009 }
01010 void xsd__unsignedShort::getst(msdbStream& s)
01011 {
01012 //s >> __item; // should be implementd
01013 // msd_val = msdConst(__item);
01014 }
01015 
01016 void xsd__unsignedShort::set(unsigned short& uh){
01017         __item = uh;
01018  }
01019 
01020 xsd__unsignedByte::xsd__unsignedByte()
01021 { }
01022 //xsd__unsignedByte::xsd__unsignedByte(xsd__unsignedByte& src)
01023 //{__item = src.__item;
01024 //msd_sym = src.msd_sym;
01025 //msd_val = src.msd_val; 
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 // s << __item; // should be implementd
01044 }
01045 void xsd__unsignedByte::getst(msdbStream& s)
01046 {
01047 // s >> __item; // should be implementd
01048 // msd_val = msdConst(__item);
01049 }
01050 void xsd__unsignedByte::set(unsigned char uc){
01051         __item = uc;
01052          }
01053 
01054 
01055 
01056 xsd__base64Binary::xsd__base64Binary()
01057 { }
01058 //xsd__base64Binary::xsd__base64Binary(xsd__base64Binary& src)
01059 //{__item = src.__item;
01060 //msd_sym = src.msd_sym;
01061 //msd_val = src.msd_val; 
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 //xsd__hexBinary::xsd__hexBinary(xsd__hexBinary& src)
01133 //{__item = src.__item;
01134 //msd_sym = src.msd_sym;
01135 //msd_val = src.msd_val; 
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 //printf("%d", __size);
01146 s << __size;
01147 
01148 }
01149 void xsd__hexBinary::print(std::ostream& s) const
01150 { 
01151 //printf("%d", __size);
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 //array::array(array& src)
01177 //{
01178 // __size = src.__size;
01179 // __ptr = src.__ptr;
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    //printf(", ");
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    //printf(", ");
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         //if (name)
01233     //free(name);
01234         if (name)
01235         {soap_dealloc(soap,(void*)name);
01236         }
01237 }
01238 
01239 void t__root::renew()
01240 { lease = time(NULL) + LEASETERM;       // can adopt a leasing policy per class
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 // Add an entity to the Data Base.
01297 void t__resultset::addEntity(let entity) {
01298   if (!gethash(entity, contents)) {
01299     puthash(entity, contents, 0);
01300     size++;}}
01301 
01302 // Set the value of an attribute for given entity.
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 // Return the value of an attribute for given entity.
01312 let t__resultset::getValue(let entity, let attribute) {
01313   return cdr(assoc(attribute, gethash(entity, contents)));}
01314 
01315 // Delete an entity to the Data Base.
01316 void t__resultset::delEntity(let entity) {
01317   if (!gethash(entity, contents)) {
01318     remhash(entity, contents);
01319     size--;}}
01320 
01322 //~~~~~~~~ns__Object::ns__Object()
01323 //~~~~~~~~{ name = "Object";
01324 //~~~~~~~~}
01325 //~~~~~~~~
01326 //~~~~~~~~ns__Object::ns__Object(const char *name)
01327 //~~~~~~~~{ this->name = (char*)name;
01328 //~~~~~~~~}
01329 //~~~~~~~~
01330 //~~~~~~~~ns__Object::~ns__Object()
01331 //~~~~~~~~{
01332 //~~~~~~~~}
01333 //~~~~~~~~
01334 //~~~~~~~~void ns__Object::print()
01335 //~~~~~~~~{ cout << "Object: " << name << endl;
01336 //~~~~~~~~}
01337 //~~~~~~~~
01338 //~~~~~~~~
01339 //~~~~~~~~
01340 //~~~~~~~~
01341 //~~~~~~~~ns__Shape::ns__Shape()
01342 //~~~~~~~~{ name = "Shape";
01343 //~~~~~~~~  sides = 0;
01344 //~~~~~~~~}
01345 //~~~~~~~~
01346 //~~~~~~~~ns__Shape::ns__Shape(const char *name, int sides)
01347 //~~~~~~~~{ this->name = (char*)name;
01348 //~~~~~~~~  this->sides = sides;
01349 //~~~~~~~~}
01350 //~~~~~~~~
01351 //~~~~~~~~ns__Shape::~ns__Shape()
01352 //~~~~~~~~{
01353 //~~~~~~~~}
01354 //~~~~~~~~
01355 //~~~~~~~~void ns__Shape::print()
01356 //~~~~~~~~{ cout << "Shape: " << name << " sides=" << sides << endl;
01357 //~~~~~~~~}
01358 //~~~~~~~~
01359 //~~~~~~~~ns__Square::ns__Square()
01360 //~~~~~~~~{ name = "Square";
01361 //~~~~~~~~  ns__Shape::sides = 4;
01362 //~~~~~~~~}
01363 //~~~~~~~~
01364 //~~~~~~~~ns__Square::ns__Square(const char *name, int size)
01365 //~~~~~~~~{ this->name = (char*)name;
01366 //~~~~~~~~  this->size = size;
01367 //~~~~~~~~  ns__Shape::sides = 4;
01368 //~~~~~~~~}
01369 //~~~~~~~~
01370 //~~~~~~~~ns__Square::~ns__Square()
01371 //~~~~~~~~{
01372 //~~~~~~~~}
01373 //~~~~~~~~
01374 //~~~~~~~~void ns__Square::print()
01375 //~~~~~~~~{ cout << "Square: " << name << " size=" << size << endl;
01376 //~~~~~~~~}
01377 //~~~~~~~~
01378 //~~~~~~~~ns__List::ns__List()
01379 //~~~~~~~~{ __ptr = 0;
01380 //~~~~~~~~  __size = 0;
01381 //~~~~~~~~}
01382 //~~~~~~~~
01383 //~~~~~~~~ns__List::ns__List(int size)
01384 //~~~~~~~~{ __ptr = (ns__Object**)malloc(size*sizeof(ns__Object*));
01385 //~~~~~~~~  __size = size;
01386 //~~~~~~~~}
01387 //~~~~~~~~
01388 //~~~~~~~~ns__List::~ns__List()
01389 //~~~~~~~~{
01390 //~~~~~~~~}
01391 //~~~~~~~~
01392 //~~~~~~~~ns__Object*& ns__List::operator[](int i)
01393 //~~~~~~~~{ return __ptr[i];
01394 //~~~~~~~~}
01395 //~~~~~~~~
01396 //~~~~~~~~void ns__List::print()
01397 //~~~~~~~~{ cout << "List: [" << endl;
01398 //~~~~~~~~  for (int i = 0; i < __size; i++)
01399 //~~~~~~~~    __ptr[i]->print();
01400 //~~~~~~~~  cout << "]" << endl;
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 {       // no deallocation: let gSOAP handle all dynamic allocation and deallocation
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; // nothing to do
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 //void t__rvec::print()
01479 //{ int i;
01480 //  for (i = 1; i <= __size; i++)
01481 //    printf("%f ", (*this)(i));
01482 //  printf("\n");
01483 //}
01484 
01486 //
01487 //  t__ivec
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 {       // no deallocation: let gSOAP handle all dynamic allocation and deallocation
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; // nothing to do
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 //void t__ivec::print()
01580 //{ int i;
01581 //  for (i = 1; i <= __size; i++)
01582 //    printf("%4d ", (*this)(i));
01583 //  printf("\n");
01584 //}
01585 
01587 //
01588 //  t__rmat
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 {       // no deallocation: let gSOAP handle all dynamic allocation and deallocation
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 //void t__rmat::print()
01705 //{ int i, j;
01706 //  for (i = start(); i <= __size; i++)
01707 //  { for (j = 1; j < (*this)[i].start(); j++)
01708 //      printf("-------- ");
01709 //    for (; j <= (*this)[i].__size; j++)
01710 //      printf("%f ", (*this)(i, j));
01711 //    printf("\n");
01712 //  }
01713 //}
01715 //
01716 //  t__imat
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 {       // no deallocation: let gSOAP handle all dynamic allocation and deallocation
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 //void t__imat::print()
01833 //{ int i, j;
01834 //  for (i = start(); i <= __size; i++)
01835 //  { for (j = 1; j < (*this)[i].start(); j++)
01836 //      printf("-------- ");
01837 //    for (; j <= (*this)[i].__size; j++)
01838 //      printf("%f ", (*this)(i, j));
01839 //    printf("\n");
01840 //  }
01841 //}
01842 
01843 
01844 
01845 
01846 
01847 
01848 
01849 
01850 
01851 
01852 
01853 
01854 
01855 
01856 
01858 
01859 // ===================== class ns__CHetCompound  
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 //  ====================  CHetCompounds  =======================
01871 
01872 // ===================== class ns__CHetCompounds: public ns__CHetCompound 
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 // ==================== class ns__CHelix   
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 //  ====================  CStrand  ============================
01897 
01898 // ==================== class ns__CStrand   
01899     ns__CStrand::ns__CStrand ()
01900         {}
01901    
01902     ns__CStrand::~ns__CStrand()
01903         {}
01904 
01905 
01906 
01907 //====================== array of CStrands ============================
01908 // ========== class ns__CStrands:  public ns__CStrand 
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 //  ====================  CSheet  ============================
01918 // =============== class ns__CSheet  
01919     ns__CSheet::ns__CSheet ()
01920         {}
01921     
01922     ns__CSheet::~ns__CSheet()
01923         {}
01924 //  ====================  array of CSheets  ============================
01925 // ======================= class ns__CSheets: public ns__CSheet 
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 //  ====================  CTurn  ============================
01936 // =========== class ns__CTurn  {
01937 
01938     ns__CTurn::ns__CTurn ()
01939         {}
01940     ns__CTurn::ns__CTurn ( xsd__string S )
01941         {}
01942     ns__CTurn::~ns__CTurn()
01943         {}
01944 // =============== class ns__CChainContainer  
01945     ns__CChainContainer::ns__CChainContainer  ()
01946         {}
01947     ns__CChainContainer::~ns__CChainContainer ()
01948         {}
01949 //  ==================  CSeqRes  ========================
01950 
01951 // =============== class ns__CSeqRes  
01952     ns__CSeqRes::ns__CSeqRes ()
01953         {}
01954     
01955     ns__CSeqRes::~ns__CSeqRes()
01956         {}
01957 
01958 // =============== class ns__CAtom   
01959     ns__CAtom::ns__CAtom ()
01960         {}
01961     
01962     ns__CAtom::~ns__CAtom()
01963         {}
01964 
01965 //======================== Array of CAtoms ============================
01966  // =============== class ns__CAtoms:  public ns__CAtom  
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 // ============== class ns__CResidue  
01980     ns__CResidue::ns__CResidue ()
01981         {}
01982     
01983     ns__CResidue::~ns__CResidue()
01984         {}
01985 
01986 //==================== Array of CResidues =========================
01987 // ============= class ns__CResidues:  public ns__CResidue
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 //  =================  CChain  =======================
01998 
01999 // ============ class ns__CChain 
02000     ns__CChain::ns__CChain ()
02001         {}  // SetModel() MUST be used after this constructor!
02002    
02003     ns__CChain::~ns__CChain()
02004         {}
02005 
02006 //======================== array of CChains =================================
02007 // ================ class ns__CChains:  public ns__CChain 
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 //  ====================  CModel  ===============================
02018 // ============== class ns__CModel 
02019     ns__CModel::ns__CModel ()
02020         {}  // SetMMDBFile() MUST be used after this constructor!
02021     ns__CModel::~ns__CModel()
02022         {}
02023     
02024 //  ==================  CContainerChain  =====================
02025 // ============= class ns__CContainerChain 
02026 
02027     ns__CContainerChain::ns__CContainerChain ()
02028         {}
02029     ns__CContainerChain::~ns__CContainerChain ()
02030         {}
02031   
02032 
02033 //  ==================  CDBReference  ========================
02034 // ============ class ns__CDBReference : public ns__CContainerChain 
02035     ns__CDBReference::ns__CDBReference ()
02036         {}
02037    
02038     ns__CDBReference::~ns__CDBReference()
02039         {}
02040  
02041 //  ==================  CSeqAdv  ========================
02042 // ============ class ns__CSeqAdv : public ns__CContainerChain 
02043     ns__CSeqAdv::ns__CSeqAdv ()
02044         {}
02045    
02046     ns__CSeqAdv::~ns__CSeqAdv()
02047         {}
02048 
02049 //  ==================  CModRes  ========================
02050 // ======== class ns__CModRes : public ns__CContainerChain
02051     ns__CModRes::ns__CModRes ()
02052         {}
02053     ns__CModRes::~ns__CModRes()
02054         {}
02055 
02056 //  ==================  CHetRec  ===========================
02057 // ============= class ns__CHetRec : public ns__CContainerChain 
02058     ns__CHetRec::ns__CHetRec ()
02059         {}
02060     ns__CHetRec::~ns__CHetRec()
02061         {}
02062 
02063 // ================= class CAtomPath 
02064     ns__CAtomPath::ns__CAtomPath  ()
02065         {}
02066     ns__CAtomPath::~ns__CAtomPath ()
02067         {}
02068 
02069 //================== class CListResidue
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   // * Destructor
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  //  * Destructor
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   // * Destructor, performs cleanup
02123   // */
02124   ns__CManager::~ns__CManager(){}
02125 

Generated on Fri Apr 16 13:47:44 2004 for MSDAPI by doxygen 1.3.4-20031005