utilsmthfe.cc

00001 /* 
00002    EyeDB Object Database Management System
00003    Copyright (C) 1994-2008 SYSRA
00004    
00005    EyeDB is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Lesser General Public
00007    License as published by the Free Software Foundation; either
00008    version 2.1 of the License, or (at your option) any later version.
00009    
00010    EyeDB is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Lesser General Public License for more details.
00014    
00015    You should have received a copy of the GNU Lesser General Public
00016    License along with this library; if not, write to the Free Software
00017    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA 
00018 */
00019 
00020 /*
00021    Author: Eric Viara <viara@sysra.com>
00022 */
00023 
00024 
00025 #include <eyedb/eyedb.h>
00026 
00027 //
00028 // Date & OString contribution
00029 //
00030 
00031 using namespace eyedb;
00032 
00033 #define PACK_INIT(_db)
00034 
00035 #define IdbDate_c(X) ((Date *)(X))
00036 #define IdbTime_c(X) ((Time *)(X))
00037 #define IdbTimeStamp_c(X) ((TimeStamp *)(X))
00038 #define IdbTimeInterval_c(X) ((TimeInterval *)(X))
00039 #define IdbOString_c(X) ((OString *)(X))
00040 
00041 #//
00042 // int32 Date::year() [datemthfe.cc]
00043 //
00044 
00045 Status
00046 __method__OUT_int32_year_date(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int32 &retarg)
00047 {
00048   PACK_INIT(_db);
00049 
00050   //
00051   // User Implementation
00052   //
00053 
00054   Date * date = IdbDate_c(_o);
00055   retarg = date->year();
00056 
00057   return Success;
00058 }
00059 
00060 //
00061 // int16 Date::month() [datemthfe.cc]
00062 //
00063 
00064 Status
00065 __method__OUT_int16_month_date(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
00066 {
00067   PACK_INIT(_db);
00068 
00069   //
00070   // User Implementation
00071   //
00072 
00073   Date * date = IdbDate_c(_o);
00074   retarg = date->month();
00075 
00076   return Success;
00077 }
00078 
00079 //
00080 // int16 Date::day() [datemthfe.cc]
00081 //
00082 
00083 Status
00084 __method__OUT_int16_day_date(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
00085 {
00086   PACK_INIT(_db);
00087 
00088   //
00089   // User Implementation
00090   //
00091 
00092   Date * date = IdbDate_c(_o);
00093   retarg = date->day();
00094 
00095   return Success;
00096 }
00097 
00098 //
00099 // int16 Date::day_of_year() [datemthfe.cc]
00100 //
00101 
00102 Status
00103 __method__OUT_int16_day_of_year_date(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
00104 {
00105   PACK_INIT(_db);
00106 
00107   //
00108   // User Implementation
00109   //
00110 
00111   Date * date = IdbDate_c(_o);
00112   retarg = date->day_of_year();
00113 
00114   return Success;
00115 }
00116 
00117 //
00118 // month Date::month_of_year() [datemthfe.cc]
00119 //
00120 
00121 Status
00122 __method__OUT_month_month_of_year_date(Database *_db, FEMethod_C *_m, Object *_o, Month::Type &retarg)
00123 {
00124   PACK_INIT(_db);
00125 
00126   //
00127   // User Implementation
00128   //
00129 
00130   Date * date = IdbDate_c(_o);
00131   retarg = (Month::Type)date->month_of_year();
00132 
00133   return Success;
00134 }
00135 
00136 //
00137 // weekday Date::day_of_week() [datemthfe.cc]
00138 //
00139 
00140 Status
00141 __method__OUT_weekday_day_of_week_date(Database *_db, FEMethod_C *_m, Object *_o, Weekday::Type &retarg)
00142 {
00143   PACK_INIT(_db);
00144 
00145   //
00146   // User Implementation
00147   //
00148 
00149   Date * date = IdbDate_c(_o);
00150   retarg = date->day_of_week();
00151 
00152   return Success;
00153 }
00154 
00155 //
00156 // int16 Date::is_leap_year() [datemthfe.cc]
00157 //
00158 
00159 Status
00160 __method__OUT_int16_is_leap_year_date(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
00161 {
00162   PACK_INIT(_db);
00163 
00164   //
00165   // User Implementation
00166   //
00167 
00168   Date * date = IdbDate_c(_o);
00169   retarg = date->is_leap_year();
00170 
00171   return Success;
00172 }
00173 
00174 //
00175 // int16 Date::is_equal(in date*) [datemthfe.cc]
00176 //
00177 
00178 Status
00179 __method__OUT_int16_is_equal_date__IN_date_REF_(Database *_db, FEMethod_C *_m, Object *_o, Date * d, eyedblib::int16 &retarg)
00180 {
00181   PACK_INIT(_db);
00182 
00183   //
00184   // User Implementation
00185   //
00186 
00187   Date * date = IdbDate_c(_o);
00188   retarg = date->is_equal(*d);
00189 
00190   return Success;
00191 }
00192 
00193 //
00194 // int16 Date::is_greater(in date*) [datemthfe.cc]
00195 //
00196 
00197 Status
00198 __method__OUT_int16_is_greater_date__IN_date_REF_(Database *_db, FEMethod_C *_m, Object *_o, Date * d, eyedblib::int16 &retarg)
00199 {
00200   PACK_INIT(_db);
00201 
00202   //
00203   // User Implementation
00204   //
00205 
00206   Date * date = IdbDate_c(_o);
00207   retarg = date->is_greater(*d);
00208 
00209   return Success;
00210 }
00211 
00212 //
00213 // int16 Date::is_greater_or_equal(in date*) [datemthfe.cc]
00214 //
00215 
00216 Status
00217 __method__OUT_int16_is_greater_or_equal_date__IN_date_REF_(Database *_db, FEMethod_C *_m, Object *_o, Date * d, eyedblib::int16 &retarg)
00218 {
00219   PACK_INIT(_db);
00220 
00221   //
00222   // User Implementation
00223   //
00224 
00225   Date * date = IdbDate_c(_o);
00226   retarg = date->is_greater_or_equal(*d);
00227 
00228   return Success;
00229 }
00230 
00231 //
00232 // int16 Date::is_less(in date*) [datemthfe.cc]
00233 //
00234 
00235 Status
00236 __method__OUT_int16_is_less_date__IN_date_REF_(Database *_db, FEMethod_C *_m, Object *_o, Date * d, eyedblib::int16 &retarg)
00237 {
00238   PACK_INIT(_db);
00239 
00240   //
00241   // User Implementation
00242   //
00243 
00244   Date * date = IdbDate_c(_o);
00245   retarg = date->is_less(*d);
00246 
00247   return Success;
00248 }
00249 
00250 //
00251 // int16 Date::is_less_or_equal(in date*) [datemthfe.cc]
00252 //
00253 
00254 Status
00255 __method__OUT_int16_is_less_or_equal_date__IN_date_REF_(Database *_db, FEMethod_C *_m, Object *_o, Date * d, eyedblib::int16 &retarg)
00256 {
00257   PACK_INIT(_db);
00258 
00259   //
00260   // User Implementation
00261   //
00262 
00263   Date * date = IdbDate_c(_o);
00264   retarg = date->is_less_or_equal(*d);
00265 
00266   return Success;
00267 }
00268 
00269 //
00270 // int16 Date::is_between(in date*, in date*) [datemthfe.cc]
00271 //
00272 
00273 Status
00274 __method__OUT_int16_is_between_date__IN_date_REF___IN_date_REF_(Database *_db, FEMethod_C *_m, Object *_o, Date * d1, Date * d2, eyedblib::int16 &retarg)
00275 {
00276   PACK_INIT(_db);
00277 
00278   //
00279   // User Implementation
00280   //
00281 
00282   Date * date = IdbDate_c(_o);
00283   retarg = date->is_between(*d1, *d2);
00284 
00285   return Success;
00286 }
00287 
00288 //
00289 // date* Date::next(in weekday) [datemthfe.cc]
00290 //
00291 
00292 Status
00293 __method__OUT_date_REF__next_date__IN_weekday(Database *_db, FEMethod_C *_m, Object *_o, const Weekday::Type day, Date * &retarg)
00294 {
00295   PACK_INIT(_db);
00296 
00297   //
00298   // User Implementation
00299   //
00300 
00301   Date * date = IdbDate_c(_o);
00302   date->next(day);
00303   retarg = date;
00304 
00305   return Success;
00306 }
00307 
00308 //
00309 // date* Date::previous(in weekday) [datemthfe.cc]
00310 //
00311 
00312 Status
00313 __method__OUT_date_REF__previous_date__IN_weekday(Database *_db, FEMethod_C *_m, Object *_o, const Weekday::Type day, Date * &retarg)
00314 {
00315   PACK_INIT(_db);
00316 
00317   //
00318   // User Implementation
00319   //
00320   Date * date = IdbDate_c(_o);
00321   date->previous(day);
00322   retarg = date;
00323 
00324   return Success;
00325 }
00326 
00327 //
00328 // date* Date::add_days(in int32) [datemthfe.cc]
00329 //
00330 
00331 Status
00332 __method__OUT_date_REF__add_days_date__IN_int32(Database *_db, FEMethod_C *_m, Object *_o, const eyedblib::int32 days, Date * &retarg)
00333 {
00334   PACK_INIT(_db);
00335 
00336   //
00337   // User Implementation
00338   //
00339 
00340   Date * date = IdbDate_c(_o);
00341   date->add_days(days);
00342   retarg = date;
00343 
00344   return Success;
00345 }
00346 
00347 //
00348 // date* Date::substract_days(in int32) [datemthfe.cc]
00349 //
00350 
00351 Status
00352 __method__OUT_date_REF__substract_days_date__IN_int32(Database *_db, FEMethod_C *_m, Object *_o, const eyedblib::int32 days, Date * &retarg)
00353 {
00354   PACK_INIT(_db);
00355 
00356   //
00357   // User Implementation
00358   //
00359 
00360 
00361   Date * date = IdbDate_c(_o);
00362   date->substract_days(days);
00363   retarg = date;
00364 
00365   return Success;
00366 
00367 }
00368 
00369 //
00370 // int32 Date::substract_date(in date*) [datemthfe.cc]
00371 //
00372 
00373 Status
00374 __method__OUT_int32_substract_date_date__IN_date_REF_(Database *_db, FEMethod_C *_m, Object *_o, Date * d, eyedblib::int32 &retarg)
00375 {
00376   PACK_INIT(_db);
00377 
00378   //
00379   // User Implementation
00380   //
00381 
00382   Date * date = IdbDate_c(_o);
00383   retarg = date->substract_date(*d);
00384 
00385   return Success;
00386 
00387 }
00388 
00389 //
00390 // void Date::set_julian(in int32) [datemthfe.cc]
00391 //
00392 
00393 Status
00394 __method__OUT_void_set_julian_date__IN_int32(Database *_db, FEMethod_C *_m, Object *_o, const eyedblib::int32 julian_day)
00395 {
00396   PACK_INIT(_db);
00397 
00398   //
00399   // User Implementation
00400   //
00401 
00402   Date * date = IdbDate_c(_o);
00403 
00404   Status s;
00405   s = date->set_julian(julian_day);
00406 
00407   if(s)
00408     {
00409       return s;
00410     }
00411 
00412   return Success;
00413 }
00414 
00415 //
00416 // date* Date::date() [datemthfe.cc]
00417 //
00418 
00419 Status
00420 __method_static_OUT_date_REF__date_date(Database *_db, FEMethod_C *_m, Date * &retarg)
00421 {
00422   PACK_INIT(_db);
00423 
00424   //
00425   // User Implementation
00426   //
00427 
00428   retarg = Date::date(_db);
00429 
00430   return Success;
00431 }
00432 
00433 //
00434 // date* Date::date(in date*) [datemthfe.cc]
00435 //
00436 
00437 Status
00438 __method_static_OUT_date_REF__date_date__IN_date_REF_(Database *_db, FEMethod_C *_m, Date * d, Date * &retarg)
00439 {
00440   PACK_INIT(_db);
00441 
00442   //
00443   // User Implementation
00444   //
00445 
00446   retarg = Date::date(_db, *d);
00447 
00448   return Success;
00449 }
00450 
00451 //
00452 // date* Date::date(in int32) [datemthfe.cc]
00453 //
00454 
00455 Status
00456 __method_static_OUT_date_REF__date_date__IN_int32(Database *_db, FEMethod_C *_m, const eyedblib::int32 julian_day, Date * &retarg)
00457 {
00458   PACK_INIT(_db);
00459 
00460   //
00461   // User Implementation
00462   //
00463 
00464   retarg = Date::date(_db, julian_day);
00465 
00466   return Success;
00467 }
00468 
00469 //
00470 // date* Date::date(in int32, in month, in int16) [datemthfe.cc]
00471 //
00472 
00473 Status
00474 __method_static_OUT_date_REF__date_date__IN_int32__IN_month__IN_int16(Database *_db, FEMethod_C *_m, const eyedblib::int32 year, const Month::Type m, const eyedblib::int16 day, Date * &retarg)
00475 {
00476   PACK_INIT(_db);
00477 
00478   //
00479   // User Implementation
00480   //
00481 
00482   retarg = Date::date(_db, year, m, day);
00483 
00484   return Success;
00485 }
00486 
00487 //
00488 // date* Date::date(in string) [datemthfe.cc]
00489 //
00490 
00491 Status
00492 __method_static_OUT_date_REF__date_date__IN_string(Database *_db, FEMethod_C *_m, const char * d, Date * &retarg)
00493 {
00494   PACK_INIT(_db);
00495 
00496   //
00497   // User Implementation
00498   //
00499 
00500   retarg = Date::date(_db, d);
00501 
00502   return Success;
00503 }
00504 
00505 //
00506 // string Date::toString() [datemthfe.cc]
00507 //
00508 
00509 Status
00510 __method__OUT_string_toString_date(Database *_db, FEMethod_C *_m, Object *_o, char * &retarg)
00511 {
00512   PACK_INIT(_db);
00513 
00514   //
00515   // User Implementation
00516   //
00517   
00518   Date * date = IdbDate_c(_o);
00519   
00520   retarg = Argument::dup(date->toString());
00521 
00522   return Success;
00523 }
00524 
00525 //
00526 // int32 Date::julian(in string) [datemthfe.cc]
00527 //
00528 
00529 Status
00530 __method_static_OUT_int32_julian_date__IN_string(Database *_db, FEMethod_C *_m, const char * d, eyedblib::int32 &retarg)
00531 {
00532   PACK_INIT(_db);
00533 
00534   //
00535   // User Implementation
00536   //
00537 
00538   retarg = Date::julian(d);
00539 
00540   return Success;
00541 }
00542 
00543 //
00544 // int16 Time::hour() [datemthfe.cc]
00545 //
00546 
00547 Status
00548 __method__OUT_int16_hour_time(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
00549 {
00550   PACK_INIT(_db);
00551 
00552   //
00553   // User Implementation
00554   //
00555 
00556   Time * time = IdbTime_c(_o);
00557   retarg = time->hour();
00558 
00559   return Success;
00560 }
00561 
00562 //
00563 // int16 Time::minute() [datemthfe.cc]
00564 //
00565 
00566 Status
00567 __method__OUT_int16_minute_time(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
00568 {
00569   PACK_INIT(_db);
00570 
00571   //
00572   // User Implementation
00573   //
00574 
00575   Time * time = IdbTime_c(_o);
00576   retarg = time->minute();
00577 
00578   return Success;
00579 }
00580 
00581 //
00582 // int16 Time::second() [datemthfe.cc]
00583 //
00584 
00585 Status
00586 __method__OUT_int16_second_time(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
00587 {
00588   PACK_INIT(_db);
00589 
00590   //
00591   // User Implementation
00592   //
00593 
00594   Time * time = IdbTime_c(_o);
00595   retarg = time->second();
00596 
00597   return Success;
00598 }
00599 
00600 //
00601 // int16 Time::millisecond() [datemthfe.cc]
00602 //
00603 
00604 Status
00605 __method__OUT_int16_millisecond_time(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
00606 {
00607   PACK_INIT(_db);
00608 
00609   //
00610   // User Implementation
00611   //
00612 
00613   Time * time = IdbTime_c(_o);
00614   retarg = time->millisecond();
00615 
00616   return Success;
00617 }
00618 
00619 //
00620 // int16 Time::tz_hour() [datemthfe.cc]
00621 //
00622 
00623 Status
00624 __method__OUT_int16_tz_hour_time(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
00625 {
00626   PACK_INIT(_db);
00627 
00628   //
00629   // User Implementation
00630   //
00631 
00632   Time * time = IdbTime_c(_o);
00633   retarg = time->tz_hour();
00634 
00635   return Success;
00636 }
00637 
00638 //
00639 // int16 Time::tz_minute() [datemthfe.cc]
00640 //
00641 
00642 Status
00643 __method__OUT_int16_tz_minute_time(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
00644 {
00645   PACK_INIT(_db);
00646 
00647   //
00648   // User Implementation
00649   //
00650 
00651   Time * time = IdbTime_c(_o);
00652   retarg = time->tz_minute();
00653 
00654   return Success;
00655 }
00656 
00657 //
00658 // int16 Time::is_equal(in time*) [datemthfe.cc]
00659 //
00660 
00661 Status
00662 __method__OUT_int16_is_equal_time__IN_time_REF_(Database *_db, FEMethod_C *_m, Object *_o, Time * t, eyedblib::int16 &retarg)
00663 {
00664   PACK_INIT(_db);
00665 
00666   //
00667   // User Implementation
00668   //
00669 
00670   Time * time = IdbTime_c(_o);
00671   retarg = time->is_equal(*t);
00672  
00673   return Success;
00674 }
00675 
00676 //
00677 // int16 Time::is_greater(in time*) [datemthfe.cc]
00678 //
00679 
00680 Status
00681 __method__OUT_int16_is_greater_time__IN_time_REF_(Database *_db, FEMethod_C *_m, Object *_o, Time * t, eyedblib::int16 &retarg)
00682 {
00683   PACK_INIT(_db);
00684 
00685   //
00686   // User Implementation
00687   //
00688 
00689   Time * time = IdbTime_c(_o);
00690   retarg = time->is_greater(*t);
00691  
00692   return Success;
00693 }
00694 
00695 //
00696 // int16 Time::is_greater_or_equal(in time*) [datemthfe.cc]
00697 //
00698 
00699 Status
00700 __method__OUT_int16_is_greater_or_equal_time__IN_time_REF_(Database *_db, FEMethod_C *_m, Object *_o, Time * t, eyedblib::int16 &retarg)
00701 {
00702   PACK_INIT(_db);
00703 
00704   //
00705   // User Implementation
00706   //
00707 
00708   Time * time = IdbTime_c(_o);
00709   retarg = time->is_greater_or_equal(*t);
00710  
00711   return Success;
00712 }
00713 
00714 //
00715 // int16 Time::is_less(in time*) [datemthfe.cc]
00716 //
00717 
00718 Status
00719 __method__OUT_int16_is_less_time__IN_time_REF_(Database *_db, FEMethod_C *_m, Object *_o, Time * t, eyedblib::int16 &retarg)
00720 {
00721   PACK_INIT(_db);
00722 
00723   //
00724   // User Implementation
00725   //
00726 
00727   Time * time = IdbTime_c(_o);
00728   retarg = time->is_less(*t);
00729  
00730   return Success;
00731 }
00732 
00733 //
00734 // int16 Time::is_less_or_equal(in time*) [datemthfe.cc]
00735 //
00736 
00737 Status
00738 __method__OUT_int16_is_less_or_equal_time__IN_time_REF_(Database *_db, FEMethod_C *_m, Object *_o, Time * t, eyedblib::int16 &retarg)
00739 {
00740   PACK_INIT(_db);
00741 
00742   //
00743   // User Implementation
00744   //
00745 
00746   Time * time = IdbTime_c(_o);
00747   retarg = time->is_less_or_equal(*t);
00748  
00749   return Success;
00750 }
00751 
00752 //
00753 // int16 Time::is_between(in time*, in time*) [datemthfe.cc]
00754 //
00755 
00756 Status
00757 __method__OUT_int16_is_between_time__IN_time_REF___IN_time_REF_(Database *_db, FEMethod_C *_m, Object *_o, Time * t1, Time * t2, eyedblib::int16 &retarg)
00758 {
00759   PACK_INIT(_db);
00760 
00761   //
00762   // User Implementation
00763   //
00764 
00765   Time * time = IdbTime_c(_o);
00766   retarg = time->is_between(*t1, *t2);
00767 
00768   return Success;
00769 }
00770 
00771 //
00772 // time* Time::add_interval(in time_interval*) [datemthfe.cc]
00773 //
00774 
00775 Status
00776 __method__OUT_time_REF__add_interval_time__IN_time_interval_REF_(Database *_db, FEMethod_C *_m, Object *_o, TimeInterval * i, Time * &retarg)
00777 {
00778   PACK_INIT(_db);
00779 
00780   //
00781   // User Implementation
00782   //
00783 
00784   Time * time = IdbTime_c(_o);
00785   time->add_interval(*i);
00786   
00787   retarg = time;
00788 
00789   return Success;
00790 }
00791 
00792 //
00793 // time* Time::substract_interval(in time_interval*) [datemthfe.cc]
00794 //
00795 
00796 Status
00797 __method__OUT_time_REF__substract_interval_time__IN_time_interval_REF_(Database *_db, FEMethod_C *_m, Object *_o, TimeInterval * i, Time * &retarg)
00798 {
00799   PACK_INIT(_db);
00800 
00801   //
00802   // User Implementation
00803   //
00804 
00805   Time * time = IdbTime_c(_o);
00806   time->substract_interval(*i);
00807   
00808   retarg = time;
00809 
00810   return Success;
00811 }
00812 
00813 //
00814 // time_interval* Time::substract_time(in time*) [datemthfe.cc]
00815 //
00816 
00817 Status
00818 __method__OUT_time_interval_REF__substract_time_time__IN_time_REF_(Database *_db, FEMethod_C *_m, Object *_o, Time * t, TimeInterval * &retarg)
00819 {
00820   PACK_INIT(_db);
00821 
00822   //
00823   // User Implementation
00824   //
00825 
00826   Time * time = IdbTime_c(_o);
00827   retarg = time->substract_time(*t);
00828 
00829   return Success;
00830 }
00831 
00832 //
00833 // int16 Time::gmt_hour() [datemthfe.cc]
00834 //
00835 
00836 Status
00837 __method__OUT_int16_gmt_hour_time(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
00838 {
00839   PACK_INIT(_db);
00840 
00841   //
00842   // User Implementation
00843   //
00844 
00845   Time * time = IdbTime_c(_o);
00846   retarg = time->gmt_hour();
00847 
00848   return Success;
00849 }
00850 
00851 //
00852 // int16 Time::gmt_minute() [datemthfe.cc]
00853 //
00854 
00855 Status
00856 __method__OUT_int16_gmt_minute_time(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
00857 {
00858   PACK_INIT(_db);
00859 
00860   //
00861   // User Implementation
00862   //
00863 
00864   Time * time = IdbTime_c(_o);
00865   retarg = time->gmt_minute();
00866 
00867   return Success;
00868 }
00869 
00870 //
00871 // int16 Time::microsecond() [datemthfe.cc]
00872 //
00873 
00874 Status
00875 __method__OUT_int16_microsecond_time(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
00876 {
00877   PACK_INIT(_db);
00878 
00879   //
00880   // User Implementation
00881   //
00882 
00883   Time * time = IdbTime_c(_o);
00884   retarg = time->microsecond();
00885 
00886   return Success;
00887 }
00888 
00889 //
00890 // void Time::set_usecs(in int64, in int16) [datemthfe.cc]
00891 //
00892 
00893 Status
00894 __method__OUT_void_set_usecs_time__IN_int64__IN_int16(Database *_db, FEMethod_C *_m, Object *_o, const eyedblib::int64 usecs, const eyedblib::int16 tz)
00895 {
00896   PACK_INIT(_db);
00897 
00898   //
00899   // User Implementation
00900   //
00901 
00902   
00903   Time * time = IdbTime_c(_o);
00904   
00905   Status s;
00906   s = time->set_usecs(usecs, tz);
00907   
00908   if(s)
00909     {
00910       return s;
00911     }
00912 
00913   return Success;
00914 }
00915 
00916 //
00917 // void Time::get_local_time_zone(out int16, out int16) [datemthfe.cc]
00918 //
00919 
00920 Status
00921 __method_static_OUT_void_get_local_time_zone_time__OUT_int16__OUT_int16(Database *_db, FEMethod_C *_m, eyedblib::int16 &tz_hour, eyedblib::int16 &tz_min)
00922 {
00923   PACK_INIT(_db);
00924 
00925   //
00926   // User Implementation
00927   //
00928 
00929   Time::get_local_time_zone(&tz_hour, &tz_min);
00930 
00931   return Success;
00932 }
00933 
00934 //
00935 // time* Time::gmt_time() [datemthfe.cc]
00936 //
00937 
00938 Status
00939 __method_static_OUT_time_REF__gmt_time_time(Database *_db, FEMethod_C *_m, Time * &retarg)
00940 {
00941   PACK_INIT(_db);
00942 
00943   //
00944   // User Implementation
00945   //
00946 
00947   retarg = Time::gmt_time(_db);
00948 
00949   return Success;
00950 }
00951 
00952 //
00953 // time* Time::local_time() [datemthfe.cc]
00954 //
00955 
00956 Status
00957 __method_static_OUT_time_REF__local_time_time(Database *_db, FEMethod_C *_m, Time * &retarg)
00958 {
00959   PACK_INIT(_db);
00960 
00961   //
00962   // User Implementation
00963   //
00964 
00965   retarg = Time::local_time(_db);
00966 
00967   return Success;
00968 }
00969 
00970 //
00971 // time* Time::time(in time*) [datemthfe.cc]
00972 //
00973 
00974 Status
00975 __method_static_OUT_time_REF__time_time__IN_time_REF_(Database *_db, FEMethod_C *_m, Time * t, Time * &retarg)
00976 {
00977   PACK_INIT(_db);
00978 
00979   //
00980   // User Implementation
00981   //
00982 
00983   retarg = Time::time(_db, *t);
00984 
00985   return Success;
00986 }
00987 
00988 //
00989 // time* Time::time(in int64) [datemthfe.cc]
00990 //
00991 
00992 Status
00993 __method_static_OUT_time_REF__time_time__IN_int64(Database *_db, FEMethod_C *_m, const eyedblib::int64 usec, Time * &retarg)
00994 {
00995   PACK_INIT(_db);
00996 
00997   //
00998   // User Implementation
00999   //
01000 
01001   retarg = Time::time(_db, usec);
01002 
01003   return Success;
01004 }
01005 
01006 //
01007 // time* Time::time(in int64, in int16) [datemthfe.cc]
01008 //
01009 
01010 Status
01011 __method_static_OUT_time_REF__time_time__IN_int64__IN_int16(Database *_db, FEMethod_C *_m, const eyedblib::int64 usec, const eyedblib::int16 tz, Time * &retarg)
01012 {
01013   PACK_INIT(_db);
01014 
01015   //
01016   // User Implementation
01017   //
01018 
01019   retarg = Time::time(_db, usec, tz);
01020 
01021   return Success;
01022 }
01023 
01024 //
01025 // time* Time::time(in int16, in int16, in int16, in int16) [datemthfe.cc]
01026 //
01027 
01028 Status
01029 __method_static_OUT_time_REF__time_time__IN_int16__IN_int16__IN_int16__IN_int16(Database *_db, FEMethod_C *_m, const eyedblib::int16 hours, const eyedblib::int16 min, const eyedblib::int16 sec, const eyedblib::int16 msec, Time * &retarg)
01030 {
01031   PACK_INIT(_db);
01032 
01033   //
01034   // User Implementation
01035   //
01036 
01037   retarg = Time::time(_db, hours, min, sec, msec);
01038 
01039   return Success;
01040 }
01041 
01042 //
01043 // time* Time::time(in int16, in int16, in int16, in int16, in int16) [datemthfe.cc]
01044 //
01045 
01046 Status
01047 __method_static_OUT_time_REF__time_time__IN_int16__IN_int16__IN_int16__IN_int16__IN_int16(Database *_db, FEMethod_C *_m, const eyedblib::int16 hours, const eyedblib::int16 min, const eyedblib::int16 sec, const eyedblib::int16 msec, const eyedblib::int16 usec, Time * &retarg)
01048 {
01049   PACK_INIT(_db);
01050 
01051   //
01052   // User Implementation
01053   //
01054 
01055   retarg = Time::time(_db, hours, min, sec, msec, usec);
01056 
01057   return Success;
01058 }
01059 
01060 //
01061 // time* Time::time(in int16, in int16, in int16, in int16, in int16, in int16) [datemthfe.cc]
01062 //
01063 
01064 Status
01065 __method_static_OUT_time_REF__time_time__IN_int16__IN_int16__IN_int16__IN_int16__IN_int16__IN_int16(Database *_db, FEMethod_C *_m, const eyedblib::int16 hours, const eyedblib::int16 min, const eyedblib::int16 sec, const eyedblib::int16 msec, const eyedblib::int16 tz_hour, const eyedblib::int16 tz_minute, Time * &retarg)
01066 {
01067   PACK_INIT(_db);
01068 
01069   //
01070   // User Implementation
01071   //
01072 
01073   retarg = Time::time(_db, hours, min, sec, msec, tz_hour, tz_minute);
01074 
01075   return Success;
01076 }
01077 
01078 //
01079 // time* Time::time(in int16, in int16, in int16, in int16, in int16, in int16, in int16) [datemthfe.cc]
01080 //
01081 
01082 Status
01083 __method_static_OUT_time_REF__time_time__IN_int16__IN_int16__IN_int16__IN_int16__IN_int16__IN_int16__IN_int16(Database *_db, FEMethod_C *_m, const eyedblib::int16 hours, const eyedblib::int16 min, const eyedblib::int16 sec, const eyedblib::int16 msec, const eyedblib::int16 usec, const eyedblib::int16 tz_hour, const eyedblib::int16 tz_minute, Time * &retarg)
01084 {
01085   PACK_INIT(_db);
01086 
01087   //
01088   // User Implementation
01089   //
01090 
01091   retarg = Time::time(_db, hours, min, sec, msec, usec, tz_hour, tz_minute);
01092 
01093   return Success;
01094 }
01095 
01096 //
01097 // time* Time::time(in string) [datemthfe.cc]
01098 //
01099 
01100 Status
01101 __method_static_OUT_time_REF__time_time__IN_string(Database *_db, FEMethod_C *_m, const char * t, Time * &retarg)
01102 {
01103   PACK_INIT(_db);
01104 
01105   //
01106   // User Implementation
01107   //
01108 
01109   retarg = Time::time(_db, t);
01110 
01111   return Success;
01112 }
01113 
01114 //
01115 // string Time::toString() [datemthfe.cc]
01116 //
01117 
01118 Status
01119 __method__OUT_string_toString_time(Database *_db, FEMethod_C *_m, Object *_o, char * &retarg)
01120 {
01121   PACK_INIT(_db);
01122 
01123   //
01124   // User Implementation
01125   //
01126 
01127   Time * time = IdbTime_c(_o);
01128   retarg = Argument::dup(time->toString());
01129 
01130   return Success;
01131 }
01132 
01133 //
01134 // int64 Time::usec_time(in string) [datemthfe.cc]
01135 //
01136 
01137 Status
01138 __method_static_OUT_int64_usec_time_time__IN_string(Database *_db, FEMethod_C *_m, const char * t, eyedblib::int64 &retarg)
01139 {
01140   PACK_INIT(_db);
01141 
01142   //
01143   // User Implementation
01144   //
01145   
01146   retarg = Time::usec_time(t);
01147 
01148   return Success;
01149 }
01150 
01151 //
01152 // date* TimeStamp::date() [datemthfe.cc]
01153 //
01154 
01155 Status
01156 __method__OUT_date_REF__date_time_stamp(Database *_db, FEMethod_C *_m, Object *_o, Date * &retarg)
01157 {
01158   PACK_INIT(_db);
01159 
01160   //
01161   // User Implementation
01162   //
01163 
01164   TimeStamp * time_stamp = IdbTimeStamp_c(_o);
01165   retarg = Date::date(_db, time_stamp->date());
01166 
01167   return Success;
01168 }
01169 
01170 //
01171 // time* TimeStamp::time() [datemthfe.cc]
01172 //
01173 
01174 Status
01175 __method__OUT_time_REF__time_time_stamp(Database *_db, FEMethod_C *_m, Object *_o, Time * &retarg)
01176 {
01177   PACK_INIT(_db);
01178 
01179   //
01180   // User Implementation
01181   //
01182 
01183   TimeStamp * time_stamp = IdbTimeStamp_c(_o);
01184   retarg = Time::time(_db, time_stamp->time());
01185 
01186   return Success;
01187 }
01188 
01189 //
01190 // int32 TimeStamp::year() [datemthfe.cc]
01191 //
01192 
01193 Status
01194 __method__OUT_int32_year_time_stamp(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int32 &retarg)
01195 {
01196   PACK_INIT(_db);
01197 
01198   //
01199   // User Implementation
01200   //
01201 
01202   TimeStamp * time_stamp = IdbTimeStamp_c(_o);
01203   retarg = time_stamp->year();
01204 
01205   return Success;
01206 }
01207 
01208 //
01209 // int16 TimeStamp::month() [datemthfe.cc]
01210 //
01211 
01212 Status
01213 __method__OUT_int16_month_time_stamp(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
01214 {
01215   PACK_INIT(_db);
01216 
01217   //
01218   // User Implementation
01219   //
01220 
01221   TimeStamp * time_stamp = IdbTimeStamp_c(_o);
01222   retarg = time_stamp->month();
01223 
01224   return Success;
01225 }
01226 
01227 //
01228 // int16 TimeStamp::day() [datemthfe.cc]
01229 //
01230 
01231 Status
01232 __method__OUT_int16_day_time_stamp(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
01233 {
01234   PACK_INIT(_db);
01235 
01236   //
01237   // User Implementation
01238   //
01239 
01240   TimeStamp * time_stamp = IdbTimeStamp_c(_o);
01241   retarg = time_stamp->day();
01242 
01243   return Success;
01244 }
01245 
01246 //
01247 // int16 TimeStamp::hour() [datemthfe.cc]
01248 //
01249 
01250 Status
01251 __method__OUT_int16_hour_time_stamp(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
01252 {
01253   PACK_INIT(_db);
01254 
01255   //
01256   // User Implementation
01257   //
01258 
01259   TimeStamp * time_stamp = IdbTimeStamp_c(_o);
01260   retarg = time_stamp->hour();
01261 
01262   return Success;
01263 }
01264 
01265 //
01266 // int16 TimeStamp::minute() [datemthfe.cc]
01267 //
01268 
01269 Status
01270 __method__OUT_int16_minute_time_stamp(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
01271 {
01272   PACK_INIT(_db);
01273 
01274   //
01275   // User Implementation
01276   //
01277 
01278   TimeStamp * time_stamp = IdbTimeStamp_c(_o);
01279   retarg = time_stamp->minute();
01280 
01281   return Success;
01282 }
01283 
01284 //
01285 // int16 TimeStamp::second() [datemthfe.cc]
01286 //
01287 
01288 Status
01289 __method__OUT_int16_second_time_stamp(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
01290 {
01291   PACK_INIT(_db);
01292 
01293   //
01294   // User Implementation
01295   //
01296 
01297   TimeStamp * time_stamp = IdbTimeStamp_c(_o);
01298   retarg = time_stamp->second();
01299 
01300   return Success;
01301 }
01302 
01303 //
01304 // int16 TimeStamp::millisecond() [datemthfe.cc]
01305 //
01306 
01307 Status
01308 __method__OUT_int16_millisecond_time_stamp(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
01309 {
01310   PACK_INIT(_db);
01311 
01312   //
01313   // User Implementation
01314   //
01315 
01316   TimeStamp * time_stamp = IdbTimeStamp_c(_o);
01317   retarg = time_stamp->millisecond();
01318 
01319   return Success;
01320 }
01321 
01322 //
01323 // int16 TimeStamp::tz_hour() [datemthfe.cc]
01324 //
01325 
01326 Status
01327 __method__OUT_int16_tz_hour_time_stamp(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
01328 {
01329   PACK_INIT(_db);
01330 
01331   //
01332   // User Implementation
01333   //
01334 
01335   TimeStamp * time_stamp = IdbTimeStamp_c(_o);
01336   retarg = time_stamp->tz_hour();
01337 
01338   return Success;
01339 }
01340 
01341 //
01342 // int16 TimeStamp::tz_minute() [datemthfe.cc]
01343 //
01344 
01345 Status
01346 __method__OUT_int16_tz_minute_time_stamp(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
01347 {
01348   PACK_INIT(_db);
01349 
01350   //
01351   // User Implementation
01352   //
01353 
01354   TimeStamp * time_stamp = IdbTimeStamp_c(_o);
01355   retarg = time_stamp->tz_minute();
01356 
01357   return Success;
01358 }
01359 
01360 //
01361 // time_stamp* TimeStamp::plus(in time_interval*) [datemthfe.cc]
01362 //
01363 
01364 Status
01365 __method__OUT_time_stamp_REF__plus_time_stamp__IN_time_interval_REF_(Database *_db, FEMethod_C *_m, Object *_o, TimeInterval * i, TimeStamp * &retarg)
01366 {
01367   PACK_INIT(_db);
01368 
01369   //
01370   // User Implementation
01371   //
01372 
01373   TimeStamp * time_stamp = IdbTimeStamp_c(_o);
01374   time_stamp->plus(*i);
01375   retarg = time_stamp;
01376 
01377   return Success;
01378 }
01379 
01380 //
01381 // time_stamp* TimeStamp::minus(in time_interval*) [datemthfe.cc]
01382 //
01383 
01384 Status
01385 __method__OUT_time_stamp_REF__minus_time_stamp__IN_time_interval_REF_(Database *_db, FEMethod_C *_m, Object *_o, TimeInterval * i, TimeStamp * &retarg)
01386 {
01387   PACK_INIT(_db);
01388 
01389   //
01390   // User Implementation
01391   //
01392 
01393   TimeStamp * time_stamp = IdbTimeStamp_c(_o);
01394   time_stamp->minus(*i);
01395   retarg = time_stamp;
01396 
01397   return Success;
01398 }
01399 
01400 //
01401 // int16 TimeStamp::is_equal(in time_stamp*) [datemthfe.cc]
01402 //
01403 
01404 Status
01405 __method__OUT_int16_is_equal_time_stamp__IN_time_stamp_REF_(Database *_db, FEMethod_C *_m, Object *_o, TimeStamp * ts, eyedblib::int16 &retarg)
01406 {
01407   PACK_INIT(_db);
01408 
01409   //
01410   // User Implementation
01411   //
01412 
01413   TimeStamp * time_stamp = IdbTimeStamp_c(_o);
01414   retarg = time_stamp->is_equal(*ts);
01415 
01416   return Success;
01417 }
01418 
01419 //
01420 // int16 TimeStamp::is_greater(in time_stamp*) [datemthfe.cc]
01421 //
01422 
01423 Status
01424 __method__OUT_int16_is_greater_time_stamp__IN_time_stamp_REF_(Database *_db, FEMethod_C *_m, Object *_o, TimeStamp * ts, eyedblib::int16 &retarg)
01425 {
01426   PACK_INIT(_db);
01427 
01428   //
01429   // User Implementation
01430   //
01431 
01432   TimeStamp * time_stamp = IdbTimeStamp_c(_o);
01433   retarg = time_stamp->is_greater(*ts);
01434 
01435   return Success;
01436 }
01437 
01438 //
01439 // int16 TimeStamp::is_greater_or_equal(in time_stamp*) [datemthfe.cc]
01440 //
01441 
01442 Status
01443 __method__OUT_int16_is_greater_or_equal_time_stamp__IN_time_stamp_REF_(Database *_db, FEMethod_C *_m, Object *_o, TimeStamp * ts, eyedblib::int16 &retarg)
01444 {
01445   PACK_INIT(_db);
01446 
01447   //
01448   // User Implementation
01449   //
01450 
01451   TimeStamp * time_stamp = IdbTimeStamp_c(_o);
01452   retarg = time_stamp->is_greater_or_equal(*ts);
01453 
01454   return Success;
01455 }
01456 
01457 //
01458 // int16 TimeStamp::is_less(in time_stamp*) [datemthfe.cc]
01459 //
01460 
01461 Status
01462 __method__OUT_int16_is_less_time_stamp__IN_time_stamp_REF_(Database *_db, FEMethod_C *_m, Object *_o, TimeStamp * ts, eyedblib::int16 &retarg)
01463 {
01464   PACK_INIT(_db);
01465 
01466   //
01467   // User Implementation
01468   //
01469 
01470   TimeStamp * time_stamp = IdbTimeStamp_c(_o);
01471   retarg = time_stamp->is_less(*ts);
01472 
01473   return Success;
01474 }
01475 
01476 //
01477 // int16 TimeStamp::is_less_or_equal(in time_stamp*) [datemthfe.cc]
01478 //
01479 
01480 Status
01481 __method__OUT_int16_is_less_or_equal_time_stamp__IN_time_stamp_REF_(Database *_db, FEMethod_C *_m, Object *_o, TimeStamp * ts, eyedblib::int16 &retarg)
01482 {
01483   PACK_INIT(_db);
01484 
01485   //
01486   // User Implementation
01487   //
01488 
01489   TimeStamp * time_stamp = IdbTimeStamp_c(_o);
01490   retarg = time_stamp->is_less_or_equal(*ts);
01491 
01492   return Success;
01493 }
01494 
01495 //
01496 // int16 TimeStamp::is_between(in time_stamp*, in time_stamp*) [datemthfe.cc]
01497 //
01498 
01499 Status
01500 __method__OUT_int16_is_between_time_stamp__IN_time_stamp_REF___IN_time_stamp_REF_(Database *_db, FEMethod_C *_m, Object *_o, TimeStamp * ts1, TimeStamp * ts2, eyedblib::int16 &retarg)
01501 {
01502   PACK_INIT(_db);
01503 
01504   //
01505   // User Implementation
01506   //
01507 
01508   TimeStamp * time_stamp = IdbTimeStamp_c(_o);
01509   retarg = time_stamp->is_between(*ts1, ts2);
01510 
01511   return Success;
01512 }
01513 
01514 //
01515 // int16 TimeStamp::gmt_hour() [datemthfe.cc]
01516 //
01517 
01518 Status
01519 __method__OUT_int16_gmt_hour_time_stamp(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
01520 {
01521   PACK_INIT(_db);
01522 
01523   //
01524   // User Implementation
01525   //
01526 
01527   TimeStamp * time_stamp = IdbTimeStamp_c(_o);
01528   retarg = time_stamp->gmt_hour();
01529 
01530   return Success;
01531 }
01532 
01533 //
01534 // int16 TimeStamp::gmt_minute() [datemthfe.cc]
01535 //
01536 
01537 Status
01538 __method__OUT_int16_gmt_minute_time_stamp(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
01539 {
01540   PACK_INIT(_db);
01541 
01542   //
01543   // User Implementation
01544   //
01545 
01546   TimeStamp * time_stamp = IdbTimeStamp_c(_o);
01547   retarg = time_stamp->gmt_minute();
01548 
01549   return Success;
01550 }
01551 
01552 //
01553 // int16 TimeStamp::microsecond() [datemthfe.cc]
01554 //
01555 
01556 Status
01557 __method__OUT_int16_microsecond_time_stamp(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
01558 {
01559   PACK_INIT(_db);
01560 
01561   //
01562   // User Implementation
01563   //
01564 
01565   TimeStamp * time_stamp = IdbTimeStamp_c(_o);
01566   retarg = time_stamp->microsecond();
01567 
01568   return Success;
01569 }
01570 
01571 //
01572 // void TimeStamp::set_usecs(in int64, in int16) [datemthfe.cc]
01573 //
01574 
01575 Status
01576 __method__OUT_void_set_usecs_time_stamp__IN_int64__IN_int16(Database *_db, FEMethod_C *_m, Object *_o, const eyedblib::int64 usec, const eyedblib::int16 tz)
01577 {
01578   PACK_INIT(_db);
01579 
01580   //
01581   // User Implementation
01582   //
01583 
01584   TimeStamp * time_stamp = IdbTimeStamp_c(_o);
01585 
01586   Status s;
01587   s = time_stamp->set_usecs(usec, tz);
01588 
01589   if(s)
01590     {
01591       return s;
01592     }
01593 
01594   return Success;
01595 }
01596 
01597 //
01598 // time_interval* TimeStamp::substract(in time_stamp*) [datemthfe.cc]
01599 //
01600 
01601 Status
01602 __method__OUT_time_interval_REF__substract_time_stamp__IN_time_stamp_REF_(Database *_db, FEMethod_C *_m, Object *_o, TimeStamp * ts, TimeInterval * &retarg)
01603 {
01604   PACK_INIT(_db);
01605 
01606   //
01607   // User Implementation
01608   //
01609 
01610   TimeStamp * time_stamp = IdbTimeStamp_c(_o);
01611   retarg = time_stamp->substract(*ts);
01612 
01613   return Success;
01614 }
01615 
01616 //
01617 // time_stamp* TimeStamp::gmt_time_stamp() [datemthfe.cc]
01618 //
01619 
01620 Status
01621 __method_static_OUT_time_stamp_REF__gmt_time_stamp_time_stamp(Database *_db, FEMethod_C *_m, TimeStamp * &retarg)
01622 {
01623   PACK_INIT(_db);
01624 
01625   //
01626   // User Implementation
01627   //
01628 
01629   retarg = TimeStamp::gmt_time_stamp(_db);
01630 
01631   return Success;
01632 }
01633 
01634 //
01635 // time_stamp* TimeStamp::local_time_stamp() [datemthfe.cc]
01636 //
01637 
01638 Status
01639 __method_static_OUT_time_stamp_REF__local_time_stamp_time_stamp(Database *_db, FEMethod_C *_m, TimeStamp * &retarg)
01640 {
01641   PACK_INIT(_db);
01642 
01643   //
01644   // User Implementation
01645   //
01646 
01647   retarg = TimeStamp::local_time_stamp(_db);
01648 
01649   return Success;
01650 }
01651 
01652 //
01653 // time_stamp* TimeStamp::time_stamp(in time_stamp*) [datemthfe.cc]
01654 //
01655 
01656 Status
01657 __method_static_OUT_time_stamp_REF__time_stamp_time_stamp__IN_time_stamp_REF_(Database *_db, FEMethod_C *_m, TimeStamp * ts, TimeStamp * &retarg)
01658 {
01659   PACK_INIT(_db);
01660 
01661   //
01662   // User Implementation
01663   //
01664 
01665   retarg = TimeStamp::time_stamp(_db, *ts);
01666 
01667   return Success;
01668 }
01669 
01670 //
01671 // time_stamp* TimeStamp::time_stamp(in int64) [datemthfe.cc]
01672 //
01673 
01674 Status
01675 __method_static_OUT_time_stamp_REF__time_stamp_time_stamp__IN_int64(Database *_db, FEMethod_C *_m, const eyedblib::int64 usec, TimeStamp * &retarg)
01676 {
01677   PACK_INIT(_db);
01678 
01679   //
01680   // User Implementation
01681   //
01682 
01683   retarg = TimeStamp::time_stamp(_db, usec);
01684 
01685   return Success;
01686 }
01687 
01688 //
01689 // time_stamp* TimeStamp::time_stamp(in int64, in int16) [datemthfe.cc]
01690 //
01691 
01692 Status
01693 __method_static_OUT_time_stamp_REF__time_stamp_time_stamp__IN_int64__IN_int16(Database *_db, FEMethod_C *_m, const eyedblib::int64 usec, const eyedblib::int16 tz, TimeStamp * &retarg)
01694 {
01695   PACK_INIT(_db);
01696 
01697   //
01698   // User Implementation
01699   //
01700 
01701   retarg = TimeStamp::time_stamp(_db, usec, tz);
01702 
01703   return Success;
01704 }
01705 
01706 //
01707 // time_stamp* TimeStamp::time_stamp(in int32, in int64) [datemthfe.cc]
01708 //
01709 
01710 Status
01711 __method_static_OUT_time_stamp_REF__time_stamp_time_stamp__IN_int32__IN_int64(Database *_db, FEMethod_C *_m, const eyedblib::int32 julian_day, const eyedblib::int64 usec, TimeStamp * &retarg)
01712 {
01713   PACK_INIT(_db);
01714 
01715   //
01716   // User Implementation
01717   //
01718 
01719   retarg = TimeStamp::time_stamp(_db, julian_day, usec);
01720 
01721   return Success;
01722 }
01723 
01724 //
01725 // time_stamp* TimeStamp::time_stamp(in int32, in int64, in int16) [datemthfe.cc]
01726 //
01727 
01728 Status
01729 __method_static_OUT_time_stamp_REF__time_stamp_time_stamp__IN_int32__IN_int64__IN_int16(Database *_db, FEMethod_C *_m, const eyedblib::int32 julian_day, const eyedblib::int64 usec, const eyedblib::int16 tz, TimeStamp * &retarg)
01730 {
01731   PACK_INIT(_db);
01732 
01733   //
01734   // User Implementation
01735   //
01736 
01737   retarg = TimeStamp::time_stamp(_db, julian_day, usec, tz);
01738 
01739   return Success;
01740 }
01741 
01742 //
01743 // time_stamp* TimeStamp::time_stamp(in date*, in time*) [datemthfe.cc]
01744 //
01745 
01746 Status
01747 __method_static_OUT_time_stamp_REF__time_stamp_time_stamp__IN_date_REF___IN_time_REF_(Database *_db, FEMethod_C *_m, Date * d, Time * t, TimeStamp * &retarg)
01748 {
01749   PACK_INIT(_db);
01750 
01751   //
01752   // User Implementation
01753   //
01754 
01755   retarg = TimeStamp::time_stamp(_db, *d, *t);
01756 
01757   return Success;
01758 }
01759 
01760 //
01761 // time_stamp* TimeStamp::time_stamp(in date*) [datemthfe.cc]
01762 //
01763 
01764 Status
01765 __method_static_OUT_time_stamp_REF__time_stamp_time_stamp__IN_date_REF_(Database *_db, FEMethod_C *_m, Date * d, TimeStamp * &retarg)
01766 {
01767   PACK_INIT(_db);
01768 
01769   //
01770   // User Implementation
01771   //
01772 
01773   retarg = TimeStamp::time_stamp(_db, *d);
01774 
01775   return Success;
01776 }
01777 
01778 //
01779 // time_stamp* TimeStamp::time_stamp(in date*, in int16, in int16) [datemthfe.cc]
01780 //
01781 
01782 Status
01783 __method_static_OUT_time_stamp_REF__time_stamp_time_stamp__IN_date_REF___IN_int16__IN_int16(Database *_db, FEMethod_C *_m, Date * d, const eyedblib::int16 tz_hour, const eyedblib::int16 tz_min, TimeStamp * &retarg)
01784 {
01785   PACK_INIT(_db);
01786 
01787   //
01788   // User Implementation
01789   //
01790 
01791   retarg = TimeStamp::time_stamp(_db, *d, tz_hour, tz_min);
01792 
01793   return Success;
01794 }
01795 
01796 //
01797 // time_stamp* TimeStamp::time_stamp(in string) [datemthfe.cc]
01798 //
01799 
01800 Status
01801 __method_static_OUT_time_stamp_REF__time_stamp_time_stamp__IN_string(Database *_db, FEMethod_C *_m, const char * ts, TimeStamp * &retarg)
01802 {
01803   PACK_INIT(_db);
01804 
01805   //
01806   // User Implementation
01807   //
01808 
01809   retarg = TimeStamp::time_stamp(_db, ts);
01810 
01811   return Success;
01812 }
01813 
01814 //
01815 // string TimeStamp::toString() [datemthfe.cc]
01816 //
01817 
01818 Status
01819 __method__OUT_string_toString_time_stamp(Database *_db, FEMethod_C *_m, Object *_o, char * &retarg)
01820 {
01821   PACK_INIT(_db);
01822 
01823   //
01824   // User Implementation
01825   //
01826 
01827   TimeStamp * time_stamp = IdbTimeStamp_c(_o);
01828   retarg = Argument::dup(time_stamp->toString());
01829 
01830   return Success;
01831 }
01832 
01833 //
01834 // int64 TimeStamp::usec_time_stamp(in string) [datemthfe.cc]
01835 //
01836 
01837 Status
01838 __method_static_OUT_int64_usec_time_stamp_time_stamp__IN_string(Database *_db, FEMethod_C *_m, const char * ts, eyedblib::int64 &retarg)
01839 {
01840   PACK_INIT(_db);
01841 
01842   //
01843   // User Implementation
01844   //
01845 
01846   retarg = TimeStamp::usec_time_stamp(ts);
01847 
01848   return Success;
01849 }
01850 
01851 //
01852 // int32 TimeInterval::day() [datemthfe.cc]
01853 //
01854 
01855 Status
01856 __method__OUT_int32_day_time_interval(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int32 &retarg)
01857 {
01858   PACK_INIT(_db);
01859 
01860   //
01861   // User Implementation
01862   //
01863 
01864   TimeInterval * time_interval = IdbTimeInterval_c(_o);
01865   retarg = time_interval->day();
01866   
01867   return Success;
01868 }
01869 
01870 //
01871 // int16 TimeInterval::hour() [datemthfe.cc]
01872 //
01873 
01874 Status
01875 __method__OUT_int16_hour_time_interval(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
01876 {
01877   PACK_INIT(_db);
01878 
01879   //
01880   // User Implementation
01881   //
01882 
01883   TimeInterval * time_interval = IdbTimeInterval_c(_o);
01884   retarg = time_interval->hour();
01885 
01886   return Success;
01887 }
01888 
01889 //
01890 // int16 TimeInterval::minute() [datemthfe.cc]
01891 //
01892 
01893 Status
01894 __method__OUT_int16_minute_time_interval(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
01895 {
01896   PACK_INIT(_db);
01897 
01898   //
01899   // User Implementation
01900   //
01901 
01902   TimeInterval * time_interval = IdbTimeInterval_c(_o);
01903   retarg = time_interval->minute();
01904 
01905   return Success;
01906 }
01907 
01908 //
01909 // int16 TimeInterval::second() [datemthfe.cc]
01910 //
01911 
01912 Status
01913 __method__OUT_int16_second_time_interval(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
01914 {
01915   PACK_INIT(_db);
01916 
01917   //
01918   // User Implementation
01919   //
01920 
01921   TimeInterval * time_interval = IdbTimeInterval_c(_o);
01922   retarg = time_interval->second();
01923 
01924   return Success;
01925 }
01926 
01927 //
01928 // int16 TimeInterval::millisecond() [datemthfe.cc]
01929 //
01930 
01931 Status
01932 __method__OUT_int16_millisecond_time_interval(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
01933 {
01934   PACK_INIT(_db);
01935 
01936   //
01937   // User Implementation
01938   //
01939 
01940   TimeInterval * time_interval = IdbTimeInterval_c(_o);
01941   retarg = time_interval->millisecond();
01942 
01943   return Success;
01944 }
01945 
01946 //
01947 // int16 TimeInterval::microsecond() [datemthfe.cc]
01948 //
01949 
01950 Status
01951 __method__OUT_int16_microsecond_time_interval(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
01952 {
01953   PACK_INIT(_db);
01954 
01955   //
01956   // User Implementation
01957   //
01958 
01959   TimeInterval * time_interval = IdbTimeInterval_c(_o);
01960   retarg = time_interval->microsecond();
01961 
01962   return Success;
01963 }
01964 
01965 //
01966 // int16 TimeInterval::is_zero() [datemthfe.cc]
01967 //
01968 
01969 Status
01970 __method__OUT_int16_is_zero_time_interval(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int16 &retarg)
01971 {
01972   PACK_INIT(_db);
01973 
01974   //
01975   // User Implementation
01976   //
01977 
01978   TimeInterval * time_interval = IdbTimeInterval_c(_o);
01979   retarg = time_interval->is_zero();
01980 
01981   return Success;
01982 }
01983 
01984 //
01985 // time_interval* TimeInterval::plus(in time_interval*) [datemthfe.cc]
01986 //
01987 
01988 Status
01989 __method__OUT_time_interval_REF__plus_time_interval__IN_time_interval_REF_(Database *_db, FEMethod_C *_m, Object *_o, TimeInterval * i, TimeInterval * &retarg)
01990 {
01991   PACK_INIT(_db);
01992 
01993   //
01994   // User Implementation
01995   //
01996 
01997   TimeInterval * time_interval = IdbTimeInterval_c(_o);
01998   time_interval->plus(*i);
01999   
02000   retarg = time_interval;
02001 
02002   return Success;
02003 }
02004 
02005 //
02006 // time_interval* TimeInterval::minus(in time_interval*) [datemthfe.cc]
02007 //
02008 
02009 Status
02010 __method__OUT_time_interval_REF__minus_time_interval__IN_time_interval_REF_(Database *_db, FEMethod_C *_m, Object *_o, TimeInterval * i, TimeInterval * &retarg)
02011 {
02012   PACK_INIT(_db);
02013 
02014   //
02015   // User Implementation
02016   //
02017 
02018   TimeInterval * time_interval = IdbTimeInterval_c(_o);
02019   time_interval->minus(*i);
02020   
02021   retarg = time_interval;
02022 
02023   return Success;
02024 }
02025 
02026 //
02027 // time_interval* TimeInterval::product(in int64) [datemthfe.cc]
02028 //
02029 
02030 Status
02031 __method__OUT_time_interval_REF__product_time_interval__IN_int64(Database *_db, FEMethod_C *_m, Object *_o, const eyedblib::int64 val, TimeInterval * &retarg)
02032 {
02033   PACK_INIT(_db);
02034 
02035   //
02036   // User Implementation
02037   //
02038 
02039   TimeInterval * time_interval = IdbTimeInterval_c(_o);
02040   time_interval->product(val);
02041   
02042   retarg = time_interval;
02043 
02044   return Success;
02045 }
02046 
02047 //
02048 // time_interval* TimeInterval::quotient(in int64) [datemthfe.cc]
02049 //
02050 
02051 Status
02052 __method__OUT_time_interval_REF__quotient_time_interval__IN_int64(Database *_db, FEMethod_C *_m, Object *_o, const eyedblib::int64 val, TimeInterval * &retarg)
02053 {
02054   PACK_INIT(_db);
02055 
02056   //
02057   // User Implementation
02058   //
02059 
02060   TimeInterval * time_interval = IdbTimeInterval_c(_o);
02061   time_interval->quotient(val);
02062   
02063   retarg = time_interval;
02064 
02065   return Success;
02066 }
02067 
02068 //
02069 // int16 TimeInterval::is_equal(in time_interval*) [datemthfe.cc]
02070 //
02071 
02072 Status
02073 __method__OUT_int16_is_equal_time_interval__IN_time_interval_REF_(Database *_db, FEMethod_C *_m, Object *_o, TimeInterval * i, eyedblib::int16 &retarg)
02074 {
02075   PACK_INIT(_db);
02076 
02077   //
02078   // User Implementation
02079   //
02080 
02081   TimeInterval * time_interval = IdbTimeInterval_c(_o);
02082   retarg = time_interval->is_equal(*i);
02083 
02084   return Success;
02085 }
02086 
02087 //
02088 // int16 TimeInterval::is_greater(in time_interval*) [datemthfe.cc]
02089 //
02090 
02091 Status
02092 __method__OUT_int16_is_greater_time_interval__IN_time_interval_REF_(Database *_db, FEMethod_C *_m, Object *_o, TimeInterval * i, eyedblib::int16 &retarg)
02093 {
02094   PACK_INIT(_db);
02095 
02096   //
02097   // User Implementation
02098   //
02099 
02100   TimeInterval * time_interval = IdbTimeInterval_c(_o);
02101   retarg = time_interval->is_greater(*i);
02102 
02103   return Success;
02104 }
02105 
02106 //
02107 // int16 TimeInterval::is_greater_or_equal(in time_interval*) [datemthfe.cc]
02108 //
02109 
02110 Status
02111 __method__OUT_int16_is_greater_or_equal_time_interval__IN_time_interval_REF_(Database *_db, FEMethod_C *_m, Object *_o, TimeInterval * i, eyedblib::int16 &retarg)
02112 {
02113   PACK_INIT(_db);
02114 
02115   //
02116   // User Implementation
02117   //
02118 
02119   TimeInterval * time_interval = IdbTimeInterval_c(_o);
02120   retarg = time_interval->is_greater_or_equal(*i);
02121 
02122   return Success;
02123 }
02124 
02125 //
02126 // int16 TimeInterval::is_less(in time_interval*) [datemthfe.cc]
02127 //
02128 
02129 Status
02130 __method__OUT_int16_is_less_time_interval__IN_time_interval_REF_(Database *_db, FEMethod_C *_m, Object *_o, TimeInterval * i, eyedblib::int16 &retarg)
02131 {
02132   PACK_INIT(_db);
02133 
02134   //
02135   // User Implementation
02136   //
02137 
02138   TimeInterval * time_interval = IdbTimeInterval_c(_o);
02139   retarg = time_interval->is_less(*i);
02140 
02141   return Success;
02142 }
02143 
02144 //
02145 // int16 TimeInterval::is_less_or_equal(in time_interval*) [datemthfe.cc]
02146 //
02147 
02148 Status
02149 __method__OUT_int16_is_less_or_equal_time_interval__IN_time_interval_REF_(Database *_db, FEMethod_C *_m, Object *_o, TimeInterval * i, eyedblib::int16 &retarg)
02150 {
02151   PACK_INIT(_db);
02152 
02153   //
02154   // User Implementation
02155   //
02156 
02157   TimeInterval * time_interval = IdbTimeInterval_c(_o);
02158   retarg = time_interval->is_less_or_equal(*i);
02159 
02160   return Success;
02161 }
02162 
02163 //
02164 // void TimeInterval::set_usecs(in int64) [datemthfe.cc]
02165 //
02166 
02167 Status
02168 __method__OUT_void_set_usecs_time_interval__IN_int64(Database *_db, FEMethod_C *_m, Object *_o, const eyedblib::int64 usecs)
02169 {
02170   PACK_INIT(_db);
02171 
02172   //
02173   // User Implementation
02174   //
02175 
02176   TimeInterval * time_interval = IdbTimeInterval_c(_o);
02177 
02178   Status s;
02179   s = time_interval->set_usecs(usecs);
02180 
02181   if(s)
02182     {
02183       return s;
02184     }
02185 
02186   return Success;
02187 }
02188 
02189 //
02190 // time_interval* TimeInterval::time_interval(in int64) [datemthfe.cc]
02191 //
02192 
02193 Status
02194 __method_static_OUT_time_interval_REF__time_interval_time_interval__IN_int64(Database *_db, FEMethod_C *_m, const eyedblib::int64 usecs, TimeInterval * &retarg)
02195 {
02196   PACK_INIT(_db);
02197 
02198   //
02199   // User Implementation
02200   //
02201 
02202   retarg = TimeInterval::time_interval(_db, usecs);
02203 
02204   return Success;
02205 }
02206 
02207 //
02208 // time_interval* TimeInterval::time_interval(in int32, in int16, in int16, in int16, in int16, in int16) [datemthfe.cc]
02209 //
02210 
02211 Status
02212 __method_static_OUT_time_interval_REF__time_interval_time_interval__IN_int32__IN_int16__IN_int16__IN_int16__IN_int16__IN_int16(Database *_db, FEMethod_C *_m, const eyedblib::int32 day, const eyedblib::int16 hours, const eyedblib::int16 min, const eyedblib::int16 sec, const eyedblib::int16 msec, const eyedblib::int16 usec, TimeInterval * &retarg)
02213 {
02214   PACK_INIT(_db);
02215 
02216   //
02217   // User Implementation
02218   //
02219 
02220   retarg = TimeInterval::time_interval(_db, day, hours, min, sec, msec, usec);
02221 
02222   return Success;
02223 }
02224 
02225 //
02226 // string TimeInterval::toString() [datemthfe.cc]
02227 //
02228 
02229 Status
02230 __method__OUT_string_toString_time_interval(Database *_db, FEMethod_C *_m, Object *_o, char * &retarg)
02231 {
02232   PACK_INIT(_db);
02233 
02234   //
02235   // User Implementation
02236   //
02237 
02238   TimeInterval * time_interval = IdbTimeInterval_c(_o);
02239   retarg = Argument::dup(time_interval->toString());
02240 
02241   return Success;
02242 }
02243 
02244 //
02245 // ostring* OString::ostring() [ostringmthfe.cc]
02246 //
02247 
02248 Status
02249 __method_static_OUT_ostring_REF__ostring_ostring(Database *_db, FEMethod_C *_m, OString * &retarg)
02250 {
02251   PACK_INIT(_db);
02252 
02253   //
02254   // User Implementation
02255   //
02256 
02257   retarg = OString::ostring(_db);
02258 
02259   return Success;
02260 }
02261 
02262 //
02263 // ostring* OString::ostring(in string) [ostringmthfe.cc]
02264 //
02265 
02266 Status
02267 __method_static_OUT_ostring_REF__ostring_ostring__IN_string(Database *_db, FEMethod_C *_m, const char * s, OString * &retarg)
02268 {
02269   PACK_INIT(_db);
02270 
02271   //
02272   // User Implementation
02273   //
02274 
02275   retarg = OString::ostring(_db, s);
02276 
02277   return Success;
02278 }
02279 
02280 //
02281 // ostring* OString::ostring(in string, in int32) [ostringmthfe.cc]
02282 //
02283 
02284 Status
02285 __method_static_OUT_ostring_REF__ostring_ostring__IN_string__IN_int32(Database *_db, FEMethod_C *_m, const char * s, const eyedblib::int32 len, OString * &retarg)
02286 {
02287   PACK_INIT(_db);
02288 
02289   //
02290   // User Implementation
02291   //
02292 
02293   retarg = OString::ostring(_db, s, len);
02294 
02295   return Success;
02296 }
02297 
02298 //
02299 // ostring* OString::ostring(in string, in int32, in int32) [ostringmthfe.cc]
02300 //
02301 
02302 Status
02303 __method_static_OUT_ostring_REF__ostring_ostring__IN_string__IN_int32__IN_int32(Database *_db, FEMethod_C *_m, const char * s, const eyedblib::int32 offset, const eyedblib::int32 len, OString * &retarg)
02304 {
02305   PACK_INIT(_db);
02306 
02307   //
02308   // User Implementation
02309   //
02310 
02311   retarg = OString::ostring(_db, s, offset, len);
02312 
02313   return Success;
02314 }
02315 
02316 //
02317 // ostring* OString::ostring(in ostring*) [ostringmthfe.cc]
02318 //
02319 
02320 Status
02321 __method_static_OUT_ostring_REF__ostring_ostring__IN_ostring_REF_(Database *_db, FEMethod_C *_m, OString * s, OString * &retarg)
02322 {
02323   PACK_INIT(_db);
02324 
02325   //
02326   // User Implementation
02327   //
02328 
02329   retarg = OString::ostring(_db, *s);
02330 
02331   return Success;
02332 }
02333 
02334 //
02335 // ostring* OString::ostring(in char) [ostringmthfe.cc]
02336 //
02337 
02338 Status
02339 __method_static_OUT_ostring_REF__ostring_ostring__IN_char(Database *_db, FEMethod_C *_m, const char s, OString * &retarg)
02340 {
02341   PACK_INIT(_db);
02342 
02343   //
02344   // User Implementation
02345   //
02346 
02347   retarg = OString::ostring(_db, s);
02348 
02349   return Success;
02350 }
02351 
02352 //
02353 // ostring* OString::ostring(in int32) [ostringmthfe.cc]
02354 //
02355 
02356 Status
02357 __method_static_OUT_ostring_REF__ostring_ostring__IN_int32(Database *_db, FEMethod_C *_m, const eyedblib::int32 s, OString * &retarg)
02358 {
02359   PACK_INIT(_db);
02360 
02361   //
02362   // User Implementation
02363   //
02364 
02365   retarg = OString::ostring(_db, s);
02366 
02367   return Success;
02368 }
02369 
02370 //
02371 // ostring* OString::ostring(in float) [ostringmthfe.cc]
02372 //
02373 
02374 Status
02375 __method_static_OUT_ostring_REF__ostring_ostring__IN_float(Database *_db, FEMethod_C *_m, const double s, OString * &retarg)
02376 {
02377   PACK_INIT(_db);
02378 
02379   //
02380   // User Implementation
02381   //
02382 
02383   retarg = OString::ostring(_db, s);
02384 
02385   return Success;
02386 }
02387 
02388 //
02389 // int32 OString::strlen(in string) [ostringmthfe.cc]
02390 //
02391 
02392 Status
02393 __method_static_OUT_int32_strlen_ostring__IN_string(Database *_db, FEMethod_C *_m, const char * s, eyedblib::int32 &retarg)
02394 {
02395   PACK_INIT(_db);
02396 
02397   //
02398   // User Implementation
02399   //
02400 
02401   retarg = strlen(s);
02402 
02403   return Success;
02404 }
02405 
02406 //
02407 // int32 OString::strcmp(in string, in string) [ostringmthfe.cc]
02408 //
02409 
02410 Status
02411 __method_static_OUT_int32_strcmp_ostring__IN_string__IN_string(Database *_db, FEMethod_C *_m, const char * s1, const char * s2, eyedblib::int32 &retarg)
02412 {
02413   PACK_INIT(_db);
02414 
02415   //
02416   // User Implementation
02417   //
02418   
02419   retarg = strcmp(s1, s2);
02420 
02421   return Success;
02422 }
02423 
02424 //
02425 // int32 OString::strstr(in string, in string) [ostringmthfe.cc]
02426 //
02427 
02428 Status
02429 __method_static_OUT_int32_strstr_ostring__IN_string__IN_string(Database *_db, FEMethod_C *_m, const char * s1, const char * s2, eyedblib::int32 &retarg)
02430 {
02431   PACK_INIT(_db);
02432 
02433   //
02434   // User Implementation
02435   //
02436   
02437   char * match = (char *)strstr(s1, s2);
02438 
02439   if( match == 0 )
02440     {
02441       retarg = -1;
02442     }
02443   else
02444     {
02445       retarg = match - s1;
02446     }
02447 
02448   return Success;
02449 }
02450 
02451 //
02452 // string OString::substr(in string, in int32, in int32) [ostringmthfe.cc]
02453 //
02454 
02455 Status
02456 __method_static_OUT_string_substr_ostring__IN_string__IN_int32__IN_int32(Database *_db, FEMethod_C *_m, const char * s, const eyedblib::int32 offset, const eyedblib::int32 len, char * &retarg)
02457 {
02458   PACK_INIT(_db);
02459 
02460   //
02461   // User Implementation
02462   //  
02463   
02464   char * sub = OString::substr(s, offset, len);
02465   retarg = Argument::dup(sub);
02466   
02467   delete sub;
02468 
02469   return Success;
02470 }
02471 
02472 //
02473 // string OString::toLower(in string) [ostringmthfe.cc]
02474 //
02475 
02476 Status
02477 __method_static_OUT_string_toLower_ostring__IN_string(Database *_db, FEMethod_C *_m, const char * s, char * &retarg)
02478 {
02479   PACK_INIT(_db);
02480 
02481   //
02482   // User Implementation
02483   //
02484   char * s2  = OString::toLower(s);
02485   retarg = Argument::dup(s2);
02486 
02487   delete s2;
02488 
02489   return Success;
02490 }
02491 
02492 //
02493 // string OString::toUpper(in string) [ostringmthfe.cc]
02494 //
02495 
02496 Status
02497 __method_static_OUT_string_toUpper_ostring__IN_string(Database *_db, FEMethod_C *_m, const char * s, char * &retarg)
02498 {
02499   PACK_INIT(_db);
02500 
02501   //
02502   // User Implementation
02503   //
02504 
02505   char * s2  = OString::toUpper(s);
02506   retarg = Argument::dup(s2);
02507 
02508   delete s2;
02509 
02510   return Success;
02511 }
02512 
02513 //
02514 // string OString::rtrim(in string) [ostringmthfe.cc]
02515 //
02516 
02517 Status
02518 __method_static_OUT_string_rtrim_ostring__IN_string(Database *_db, FEMethod_C *_m, const char * s, char * &retarg)
02519 {
02520   PACK_INIT(_db);
02521 
02522   //
02523   // User Implementation
02524   //
02525 
02526   char * s2 = OString::rtrim(s);
02527   retarg = Argument::dup(s2);
02528   
02529   delete s2;
02530 
02531   return Success;
02532 }
02533 
02534 //
02535 // string OString::ltrim(in string) [ostringmthfe.cc]
02536 //
02537 
02538 Status
02539 __method_static_OUT_string_ltrim_ostring__IN_string(Database *_db, FEMethod_C *_m, const char * s, char * &retarg)
02540 {
02541   PACK_INIT(_db);
02542 
02543   //
02544   // User Implementation
02545   //
02546 
02547   char * s2 = OString::ltrim(s);
02548   retarg = Argument::dup(s2);
02549   
02550   delete s2;
02551 
02552   return Success;
02553 }
02554 
02555 //
02556 // ostring* OString::concat(in string, in string) [ostringmthfe.cc]
02557 //
02558 
02559 Status
02560 __method_static_OUT_ostring_REF__concat_ostring__IN_string__IN_string(Database *_db, FEMethod_C *_m, const char * s1, const char * s2, OString * &retarg)
02561 {
02562   PACK_INIT(_db);
02563 
02564   //
02565   // User Implementation
02566   //
02567 
02568   retarg = OString::concat(_db, s1, s2);
02569 
02570   return Success;
02571 }
02572 
02573 
02574 
02575 //
02576 // ostring* OString::append(in string) [ostringmthfe.cc]
02577 //
02578 
02579 Status
02580 __method__OUT_ostring_REF__append_ostring__IN_string(Database *_db, FEMethod_C *_m, Object *_o, const char * s, OString * &retarg)
02581 {
02582   PACK_INIT(_db);
02583 
02584   //
02585   // User Implementation
02586   //
02587 
02588   OString * os = IdbOString_c(_o);
02589 
02590   os->append(s);
02591 
02592   retarg = os;
02593 
02594   return Success;
02595 }
02596 
02597 //
02598 // ostring* OString::append(in string, in int32) [ostringmthfe.cc]
02599 //
02600 
02601 Status
02602 __method__OUT_ostring_REF__append_ostring__IN_string__IN_int32(Database *_db, FEMethod_C *_m, Object *_o, const char * s, const eyedblib::int32 len, OString * &retarg)
02603 {
02604   PACK_INIT(_db);
02605 
02606   //
02607   // User Implementation
02608   //
02609 
02610 
02611   OString * os = IdbOString_c(_o);
02612 
02613   os->append(s, len);
02614 
02615   retarg = os;
02616 
02617   return Success;
02618 }
02619 
02620 //
02621 // ostring* OString::append(in string, in int32, in int32) [ostringmthfe.cc]
02622 //
02623 
02624 Status
02625 __method__OUT_ostring_REF__append_ostring__IN_string__IN_int32__IN_int32(Database *_db, FEMethod_C *_m, Object *_o, const char * s, const eyedblib::int32 offset, const eyedblib::int32 len, OString * &retarg)
02626 {
02627   PACK_INIT(_db);
02628 
02629   //
02630   // User Implementation
02631   //
02632 
02633   OString * os = IdbOString_c(_o);
02634 
02635   os->append(s, offset, len);
02636 
02637   retarg = os;
02638 
02639   return Success;
02640 }
02641 
02642 //
02643 // ostring* OString::prepend(in string) [ostringmthfe.cc]
02644 //
02645 
02646 Status
02647 __method__OUT_ostring_REF__prepend_ostring__IN_string(Database *_db, FEMethod_C *_m, Object *_o, const char * s, OString * &retarg)
02648 {
02649   PACK_INIT(_db);
02650 
02651   //
02652   // User Implementation
02653   //
02654 
02655   OString * os = IdbOString_c(_o);
02656 
02657   os->prepend(s);
02658 
02659   retarg = os;
02660 
02661   return Success;
02662 }
02663 
02664 //
02665 // ostring* OString::prepend(in string, in int32) [ostringmthfe.cc]
02666 //
02667 
02668 Status
02669 __method__OUT_ostring_REF__prepend_ostring__IN_string__IN_int32(Database *_db, FEMethod_C *_m, Object *_o, const char * s, const eyedblib::int32 len, OString * &retarg)
02670 {
02671   PACK_INIT(_db);
02672 
02673   //
02674   // User Implementation
02675   //
02676 
02677   OString * os = IdbOString_c(_o);
02678 
02679   os->prepend(s, len);
02680 
02681   retarg = os;
02682 
02683   return Success;
02684 }
02685 
02686 //
02687 // ostring* OString::prepend(in string, in int32, in int32) [ostringmthfe.cc]
02688 //
02689 
02690 Status
02691 __method__OUT_ostring_REF__prepend_ostring__IN_string__IN_int32__IN_int32(Database *_db, FEMethod_C *_m, Object *_o, const char * s, const eyedblib::int32 offset, const eyedblib::int32 len, OString * &retarg)
02692 {
02693   PACK_INIT(_db);
02694 
02695   //
02696   // User Implementation
02697   //
02698 
02699   OString * os = IdbOString_c(_o);
02700 
02701   os->prepend(s, offset, len);
02702 
02703   retarg = os;
02704 
02705   return Success;
02706 }
02707 
02708 //
02709 // ostring* OString::insert(in int32, in string) [ostringmthfe.cc]
02710 //
02711 
02712 Status
02713 __method__OUT_ostring_REF__insert_ostring__IN_int32__IN_string(Database *_db, FEMethod_C *_m, Object *_o, const eyedblib::int32 offset, const char * s, OString * &retarg)
02714 {
02715   PACK_INIT(_db);
02716 
02717   //
02718   // User Implementation
02719   //
02720 
02721   OString * os = IdbOString_c(_o);
02722 
02723   os->insert(offset, s);
02724 
02725   retarg = os;
02726 
02727   return Success;
02728 }
02729 
02730 //
02731 // ostring* OString::insert(in int32, in string, in int32) [ostringmthfe.cc]
02732 //
02733 
02734 Status
02735 __method__OUT_ostring_REF__insert_ostring__IN_int32__IN_string__IN_int32(Database *_db, FEMethod_C *_m, Object *_o, const eyedblib::int32 offset, const char * s, const eyedblib::int32 len, OString * &retarg)
02736 {
02737   PACK_INIT(_db);
02738 
02739   //
02740   // User Implementation
02741   //
02742 
02743   OString * os = IdbOString_c(_o);
02744 
02745   os->insert(offset, s, len);
02746 
02747   retarg = os;
02748 
02749   return Success;
02750 }
02751 
02752 //
02753 // ostring* OString::insert(in int32, in string, in int32, in int32) [ostringmthfe.cc]
02754 //
02755 
02756 Status
02757 __method__OUT_ostring_REF__insert_ostring__IN_int32__IN_string__IN_int32__IN_int32(Database *_db, FEMethod_C *_m, Object *_o, const eyedblib::int32 offset, const char * s, const eyedblib::int32 offset2, const eyedblib::int32 len, OString * &retarg)
02758 {
02759   PACK_INIT(_db);
02760 
02761   //
02762   // User Implementation
02763   //
02764 
02765   OString * os = IdbOString_c(_o);
02766 
02767   os->insert(offset, s, offset2, len);
02768 
02769   retarg = os;
02770 
02771   return Success;
02772 }
02773 
02774 //
02775 // int32 OString::first(in string) [ostringmthfe.cc]
02776 //
02777 
02778 Status
02779 __method__OUT_int32_first_ostring__IN_string(Database *_db, FEMethod_C *_m, Object *_o, const char * s, eyedblib::int32 &retarg)
02780 {
02781   PACK_INIT(_db);
02782 
02783   //
02784   // User Implementation
02785   //
02786 
02787   OString * os = IdbOString_c(_o);
02788 
02789   retarg = os->first(s);
02790 
02791   return Success;
02792 }
02793 
02794 //
02795 // int32 OString::last(in string) [ostringmthfe.cc]
02796 //
02797 
02798 Status
02799 __method__OUT_int32_last_ostring__IN_string(Database *_db, FEMethod_C *_m, Object *_o, const char * arg1, eyedblib::int32 &retarg)
02800 {
02801   PACK_INIT(_db);
02802 
02803   //
02804   // User Implementation
02805   //
02806 
02807   return Exception::make(IDB_ERROR, "Not implemented");
02808 }
02809 
02810 //
02811 // int32 OString::find(in string, in int32) [ostringmthfe.cc]
02812 //
02813 
02814 Status
02815 __method__OUT_int32_find_ostring__IN_string__IN_int32(Database *_db, FEMethod_C *_m, Object *_o, const char * s, const eyedblib::int32 offset, eyedblib::int32 &retarg)
02816 {
02817   PACK_INIT(_db);
02818 
02819   //
02820   // User Implementation
02821   //
02822 
02823   OString * os = IdbOString_c(_o);
02824 
02825   retarg = os->find(s, offset);
02826 
02827   return Success;
02828 }
02829 
02830 //
02831 // ostring* OString::substr(in int32, in int32) [ostringmthfe.cc]
02832 //
02833 
02834 Status
02835 __method__OUT_ostring_REF__substr_ostring__IN_int32__IN_int32(Database *_db, FEMethod_C *_m, Object *_o, const eyedblib::int32 offset, const eyedblib::int32 len, OString * &retarg)
02836 {
02837   PACK_INIT(_db);
02838 
02839   //
02840   // User Implementation
02841   //
02842 
02843   OString * os = IdbOString_c(_o);
02844 
02845   retarg = os->substr(offset, len);
02846   retarg->setDatabase(_db);
02847 
02848   return Success;
02849 }
02850 
02851 //
02852 // ostring* OString::substr(in string, in int32) [ostringmthfe.cc]
02853 //
02854 
02855 Status
02856 __method__OUT_ostring_REF__substr_ostring__IN_string__IN_int32(Database *_db, FEMethod_C *_m, Object *_o, const char * regexp, const eyedblib::int32 offset, OString * &retarg)
02857 {
02858   PACK_INIT(_db);
02859 
02860   //
02861   // User Implementation
02862   //
02863 
02864   OString * os = IdbOString_c(_o);
02865 
02866   retarg = os->substr(regexp, offset);
02867   retarg->setDatabase(_db);
02868 
02869   return Success;
02870 }
02871 
02872 //
02873 // ostring* OString::erase(in int32, in int32) [ostringmthfe.cc]
02874 //
02875 
02876 Status
02877 __method__OUT_ostring_REF__erase_ostring__IN_int32__IN_int32(Database *_db, FEMethod_C *_m, Object *_o, const eyedblib::int32 offset, const eyedblib::int32 len, OString * &retarg)
02878 {
02879   PACK_INIT(_db);
02880 
02881   //
02882   // User Implementation
02883   //
02884 
02885   OString * os = IdbOString_c(_o);
02886 
02887   os->erase(offset, len);
02888 
02889   retarg = os;
02890 
02891   return Success;
02892 }
02893 
02894 //
02895 // ostring* OString::replace(in int32, in int32, in string) [ostringmthfe.cc]
02896 //
02897 
02898 Status
02899 __method__OUT_ostring_REF__replace_ostring__IN_int32__IN_int32__IN_string(Database *_db, FEMethod_C *_m, Object *_o, const eyedblib::int32 offset, const eyedblib::int32 len, const char * s, OString * &retarg)
02900 {
02901   PACK_INIT(_db);
02902 
02903   //
02904   // User Implementation
02905   //
02906 
02907   OString * os = IdbOString_c(_o);
02908 
02909   os->replace(offset, len, s);
02910   
02911   retarg = os;
02912   
02913   return Success;
02914 }
02915 
02916 //
02917 // ostring* OString::replace(in int32, in int32, in string, in int32) [ostringmthfe.cc]
02918 //
02919 
02920 Status
02921 __method__OUT_ostring_REF__replace_ostring__IN_int32__IN_int32__IN_string__IN_int32(Database *_db, FEMethod_C *_m, Object *_o, const eyedblib::int32 offset, const eyedblib::int32 len, const char * s, const eyedblib::int32 len2, OString * &retarg)
02922 {
02923   PACK_INIT(_db);
02924 
02925   //
02926   // User Implementation
02927   //
02928 
02929   OString * os = IdbOString_c(_o);
02930 
02931   os->replace(offset, len, s, len2);
02932   
02933   retarg = os;
02934 
02935   return Success;
02936 }
02937 
02938 //
02939 // ostring* OString::replace(in int32, in int32, in string, in int32, in int32) [ostringmthfe.cc]
02940 //
02941 
02942 Status
02943 __method__OUT_ostring_REF__replace_ostring__IN_int32__IN_int32__IN_string__IN_int32__IN_int32(Database *_db, FEMethod_C *_m, Object *_o, const eyedblib::int32 offset, const eyedblib::int32 len, const char * s, const eyedblib::int32 offset2, const eyedblib::int32 len2, OString * &retarg)
02944 {
02945   PACK_INIT(_db);
02946 
02947   //
02948   // User Implementation
02949   //
02950 
02951   OString * os = IdbOString_c(_o);
02952 
02953   os->replace(offset, len, s, offset2, len2);
02954   
02955   retarg = os;
02956 
02957   return Success;
02958 }
02959 
02960 //
02961 // ostring* OString::replace(in string, in string) [ostringmthfe.cc]
02962 //
02963 
02964 Status
02965 __method__OUT_ostring_REF__replace_ostring__IN_string__IN_string(Database *_db, FEMethod_C *_m, Object *_o, const char * s1, const char * s2, OString * &retarg)
02966 {
02967   PACK_INIT(_db);
02968 
02969   //
02970   // User Implementation
02971   //
02972 
02973   OString * os = IdbOString_c(_o);
02974 
02975   os->replace(s1, s2);
02976   
02977   retarg = os;
02978 
02979   return Success;
02980 }
02981 
02982 //
02983 // void OString::reset() [ostringmthfe.cc]
02984 //
02985 
02986 Status
02987 __method__OUT_void_reset_ostring(Database *_db, FEMethod_C *_m, Object *_o)
02988 {
02989   PACK_INIT(_db);
02990 
02991   //
02992   // User Implementation
02993   //
02994 
02995   OString * os = IdbOString_c(_o);
02996   os->reset();
02997 
02998   return Success;
02999 }
03000 
03001 //
03002 // ostring* OString::assign(in string, in int32) [ostringmthfe.cc]
03003 //
03004 
03005 Status
03006 __method__OUT_ostring_REF__assign_ostring__IN_string__IN_int32(Database *_db, FEMethod_C *_m, Object *_o, const char * s, const eyedblib::int32 len, OString * &retarg)
03007 {
03008   PACK_INIT(_db);
03009 
03010   //
03011   // User Implementation
03012   //
03013 
03014   OString * os = IdbOString_c(_o);
03015 
03016   os->assign(s, len);
03017 
03018   retarg = os;
03019 
03020   return Success;
03021 }
03022 
03023 //
03024 // ostring* OString::assign(in string, in int32, in int32) [ostringmthfe.cc]
03025 //
03026 
03027 Status
03028 __method__OUT_ostring_REF__assign_ostring__IN_string__IN_int32__IN_int32(Database *_db, FEMethod_C *_m, Object *_o, const char * s, const eyedblib::int32 offset, const eyedblib::int32 len, OString * &retarg)
03029 {
03030   PACK_INIT(_db);
03031 
03032   //
03033   // User Implementation
03034   //
03035 
03036   OString * os = IdbOString_c(_o);
03037 
03038   os->assign(s, offset, len);
03039 
03040   retarg = os;
03041 
03042   return Success;
03043 }
03044 
03045 //
03046 // ostring* OString::toLower() [ostringmthfe.cc]
03047 //
03048 
03049 Status
03050 __method__OUT_ostring_REF__toLower_ostring(Database *_db, FEMethod_C *_m, Object *_o, OString * &retarg)
03051 {
03052   PACK_INIT(_db);
03053 
03054   //
03055   // User Implementation
03056   //
03057 
03058   OString * os = IdbOString_c(_o);
03059   
03060   os->toLower();
03061 
03062   retarg = os;
03063 
03064   return Success;
03065 }
03066 
03067 //
03068 // ostring* OString::toUpper() [ostringmthfe.cc]
03069 //
03070 
03071 Status
03072 __method__OUT_ostring_REF__toUpper_ostring(Database *_db, FEMethod_C *_m, Object *_o, OString * &retarg)
03073 {
03074   PACK_INIT(_db);
03075 
03076   //
03077   // User Implementation
03078   //
03079 
03080   OString * os = IdbOString_c(_o);
03081   
03082   os->toUpper();
03083 
03084   retarg = os;
03085 
03086   return Success;
03087 }
03088 
03089 //
03090 // ostring* OString::rtrim() [ostringmthfe.cc]
03091 //
03092 
03093 Status
03094 __method__OUT_ostring_REF__rtrim_ostring(Database *_db, FEMethod_C *_m, Object *_o, OString * &retarg)
03095 {
03096   PACK_INIT(_db);
03097 
03098   //
03099   // User Implementation
03100   //
03101   
03102   OString * os = IdbOString_c(_o);
03103 
03104   os->rtrim();
03105 
03106   retarg = os;
03107 
03108   return Success;
03109 }
03110 
03111 //
03112 // ostring* OString::ltrim() [ostringmthfe.cc]
03113 //
03114 
03115 Status
03116 __method__OUT_ostring_REF__ltrim_ostring(Database *_db, FEMethod_C *_m, Object *_o, OString * &retarg)
03117 {
03118   PACK_INIT(_db);
03119 
03120   //
03121   // User Implementation
03122   //
03123 
03124   OString * os = IdbOString_c(_o);
03125 
03126   os->ltrim();
03127 
03128   retarg = os;
03129 
03130   return Success;
03131 }
03132 
03133 //
03134 // int32 OString::compare(in string) [ostringmthfe.cc]
03135 //
03136 
03137 Status
03138 __method__OUT_int32_compare_ostring__IN_string(Database *_db, FEMethod_C *_m, Object *_o, const char * s, eyedblib::int32 &retarg)
03139 {
03140   PACK_INIT(_db);
03141 
03142   //
03143   // User Implementation
03144   //
03145 
03146   OString * os = IdbOString_c(_o);
03147 
03148   retarg = os->compare(s);
03149   
03150   return Success;
03151 }
03152 
03153 //
03154 // int32 OString::compare(in string, in int32) [ostringmthfe.cc]
03155 //
03156 
03157 Status
03158 __method__OUT_int32_compare_ostring__IN_string__IN_int32(Database *_db, FEMethod_C *_m, Object *_o, const char * s, const eyedblib::int32 to, eyedblib::int32 &retarg)
03159 {
03160   PACK_INIT(_db);
03161 
03162   //
03163   // User Implementation
03164   //
03165 
03166   OString * os = IdbOString_c(_o);
03167 
03168   retarg = os->compare(s, to);
03169 
03170   return Success;
03171 }
03172 
03173 //
03174 // int32 OString::compare(in string, in int32, in int32) [ostringmthfe.cc]
03175 //
03176 
03177 Status
03178 __method__OUT_int32_compare_ostring__IN_string__IN_int32__IN_int32(Database *_db, FEMethod_C *_m, Object *_o, const char * s, const eyedblib::int32 from, const eyedblib::int32 to, eyedblib::int32 &retarg)
03179 {
03180   PACK_INIT(_db);
03181 
03182   //
03183   // User Implementation
03184   //
03185 
03186   OString * os = IdbOString_c(_o);
03187 
03188   retarg = os->compare(s, from, to);
03189 
03190   return Success;
03191 }
03192 
03193 //
03194 // int32 OString::is_null() [ostringmthfe.cc]
03195 //
03196 
03197 Status
03198 __method__OUT_int32_is_null_ostring(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int32 &retarg)
03199 {
03200   PACK_INIT(_db);
03201 
03202   //
03203   // User Implementation
03204   //
03205 
03206   OString * os = IdbOString_c(_o);
03207 
03208   retarg = os->is_null();
03209 
03210   return Success;
03211 }
03212 
03213 //
03214 // int32 OString::match(in string) [ostringmthfe.cc]
03215 //
03216 
03217 Status
03218 __method__OUT_int32_match_ostring__IN_string(Database *_db, FEMethod_C *_m, Object *_o, const char * regexp, eyedblib::int32 &retarg)
03219 {
03220   PACK_INIT(_db);
03221 
03222   //
03223   // User Implementation
03224   //
03225 
03226   OString * os = IdbOString_c(_o);
03227 
03228   retarg = os->match(regexp);
03229  
03230   return Success;
03231 }
03232 
03233 //
03234 // int32 OString::length() [ostringmthfe.cc]
03235 //
03236 
03237 Status
03238 __method__OUT_int32_length_ostring(Database *_db, FEMethod_C *_m, Object *_o, eyedblib::int32 &retarg)
03239 {
03240   PACK_INIT(_db);
03241 
03242   //
03243   // User Implementation
03244   //
03245 
03246   OString * o = IdbOString_c(_o);
03247   retarg = o->length();
03248 
03249   return Success;
03250 }
03251 
03252 //
03253 // string[] OString::split(in string) [ostringmthfe.cc]
03254 //
03255 
03256 Status
03257 __method__OUT_string_ARRAY__split_ostring__IN_string(Database *_db, FEMethod_C *_m, Object *_o, const char * separator, char * * &retarg, int &retarg_cnt)
03258 {
03259   PACK_INIT(_db);
03260 
03261   //
03262   // User Implementation
03263   //
03264 
03265   OString * os = IdbOString_c(_o);
03266   
03267   int token_count = 0;
03268   
03269   char ** tokens = os->split(separator, token_count);
03270 
03271   retarg = Argument::dup(tokens, token_count);
03272   retarg_cnt = token_count;
03273 
03274   for(int i=0; i < token_count; ++i)
03275     {
03276       delete tokens[i];
03277     }
03278   delete tokens;
03279 
03280   return Success;
03281 }
03282 
03283 //
03284 // string[] OString::regexp_split(in string) [ostringmthfe.cc]
03285 //
03286 
03287 Status
03288 __method__OUT_string_ARRAY__regexp_split_ostring__IN_string(Database *_db, FEMethod_C *_m, Object *_o, const char * regexp_separator, char * * &retarg, int &retarg_cnt)
03289 {
03290   PACK_INIT(_db);
03291 
03292   //
03293   // User Implementation
03294   //
03295 
03296   OString * os = IdbOString_c(_o);
03297   
03298   int token_count = 0;
03299   
03300   char ** tokens = os->regexp_split(regexp_separator, token_count);
03301 
03302   retarg = Argument::dup(tokens, token_count);
03303   retarg_cnt = token_count;
03304 
03305   for(int i=0; i < token_count; ++i)
03306     {
03307       delete tokens[i];
03308     }
03309   delete tokens;
03310 
03311   return Success;
03312 }
03313 

Generated on Mon Dec 22 18:16:14 2008 for eyedb by  doxygen 1.5.3