From 5987ac2fff26eacb0e91ce78f85bf1ebde3dd149 Mon Sep 17 00:00:00 2001 From: Johannes Lode Date: Mon, 21 Jan 2019 16:11:40 +0100 Subject: [PATCH 01/16] Changes in rltime interface for relative adjustments. To avoid time calculation errors by mixing absolute time values with relative time value in the same class, the interface was changed for the application of relative amounts of time against absolute points in time. Added interface for simple formatting options of time differences. --- rllib/lib/rleibnetip.cpp | 7 +- rllib/lib/rlhistorylogger.cpp | 14 +- rllib/lib/rlhistorylogger.h | 3 +- rllib/lib/rltime.cpp | 594 ++++++++++++++++++++-------------- rllib/lib/rltime.h | 64 +++- 5 files changed, 421 insertions(+), 261 deletions(-) diff --git a/rllib/lib/rleibnetip.cpp b/rllib/lib/rleibnetip.cpp index 82546373..ba2e0601 100644 --- a/rllib/lib/rleibnetip.cpp +++ b/rllib/lib/rleibnetip.cpp @@ -58,7 +58,8 @@ static void *eib_reader(void *arg) // thread THREAD_PARAM *p = (THREAD_PARAM *) arg; rlEIBnetIP *eib = (rlEIBnetIP *) p->user; rlEIBnetIP::PDU pdu; - rlTime now, last, diff; + rlTime now, last; + double diff; int ret, len; int recseq = 0; int expected_recseq = 0; @@ -136,7 +137,7 @@ static void *eib_reader(void *arg) // thread } } diff = now - last; - if(eib->isConnected() && eib->channelid != -1 && diff.second > 50) + if(eib->isConnected() && eib->channelid != -1 && diff > 50) { // send heartbeat if(eib->debug) ::printf("send heartbeat\n"); pdu.headersize = EIB_HEADERSIZE; @@ -789,7 +790,7 @@ int rlEIBnetIP::getText(const char *name, char *text, int maxlen) int rlEIBnetIP::setText(const char *name, const char *text) { - if(name == NULL || text == NULL) return rlEIBnetIP::EIBERROR; + if(name == NULL || text == NULL) return rlEIBnetIP::EIBERROR; char buf[16]; int length = strlen(text); unsigned int a1,a2,a3,daddr; diff --git a/rllib/lib/rlhistorylogger.cpp b/rllib/lib/rlhistorylogger.cpp index b69528b5..1ca50fa8 100644 --- a/rllib/lib/rlhistorylogger.cpp +++ b/rllib/lib/rlhistorylogger.cpp @@ -26,13 +26,7 @@ rlHistoryLogger::rlHistoryLogger(const char *csvName, int maxHoursPerFile, int m max_hours_per_file = maxHoursPerFile; if(max_hours_per_file <= 0) max_hours_per_file = 1; val = max_hours_per_file; - time_diff.hour = val % 24; - val = val / 24; - time_diff.day = val % 31; // we are on the save side if we assume a month with 31 days - val = val / 31; - time_diff.month = val % 12; - val = val / 12; - time_diff.year = val; + time_diff = val * 3600; max_lines_in_memory = maxLinesInMemory; if(max_lines_in_memory <= 0) max_lines_in_memory = 1; current_file = -1; @@ -164,16 +158,18 @@ int rlHistoryLogger::openFile() current_file = i_oldest; sprintf(csv_file_name,"%s%d.csv",csv_name,i_oldest); fout = fopen(csv_file_name,"w"); + file_start_time.getLocalTime(); } else { // open next file for writing current_file++; - if(current_file >= 10) current_file = 0; + if(current_file >= 10) + current_file = 0; sprintf(csv_file_name,"%s%d.csv",csv_name,current_file); fout = fopen(csv_file_name,"w"); + file_start_time.getLocalTime(); } - file_start_time.getLocalTime(); return 0; } diff --git a/rllib/lib/rlhistorylogger.h b/rllib/lib/rlhistorylogger.h index f7a37439..18e47659 100644 --- a/rllib/lib/rlhistorylogger.h +++ b/rllib/lib/rlhistorylogger.h @@ -47,7 +47,8 @@ class rlHistoryLogger int pushLineToFile(const char *line); int openFile(); rlHistoryLogLine *first_line,*current_line; - rlTime time,file_start_time,time_diff; + rlTime time,file_start_time; + time_t time_diff; FILE *fout; int max_hours_per_file, max_lines_in_memory, current_file; char *csv_name, *csv_file_name; diff --git a/rllib/lib/rltime.cpp b/rllib/lib/rltime.cpp index 1855b33e..9c214a83 100644 --- a/rllib/lib/rltime.cpp +++ b/rllib/lib/rltime.cpp @@ -1,4 +1,3 @@ - /*************************************************************************** rltime.cpp - description ------------------- @@ -19,6 +18,8 @@ #include #include #include +#include +#include #ifdef RLUNIX #include @@ -58,8 +59,74 @@ VAX_BIN_TIME; #ifdef RLWIN32 #include #include + +// gmtime_r can be defined by mingw +#ifndef gmtime_r +static struct tm* gmtime_r(const time_t* t, struct tm* r) +{ + // gmtime is threadsafe in windows because it uses TLS + struct tm *theTm = gmtime(t); + if (theTm) { + *r = *theTm; + return r; + } else { + return 0; + } +} +#endif // gmtime_r + +// gmtime_r can be defined by mingw +#ifndef localtime_r +static struct tm* localtime_r(const time_t* t, struct tm* r) +{ + // localtime is threadsafe in windows because it uses TLS + struct tm *theTm = localtime(t); + if (theTm) { + *r = *theTm; + return r; + } else { + return 0; + } +} +#endif // localtime_r + #endif +void rlTime::normalizeAsDate() +{ + if (year) + { + // read members + tm t; + memset(&t, 0, sizeof(t)); + t.tm_year = year - 1900; + t.tm_mon = month - 1; + t.tm_mday = day; + t.tm_hour = hour; + t.tm_min = minute; + t.tm_sec = second; + + // normalize milliseconds + while (millisecond > 1000) + { + ++t.tm_sec; + millisecond -= 1000; + } + + // normalize time structure + auto ep = timegm(&t); + gmtime_r(&ep, &t); + + // set members + year = 1900 + t.tm_year; + month = 1 + t.tm_mon; + day = t.tm_mday; + hour = t.tm_hour; + minute = t.tm_min; + second = t.tm_sec; + } +} + rlTime::rlTime(int Year, int Month, int Day, int Hour, int Minute, int Second, int Millisecond) { year = Year; @@ -69,6 +136,8 @@ rlTime::rlTime(int Year, int Month, int Day, int Hour, int Minute, int Second, i minute = Minute; second = Second; millisecond = Millisecond; + + normalizeAsDate(); } rlTime::~rlTime() @@ -85,6 +154,7 @@ void rlTime::setTimeFromString(const char *time_string) second = 0; millisecond = 0; sscanf(time_string,"%d-%d-%d %d:%d:%d %d",&year,&month,&day, &hour,&minute,&second, &millisecond); + normalizeAsDate(); } void rlTime::setTimeFromIsoString(const char *iso_time_string) @@ -97,6 +167,7 @@ void rlTime::setTimeFromIsoString(const char *iso_time_string) second = 0; millisecond = 0; sscanf(iso_time_string,"%d-%d-%dT%d:%d:%d.%d",&year,&month,&day, &hour,&minute,&second, &millisecond); + normalizeAsDate(); } const char *rlTime::getTimeString() @@ -116,24 +187,21 @@ void rlTime::getLocalTime() #ifdef RLUNIX time_t t; struct tm *tms; + struct tm tmsbuf; struct timeval tv; struct timezone tz; time(&t); - tms = localtime(&t); + tms = localtime_r(&t, &tmsbuf); gettimeofday(&tv, &tz); - /* adjust year and month */ - tms->tm_year += 1900; - tms->tm_mon += 1; - millisecond = (int)tv.tv_usec / 1000; second = (int)tms->tm_sec; minute = (int)tms->tm_min; hour = (int)tms->tm_hour; day = (int)tms->tm_mday; - month = (int)tms->tm_mon; - year = (int)tms->tm_year; + month = (int)tms->tm_mon + 1; + year = (int)tms->tm_year + 1900; #endif #ifdef __VMS @@ -165,25 +233,22 @@ int rlTime::getFileModificationTime(const char *filename) { struct stat statbuf; struct tm *tms; + struct tm tmsbuf; #ifdef RLUNIX if(lstat(filename,&statbuf)) return -1; #else if(stat(filename,&statbuf)) return -1; #endif - tms = localtime(&statbuf.st_mtime); - - /* adjust year and month */ - tms->tm_year += 1900; - tms->tm_mon += 1; + tms = localtime_r(&statbuf.st_mtime, &tmsbuf); millisecond = 0; second = (int)tms->tm_sec; minute = (int)tms->tm_min; hour = (int)tms->tm_hour; day = (int)tms->tm_mday; - month = (int)tms->tm_mon; - year = (int)tms->tm_year; + month = (int)tms->tm_mon + 1; + year = (int)tms->tm_year + 1900; return 0; } @@ -258,196 +323,123 @@ void rlTime::setLocalTime() #endif } -rlTime& rlTime::operator+=(rlTime &time) -{ - rlTime t; - t = *this + time; - *this = t; - return *this; -} - -rlTime& rlTime::operator-=(rlTime &time) +rlTime& rlTime::operator+=(time_t seconds) { - rlTime t; - t = *this - time; - *this = t; - return *this; -} + if (0 > seconds) + return this->operator -=(-seconds); -rlTime rlTime::operator+(rlTime &time) -{ - int maxmonth,y,m; - rlTime t; - - t.year = year + time.year; - t.month = month + time.month; - t.day = day + time.day; - t.hour = hour + time.hour; - t.minute = minute + time.minute; - t.second = second + time.second; - t.millisecond = millisecond + time.millisecond; - - y = t.year; - if(t.month > 12 || (t.month==12 && t.day==31 && t.hour>=24)) y++; - m = t.month; - if(t.month > 12 || (t.month==12 && t.day==31 && t.hour>=24)) m = 1; - - switch(m % 12) + auto d = std::div(seconds, time_t(60)); + second += d.rem; + if (d.quot) { - case 1: // january - maxmonth = 31; - break; - case 2: // february - maxmonth = 28; - // Annus bisextilis (calendario Gregoriano) - if(y%4==0) + d = std::div(d.quot, time_t(60)); + minute += d.rem; + if (d.quot) + { + d = std::div(d.quot, time_t(24)); + hour += d.rem; + if (d.quot) { - maxmonth = 29; - int hth = y % 100; - int special = y % 400; // 1900-+-2100-2200-2300-+-2500-2600-2700 - if(hth == 0 && special != 0) maxmonth = 28; - } - break; - case 3: // march - maxmonth = 31; - break; - case 4: // april - maxmonth = 30; - break; - case 5: // may - maxmonth = 31; - break; - case 6: // june - maxmonth = 30; - break; - case 7: // july - maxmonth = 31; - break; - case 8: // august - maxmonth = 31; - break; - case 9: // september - maxmonth = 30; - break; - case 10: // october - maxmonth = 31; - break; - case 11: // november - maxmonth = 30; - break; - case 12: // december - maxmonth = 31; - break; - default: - maxmonth = 31; - break; + d = std::div(d.quot, time_t(31)); + day += d.rem; + if (d.quot) + { + d = std::div(d.quot, time_t(12)); + month += d.rem; + year += d.quot; + } + } + } } - if(t.millisecond >= 1000) { t.second++; t.millisecond -= 1000; } - if(t.second >= 60) { t.minute++; t.second -= 60; } - if(t.minute >= 60) { t.hour++, t.minute -= 60; } - if(t.hour >= 24) { t.day++; t.hour -= 24; } - if(t.day > maxmonth) { t.month++; t.day -= maxmonth; } - if(t.month > 12) { t.year++; t.month -= 12; } - return t; + this->normalizeAsDate(); + + return *this; } -rlTime rlTime::operator-(rlTime &time) +rlTime& rlTime::operator-=(time_t seconds) { - int maxmonth,y,m; - rlTime t; - - y = 0; - t.year = year - time.year; - t.month = month - time.month; - t.day = day - time.day; - t.hour = hour - time.hour; - t.minute = minute - time.minute; - t.second = second - time.second; - t.millisecond = millisecond - time.millisecond; - - if(t.millisecond < 0) { t.second--; t.millisecond += 1000; } - if(t.second < 0) { t.minute--; t.second += 60; } - if(t.minute < 0) { t.hour--, t.minute += 60; } - if(t.hour < 0) { t.day--; t.hour += 24; } - - if(t.day < 0) + if (0 > seconds) + return this->operator +=(-seconds); + + auto d = std::div(seconds, time_t(60)); + second -= d.rem; + if (second < 0) { - t.month--; - y = t.year; - m = t.month; - if(m <= 0) { m += 12; y--; } - switch(m % 12) + ++d.quot; + second += 60; + } + if (d.quot) + { + d = std::div(d.quot, time_t(60)); + minute -= d.rem; + if (minute < 0) + { + ++d.quot; + minute += 60; + } + if (d.quot) { - case 1: // january - maxmonth = 31; - break; - case 2: // february - maxmonth = 28; - // Annus bisextilis (calendario Gregoriano) - if(y%4==0) + d = std::div(d.quot, time_t(24)); + hour -= d.rem; + if (hour < 0) + { + ++d.quot; + hour += 24; + } + if (d.quot) + { + d = std::div(d.quot, time_t(31)); + day -= d.rem; + if (day < 0) { - maxmonth = 29; - int hth = y % 100; - int special = y % 400; // 1900-+-2100-2200-2300-+-2500-2600-2700 - if(hth == 0 && special != 0) maxmonth = 28; - } - break; - case 3: // march - maxmonth = 31; - break; - case 4: // april - maxmonth = 30; - break; - case 5: // may - maxmonth = 31; - break; - case 6: // june - maxmonth = 30; - break; - case 7: // july - maxmonth = 31; - break; - case 8: // august - maxmonth = 31; - break; - case 9: // september - maxmonth = 30; - break; - case 10: // october - maxmonth = 31; - break; - case 11: // november - maxmonth = 30; - break; - case 12: // december - maxmonth = 31; - break; - default: - maxmonth = 31; - break; + ++d.quot; + day += 31; + } + if (d.quot) + { + d = std::div(d.quot, time_t(12)); + month -= d.rem; + if (month < 0) + { + ++d.quot; + month += 12; + } + year -= d.quot; + } + } } - t.day += maxmonth; } - if(y >= 0) - { - //printf("after christ was born. thus everything is ok.\n"); - } - else - { - //printf("before christ was born. now also ok\n"); - { t.month++; t.day -= 30; } - if(t.day < 30) { t.day++; t.hour -= 24; } - if(t.hour < 0 ) { t.hour++; t.minute -= 60; } - if(t.minute < 0 ) { t.minute++; t.second -= 60; } - if(t.second < 0 ) { t.second++; t.millisecond -= 1000; } - } + this->normalizeAsDate(); + + return *this; +} + +rlTime rlTime::operator+(time_t seconds) const +{ + rlTime t(*this); + + t += seconds; + + return t; +} + +rlTime rlTime::operator-(time_t seconds) const +{ + rlTime t(*this); + + t -= seconds; return t; } -int rlTime::operator==(rlTime &time) +double rlTime::operator-(const rlTime &time) const +{ + return this->secondsSinceEpoche() - time.secondsSinceEpoche(); +} + +int rlTime::operator==(const rlTime &time) const { if(year != time.year) return 0; if(month != time.month) return 0; @@ -460,71 +452,108 @@ int rlTime::operator==(rlTime &time) return 1; } -int rlTime::operator<(rlTime &time) +int rlTime::operator<=(const rlTime &time) const { - rlTime diff,t1; - - t1.year = year; - t1.month = month; - t1.day = day; - t1.hour = hour; - t1.minute = minute; - t1.second = second; - t1.millisecond = millisecond; - //printf("=(const rlTime &time) const { if((*this) == time) return 1; - if((*this) < time) return 1; + if((*this) > time) return 1; return 0; } -int rlTime::operator>(rlTime &time) +int rlTime::operator<(const rlTime &time) const { - rlTime diff,t1; - - t1.year = year; - t1.month = month; - t1.day = day; - t1.hour = hour; - t1.minute = minute; - t1.second = second; - t1.millisecond = millisecond; - //printf(">t1=%s\n",t1.getTimeString()); - //printf(">time=%s\n",time.getTimeString()); - diff = time - t1; - //printf(">diff=%s\n",diff.getTimeString()); - if(diff.year < 0) return 1; - if(diff.month < 0) return 1; - if(diff.day < 0) return 1; - if(diff.hour < 0) return 1; - if(diff.minute < 0) return 1; - if(diff.second < 0) return 1; - if(diff.millisecond < 0) return 1; + if (this->year < time.year) + return 1; + else if (this->year == time.year) + { + if (this->month < time.month) + return 1; + else if (this->month == time.month) + { + if (this->day < time.day) + return 1; + else if (this->day == time.day) + { + if (this->hour < time.hour) + return 1; + else if (this->hour == time.hour) + { + if (this->minute < time.minute) + return 1; + else if (this->minute == time.minute) + { + if (this->second < time.second) + return 1; + else if (this->second == time.second) + { + if (this->millisecond < time.millisecond) + return 1; + } + } + } + } + } + } + return 0; } -int rlTime::operator>=(rlTime &time) +int rlTime::operator>(const rlTime &time) const { - if((*this) == time) return 1; - if((*this) > time) return 1; + if (this->year > time.year) + return 1; + else if (this->year == time.year) + { + if (this->month > time.month) + return 1; + else if (this->month == time.month) + { + if (this->day > time.day) + return 1; + else if (this->day == time.day) + { + if (this->hour > time.hour) + return 1; + else if (this->hour == time.hour) + { + if (this->minute > time.minute) + return 1; + else if (this->minute == time.minute) + { + if (this->second > time.second) + return 1; + else if (this->second == time.second) + { + if (this->millisecond > time.millisecond) + return 1; + } + } + } + } + } + } + return 0; } -double rlTime::secondsSinceEpoche() +time_t rlTime::timegm(struct tm* tm_) +{ + auto t = mktime(tm_); + struct tm ltm; + struct tm gtm; + auto lt = localtime_r(&t, <m); + auto gt = gmtime_r(&t, >m); + auto diff = mktime(lt) - mktime(gt); + return t + diff; +} + +double rlTime::secondsSinceEpoche() const { struct tm begin; struct tm test; @@ -534,10 +563,11 @@ double rlTime::secondsSinceEpoche() begin.tm_year = 70; begin.tm_mon = 0; - begin.tm_mday = 1; + begin.tm_mday = 2; // see below begin.tm_hour = 0; begin.tm_min = 0; begin.tm_sec = 0; + begin.tm_isdst = 0; test.tm_year = year - 1900; test.tm_mon = month - 1; @@ -545,10 +575,100 @@ double rlTime::secondsSinceEpoche() test.tm_hour = hour; test.tm_min = minute; test.tm_sec = second; + test.tm_isdst = -1; - time_t t0 = mktime(&begin); - time_t t1 = mktime(&test); + time_t t0 = timegm(&begin) - 86400; // a weak workaround: on several platform (especially Windows 7 in Europe Timezones) mktime() is not capable of converting 19070-01-01T00:00:00 into seconds, because they try to convert it into UTC instead of localtime + time_t t1 = mktime(&test); // this might be error prone, see above return difftime(t1,t0) + (((double) millisecond) / 1000); } +const char* rlTime::formatTimeDiff(double tdiff, enum FormatLargestUnit fmt, unsigned bufferLength, char* buffer) +{ + if (0 < bufferLength) + { + if (not buffer) + buffer = new char[bufferLength]; + + bool isNegative = (tdiff < 0); + tdiff = fabs(tdiff); + int milliseconds = ((int) (tdiff * 1000)) % 1000; + time_t seconds = (time_t) tdiff; + lldiv_t minutes, hours, days, weeks; + + minutes = lldiv(seconds, 60); + + const char* fmtString = "%s%d:%02d.%03d"; + switch (fmt) + { + case MinutesSecondsFraction: + fmtString = "%s%d:%02d.%03d"; + snprintf(buffer, bufferLength, fmtString, (isNegative ? "-" : ""), minutes.quot, minutes.rem, milliseconds); + break; + case HoursMinutesSecondsFraction: + fmtString = "%s%d:%02d:%02d.%03d"; + hours = lldiv(minutes.quot, 60); + snprintf(buffer, bufferLength, fmtString, (isNegative ? "-" : ""), hours.quot, hours.rem, minutes.rem, milliseconds); + break; + case DaysHoursMinutesSecondsFraction: + fmtString = "%s%d:%02d:%02d:%02d.%03d"; + hours = lldiv(minutes.quot, 60); + days = lldiv(hours.quot, 24); + snprintf(buffer, bufferLength, fmtString, (isNegative ? "-" : ""), days.quot, days.rem, hours.rem, minutes.rem, milliseconds); + break; + case WeeksDaysHoursMinutesSecondsFraction: + fmtString = "%s%d:%d:%02d:%02d:%02d.%03d"; + hours = lldiv(minutes.quot, 60); + days = lldiv(hours.quot, 24); + weeks = lldiv(days.quot, 7); + snprintf(buffer, bufferLength, fmtString, (isNegative ? "-" : ""), weeks.quot, weeks.rem, days.rem, hours.rem, minutes.rem, milliseconds); + break; + case MinutesSeconds: + fmtString = "%s%d:%02d"; + snprintf(buffer, bufferLength, fmtString, (isNegative ? "-" : ""), minutes.quot, minutes.rem); + break; + case HoursMinutesSeconds: + fmtString = "%s%d:%02d:%02d"; + hours = lldiv(minutes.quot, 60); + snprintf(buffer, bufferLength, fmtString, (isNegative ? "-" : ""), hours.quot, hours.rem, minutes.rem); + break; + case DaysHoursMinutesSeconds: + fmtString = "%s%d:%02d:%02d:%02d"; + hours = lldiv(minutes.quot, 60); + days = lldiv(hours.quot, 24); + snprintf(buffer, bufferLength, fmtString, (isNegative ? "-" : ""), days.quot, days.rem, hours.rem, minutes.rem); + break; + case WeeksDaysHoursMinutesSeconds: + fmtString = "%s%d:%d:%02d:%02d:%02d"; + hours = lldiv(minutes.quot, 60); + days = lldiv(hours.quot, 24); + weeks = lldiv(days.quot, 7); + snprintf(buffer, bufferLength, fmtString, (isNegative ? "-" : ""), weeks.quot, weeks.rem, days.rem, hours.rem, minutes.rem); + break; + } +} + + return buffer; +} + +const char* rlTime::formatTimeDiff(const rlTime& t1, const rlTime& t2, enum FormatLargestUnit fmt, unsigned bufferLength, char* buffer) +{ + return formatTimeDiff(t2 - t1, fmt, bufferLength, buffer); +} + +std::string rlTime::formatTimeDiffString(double tdiff, enum FormatLargestUnit fmt) +{ + char strBuffer[32]; + + const char* result = formatTimeDiff(tdiff, fmt, sizeof(strBuffer), strBuffer); + + std::string diffStr(result); + + return diffStr; +} + +std::string rlTime::formatTimeDiffString(const rlTime& t1, const rlTime& t2, enum FormatLargestUnit fmt) +{ + return formatTimeDiffString(t2 - t1, fmt); +} + diff --git a/rllib/lib/rltime.h b/rllib/lib/rltime.h index 97d1583e..0b32b55e 100644 --- a/rllib/lib/rltime.h +++ b/rllib/lib/rltime.h @@ -18,14 +18,17 @@ #define _RL_TIME_H_ #include "rldefine.h" +#include +#include /*!
-class for handling time.
+class for handling absolute points in time. It supports also simple formatting of time differences.
 
*/ class rlTime { public: rlTime(int Year=0, int Month=0, int Day=0, int Hour=0, int Minute=0, int Second=0, int Millisecond=0); + rlTime(double) = delete; virtual ~rlTime(); const char *getTimeString(); const char *getIsoTimeString(); @@ -38,16 +41,21 @@ class rlTime void setTimeFromString(const char *time_string); void setTimeFromIsoString(const char *iso_time_string); void setLocalTime(); - double secondsSinceEpoche(); - rlTime& operator+= (rlTime &time); - rlTime& operator-= (rlTime &time); - rlTime operator+ (rlTime &time); - rlTime operator- (rlTime &time); - int operator== (rlTime &time); - int operator< (rlTime &time); - int operator<= (rlTime &time); - int operator> (rlTime &time); - int operator>= (rlTime &time); + double secondsSinceEpoche() const; + + rlTime& operator+= (time_t seconds); ///< adjust absolute time by number of seconds + rlTime& operator-= (time_t seconds); ///< adjust absolute time by number of seconds + rlTime operator+ (time_t seconds) const; ///< make new object with absolute time adjusted by number of seconds + rlTime operator- (time_t seconds) const; ///< make new object with absolute time adjusted by number of seconds + + double operator- (const rlTime &time) const; ///< difference of two points in time in seconds.milliseconds + + int operator== (const rlTime &time) const; + int operator< (const rlTime &time) const; + int operator<= (const rlTime &time) const; + int operator> (const rlTime &time) const; + int operator>= (const rlTime &time) const; + int year; int month; int day; @@ -55,6 +63,40 @@ class rlTime int minute; int second; int millisecond; + + enum FormatLargestUnit + { + MinutesSecondsFraction = 0, ///< "0:00.000", needs at least 9 bytes buffer + HoursMinutesSecondsFraction, ///< "0:00:00.000", needs at least 12 bytes buffer + DaysHoursMinutesSecondsFraction, ///< "0:00:00:00.000", needs at least 15 bytes buffer + WeeksDaysHoursMinutesSecondsFraction, ///< "0:0:00:00:00.000", needs at least 17 bytes buffer + MinutesSeconds, ///< "0:00", needs at least 5 bytes buffer + HoursMinutesSeconds, ///< "0:00:00", needs at least 8 bytes buffer + DaysHoursMinutesSeconds, ///< "0:00:00:00", needs at least 11 bytes buffer + WeeksDaysHoursMinutesSeconds, ///< "0:0:00:00:00", needs at least 13 bytes buffer + }; + + ///< Caller chooses formatting template, default is Hours:Minutes:Seconds.Milliseconds, caller provides buffer, or, NULL pointer, buffer must be deleted (delete[]) + static + const char* formatTimeDiff(double, enum FormatLargestUnit = HoursMinutesSecondsFraction, unsigned bufferLength = 32, char* buffer = 0); + + ///< Caller chooses formatting template, default is Hours:Minutes:Seconds.Milliseconds, caller provides buffer, or buffer must be deleted (delete[]) + static + const char* formatTimeDiff(const rlTime& t1, const rlTime& t2, enum FormatLargestUnit = HoursMinutesSecondsFraction, unsigned bufferLength = 32, char* buffer = 0); + + ///< Caller chooses formatting template, default is Hours:Minutes:Seconds.Milliseconds, returned object manages string memory + static + std::string formatTimeDiffString(double, enum FormatLargestUnit = HoursMinutesSecondsFraction); + + ///< Caller chooses formatting template, default is Hours:Minutes:Seconds.Milliseconds, returned object manages string memory + static + std::string formatTimeDiffString(const rlTime& t1, const rlTime& t2, enum FormatLargestUnit = HoursMinutesSecondsFraction); + + static + time_t timegm(struct tm* tm_); + + void normalizeAsDate(); + private: char time_string[32]; // 2001-11-23 12:52:60 056 char iso_time_string[32]; // 2001-11-23T12:52:60.056 From f192f44c71fddee67bdebcec01c3094b954c95de Mon Sep 17 00:00:00 2001 From: Johannes Lode Date: Mon, 21 Jan 2019 16:26:05 +0100 Subject: [PATCH 02/16] Some comments for documentation added. --- rllib/lib/rltime.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rllib/lib/rltime.h b/rllib/lib/rltime.h index 0b32b55e..d8abc265 100644 --- a/rllib/lib/rltime.h +++ b/rllib/lib/rltime.h @@ -93,9 +93,9 @@ class rlTime std::string formatTimeDiffString(const rlTime& t1, const rlTime& t2, enum FormatLargestUnit = HoursMinutesSecondsFraction); static - time_t timegm(struct tm* tm_); + time_t timegm(struct tm* tm_); ///< emulates the POSIX function, which is i.e. under Windows not available - void normalizeAsDate(); + void normalizeAsDate(); ///< normalizes odd constructions of time and date, such 2014-03-36 is normalized to 2014-04-05, simelar oddities for the time are corrected. private: char time_string[32]; // 2001-11-23 12:52:60 056 From e35d6bdc7cdb1f9559aacce48da6607ec1881e21 Mon Sep 17 00:00:00 2001 From: Johannes Lode Date: Mon, 28 Jan 2019 17:06:26 +0100 Subject: [PATCH 03/16] Work in progress. Intermediate commit for transfer to another workstation. --- rllib/lib/rldefine.h | 6 +- rllib/lib/rltime.cpp | 16 +- rllib/lib/rltime.h | 8 +- rllib/lib/rltimeex.cpp | 952 +++++++++++++++++++++++++++++++++++++ rllib/lib/rltimeex.h | 130 +++++ rllib/lib/testrltimeex.cpp | 50 ++ rllib/lib/testrltimeex.sh | 3 + 7 files changed, 1159 insertions(+), 6 deletions(-) create mode 100644 rllib/lib/rltimeex.cpp create mode 100644 rllib/lib/rltimeex.h create mode 100644 rllib/lib/testrltimeex.cpp create mode 100644 rllib/lib/testrltimeex.sh diff --git a/rllib/lib/rldefine.h b/rllib/lib/rldefine.h index c8b16ee9..3cf37ab2 100644 --- a/rllib/lib/rldefine.h +++ b/rllib/lib/rldefine.h @@ -86,6 +86,10 @@ The header that is included in every file of rllib. #define BIT30 256*256*256*64 #define BIT31 256*256*256*128 -#define RLCRLF "\r\n" +#define RLCRLF "\r\n" + +#if __cplusplus >= 201103 +#define RLCPP11 +#endif #endif diff --git a/rllib/lib/rltime.cpp b/rllib/lib/rltime.cpp index 9c214a83..4cb4cbe4 100644 --- a/rllib/lib/rltime.cpp +++ b/rllib/lib/rltime.cpp @@ -195,13 +195,17 @@ void rlTime::getLocalTime() tms = localtime_r(&t, &tmsbuf); gettimeofday(&tv, &tz); + /* adjust year and month */ + tms->tm_year += 1900; + tms->tm_mon += 1; + millisecond = (int)tv.tv_usec / 1000; second = (int)tms->tm_sec; minute = (int)tms->tm_min; hour = (int)tms->tm_hour; day = (int)tms->tm_mday; - month = (int)tms->tm_mon + 1; - year = (int)tms->tm_year + 1900; + month = (int)tms->tm_mon; + year = (int)tms->tm_year; #endif #ifdef __VMS @@ -242,13 +246,17 @@ int rlTime::getFileModificationTime(const char *filename) #endif tms = localtime_r(&statbuf.st_mtime, &tmsbuf); + /* adjust year and month */ + tms->tm_year += 1900; + tms->tm_mon += 1; + millisecond = 0; second = (int)tms->tm_sec; minute = (int)tms->tm_min; hour = (int)tms->tm_hour; day = (int)tms->tm_mday; - month = (int)tms->tm_mon + 1; - year = (int)tms->tm_year + 1900; + month = (int)tms->tm_mon; + year = (int)tms->tm_year; return 0; } diff --git a/rllib/lib/rltime.h b/rllib/lib/rltime.h index d8abc265..4b209458 100644 --- a/rllib/lib/rltime.h +++ b/rllib/lib/rltime.h @@ -28,7 +28,9 @@ class rlTime { public: rlTime(int Year=0, int Month=0, int Day=0, int Hour=0, int Minute=0, int Second=0, int Millisecond=0); - rlTime(double) = delete; +#ifdef RLCPP11 + rlTime(double&) = delete; +#endif virtual ~rlTime(); const char *getTimeString(); const char *getIsoTimeString(); @@ -100,5 +102,9 @@ class rlTime private: char time_string[32]; // 2001-11-23 12:52:60 056 char iso_time_string[32]; // 2001-11-23T12:52:60.056 + +#ifndef RLCPP11 + explicit rlTime(double&); // intentionally no implementation, as this shall not be explicit or implicit used +#endif }; #endif diff --git a/rllib/lib/rltimeex.cpp b/rllib/lib/rltimeex.cpp new file mode 100644 index 00000000..4554d114 --- /dev/null +++ b/rllib/lib/rltimeex.cpp @@ -0,0 +1,952 @@ + +/*************************************************************************** + rltime.cpp - description + ------------------- + begin : Tue Jan 02 2001 + copyright : (C) 2001 by R. Lehrig + email : lehrig@t-online.de + ***************************************************************************/ + +/*************************************************************************** + * * + * This library is free software; you can redistribute it and/or modify * + * it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as * + * published by the Free Software Foundation * + * * + ***************************************************************************/ +#include "rltimeex.h" +#include +#include +#include +#include +#include +#include + +#ifdef RLUNIX +#include +#include +#include +#endif + +#ifdef __VMS +#include +#include +#include +#include +#include +#include +#include +#include +#include +typedef struct +{ + short year; + short month; + short day; + short hour; + short min; + short sec; + short hth; +} +TDS; +typedef struct +{ + long word_1; + long word_2; +} +VAX_BIN_TIME; +#endif + +#ifdef RLWIN32 +#include +#include + +// gmtime_r can be defined by mingw +#ifndef gmtime_r +static struct tm* gmtime_r(const time_t* t, struct tm* r) +{ + // gmtime is threadsafe in windows because it uses TLS + struct tm *theTm = gmtime(t); + if (theTm) { + *r = *theTm; + return r; + } else { + return 0; + } +} +#endif // gmtime_r + +// gmtime_r can be defined by mingw +#ifndef localtime_r +static struct tm* localtime_r(const time_t* t, struct tm* r) +{ + // localtime is threadsafe in windows because it uses TLS + struct tm *theTm = localtime(t); + if (theTm) { + *r = *theTm; + return r; + } else { + return 0; + } +} +#endif // localtime_r + +#endif + +void rlTimeEx::normalizeAsDate() +{ + if (year) + { + // read members + tm t; + memset(&t, 0, sizeof(t)); + t.tm_year = year - 1900; + t.tm_mon = month - 1; + t.tm_mday = day; + t.tm_hour = hour; + t.tm_min = minute; + t.tm_sec = second; + + // normalize milliseconds + while (millisecond > 1000) + { + ++t.tm_sec; + millisecond -= 1000; + } + + // normalize time structure + auto ep = timegm(&t); + gmtime_r(&ep, &t); + + // set members + year = 1900 + t.tm_year; + month = 1 + t.tm_mon; + day = t.tm_mday; + hour = t.tm_hour; + minute = t.tm_min; + second = t.tm_sec; + } +} + +rlTimeEx::rlTimeEx(int Year, int Month, int Day, int Hour, int Minute, int Second, int Millisecond) +{ + year = Year; + month = Month; + day = Day; + hour = Hour; + minute = Minute; + second = Second; + millisecond = Millisecond; + + normalizeAsDate(); +} + +rlTimeEx::~rlTimeEx() +{ +} + +void rlTimeEx::setTimeFromString(const char *time_string) +{ + year = 0; + month = 0; + day = 0; + hour = 0; + minute = 0; + second = 0; + millisecond = 0; + sscanf(time_string,"%d-%d-%d %d:%d:%d %d",&year,&month,&day, &hour,&minute,&second, &millisecond); + normalizeAsDate(); +} + +void rlTimeEx::setTimeFromIsoString(const char *iso_time_string) +{ + year = 0; + month = 0; + day = 0; + hour = 0; + minute = 0; + second = 0; + millisecond = 0; + sscanf(iso_time_string,"%d-%d-%dT%d:%d:%d.%d",&year,&month,&day, &hour,&minute,&second, &millisecond); + normalizeAsDate(); +} + +/*!
+ * seconds := delta time
+ * milliseconds within the fraction
+ * calculating with 1 month <=> 30.5 days
+ 
*/ +void rlTimeEx::setTimeFromSeconds(double seconds) +{ // we assume that the average month has 30.5 days + double mod = fmod(seconds*1000, 1000); + millisecond = (int) mod; + + mod = fmod(seconds, 60); + second = (int) mod; + + seconds /= 60; + mod = fmod(seconds, 60); + minute = (int) mod; + + seconds /= 60; + mod = fmod(seconds, 24); + hour = (int) mod; + + seconds /= 24; + mod = fmod(seconds, 30.5); + day = (int) mod; + + seconds /= 30.5; + mod = fmod(seconds, 12); + month = (int) mod; + + seconds /= 12; + year = (int) seconds; +} + + +const char *rlTimeEx::getTimeString() +{ + sprintf(time_string,"%04d-%02d-%02d %02d:%02d:%02d %03d",year, month, day, hour, minute, second, millisecond); + return time_string; +} + +const char *rlTimeEx::getIsoTimeString() +{ + sprintf(iso_time_string,"%04d-%02d-%02dT%02d:%02d:%02d.%03d",year, month, day, hour, minute, second, millisecond); + return iso_time_string; +} + +/*!
+ * Returns the datetime as a string. The format parameter determines the format of the result string.
+ *
+ * These expressions may be used for the date:
+ * Expression	Output
+ * d	the day as number without a leading zero (1 to 31)
+ * dd	the day as number with a leading zero (01 to 31)
+ * M	the month as number without a leading zero (1-12)
+ * MM	the month as number with a leading zero (01-12)
+ * MMM	the abbreviated localized month name (e.g. 'Jan' to 'Dec').
+ * yy	the year as two digit number (00-99)
+ * yyyy	the year as four digit number
+ *
+ * These expressions may be used for the time:
+ * Expression	Output
+ * h	the hour without a leading zero (1 to 12 if AM/PM display)
+ * hh	the hour with a leading zero (01 to 12 if AM/PM display)
+ * H	the hour without a leading zero (0 to 23, even with AM/PM display)
+ * HH	the hour with a leading zero (00 to 23, even with AM/PM display)
+ * m	the minute without a leading zero (0 to 59)
+ * mm	the minute with a leading zero (00 to 59)
+ * s	the whole second without a leading zero (0 to 59)
+ * ss	the whole second with a leading zero where applicable (00 to 59)
+ * z	the fractional part of the second, to go after a decimal point, without trailing zeroes (0 to 999).
+ * zzz	the fractional part of the second, to millisecond precision, including trailing zeroes where applicable (000 to 999).
+ * AP or A	use AM/PM display. A/AP will be replaced by either "AM" or "PM".
+ * ap or a	use am/pm display. a/ap will be replaced by either "am" or "pm".
+ *
+ * All other input characters will be copyed
+ *
+ * Example format strings (assumed that the rlTime is 21 May 2001 14:13:09.120):
+ * Format	Result
+ * dd.MM.yyyy	    21.05.2001
+ * ddd MMMM d yy	Tue May 21 01
+ * hh:mm:ss.zzz	  14:13:09.120
+ * hh:mm:ss.z	    14:13:09.12
+ * h:m:s ap	      2:13:9 pm
+ 
*/ +const char *rlTimeEx::toString(const char *format) +{ + // See: + // https://doc.qt.io/qt-5/qdatetime.html#toString + // + int ind = 0; + char buf[16]; + char *dest = time_string; + while(*format != '\0') + { + if (strncmp(format,"dd",2) == 0) + { + sprintf(buf,"%02d",day); + strcpy(dest,buf); + dest += strlen(buf); + format += 2; + } + else if(strncmp(format,"d",1) == 0) + { + sprintf(buf,"%d",day); + strcpy(dest,buf); + dest += strlen(buf); + format += 1; + } + else if(strncmp(format,"MMM",3) == 0) + { + buf[0] = '\0'; + if(month == 1) strcpy(buf,"Jan"); + if(month == 2) strcpy(buf,"Feb"); + if(month == 3) strcpy(buf,"Mar"); + if(month == 4) strcpy(buf,"Apr"); + if(month == 5) strcpy(buf,"May"); + if(month == 6) strcpy(buf,"Jun"); + if(month == 7) strcpy(buf,"Jul"); + if(month == 8) strcpy(buf,"Aug"); + if(month == 9) strcpy(buf,"Sep"); + if(month == 10) strcpy(buf,"Oct"); + if(month == 11) strcpy(buf,"Nov"); + if(month == 12) strcpy(buf,"Dec"); + strcpy(dest,buf); + dest += strlen(buf); + format += 3; + } + else if(strncmp(format,"MM",2) == 0) + { + sprintf(buf,"%02d",month); + strcpy(dest,buf); + dest += strlen(buf); + format += 2; + } + else if(strncmp(format,"M",1) == 0) + { + sprintf(buf,"%d",month); + strcpy(dest,buf); + dest += strlen(buf); + format += 1; + } + else if(strncmp(format,"yyyy",4) == 0) + { + sprintf(buf,"%4d",year); + strcpy(dest,buf); + dest += strlen(buf); + format += 4; + } + else if(strncmp(format,"yy",2) == 0) + { + sprintf(buf,"%4d",year); + strcpy(dest,&buf[2]); + dest += strlen(&buf[2]); + format += 2; + } + else if(strncmp(format,"hh",2) == 0) + { + if (hour > 12) sprintf(buf,"%02d", hour - 12); + else if(hour == 0) sprintf(buf,"%02d", 12); + else sprintf(buf,"%02d", hour); + strcpy(dest,buf); + dest += strlen(buf); + format += 2; + } + else if(strncmp(format,"h",1) == 0) + { + if (hour > 12) sprintf(buf,"%2d", hour - 12); + else if(hour == 0) sprintf(buf,"%2d", 12); + else sprintf(buf,"%2d", hour); + strcpy(dest,buf); + dest += strlen(buf); + format += 1; + } + else if(strncmp(format,"HH",2) == 0) + { + sprintf(buf,"%02d",hour); + strcpy(dest,buf); + dest += strlen(buf); + format += 2; + } + else if(strncmp(format,"H",1) == 0) + { + sprintf(buf,"%d",hour); + strcpy(dest,buf); + dest += strlen(buf); + format += 1; + } + else if(strncmp(format,"mm",2) == 0) + { + sprintf(buf,"%02d",minute); + strcpy(dest,buf); + dest += strlen(buf); + format += 2; + } + else if(strncmp(format,"m",1) == 0) + { + sprintf(buf,"%d",minute); + strcpy(dest,buf); + dest += strlen(buf); + format += 1; + } + else if(strncmp(format,"ss",2) == 0) + { + sprintf(buf,"%02d",second); + strcpy(dest,buf); + dest += strlen(buf); + format += 2; + } + else if(strncmp(format,"s",1) == 0) + { + sprintf(buf,"%d",second); + strcpy(dest,buf); + dest += strlen(buf); + format += 1; + } + else if(strncmp(format,"zzz",3) == 0) + { + sprintf(buf,"%03d",millisecond); + strcpy(dest,buf); + dest += strlen(buf); + format += 3; + } + else if(strncmp(format,"z",1) == 0) + { + sprintf(buf,"%d",millisecond); + strcpy(dest,buf); + dest += strlen(buf); + format += 1; + } + else if(strncmp(format,"AP",2) == 0) + { + if (hour == 0) strcpy(dest,"PM"); + else if(hour < 13) strcpy(dest,"AM"); + else strcpy(dest,"PM"); + dest += strlen("AM"); + format += 2; + } + else if(strncmp(format,"ap",2) == 0) + { + if (hour == 0) strcpy(dest,"pm"); + else if(hour < 13) strcpy(dest,"am"); + else strcpy(dest,"pm"); + dest += strlen("am"); + format += 2; + } + else if(strncmp(format,"A",1) == 0) + { + if (hour == 0) strcpy(dest,"PM"); + else if(hour < 13) strcpy(dest,"AM"); + else strcpy(dest,"PM"); + dest += strlen("AM"); + format += 1; + } + else if(strncmp(format,"a",1) == 0) + { + if (hour == 0) strcpy(dest,"pm"); + else if(hour < 13) strcpy(dest,"am"); + else strcpy(dest,"pm"); + dest += strlen("am"); + format += 1; + } + else + { + *dest++ = *format++; + } + if(dest - time_string + 6 > sizeof(time_string)) break; + } + *dest = '\0'; + return time_string; +} + +void rlTimeEx::getLocalTime() +{ +#ifdef RLUNIX + time_t t; + struct tm *tms; + struct tm tmsbuf; + struct timeval tv; + struct timezone tz; + + time(&t); + tms = localtime_r(&t, &tmsbuf); + gettimeofday(&tv, &tz); + + /* adjust year and month */ + tms->tm_year += 1900; + tms->tm_mon += 1; + + millisecond = (int)tv.tv_usec / 1000; + second = (int)tms->tm_sec; + minute = (int)tms->tm_min; + hour = (int)tms->tm_hour; + day = (int)tms->tm_mday; + month = (int)tms->tm_mon; + year = (int)tms->tm_year; +#endif + +#ifdef __VMS + TDS tds; + sys$numtim(&tds, 0); + millisecond = (int)tds.hth * 10; + second = (int)tds.sec; + minute = (int)tds.min; + hour = (int)tds.hour; + day = (int)tds.day; + month = (int)tds.month; + year = (int)tds.year; +#endif + +#ifdef RLWIN32 + SYSTEMTIME st; + GetLocalTime(&st); + millisecond = st.wMilliseconds; + second = st.wSecond; + minute = st.wMinute; + hour = st.wHour; + day = st.wDay; + month = st.wMonth; + year = st.wYear; +#endif +} + +int rlTimeEx::getFileModificationTime(const char *filename) +{ + struct stat statbuf; + struct tm *tms; + struct tm tmsbuf; + +#ifdef RLUNIX + if(lstat(filename,&statbuf)) return -1; +#else + if(stat(filename,&statbuf)) return -1; +#endif + tms = localtime_r(&statbuf.st_mtime, &tmsbuf); + + /* adjust year and month */ + tms->tm_year += 1900; + tms->tm_mon += 1; + + millisecond = 0; + second = (int)tms->tm_sec; + minute = (int)tms->tm_min; + hour = (int)tms->tm_hour; + day = (int)tms->tm_mday; + month = (int)tms->tm_mon; + year = (int)tms->tm_year; + + return 0; +} + +void rlTimeEx::setLocalTime() +{ +#ifdef RLUNIX + struct timeval tv; + struct tm t; + + t.tm_mday = day; + t.tm_mon = month - 1; + t.tm_year = year - 1900; + t.tm_hour = hour; + t.tm_min = minute; + t.tm_sec = second; + tv.tv_sec = mktime(&t); + tv.tv_usec = 1000 * millisecond; + settimeofday(&tv,NULL); +#endif + +#ifdef __VMS + VAX_BIN_TIME vbt; + struct dsc$descriptor_s d_time; + char smonth[12][4],buf[64]; + + // Initialize month array + memset (smonth , 0, sizeof(smonth)); + memcpy (smonth [0], "JAN", 3); + memcpy (smonth [1], "FEB", 3); + memcpy (smonth [2], "MAR", 3); + memcpy (smonth [3], "APR", 3); + memcpy (smonth [4], "MAY", 3); + memcpy (smonth [5], "JUN", 3); + memcpy (smonth [6], "JUL", 3); + memcpy (smonth [7], "AUG", 3); + memcpy (smonth [8], "SEP", 3); + memcpy (smonth [9], "OCT", 3); + memcpy (smonth [10], "NOV", 3); + memcpy (smonth [11], "DEC", 3); + // Create time buffer + sprintf(buf, "%02d-%3.3s-%04d %02d:%02d:%02d.%02d", + day, + smonth[month-1], + year, + hour, + minute, + second, + millisecond / 10); + + // Fill string descriptor + d_time.dsc$w_length = strlen(buf); + d_time.dsc$b_dtype = DSC$K_DTYPE_T; + d_time.dsc$b_class = DSC$K_CLASS_S; + d_time.dsc$a_pointer = buf; + // Convert time buf to VAX bin time + sys$bintim(&d_time, &vbt); + // Set the system time + sys$setime(&vbt); +#endif + +#ifdef RLWIN32 + SYSTEMTIME st; + st.wDay = day; + st.wMonth = month; + st.wYear = year; + st.wHour = hour; + st.wMinute = minute; + st.wSecond = second; + st.wMilliseconds = millisecond; + SetSystemTime(&st); +#endif +} + +rlTime& rlTimeEx::operator+=(time_t seconds) +{ + if (0 > seconds) + return this->operator -=(-seconds); + + auto d = std::div(seconds, time_t(60)); + second += d.rem; + if (d.quot) +{ + d = std::div(d.quot, time_t(60)); + minute += d.rem; + if (d.quot) +{ + d = std::div(d.quot, time_t(24)); + hour += d.rem; + if (d.quot) + { + d = std::div(d.quot, time_t(31)); + day += d.rem; + if (d.quot) + { + d = std::div(d.quot, time_t(12)); + month += d.rem; + year += d.quot; + } + } + } + } + + this->normalizeAsDate(); + + return *this; +} + +rlTime& rlTimeEx::operator-=(time_t seconds) +{ + if (0 > seconds) + return this->operator +=(-seconds); + + auto d = std::div(seconds, time_t(60)); + second -= d.rem; + if (second < 0) + { + ++d.quot; + second += 60; + } + if (d.quot) + { + d = std::div(d.quot, time_t(60)); + minute -= d.rem; + if (minute < 0) + { + ++d.quot; + minute += 60; + } + if (d.quot) + { + d = std::div(d.quot, time_t(24)); + hour -= d.rem; + if (hour < 0) + { + ++d.quot; + hour += 24; + } + if (d.quot) + { + d = std::div(d.quot, time_t(31)); + day -= d.rem; + if (day < 0) + { + ++d.quot; + day += 31; + } + if (d.quot) + { + d = std::div(d.quot, time_t(12)); + month -= d.rem; + if (month < 0) + { + ++d.quot; + month += 12; + } + year -= d.quot; + } + } + } + } + + this->normalizeAsDate(); + + return *this; +} + +rlTime rlTimeEx::operator+(time_t seconds) const +{ + rlTime t(*this); + + t += seconds; + + return t; +} + +rlTime rlTimeEx::operator-(time_t seconds) const +{ + rlTime t(*this); + + t -= seconds; + + return t; +} + +double rlTimeEx::operator-(const rlTime &time) const +{ + return this->secondsSinceEpoche() - time.secondsSinceEpoche(); +} + +int rlTimeEx::operator==(const rlTimeEx &time) const +{ + if(year != time.year) return 0; + if(month != time.month) return 0; + if(day != time.day) return 0; + if(hour != time.hour) return 0; + if(minute != time.minute) return 0; + if(second != time.second) return 0; + if(millisecond != time.millisecond) return 0; + + return 1; +} + +int rlTimeEx::operator<=(const rlTimeEx &time) const +{ + if((*this) == time) return 1; + if((*this) < time) return 1; + return 0; +} + +int rlTimeEx::operator>=(const rlTimeEx &time) const +{ + if((*this) == time) return 1; + if((*this) > time) return 1; + return 0; +} + +int rlTimeEx::operator<(const rlTime &time) const +{ + if (this->year < time.year) + return 1; + else if (this->year == time.year) + { + if (this->month < time.month) + return 1; + else if (this->month == time.month) + { + if (this->day < time.day) + return 1; + else if (this->day == time.day) + { + if (this->hour < time.hour) + return 1; + else if (this->hour == time.hour) + { + if (this->minute < time.minute) + return 1; + else if (this->minute == time.minute) + { + if (this->second < time.second) + return 1; + else if (this->second == time.second) +{ + if (this->millisecond < time.millisecond) + return 1; + } + } + } + } + } + } + + return 0; +} + +int rlTimeEx::operator>(const rlTime &time) const +{ + if (this->year > time.year) + return 1; + else if (this->year == time.year) + { + if (this->month > time.month) + return 1; + else if (this->month == time.month) + { + if (this->day > time.day) + return 1; + else if (this->day == time.day) + { + if (this->hour > time.hour) + return 1; + else if (this->hour == time.hour) + { + if (this->minute > time.minute) + return 1; + else if (this->minute == time.minute) + { + if (this->second > time.second) + return 1; + else if (this->second == time.second) +{ + if (this->millisecond > time.millisecond) + return 1; + } + } + } + } + } + } + + return 0; +} + +time_t rlTimeEx::timegm(struct tm* tm_) +{ + auto t = mktime(tm_); + struct tm ltm; + struct tm gtm; + auto lt = localtime_r(&t, <m); + auto gt = gmtime_r(&t, >m); + auto diff = mktime(lt) - mktime(gt); + return t + diff; +} + +double rlTimeEx::secondsSinceEpoche() const +{ + struct tm begin; + struct tm test; + + memset(&begin,0,sizeof(tm)); + memset(&test,0,sizeof(tm)); + + begin.tm_year = 70; + begin.tm_mon = 0; + begin.tm_mday = 2; // see below + begin.tm_hour = 0; + begin.tm_min = 0; + begin.tm_sec = 0; + begin.tm_isdst = 0; + + test.tm_year = year - 1900; + test.tm_mon = month - 1; + test.tm_mday = day; + test.tm_hour = hour; + test.tm_min = minute; + test.tm_sec = second; + test.tm_isdst = -1; + + time_t t0 = timegm(&begin) - 86400; // a weak workaround: on several platform (especially Windows 7 in Europe Timezones) mktime() is not capable of converting 19070-01-01T00:00:00 into seconds, because they try to convert it into UTC instead of localtime + time_t t1 = mktime(&test); // this might be error prone, see above + + return difftime(t1,t0) + (((double) millisecond) / 1000); +} + + +/** + * seconds := delta time + * milliseconds within the fraction + */ +double rlTimeEx::seconds() const +{ + double ret = (((double) millisecond) / 1000) + second + minute*60 + hour*60*60 + month*60*60*30.5 + year*60*60*30.5*12; + return ret; +} + +const char* rlTimeEx::formatTimeDiff(double tdiff, enum FormatLargestUnit fmt, unsigned bufferLength, char* buffer) +{ + if (0 < bufferLength) + { + if (not buffer) + buffer = new char[bufferLength]; + + bool isNegative = (tdiff < 0); + tdiff = fabs(tdiff); + int milliseconds = ((int) (tdiff * 1000)) % 1000; + time_t seconds = (time_t) tdiff; + lldiv_t minutes, hours, days, weeks; + + minutes = lldiv(seconds, 60); + + const char* fmtString = "%s%d:%02d.%03d"; + switch (fmt) + { + case MinutesSecondsFraction: + fmtString = "%s%d:%02d.%03d"; + snprintf(buffer, bufferLength, fmtString, (isNegative ? "-" : ""), minutes.quot, minutes.rem, milliseconds); + break; + case HoursMinutesSecondsFraction: + fmtString = "%s%d:%02d:%02d.%03d"; + hours = lldiv(minutes.quot, 60); + snprintf(buffer, bufferLength, fmtString, (isNegative ? "-" : ""), hours.quot, hours.rem, minutes.rem, milliseconds); + break; + case DaysHoursMinutesSecondsFraction: + fmtString = "%s%d:%02d:%02d:%02d.%03d"; + hours = lldiv(minutes.quot, 60); + days = lldiv(hours.quot, 24); + snprintf(buffer, bufferLength, fmtString, (isNegative ? "-" : ""), days.quot, days.rem, hours.rem, minutes.rem, milliseconds); + break; + case WeeksDaysHoursMinutesSecondsFraction: + fmtString = "%s%d:%d:%02d:%02d:%02d.%03d"; + hours = lldiv(minutes.quot, 60); + days = lldiv(hours.quot, 24); + weeks = lldiv(days.quot, 7); + snprintf(buffer, bufferLength, fmtString, (isNegative ? "-" : ""), weeks.quot, weeks.rem, days.rem, hours.rem, minutes.rem, milliseconds); + break; + case MinutesSeconds: + fmtString = "%s%d:%02d"; + snprintf(buffer, bufferLength, fmtString, (isNegative ? "-" : ""), minutes.quot, minutes.rem); + break; + case HoursMinutesSeconds: + fmtString = "%s%d:%02d:%02d"; + hours = lldiv(minutes.quot, 60); + snprintf(buffer, bufferLength, fmtString, (isNegative ? "-" : ""), hours.quot, hours.rem, minutes.rem); + break; + case DaysHoursMinutesSeconds: + fmtString = "%s%d:%02d:%02d:%02d"; + hours = lldiv(minutes.quot, 60); + days = lldiv(hours.quot, 24); + snprintf(buffer, bufferLength, fmtString, (isNegative ? "-" : ""), days.quot, days.rem, hours.rem, minutes.rem); + break; + case WeeksDaysHoursMinutesSeconds: + fmtString = "%s%d:%d:%02d:%02d:%02d"; + hours = lldiv(minutes.quot, 60); + days = lldiv(hours.quot, 24); + weeks = lldiv(days.quot, 7); + snprintf(buffer, bufferLength, fmtString, (isNegative ? "-" : ""), weeks.quot, weeks.rem, days.rem, hours.rem, minutes.rem); + break; + } +} + + return buffer; +} + +const char* rlTimeEx::formatTimeDiff(const rlTime& t1, const rlTime& t2, enum FormatLargestUnit fmt, unsigned bufferLength, char* buffer) +{ + return formatTimeDiff(t2 - t1, fmt, bufferLength, buffer); +} + +std::string rlTimeEx::formatTimeDiffString(double tdiff, enum FormatLargestUnit fmt) +{ + char strBuffer[32]; + + const char* result = formatTimeDiff(tdiff, fmt, sizeof(strBuffer), strBuffer); + + std::string diffStr(result); + + return diffStr; +} + +std::string rlTimeEx::formatTimeDiffString(const rlTime& t1, const rlTime& t2, enum FormatLargestUnit fmt) +{ + return formatTimeDiffString(t2 - t1, fmt); +} diff --git a/rllib/lib/rltimeex.h b/rllib/lib/rltimeex.h new file mode 100644 index 00000000..4217d275 --- /dev/null +++ b/rllib/lib/rltimeex.h @@ -0,0 +1,130 @@ +/*************************************************************************** + rltimeex.h - description + ------------------- + begin : Tue Jan 02 2001 + copyright : (C) 2001 by R. Lehrig + email : lehrig@t-online.de + ***************************************************************************/ + +/*************************************************************************** + * * + * This library is free software; you can redistribute it and/or modify * + * it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as * + * published by the Free Software Foundation * + * * + ***************************************************************************/ +#ifndef _RL_TIME_EX_H_ +#define _RL_TIME_EX_H_ + +#include "rldefine.h" +#include +#include +#include + +/*!
+class for handling time.
+
*/ +class rlTimeEx +{ +public: + // local time type, on some platforms there is no 2038 safe definition available which we can avoid this way + typedef int64_t time_t; ///< for applying relative adjustments to the time, it's a redefintion on most modern platform, but anyway + typedef double ftime_t; ///< for applying relative adjustments in fractions of a second + + rlTimeEx(int Year=0, int Month=0, int Day=0, int Hour=0, int Minute=0, int Second=0, int Millisecond=0); +#ifdef RLCPP11 + rlTimeEx(double&) = delete; +#endif + virtual ~rlTimeEx(); + const char *getTimeString(); + const char *getIsoTimeString(); + const char *toString(const char *format); + void getLocalTime(); + int getFileModificationTime(const char *filename); + + /*!
+  format: sscanf(time_string,"%d-%d-%d %d:%d:%d %d",&year,&month,&day, &hour,&minute,&second, &millisecond);
+  
*/ + void setTimeFromString(const char *time_string); + void setTimeFromIsoString(const char *iso_time_string); + void setTimeFromSeconds(double const &seconds); // we assume 30.5 days per month + + void setLocalTime(); + double secondsSinceEpoche() const; + double seconds() const; // we assume 30.5 days per month + + rlTimeEx& operator+= (rlTimeEx &time); + rlTimeEx& operator-= (rlTimeEx &time); + rlTimeEx operator+ (rlTimeEx &time) const; + rlTimeEx operator- (rlTimeEx &time) const; + + rlTimeEx& operator+= (double const &seconds); // we assume 30.5 days per month + rlTimeEx& operator-= (double const &seconds); // we assume 30.5 days per month + rlTimeEx operator+ (double const &seconds) const; // we assume 30.5 days per month + rlTimeEx operator- (double const &seconds) const; // we assume 30.5 days per month + rlTimeEx& operator+= (time_t seconds); ///< adjust absolute time by number of seconds + rlTimeEx& operator-= (time_t seconds); ///< adjust absolute time by number of seconds + rlTimeEx operator+ (time_t seconds) const; ///< make new object with absolute time adjusted by number of seconds + rlTimeEx operator- (time_t seconds) const; ///< make new object with absolute time adjusted by number of seconds + + rlTimeEx& operator += (const ftime_t& seconds); // we assume 30.5 days per month + rlTimeEx& operator -= (const ftime_t& seconds); // we assume 30.5 days per month + rlTimeEx operator + (const ftime_t& seconds) const; // we assume 30.5 days per month + rlTimeEx operator - (const ftime_t& seconds) const; // we assume 30.5 days per month + + int operator== (const rlTimeEx &time) const; + int operator< (const rlTimeEx &time) const; + int operator<= (const rlTimeEx &time) const; + int operator> (const rlTimeEx &time) const; + int operator>= (const rlTimeEx &time) const; + + int year; + int month; + int day; + int hour; + int minute; + int second; + int millisecond; + + enum FormatLargestUnit + { + MinutesSecondsFraction = 0, ///< "0:00.000", needs at least 9 bytes buffer + HoursMinutesSecondsFraction, ///< "0:00:00.000", needs at least 12 bytes buffer + DaysHoursMinutesSecondsFraction, ///< "0:00:00:00.000", needs at least 15 bytes buffer + WeeksDaysHoursMinutesSecondsFraction, ///< "0:0:00:00:00.000", needs at least 17 bytes buffer + MinutesSeconds, ///< "0:00", needs at least 5 bytes buffer + HoursMinutesSeconds, ///< "0:00:00", needs at least 8 bytes buffer + DaysHoursMinutesSeconds, ///< "0:00:00:00", needs at least 11 bytes buffer + WeeksDaysHoursMinutesSeconds, ///< "0:0:00:00:00", needs at least 13 bytes buffer + }; + + ///< Caller chooses formatting template, default is Hours:Minutes:Seconds.Milliseconds, caller provides buffer, or, NULL pointer, buffer must be deleted (delete[]) + static + const char* formatTimeDiff(double, enum FormatLargestUnit = HoursMinutesSecondsFraction, unsigned bufferLength = 32, char* buffer = 0); + + ///< Caller chooses formatting template, default is Hours:Minutes:Seconds.Milliseconds, caller provides buffer, or buffer must be deleted (delete[]) + static + const char* formatTimeDiff(const rlTime& t1, const rlTime& t2, enum FormatLargestUnit = HoursMinutesSecondsFraction, unsigned bufferLength = 32, char* buffer = 0); + + ///< Caller chooses formatting template, default is Hours:Minutes:Seconds.Milliseconds, returned object manages string memory + static + std::string formatTimeDiffString(double, enum FormatLargestUnit = HoursMinutesSecondsFraction); + + ///< Caller chooses formatting template, default is Hours:Minutes:Seconds.Milliseconds, returned object manages string memory + static + std::string formatTimeDiffString(const rlTime& t1, const rlTime& t2, enum FormatLargestUnit = HoursMinutesSecondsFraction); + + static + time_t timegm(struct tm* tm_); ///< emulates the POSIX function, which is i.e. under Windows not available + + void normalizeAsDate(); ///< normalizes odd constructions of time and date, such 2014-03-36 is normalized to 2014-04-05, simelar oddities for the time are corrected. + +private: + char time_string[32*2]; // 2001-11-23 12:52:60 056 + char iso_time_string[32]; // 2001-11-23T12:52:60.056 + +#ifndef RLCPP11 + explicit rlTimeEx(double&); // intentionally no implementation, as this shall not be explicit or implicit used +#endif +}; +#endif diff --git a/rllib/lib/testrltimeex.cpp b/rllib/lib/testrltimeex.cpp new file mode 100644 index 00000000..e1dd04b1 --- /dev/null +++ b/rllib/lib/testrltimeex.cpp @@ -0,0 +1,50 @@ +#include +#include "unistd.h" +#include "rltimeex.h" + +int main() +{ + rlTimeEx now, start, diff, t; + + now.getLocalTime(); + start = now; + /* + while(1) + { + now.getLocalTime(); + diff = now - start; + double ddiff = diff.seconds(); + printf("start=%s now=%s diff=%s seconds=%f\n", start.getIsoTimeString(), now.getIsoTimeString(), diff.getIsoTimeString(), (float) ddiff); + + t.setTimeFromSeconds(ddiff); + printf("ddiff=%lf t=%s seconds()=%f\n", ddiff, t.getIsoTimeString(), t.seconds()); + sleep(1); + } + */ + + /* + double diffsec = 61; + printf("start=%s diffsec=%lf\n", start.getIsoTimeString(), diffsec); + start -= diffsec; + printf("start=%s diffsec=%lf\n", start.getIsoTimeString(), diffsec); + */ + + /* + double diffsec = 61; + printf("start=%s diffsec=%lf\n", start.getIsoTimeString(), diffsec); + now = start - diffsec; + printf(" now=%s diffsec=%lf\n", now.getIsoTimeString(), diffsec); + + printf("toString dd-MMM-yyyy %s\n", now.toString("dd-MMM-yyyy hh:mm:ss zzz")); + printf("toString dd-MM-yyyy %s\n", now.toString("dd-MM-yyyy hh:mm:ss zzz")); + printf("toString d-M-yy %s\n", now.toString("d-M-yy h:m:s z AP")); + */ + + while(1) + { + printf("now=%s\n", now.getIsoTimeString()); + now += 1.01; + sleep(1); + } + return 0; +} diff --git a/rllib/lib/testrltimeex.sh b/rllib/lib/testrltimeex.sh new file mode 100644 index 00000000..98f45a02 --- /dev/null +++ b/rllib/lib/testrltimeex.sh @@ -0,0 +1,3 @@ +#!/bin/bash +g++ -o testrltimeex testrltimeex.cpp rltimeex.cpp -lrllib -I . +./testrltimeex From f783912f9ed2af564635233ace99e53618ec2b4c Mon Sep 17 00:00:00 2001 From: Johannes Lode Date: Thu, 31 Jan 2019 19:20:22 +0100 Subject: [PATCH 04/16] Handling of absolute and relative times distinguished by flag. Meanwhile added a proxy interface, so the traditional interface of operating with two operands of rlTimeEx is available. One small exception is there of returning double for the difference of two rlTimeEx object by default and returning rlTimeEx objects only on request by casting the second operand to RelativeTime(rltime_object). --- rllib/lib/rltimeex.cpp | 1247 ++++++++++++++++++++++++---------------- rllib/lib/rltimeex.h | 166 +++++- 2 files changed, 890 insertions(+), 523 deletions(-) diff --git a/rllib/lib/rltimeex.cpp b/rllib/lib/rltimeex.cpp index 4554d114..ee0fbade 100644 --- a/rllib/lib/rltimeex.cpp +++ b/rllib/lib/rltimeex.cpp @@ -1,10 +1,9 @@ - /*************************************************************************** - rltime.cpp - description - ------------------- - begin : Tue Jan 02 2001 - copyright : (C) 2001 by R. Lehrig - email : lehrig@t-online.de + rltime.cpp - description + ------------------- + begin : Tue Jan 02 2001 + copyright : (C) 2001 by R. Lehrig + email : lehrig@t-online.de ***************************************************************************/ /*************************************************************************** @@ -20,7 +19,8 @@ #include #include #include -#include +#include +#include #ifdef RLUNIX #include @@ -60,115 +60,222 @@ VAX_BIN_TIME; #ifdef RLWIN32 #include #include - -// gmtime_r can be defined by mingw -#ifndef gmtime_r -static struct tm* gmtime_r(const time_t* t, struct tm* r) -{ - // gmtime is threadsafe in windows because it uses TLS - struct tm *theTm = gmtime(t); - if (theTm) { - *r = *theTm; - return r; - } else { - return 0; - } -} -#endif // gmtime_r - -// gmtime_r can be defined by mingw -#ifndef localtime_r -static struct tm* localtime_r(const time_t* t, struct tm* r) -{ - // localtime is threadsafe in windows because it uses TLS - struct tm *theTm = localtime(t); - if (theTm) { - *r = *theTm; - return r; - } else { - return 0; - } -} -#endif // localtime_r - + +// gmtime_r can be defined by mingw +#ifndef gmtime_r +static struct tm* gmtime_r(const time_t* t, struct tm* r) +{ + // gmtime is threadsafe in windows because it uses TLS + struct tm *theTm = gmtime(t); + if (theTm) + { + *r = *theTm; + return r; + } + else + { + return 0; + } +} +#endif // gmtime_r + +// gmtime_r can be defined by mingw +#ifndef localtime_r +static struct tm* localtime_r(const time_t* t, struct tm* r) +{ + // localtime is threadsafe in windows because it uses TLS + struct tm *theTm = localtime(t); + if (theTm) + { + *r = *theTm; + return r; + } + else + { + return 0; + } +} +#endif // localtime_r + #endif -void rlTimeEx::normalizeAsDate() -{ - if (year) - { - // read members - tm t; - memset(&t, 0, sizeof(t)); - t.tm_year = year - 1900; - t.tm_mon = month - 1; - t.tm_mday = day; - t.tm_hour = hour; - t.tm_min = minute; - t.tm_sec = second; - - // normalize milliseconds - while (millisecond > 1000) - { - ++t.tm_sec; - millisecond -= 1000; - } - - // normalize time structure - auto ep = timegm(&t); - gmtime_r(&ep, &t); - - // set members - year = 1900 + t.tm_year; - month = 1 + t.tm_mon; - day = t.tm_mday; - hour = t.tm_hour; - minute = t.tm_min; - second = t.tm_sec; - } -} - -rlTimeEx::rlTimeEx(int Year, int Month, int Day, int Hour, int Minute, int Second, int Millisecond) +void rlTimeEx::normalizeAsRelativeTime() { - year = Year; - month = Month; - day = Day; - hour = Hour; - minute = Minute; - second = Second; - millisecond = Millisecond; - - normalizeAsDate(); + assert(objectHoldsRelativeTime && "object must represent relative time, otherwise normalization as relative time is not defined"); + + // accumulate years and months into days, assuming 30.5 days per month and 365.25 days per year + if (year != 0) + { + day += year * 365 + (year / 4); + year = 0; + } + + if (month != 0) + { + day += month * 30 + (month / 2); + month = 0; + } + + if ( + (1000 <= std::abs(millisecond)) or + (60 <= std::abs(second)) or + (60 <= std::abs(minute)) or + (24 <= std::abs(hour)) + ) + { + time_t linear_value = second + (minute * 60) + (hour * 60 * 60) + (day * 24 * 60 * 60); + + // normalize milliseconds + std::lldiv_t d = std::lldiv(millisecond, 1000); + millisecond = d.rem; + while (0 > millisecond) + { + millisecond += 1000; + --d.quot; + } + + // adjust linear value + linear_value += d.quot; + + // normalize milliseconds to negative, if linear value is negative + if (0 > linear_value) + { + if (0 < millisecond) + { + millisecond -= 1000; + ++linear_value; + } + } + + // decompose linear value + if (linear_value) + { + d = std::lldiv(linear_value, 60); + second = d.rem; + if (d.quot) + { + d = std::lldiv(d.quot, 60); + minute = d.rem; + if (d.quot) + { + d = std::lldiv(d.quot, 24); + hour = d.rem; + day = d.quot; + } + } + } + } } -rlTimeEx::~rlTimeEx() +void rlTimeEx::normalizeAsDate() +{ + assert( + not objectHoldsRelativeTime + && "object must represent absolute time and date, otherwise normalization as time and date is not defined"); + assert(year >= 1970); + + if (year) + { + // read members + tm t; + memset(&t, 0, sizeof(t)); + t.tm_year = year - 1900; + t.tm_mon = month - 1; + t.tm_mday = day; + t.tm_hour = hour; + t.tm_min = minute; + t.tm_sec = second; + + // normalize milliseconds + while (millisecond > 1000) + { + ++t.tm_sec; + millisecond -= 1000; + } + + // normalize time structure + auto ep = timegm(&t); + gmtime_r(&ep, &t); + + // set members + year = 1900 + t.tm_year; + month = 1 + t.tm_mon; + day = t.tm_mday; + hour = t.tm_hour; + minute = t.tm_min; + second = t.tm_sec; + } +} + +rlTimeEx::rlTimeEx(int Year, int Month, int Day, int Hour, int Minute, int Second, int Millisecond) { + year = Year; + month = Month; + day = Day; + hour = Hour; + minute = Minute; + second = Second; + millisecond = Millisecond; + + if (1970 <= year) + { + objectHoldsRelativeTime = false; + normalizeAsDate(); + } + else + { + objectHoldsRelativeTime = true; + normalizeAsRelativeTime(); + } } -void rlTimeEx::setTimeFromString(const char *time_string) +rlTimeEx::~rlTimeEx() +{} + +/*** + * Read an absolute point in time from time_string. + * + * This method expects a time formatted as in return from getTimeString(), + * following the template "YYYY-MM-DD hh:mm:ss ms". + * @param time_string + */ +rlTimeEx& rlTimeEx::setTimeFromString(const char *time_string) { - year = 0; - month = 0; - day = 0; - hour = 0; - minute = 0; - second = 0; + year = 0; + month = 0; + day = 0; + hour = 0; + minute = 0; + second = 0; millisecond = 0; - sscanf(time_string,"%d-%d-%d %d:%d:%d %d",&year,&month,&day, &hour,&minute,&second, &millisecond); - normalizeAsDate(); + objectHoldsRelativeTime = false; + sscanf(time_string, "%d-%d-%d %d:%d:%d %d", &year, &month, &day, &hour, &minute, &second, &millisecond); + normalizeAsDate(); + + return *this; } -void rlTimeEx::setTimeFromIsoString(const char *iso_time_string) +/*** + * Read an absolute point in time from time_string. + * + * This method expects a time formatted as in return from getIsoTimeString(), + * following the template "YYYY-MM-DDThh:mm:ss.xxx". + * @param time_string + */ +rlTimeEx& rlTimeEx::setTimeFromIsoString(const char *iso_time_string) { - year = 0; - month = 0; - day = 0; - hour = 0; - minute = 0; - second = 0; + year = 0; + month = 0; + day = 0; + hour = 0; + minute = 0; + second = 0; millisecond = 0; - sscanf(iso_time_string,"%d-%d-%dT%d:%d:%d.%d",&year,&month,&day, &hour,&minute,&second, &millisecond); - normalizeAsDate(); + objectHoldsRelativeTime = false; + sscanf(iso_time_string, "%d-%d-%dT%d:%d:%d.%d", &year, &month, &day, &hour, &minute, &second, &millisecond); + normalizeAsDate(); + + return *this; } /*!
@@ -176,44 +283,52 @@ void rlTimeEx::setTimeFromIsoString(const char *iso_time_string)
  * milliseconds within the fraction
  * calculating with 1 month <=> 30.5 days
  
*/ -void rlTimeEx::setTimeFromSeconds(double seconds) +rlTimeEx& rlTimeEx::setTimeFromSeconds(double seconds) { // we assume that the average month has 30.5 days - double mod = fmod(seconds*1000, 1000); + double mod = fmod(seconds * 1000, 1000.); millisecond = (int) mod; - mod = fmod(seconds, 60); + mod = fmod(seconds, 60.); second = (int) mod; seconds /= 60; - mod = fmod(seconds, 60); + mod = fmod(seconds, 60.); minute = (int) mod; seconds /= 60; - mod = fmod(seconds, 24); + mod = fmod(seconds, 24.); hour = (int) mod; seconds /= 24; - mod = fmod(seconds, 30.5); - day = (int) mod; + day = int(seconds); - seconds /= 30.5; - mod = fmod(seconds, 12); - month = (int) mod; +// mod = fmod(seconds, 30.5); +// day = (int) mod; +// +// seconds /= 30.5; +// mod = fmod(seconds, 12); +// month = (int) mod; +// +// seconds /= 12; +// year = (int) seconds; - seconds /= 12; - year = (int) seconds; -} + objectHoldsRelativeTime = true; + normalizeAsRelativeTime(); + return *this; +} const char *rlTimeEx::getTimeString() { - sprintf(time_string,"%04d-%02d-%02d %02d:%02d:%02d %03d",year, month, day, hour, minute, second, millisecond); + assert(not objectHoldsRelativeTime && "object mus hold an absolute time and date"); + sprintf(time_string, "%04d-%02d-%02d %02d:%02d:%02d %03d", year, month, day, hour, minute, second, millisecond); return time_string; } const char *rlTimeEx::getIsoTimeString() { - sprintf(iso_time_string,"%04d-%02d-%02dT%02d:%02d:%02d.%03d",year, month, day, hour, minute, second, millisecond); + assert(not objectHoldsRelativeTime && "object mus hold an absolute time and date"); + sprintf(iso_time_string, "%04d-%02d-%02dT%02d:%02d:%02d.%03d", year, month, day, hour, minute, second, millisecond); return iso_time_string; } @@ -221,65 +336,64 @@ const char *rlTimeEx::getIsoTimeString() * Returns the datetime as a string. The format parameter determines the format of the result string. * * These expressions may be used for the date: - * Expression Output - * d the day as number without a leading zero (1 to 31) - * dd the day as number with a leading zero (01 to 31) - * M the month as number without a leading zero (1-12) - * MM the month as number with a leading zero (01-12) - * MMM the abbreviated localized month name (e.g. 'Jan' to 'Dec'). - * yy the year as two digit number (00-99) - * yyyy the year as four digit number + * Expression Output + * d the day as number without a leading zero (1 to 31) + * dd the day as number with a leading zero (01 to 31) + * M the month as number without a leading zero (1-12) + * MM the month as number with a leading zero (01-12) + * MMM the abbreviated localized month name (e.g. 'Jan' to 'Dec'). + * yy the year as two digit number (00-99) + * yyyy the year as four digit number * * These expressions may be used for the time: - * Expression Output - * h the hour without a leading zero (1 to 12 if AM/PM display) - * hh the hour with a leading zero (01 to 12 if AM/PM display) - * H the hour without a leading zero (0 to 23, even with AM/PM display) - * HH the hour with a leading zero (00 to 23, even with AM/PM display) - * m the minute without a leading zero (0 to 59) - * mm the minute with a leading zero (00 to 59) - * s the whole second without a leading zero (0 to 59) - * ss the whole second with a leading zero where applicable (00 to 59) - * z the fractional part of the second, to go after a decimal point, without trailing zeroes (0 to 999). - * zzz the fractional part of the second, to millisecond precision, including trailing zeroes where applicable (000 to 999). - * AP or A use AM/PM display. A/AP will be replaced by either "AM" or "PM". - * ap or a use am/pm display. a/ap will be replaced by either "am" or "pm". + * Expression Output + * h the hour without a leading zero (1 to 12 if AM/PM display) + * hh the hour with a leading zero (01 to 12 if AM/PM display) + * H the hour without a leading zero (0 to 23, even with AM/PM display) + * HH the hour with a leading zero (00 to 23, even with AM/PM display) + * m the minute without a leading zero (0 to 59) + * mm the minute with a leading zero (00 to 59) + * s the whole second without a leading zero (0 to 59) + * ss the whole second with a leading zero where applicable (00 to 59) + * z the fractional part of the second, to go after a decimal point, without trailing zeroes (0 to 999). + * zzz the fractional part of the second, to millisecond precision, including trailing zeroes where applicable (000 to 999). + * AP or A use AM/PM display. A/AP will be replaced by either "AM" or "PM". + * ap or a use am/pm display. a/ap will be replaced by either "am" or "pm". * * All other input characters will be copyed * - * Example format strings (assumed that the rlTime is 21 May 2001 14:13:09.120): - * Format Result - * dd.MM.yyyy 21.05.2001 - * ddd MMMM d yy Tue May 21 01 - * hh:mm:ss.zzz 14:13:09.120 - * hh:mm:ss.z 14:13:09.12 - * h:m:s ap 2:13:9 pm + * Example format strings (assumed that the rlTimeEx is 21 May 2001 14:13:09.120): + * Format Result + * dd.MM.yyyy 21.05.2001 + * ddd MMMM d yy Tue May 21 01 + * hh:mm:ss.zzz 14:13:09.120 + * hh:mm:ss.z 14:13:09.12 + * h:m:s ap 2:13:9 pm */ const char *rlTimeEx::toString(const char *format) { // See: // https://doc.qt.io/qt-5/qdatetime.html#toString // - int ind = 0; char buf[16]; char *dest = time_string; - while(*format != '\0') + while (*format != '\0') { - if (strncmp(format,"dd",2) == 0) + if (strncmp(format, "dd", 2) == 0) { - sprintf(buf,"%02d",day); - strcpy(dest,buf); - dest += strlen(buf); + sprintf(buf, "%02d", day); + strcpy(dest, buf); + dest += strlen(buf); format += 2; } - else if(strncmp(format,"d",1) == 0) + else if (strncmp(format, "d", 1) == 0) { - sprintf(buf,"%d",day); - strcpy(dest,buf); - dest += strlen(buf); + sprintf(buf, "%d", day); + strcpy(dest, buf); + dest += strlen(buf); format += 1; } - else if(strncmp(format,"MMM",3) == 0) + else if (strncmp(format, "MMM", 3) == 0) { buf[0] = '\0'; if(month == 1) strcpy(buf,"Jan"); @@ -294,213 +408,238 @@ const char *rlTimeEx::toString(const char *format) if(month == 10) strcpy(buf,"Oct"); if(month == 11) strcpy(buf,"Nov"); if(month == 12) strcpy(buf,"Dec"); - strcpy(dest,buf); - dest += strlen(buf); + strcpy(dest, buf); + dest += strlen(buf); format += 3; } - else if(strncmp(format,"MM",2) == 0) + else if (strncmp(format, "MM", 2) == 0) { - sprintf(buf,"%02d",month); - strcpy(dest,buf); - dest += strlen(buf); + sprintf(buf, "%02d", month); + strcpy(dest, buf); + dest += strlen(buf); format += 2; } - else if(strncmp(format,"M",1) == 0) + else if (strncmp(format, "M", 1) == 0) { - sprintf(buf,"%d",month); - strcpy(dest,buf); - dest += strlen(buf); + sprintf(buf, "%d", month); + strcpy(dest, buf); + dest += strlen(buf); format += 1; } - else if(strncmp(format,"yyyy",4) == 0) + else if (strncmp(format, "yyyy", 4) == 0) { - sprintf(buf,"%4d",year); - strcpy(dest,buf); - dest += strlen(buf); + sprintf(buf, "%4d", year); + strcpy(dest, buf); + dest += strlen(buf); format += 4; } - else if(strncmp(format,"yy",2) == 0) + else if (strncmp(format, "yy", 2) == 0) { - sprintf(buf,"%4d",year); - strcpy(dest,&buf[2]); - dest += strlen(&buf[2]); + sprintf(buf, "%4d", year); + strcpy(dest, &buf[2]); + dest += strlen(&buf[2]); format += 2; } - else if(strncmp(format,"hh",2) == 0) + else if (strncmp(format, "hh", 2) == 0) { - if (hour > 12) sprintf(buf,"%02d", hour - 12); - else if(hour == 0) sprintf(buf,"%02d", 12); - else sprintf(buf,"%02d", hour); - strcpy(dest,buf); - dest += strlen(buf); + if (hour > 12) + sprintf(buf, "%02d", hour - 12); + else if (hour == 0) + sprintf(buf, "%02d", 12); + else + sprintf(buf, "%02d", hour); + strcpy(dest, buf); + dest += strlen(buf); format += 2; } - else if(strncmp(format,"h",1) == 0) + else if (strncmp(format, "h", 1) == 0) { - if (hour > 12) sprintf(buf,"%2d", hour - 12); - else if(hour == 0) sprintf(buf,"%2d", 12); - else sprintf(buf,"%2d", hour); - strcpy(dest,buf); - dest += strlen(buf); + if (hour > 12) + sprintf(buf, "%2d", hour - 12); + else if (hour == 0) + sprintf(buf, "%2d", 12); + else + sprintf(buf, "%2d", hour); + strcpy(dest, buf); + dest += strlen(buf); format += 1; } - else if(strncmp(format,"HH",2) == 0) + else if (strncmp(format, "HH", 2) == 0) { - sprintf(buf,"%02d",hour); - strcpy(dest,buf); - dest += strlen(buf); + sprintf(buf, "%02d", hour); + strcpy(dest, buf); + dest += strlen(buf); format += 2; } - else if(strncmp(format,"H",1) == 0) + else if (strncmp(format, "H", 1) == 0) { - sprintf(buf,"%d",hour); - strcpy(dest,buf); - dest += strlen(buf); + sprintf(buf, "%d", hour); + strcpy(dest, buf); + dest += strlen(buf); format += 1; } - else if(strncmp(format,"mm",2) == 0) + else if (strncmp(format, "mm", 2) == 0) { - sprintf(buf,"%02d",minute); - strcpy(dest,buf); - dest += strlen(buf); + sprintf(buf, "%02d", minute); + strcpy(dest, buf); + dest += strlen(buf); format += 2; } - else if(strncmp(format,"m",1) == 0) + else if (strncmp(format, "m", 1) == 0) { - sprintf(buf,"%d",minute); - strcpy(dest,buf); - dest += strlen(buf); + sprintf(buf, "%d", minute); + strcpy(dest, buf); + dest += strlen(buf); format += 1; } - else if(strncmp(format,"ss",2) == 0) + else if (strncmp(format, "ss", 2) == 0) { - sprintf(buf,"%02d",second); - strcpy(dest,buf); - dest += strlen(buf); + sprintf(buf, "%02d", second); + strcpy(dest, buf); + dest += strlen(buf); format += 2; } - else if(strncmp(format,"s",1) == 0) + else if (strncmp(format, "s", 1) == 0) { - sprintf(buf,"%d",second); - strcpy(dest,buf); - dest += strlen(buf); + sprintf(buf, "%d", second); + strcpy(dest, buf); + dest += strlen(buf); format += 1; } - else if(strncmp(format,"zzz",3) == 0) + else if (strncmp(format, "zzz", 3) == 0) { - sprintf(buf,"%03d",millisecond); - strcpy(dest,buf); - dest += strlen(buf); + sprintf(buf, "%03d", millisecond); + strcpy(dest, buf); + dest += strlen(buf); format += 3; } - else if(strncmp(format,"z",1) == 0) + else if (strncmp(format, "z", 1) == 0) { - sprintf(buf,"%d",millisecond); - strcpy(dest,buf); - dest += strlen(buf); + sprintf(buf, "%d", millisecond); + strcpy(dest, buf); + dest += strlen(buf); format += 1; } - else if(strncmp(format,"AP",2) == 0) + else if (strncmp(format, "AP", 2) == 0) { - if (hour == 0) strcpy(dest,"PM"); - else if(hour < 13) strcpy(dest,"AM"); - else strcpy(dest,"PM"); - dest += strlen("AM"); + if (hour == 0) + strcpy(dest, "PM"); + else if (hour < 13) + strcpy(dest, "AM"); + else + strcpy(dest, "PM"); + dest += strlen("AM"); format += 2; } - else if(strncmp(format,"ap",2) == 0) + else if (strncmp(format, "ap", 2) == 0) { - if (hour == 0) strcpy(dest,"pm"); - else if(hour < 13) strcpy(dest,"am"); - else strcpy(dest,"pm"); - dest += strlen("am"); + if (hour == 0) + strcpy(dest, "pm"); + else if (hour < 13) + strcpy(dest, "am"); + else + strcpy(dest, "pm"); + dest += strlen("am"); format += 2; } - else if(strncmp(format,"A",1) == 0) + else if (strncmp(format, "A", 1) == 0) { - if (hour == 0) strcpy(dest,"PM"); - else if(hour < 13) strcpy(dest,"AM"); - else strcpy(dest,"PM"); - dest += strlen("AM"); + if (hour == 0) + strcpy(dest, "PM"); + else if (hour < 13) + strcpy(dest, "AM"); + else + strcpy(dest, "PM"); + dest += strlen("AM"); format += 1; } - else if(strncmp(format,"a",1) == 0) + else if (strncmp(format, "a", 1) == 0) { - if (hour == 0) strcpy(dest,"pm"); - else if(hour < 13) strcpy(dest,"am"); - else strcpy(dest,"pm"); - dest += strlen("am"); + if (hour == 0) + strcpy(dest, "pm"); + else if (hour < 13) + strcpy(dest, "am"); + else + strcpy(dest, "pm"); + dest += strlen("am"); format += 1; } else { *dest++ = *format++; } - if(dest - time_string + 6 > sizeof(time_string)) break; + + if (unsigned(dest - time_string + 6) > sizeof(time_string)) + break; } *dest = '\0'; return time_string; } -void rlTimeEx::getLocalTime() +rlTimeEx& rlTimeEx::getLocalTime() { #ifdef RLUNIX time_t t; - struct tm *tms; - struct tm tmsbuf; - struct timeval tv; + struct tm *tms; + struct tm tmsbuf; + struct timeval tv; struct timezone tz; time(&t); - tms = localtime_r(&t, &tmsbuf); + tms = localtime_r(&t, &tmsbuf); gettimeofday(&tv, &tz); /* adjust year and month */ tms->tm_year += 1900; tms->tm_mon += 1; - millisecond = (int)tv.tv_usec / 1000; - second = (int)tms->tm_sec; - minute = (int)tms->tm_min; - hour = (int)tms->tm_hour; - day = (int)tms->tm_mday; + millisecond = (int) tv.tv_usec / 1000; + second = (int) tms->tm_sec; + minute = (int) tms->tm_min; + hour = (int) tms->tm_hour; + day = (int) tms->tm_mday; month = (int)tms->tm_mon; year = (int)tms->tm_year; #endif #ifdef __VMS - TDS tds; + TDS tds; sys$numtim(&tds, 0); - millisecond = (int)tds.hth * 10; - second = (int)tds.sec; - minute = (int)tds.min; - hour = (int)tds.hour; - day = (int)tds.day; - month = (int)tds.month; - year = (int)tds.year; + millisecond = (int)tds.hth * 10; + second = (int)tds.sec; + minute = (int)tds.min; + hour = (int)tds.hour; + day = (int)tds.day; + month = (int)tds.month; + year = (int)tds.year; #endif #ifdef RLWIN32 SYSTEMTIME st; GetLocalTime(&st); - millisecond = st.wMilliseconds; - second = st.wSecond; - minute = st.wMinute; - hour = st.wHour; - day = st.wDay; - month = st.wMonth; - year = st.wYear; + millisecond = st.wMilliseconds; + second = st.wSecond; + minute = st.wMinute; + hour = st.wHour; + day = st.wDay; + month = st.wMonth; + year = st.wYear; #endif + + objectHoldsRelativeTime = false; + + return *this; } int rlTimeEx::getFileModificationTime(const char *filename) { struct stat statbuf; struct tm *tms; - struct tm tmsbuf; + struct tm tmsbuf; #ifdef RLUNIX - if(lstat(filename,&statbuf)) return -1; + if (lstat(filename, &statbuf)) + return -1; #else if(stat(filename,&statbuf)) return -1; #endif @@ -511,66 +650,69 @@ int rlTimeEx::getFileModificationTime(const char *filename) tms->tm_mon += 1; millisecond = 0; - second = (int)tms->tm_sec; - minute = (int)tms->tm_min; - hour = (int)tms->tm_hour; - day = (int)tms->tm_mday; - month = (int)tms->tm_mon; - year = (int)tms->tm_year; + second = (int) tms->tm_sec; + minute = (int) tms->tm_min; + hour = (int) tms->tm_hour; + day = (int) tms->tm_mday; + month = (int) tms->tm_mon; + year = (int) tms->tm_year; + objectHoldsRelativeTime = false; return 0; } void rlTimeEx::setLocalTime() { + assert(not this->objectHoldsRelativeTime && "cannot set local time/clock from relative time object"); + #ifdef RLUNIX struct timeval tv; struct tm t; - t.tm_mday = day; - t.tm_mon = month - 1; - t.tm_year = year - 1900; - t.tm_hour = hour; - t.tm_min = minute; - t.tm_sec = second; - tv.tv_sec = mktime(&t); + t.tm_mday = day; + t.tm_mon = month - 1; + t.tm_year = year - 1900; + t.tm_hour = hour; + t.tm_min = minute; + t.tm_sec = second; + tv.tv_sec = mktime(&t); tv.tv_usec = 1000 * millisecond; - settimeofday(&tv,NULL); + settimeofday(&tv, NULL); #endif #ifdef __VMS VAX_BIN_TIME vbt; - struct dsc$descriptor_s d_time; + struct dsc$descriptor_s d_time; char smonth[12][4],buf[64]; // Initialize month array - memset (smonth , 0, sizeof(smonth)); - memcpy (smonth [0], "JAN", 3); - memcpy (smonth [1], "FEB", 3); - memcpy (smonth [2], "MAR", 3); - memcpy (smonth [3], "APR", 3); - memcpy (smonth [4], "MAY", 3); - memcpy (smonth [5], "JUN", 3); - memcpy (smonth [6], "JUL", 3); - memcpy (smonth [7], "AUG", 3); - memcpy (smonth [8], "SEP", 3); - memcpy (smonth [9], "OCT", 3); + memset (smonth , 0, sizeof(smonth)); + memcpy (smonth [0], "JAN", 3); + memcpy (smonth [1], "FEB", 3); + memcpy (smonth [2], "MAR", 3); + memcpy (smonth [3], "APR", 3); + memcpy (smonth [4], "MAY", 3); + memcpy (smonth [5], "JUN", 3); + memcpy (smonth [6], "JUL", 3); + memcpy (smonth [7], "AUG", 3); + memcpy (smonth [8], "SEP", 3); + memcpy (smonth [9], "OCT", 3); memcpy (smonth [10], "NOV", 3); memcpy (smonth [11], "DEC", 3); // Create time buffer sprintf(buf, "%02d-%3.3s-%04d %02d:%02d:%02d.%02d", - day, - smonth[month-1], - year, - hour, - minute, - second, - millisecond / 10); + day, + smonth[month-1], + year, + hour, + minute, + second, + millisecond / 10); // Fill string descriptor - d_time.dsc$w_length = strlen(buf); - d_time.dsc$b_dtype = DSC$K_DTYPE_T; - d_time.dsc$b_class = DSC$K_CLASS_S; + d_time.dsc$w_length = strlen(buf); + d_time.dsc$b_dtype = DSC$K_DTYPE_T; + d_time.dsc$b_class = DSC$K_CLASS_S; d_time.dsc$a_pointer = buf; // Convert time buf to VAX bin time sys$bintim(&d_time, &vbt); @@ -580,135 +722,245 @@ void rlTimeEx::setLocalTime() #ifdef RLWIN32 SYSTEMTIME st; - st.wDay = day; - st.wMonth = month; - st.wYear = year; - st.wHour = hour; - st.wMinute = minute; - st.wSecond = second; + st.wDay = day; + st.wMonth = month; + st.wYear = year; + st.wHour = hour; + st.wMinute = minute; + st.wSecond = second; st.wMilliseconds = millisecond; SetSystemTime(&st); #endif + + objectHoldsRelativeTime = false; } -rlTime& rlTimeEx::operator+=(time_t seconds) +rlTimeEx& rlTimeEx::operator+=(time_t seconds) { - if (0 > seconds) - return this->operator -=(-seconds); + if (0 > seconds) + return this->operator -=(-seconds); - auto d = std::div(seconds, time_t(60)); - second += d.rem; - if (d.quot) -{ - d = std::div(d.quot, time_t(60)); - minute += d.rem; - if (d.quot) -{ - d = std::div(d.quot, time_t(24)); - hour += d.rem; - if (d.quot) + std::lldiv_t d = std::lldiv(seconds, time_t(60)); + second += d.rem; + if (d.quot) { - d = std::div(d.quot, time_t(31)); - day += d.rem; - if (d.quot) + d = std::lldiv(d.quot, time_t(60)); + minute += d.rem; + if (d.quot) + { + d = std::lldiv(d.quot, time_t(24)); + hour += d.rem; + if (d.quot) { - d = std::div(d.quot, time_t(12)); - month += d.rem; - year += d.quot; - } - } + if (not objectHoldsRelativeTime) + { + d = std::lldiv(d.quot, time_t(31)); + day += d.rem; + if (d.quot) + { + d = std::lldiv(d.quot, time_t(12)); + month += d.rem; + year += d.quot; + } + } + else // do not split remaining days down to months and years, as this is not linear + { + day += d.quot; + } } + } } - this->normalizeAsDate(); - - return *this; + // now normalize the values, as this is not done above + if (not objectHoldsRelativeTime) + normalizeAsDate(); + else + normalizeAsRelativeTime(); + + return *this; } -rlTime& rlTimeEx::operator-=(time_t seconds) +rlTimeEx& rlTimeEx::operator-=(time_t seconds) { - if (0 > seconds) - return this->operator +=(-seconds); + if (0 > seconds) + return this->operator +=(-seconds); - auto d = std::div(seconds, time_t(60)); - second -= d.rem; - if (second < 0) + std::lldiv_t d = std::lldiv(seconds, time_t(60)); + second -= d.rem; + if (second < 0) { - ++d.quot; - second += 60; - } - if (d.quot) + ++d.quot; + second += 60; + } + if (d.quot) { - d = std::div(d.quot, time_t(60)); - minute -= d.rem; - if (minute < 0) - { - ++d.quot; - minute += 60; - } - if (d.quot) - { - d = std::div(d.quot, time_t(24)); - hour -= d.rem; - if (hour < 0) - { - ++d.quot; - hour += 24; - } - if (d.quot) - { - d = std::div(d.quot, time_t(31)); - day -= d.rem; - if (day < 0) - { - ++d.quot; - day += 31; - } - if (d.quot) - { - d = std::div(d.quot, time_t(12)); - month -= d.rem; - if (month < 0) + d = std::lldiv(d.quot, time_t(60)); + minute -= d.rem; + if (minute < 0) + { + ++d.quot; + minute += 60; + } + if (d.quot) + { + d = std::lldiv(d.quot, time_t(24)); + hour -= d.rem; + if (hour < 0) + { + ++d.quot; + hour += 24; + } + if (d.quot) + { + if (not objectHoldsRelativeTime) + { + d = std::lldiv(d.quot, time_t(31)); + day -= d.rem; + if (day < 0) + { + ++d.quot; + day += 31; + } + if (d.quot) { - ++d.quot; - month += 12; - } - year -= d.quot; - } - } + d = std::lldiv(d.quot, time_t(12)); + month -= d.rem; + if (month < 0) + { + ++d.quot; + month += 12; + } + year -= d.quot; + } + } + else // do not split remaining days down to months and years, as this is not linear + { + day -= d.quot; + } + } } } - this->normalizeAsDate(); + // now normalize the values, as this is not done above + if (not objectHoldsRelativeTime) + normalizeAsDate(); + else + normalizeAsRelativeTime(); return *this; } -rlTime rlTimeEx::operator+(time_t seconds) const +rlTimeEx rlTimeEx::operator+(time_t seconds) const + { + rlTimeEx t(*this); + + t += seconds; + + return t; +} + +rlTimeEx rlTimeEx::operator-(time_t seconds) const + { + rlTimeEx t(*this); + + t -= seconds; + + return t; +} + +rlTimeEx& rlTimeEx::operator +=(const ftime_t& seconds) { - rlTime t(*this); - - t += seconds; - - return t; + int ms = fmod(round(seconds * 1000.), 1000.); + time_t sec = time_t(seconds); + + millisecond += ms; + *this += sec; + + return *this; } -rlTime rlTimeEx::operator-(time_t seconds) const +rlTimeEx& rlTimeEx::operator -=(const ftime_t& seconds) { - rlTime t(*this); - - t -= seconds; - + int ms = fmod(round(seconds * 1000.), 1000.); + time_t sec = time_t(seconds); + + millisecond -= ms; + *this -= sec; + + return *this; +} + +rlTimeEx rlTimeEx::operator +(const ftime_t& seconds) const + { + rlTimeEx t(*this); + + t += seconds; + return t; } -double rlTimeEx::operator-(const rlTime &time) const +rlTimeEx rlTimeEx::operator -(const ftime_t& seconds) const + { + rlTimeEx t(*this); + + t -= seconds; + + return t; +} + +rlTimeEx& rlTimeEx::operator+=(const RelativeTime &t) { - return this->secondsSinceEpoche() - time.secondsSinceEpoche(); + time_t linear_value = t.m_myParent_.second + (t.m_myParent_.minute * 60) + (t.m_myParent_.hour * 60 * 60) + (t.m_myParent_.day * 24 * 60 * 60); + this->millisecond += t.m_myParent_.millisecond; + *this += linear_value; + + return *this; } -int rlTimeEx::operator==(const rlTimeEx &time) const +rlTimeEx& rlTimeEx::operator-=(const RelativeTime &t) { + time_t linear_value = t.m_myParent_.second + (t.m_myParent_.minute * 60) + (t.m_myParent_.hour * 60 * 60) + (t.m_myParent_.day * 24 * 60 * 60); + this->millisecond -= t.m_myParent_.millisecond; + *this -= linear_value; + + return *this; +} + +rlTimeEx rlTimeEx::operator+(const RelativeTime &time) const + { + rlTimeEx t(*this); + + t += time; + + return t; +} + +rlTimeEx rlTimeEx::operator-(const RelativeTime &time) const + { + rlTimeEx t(*this); + + t -= time; + + return t; +} + +double rlTimeEx::operator-(const rlTimeEx &time) const + { + if (this->objectHoldsRelativeTime and time.objectHoldsRelativeTime) + return (this->seconds() - time.seconds()); + else if (not this->objectHoldsRelativeTime and time.objectHoldsRelativeTime) + return this->secondsSinceEpoche() - time.seconds(); + else if (not this->objectHoldsRelativeTime and not time.objectHoldsRelativeTime) + return (this->secondsSinceEpoche() - time.secondsSinceEpoche()); + else + { + assert(not time.objectHoldsRelativeTime && "you cannot run the difference between relative and absolute time this way (relative minus absolute)"); + return std::numeric_limits::quiet_NaN();; // just to make code inspection tools happy, in case assert() is defined empty + } +} + +int rlTimeEx::operator==(const rlTimeEx &time) const + { if(year != time.year) return 0; if(month != time.month) return 0; if(day != time.day) return 0; @@ -721,148 +973,149 @@ int rlTimeEx::operator==(const rlTimeEx &time) const } int rlTimeEx::operator<=(const rlTimeEx &time) const -{ + { if((*this) == time) return 1; if((*this) < time) return 1; return 0; } int rlTimeEx::operator>=(const rlTimeEx &time) const -{ + { if((*this) == time) return 1; if((*this) > time) return 1; return 0; } -int rlTimeEx::operator<(const rlTime &time) const -{ - if (this->year < time.year) - return 1; - else if (this->year == time.year) - { - if (this->month < time.month) - return 1; - else if (this->month == time.month) - { - if (this->day < time.day) - return 1; - else if (this->day == time.day) - { - if (this->hour < time.hour) - return 1; - else if (this->hour == time.hour) - { - if (this->minute < time.minute) - return 1; - else if (this->minute == time.minute) - { - if (this->second < time.second) - return 1; - else if (this->second == time.second) -{ - if (this->millisecond < time.millisecond) - return 1; - } - } - } - } - } - } +int rlTimeEx::operator<(const rlTimeEx &time) const + { + if (this->year < time.year) + return 1; + else if (this->year == time.year) + { + if (this->month < time.month) + return 1; + else if (this->month == time.month) + { + if (this->day < time.day) + return 1; + else if (this->day == time.day) + { + if (this->hour < time.hour) + return 1; + else if (this->hour == time.hour) + { + if (this->minute < time.minute) + return 1; + else if (this->minute == time.minute) + { + if (this->second < time.second) + return 1; + else if (this->second == time.second) + { + if (this->millisecond < time.millisecond) + return 1; + } + } + } + } + } + } return 0; } -int rlTimeEx::operator>(const rlTime &time) const -{ - if (this->year > time.year) - return 1; - else if (this->year == time.year) - { - if (this->month > time.month) - return 1; - else if (this->month == time.month) - { - if (this->day > time.day) - return 1; - else if (this->day == time.day) - { - if (this->hour > time.hour) - return 1; - else if (this->hour == time.hour) - { - if (this->minute > time.minute) - return 1; - else if (this->minute == time.minute) - { - if (this->second > time.second) - return 1; - else if (this->second == time.second) -{ - if (this->millisecond > time.millisecond) - return 1; - } - } - } - } - } - } - +int rlTimeEx::operator>(const rlTimeEx &time) const + { + if (this->year > time.year) + return 1; + else if (this->year == time.year) + { + if (this->month > time.month) + return 1; + else if (this->month == time.month) + { + if (this->day > time.day) + return 1; + else if (this->day == time.day) + { + if (this->hour > time.hour) + return 1; + else if (this->hour == time.hour) + { + if (this->minute > time.minute) + return 1; + else if (this->minute == time.minute) + { + if (this->second > time.second) + return 1; + else if (this->second == time.second) + { + if (this->millisecond > time.millisecond) + return 1; + } + } + } + } + } + } + return 0; } -time_t rlTimeEx::timegm(struct tm* tm_) -{ - auto t = mktime(tm_); - struct tm ltm; - struct tm gtm; - auto lt = localtime_r(&t, <m); - auto gt = gmtime_r(&t, >m); - auto diff = mktime(lt) - mktime(gt); - return t + diff; -} - -double rlTimeEx::secondsSinceEpoche() const +time_t rlTimeEx::timegm(struct tm* tm_) +{ + auto t = mktime(tm_); + struct tm ltm; + struct tm gtm; + auto lt = localtime_r(&t, <m); + auto gt = gmtime_r(&t, >m); + auto diff = mktime(lt) - mktime(gt); + return t + diff; +} + +double rlTimeEx::secondsSinceEpoche() const { struct tm begin; struct tm test; - memset(&begin,0,sizeof(tm)); - memset(&test,0,sizeof(tm)); + memset(&begin, 0, sizeof(tm)); + memset(&test, 0, sizeof(tm)); begin.tm_year = 70; - begin.tm_mon = 0; - begin.tm_mday = 2; // see below + begin.tm_mon = 0; + begin.tm_mday = 2; // see below begin.tm_hour = 0; - begin.tm_min = 0; - begin.tm_sec = 0; - begin.tm_isdst = 0; + begin.tm_min = 0; + begin.tm_sec = 0; + begin.tm_isdst = 0; test.tm_year = year - 1900; - test.tm_mon = month - 1; + test.tm_mon = month - 1; test.tm_mday = day; test.tm_hour = hour; - test.tm_min = minute; - test.tm_sec = second; - test.tm_isdst = -1; + test.tm_min = minute; + test.tm_sec = second; + test.tm_isdst = -1; - time_t t0 = timegm(&begin) - 86400; // a weak workaround: on several platform (especially Windows 7 in Europe Timezones) mktime() is not capable of converting 19070-01-01T00:00:00 into seconds, because they try to convert it into UTC instead of localtime - time_t t1 = mktime(&test); // this might be error prone, see above + time_t t0 = timegm(&begin) - 86400; // a weak workaround: on several platform (especially Windows 7 in Europe Timezones) mktime() is not capable of converting 19070-01-01T00:00:00 into seconds, because they try to convert it into UTC instead of localtime + time_t t1 = mktime(&test); // this might be error prone, see above - return difftime(t1,t0) + (((double) millisecond) / 1000); + return difftime(t1, t0) + (((double) millisecond) / 1000); } - /** * seconds := delta time * milliseconds within the fraction */ double rlTimeEx::seconds() const { - double ret = (((double) millisecond) / 1000) + second + minute*60 + hour*60*60 + month*60*60*30.5 + year*60*60*30.5*12; + double ret = (((double) millisecond) / 1000); + ret += second + minute * 60 + hour * 60 * 60 + day * 24 * 60 * 60; + ret += month*60*60*30.5 + year*60*60*30.5*12; return ret; } -const char* rlTimeEx::formatTimeDiff(double tdiff, enum FormatLargestUnit fmt, unsigned bufferLength, char* buffer) +const char* rlTimeEx::formatTimeDiff(ftime_t tdiff, enum FormatLargestUnit fmt, unsigned bufferLength, char* buffer) { if (0 < bufferLength) { @@ -925,12 +1178,12 @@ const char* rlTimeEx::formatTimeDiff(double tdiff, enum FormatLargestUnit fmt, u snprintf(buffer, bufferLength, fmtString, (isNegative ? "-" : ""), weeks.quot, weeks.rem, days.rem, hours.rem, minutes.rem); break; } -} + } return buffer; } -const char* rlTimeEx::formatTimeDiff(const rlTime& t1, const rlTime& t2, enum FormatLargestUnit fmt, unsigned bufferLength, char* buffer) +const char* rlTimeEx::formatTimeDiff(const rlTimeEx& t1, const rlTimeEx& t2, enum FormatLargestUnit fmt, unsigned bufferLength, char* buffer) { return formatTimeDiff(t2 - t1, fmt, bufferLength, buffer); } @@ -946,7 +1199,7 @@ std::string rlTimeEx::formatTimeDiffString(double tdiff, enum FormatLargestUnit return diffStr; } -std::string rlTimeEx::formatTimeDiffString(const rlTime& t1, const rlTime& t2, enum FormatLargestUnit fmt) +std::string rlTimeEx::formatTimeDiffString(const rlTimeEx& t1, const rlTimeEx& t2, enum FormatLargestUnit fmt) { return formatTimeDiffString(t2 - t1, fmt); } diff --git a/rllib/lib/rltimeex.h b/rllib/lib/rltimeex.h index 4217d275..4d48123e 100644 --- a/rllib/lib/rltimeex.h +++ b/rllib/lib/rltimeex.h @@ -20,9 +20,24 @@ #include #include #include +#include + +#ifdef RLCPP11 +#include +#endif /*!
-class for handling time.
+class for handling time. It supports also simple formatting of time differences.
+
+If the year is smaller than 1970 a relative time is assumed in contrast to an absolute point in time for
+years greater than 1970.
+
+For good clarity of what you want express, avoid years and months for relative times and express relative
+times as days, hours etc.
+
+Relative times are normalized in a fashion that, as of its nonlinear nature of months length and year length,
+finally the most rough granularity component for relative times is expressed in days. This way are assumptions of
+month length and year length are taken out of calculations as early as possible.
 
*/ class rlTimeEx { @@ -31,6 +46,9 @@ class rlTimeEx typedef int64_t time_t; ///< for applying relative adjustments to the time, it's a redefintion on most modern platform, but anyway typedef double ftime_t; ///< for applying relative adjustments in fractions of a second + struct RelativeTime; ///< a proxy type for adding relative time to absolutes + + explicit rlTimeEx(int Year=0, int Month=0, int Day=0, int Hour=0, int Minute=0, int Second=0, int Millisecond=0); #ifdef RLCPP11 rlTimeEx(double&) = delete; @@ -39,38 +57,61 @@ class rlTimeEx const char *getTimeString(); const char *getIsoTimeString(); const char *toString(const char *format); - void getLocalTime(); + rlTimeEx& getLocalTime(); int getFileModificationTime(const char *filename); /*!
   format: sscanf(time_string,"%d-%d-%d %d:%d:%d %d",&year,&month,&day, &hour,&minute,&second, &millisecond);
   
*/ - void setTimeFromString(const char *time_string); - void setTimeFromIsoString(const char *iso_time_string); - void setTimeFromSeconds(double const &seconds); // we assume 30.5 days per month + rlTimeEx& setTimeFromString(const char *time_string); + rlTimeEx& setTimeFromIsoString(const char *iso_time_string); + rlTimeEx& setTimeFromSeconds(double seconds); // we assume 30.5 days per month void setLocalTime(); double secondsSinceEpoche() const; - double seconds() const; // we assume 30.5 days per month + double seconds() const; + + // implicitly converted rlTimeEx objects for doing relative adjustments to objects + rlTimeEx& operator+= (const RelativeTime &time); + rlTimeEx& operator-= (const RelativeTime &time); + rlTimeEx operator+ (const RelativeTime &time) const; + rlTimeEx operator- (const RelativeTime &time) const; // one must cast explicitly to get an rlTimeEx object back, i.e. t2 - RelativeTime(t1); - rlTimeEx& operator+= (rlTimeEx &time); - rlTimeEx& operator-= (rlTimeEx &time); - rlTimeEx operator+ (rlTimeEx &time) const; - rlTimeEx operator- (rlTimeEx &time) const; + // integral time spans, pre C++11 compiler users must convert argument value explicitly to time_t by time_t(seconds) + rlTimeEx& operator+= (time_t seconds); ///< adjust absolute time by number of seconds + rlTimeEx& operator-= (time_t seconds); ///< adjust absolute time by number of seconds + rlTimeEx operator+ (time_t seconds) const; ///< make new object with absolute time adjusted by number of seconds + rlTimeEx operator- (time_t seconds) const; ///< make new object with absolute time adjusted by number of seconds - rlTimeEx& operator+= (double const &seconds); // we assume 30.5 days per month - rlTimeEx& operator-= (double const &seconds); // we assume 30.5 days per month - rlTimeEx operator+ (double const &seconds) const; // we assume 30.5 days per month - rlTimeEx operator- (double const &seconds) const; // we assume 30.5 days per month - rlTimeEx& operator+= (time_t seconds); ///< adjust absolute time by number of seconds - rlTimeEx& operator-= (time_t seconds); ///< adjust absolute time by number of seconds - rlTimeEx operator+ (time_t seconds) const; ///< make new object with absolute time adjusted by number of seconds - rlTimeEx operator- (time_t seconds) const; ///< make new object with absolute time adjusted by number of seconds + // floating point time spans with millisecond resolution, pre C++11 compiler users must convert argument value to ftime_t by ftime_t(seconds) + rlTimeEx& operator += (const ftime_t& seconds); + rlTimeEx& operator -= (const ftime_t& seconds); + rlTimeEx operator + (const ftime_t& seconds) const; + rlTimeEx operator - (const ftime_t& seconds) const; - rlTimeEx& operator += (const ftime_t& seconds); // we assume 30.5 days per month - rlTimeEx& operator -= (const ftime_t& seconds); // we assume 30.5 days per month - rlTimeEx operator + (const ftime_t& seconds) const; // we assume 30.5 days per month - rlTimeEx operator - (const ftime_t& seconds) const; // we assume 30.5 days per month +#ifdef RLCPP11 + // some templates to catch all other integer type arguments and convert them to time_t + template::value, argType>::type* = nullptr> + rlTimeEx& operator+= (argType seconds); ///< adjust absolute time by number of seconds + template::value, argType>::type* = nullptr> + rlTimeEx& operator-= (argType seconds); ///< adjust absolute time by number of seconds + template::value, argType>::type* = nullptr> + rlTimeEx operator+ (argType seconds) const; ///< make new object with absolute time adjusted by number of seconds + template::value, argType>::type* = nullptr> + rlTimeEx operator- (argType seconds) const; ///< make new object with absolute time adjusted by number of seconds + + // some templates to catch all other floating point type arguments and convert them to ftime_t + template::value, argType>::type* = nullptr> + rlTimeEx& operator+= (argType seconds); ///< adjust absolute time by number of seconds + template::value, argType>::type* = nullptr> + rlTimeEx& operator-= (argType seconds); ///< adjust absolute time by number of seconds + template::value, argType>::type* = nullptr> + rlTimeEx operator+ (argType seconds) const; ///< make new object with absolute time adjusted by number of seconds + template::value, argType>::type* = nullptr> + rlTimeEx operator- (argType seconds) const; ///< make new object with absolute time adjusted by number of seconds +#endif + + double operator- (const rlTimeEx &time) const; ///< difference of two points in time in seconds.milliseconds int operator== (const rlTimeEx &time) const; int operator< (const rlTimeEx &time) const; @@ -100,31 +141,104 @@ class rlTimeEx ///< Caller chooses formatting template, default is Hours:Minutes:Seconds.Milliseconds, caller provides buffer, or, NULL pointer, buffer must be deleted (delete[]) static - const char* formatTimeDiff(double, enum FormatLargestUnit = HoursMinutesSecondsFraction, unsigned bufferLength = 32, char* buffer = 0); + const char* formatTimeDiff(ftime_t, enum FormatLargestUnit = HoursMinutesSecondsFraction, unsigned bufferLength = 32, char* buffer = 0); ///< Caller chooses formatting template, default is Hours:Minutes:Seconds.Milliseconds, caller provides buffer, or buffer must be deleted (delete[]) static - const char* formatTimeDiff(const rlTime& t1, const rlTime& t2, enum FormatLargestUnit = HoursMinutesSecondsFraction, unsigned bufferLength = 32, char* buffer = 0); + const char* formatTimeDiff(const rlTimeEx& t1, const rlTimeEx& t2, enum FormatLargestUnit = HoursMinutesSecondsFraction, unsigned bufferLength = 32, char* buffer = 0); ///< Caller chooses formatting template, default is Hours:Minutes:Seconds.Milliseconds, returned object manages string memory static - std::string formatTimeDiffString(double, enum FormatLargestUnit = HoursMinutesSecondsFraction); + std::string formatTimeDiffString(ftime_t, enum FormatLargestUnit = HoursMinutesSecondsFraction); ///< Caller chooses formatting template, default is Hours:Minutes:Seconds.Milliseconds, returned object manages string memory static - std::string formatTimeDiffString(const rlTime& t1, const rlTime& t2, enum FormatLargestUnit = HoursMinutesSecondsFraction); + std::string formatTimeDiffString(const rlTimeEx& t1, const rlTimeEx& t2, enum FormatLargestUnit = HoursMinutesSecondsFraction); static time_t timegm(struct tm* tm_); ///< emulates the POSIX function, which is i.e. under Windows not available void normalizeAsDate(); ///< normalizes odd constructions of time and date, such 2014-03-36 is normalized to 2014-04-05, simelar oddities for the time are corrected. + void normalizeAsRelativeTime(); // we assume 30.5 days per month and 365.25 days per year and accumulate months and years in the days component + + struct RelativeTime // inline implmentation of the proxy type for adding relative time to absolutes + { + inline + RelativeTime(const rlTimeEx& rlt) + : m_myParent_(rlt) + { + assert(rlt.objectHoldsRelativeTime); + } + + inline + operator double() const + { + return m_myParent_.seconds(); + } + + const rlTimeEx& m_myParent_; + }; private: char time_string[32*2]; // 2001-11-23 12:52:60 056 char iso_time_string[32]; // 2001-11-23T12:52:60.056 + bool objectHoldsRelativeTime:1; + #ifndef RLCPP11 explicit rlTimeEx(double&); // intentionally no implementation, as this shall not be explicit or implicit used #endif }; + +#ifdef RLCPP11 +// implementation of the template declarations and overloads above +template::value, argType>::type* = nullptr> +rlTimeEx& rlTimeEx::operator+= (argType seconds) +{ + return this->operator +=(time_t(seconds)); +} + +template::value, argType>::type* = nullptr> +rlTimeEx& rlTimeEx::operator-= (argType seconds) +{ + return this->operator -=(time_t(seconds)); +} + +template::value, argType>::type* = nullptr> +rlTimeEx rlTimeEx::operator+ (argType seconds) const +{ + return this->operator +(time_t(seconds)); +} + +template::value, argType>::type* = nullptr> +rlTimeEx rlTimeEx::operator- (argType seconds) const +{ + return this->operator -(time_t(seconds)); +} + +template::value, argType>::type* = nullptr> +rlTimeEx& rlTimeEx::operator+= (argType seconds) +{ + return this->operator +=(ftime_t(seconds)); +} + +template::value, argType>::type* = nullptr> +rlTimeEx& rlTimeEx::operator-= (argType seconds) +{ + return this->operator -=(ftime_t(seconds)); +} + +template::value, argType>::type* = nullptr> +rlTimeEx rlTimeEx::operator+ (argType seconds) const +{ + return this->operator +(ftime_t(seconds)); +} + +template::value, argType>::type* = nullptr> +rlTimeEx rlTimeEx::operator- (argType seconds) const +{ + return this->operator -(ftime_t(seconds)); +} +#endif + #endif From da84b654c14bb5f24cd22e7688237e8908df7dc2 Mon Sep 17 00:00:00 2001 From: Johannes Lode Date: Sun, 3 Feb 2019 13:08:46 +0100 Subject: [PATCH 05/16] Consistent signature for rltranslate(). --- .gitignore | 3 + .../language_binding_rllib_wrap_lua.cxx | 6236 ++++++++++------- .../language_binding_wrap_lua.cxx | 3516 +++++++--- language_bindings/lua/pvapplua/main.cpp | 6 - language_bindings/lua/pvslua/main.cpp | 6 - rllib/lib/rlinifile.h | 2 +- 6 files changed, 6027 insertions(+), 3742 deletions(-) diff --git a/.gitignore b/.gitignore index 8015f2f3..3cf1c657 100644 --- a/.gitignore +++ b/.gitignore @@ -54,3 +54,6 @@ win-mingw/bin/fake_qmake.exe win-mingw/bin/rlsvgcat.exe language_bindings/lua/pvslua/pvslua language_bindings/lua/pvslua/pvapplua +/.cproject +/.project +/.settings/ diff --git a/language_bindings/language_binding_rllib_wrap_lua.cxx b/language_bindings/language_binding_rllib_wrap_lua.cxx index 7f0e01e7..31340fcb 100644 --- a/language_bindings/language_binding_rllib_wrap_lua.cxx +++ b/language_bindings/language_binding_rllib_wrap_lua.cxx @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.12 + * Version 3.0.12 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make @@ -8,7 +8,11 @@ * interface file instead. * ----------------------------------------------------------------------------- */ + +#ifndef SWIGLUA #define SWIGLUA +#endif + #define SWIG_LUA_TARGET SWIG_LUA_FLAVOR_LUA #define SWIG_LUA_MODULE_GLOBAL @@ -103,9 +107,11 @@ template T SwigValueInit() { #endif /* exporting methods */ -#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) -# ifndef GCC_HASCLASSVISIBILITY -# define GCC_HASCLASSVISIBILITY +#if defined(__GNUC__) +# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) +# ifndef GCC_HASCLASSVISIBILITY +# define GCC_HASCLASSVISIBILITY +# endif # endif #endif @@ -144,6 +150,19 @@ template T SwigValueInit() { # define _SCL_SECURE_NO_DEPRECATE #endif +/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */ +#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) +# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 +#endif + +/* Intel's compiler complains if a variable which was never initialised is + * cast to void, which is a common idiom which we use to indicate that we + * are aware a variable isn't used. So we just silence that warning. + * See: https://github.com/swig/swig/issues/192 for more discussion. + */ +#ifdef __INTEL_COMPILER +# pragma warning disable 592 +#endif /* ----------------------------------------------------------------------------- * swigrun.swg @@ -551,14 +570,14 @@ SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *iter = start; do { if (iter->size) { - register size_t l = 0; - register size_t r = iter->size - 1; + size_t l = 0; + size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ - register size_t i = (l + r) >> 1; + size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { - register int compare = strcmp(name, iname); + int compare = strcmp(name, iname); if (compare == 0) { return iter->types[i]; } else if (compare < 0) { @@ -602,7 +621,7 @@ SWIG_TypeQueryModule(swig_module_info *start, of the str field (the human readable name) */ swig_module_info *iter = start; do { - register size_t i = 0; + size_t i = 0; for (; i < iter->size; ++i) { if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) return iter->types[i]; @@ -621,10 +640,10 @@ SWIG_TypeQueryModule(swig_module_info *start, SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz) { static const char hex[17] = "0123456789abcdef"; - register const unsigned char *u = (unsigned char *) ptr; - register const unsigned char *eu = u + sz; + const unsigned char *u = (unsigned char *) ptr; + const unsigned char *eu = u + sz; for (; u != eu; ++u) { - register unsigned char uu = *u; + unsigned char uu = *u; *(c++) = hex[(uu & 0xf0) >> 4]; *(c++) = hex[uu & 0xf]; } @@ -636,22 +655,22 @@ SWIG_PackData(char *c, void *ptr, size_t sz) { */ SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz) { - register unsigned char *u = (unsigned char *) ptr; - register const unsigned char *eu = u + sz; + unsigned char *u = (unsigned char *) ptr; + const unsigned char *eu = u + sz; for (; u != eu; ++u) { - register char d = *(c++); - register unsigned char uu; + char d = *(c++); + unsigned char uu; if ((d >= '0') && (d <= '9')) - uu = ((d - '0') << 4); + uu = (unsigned char)((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) - uu = ((d - ('a'-10)) << 4); + uu = (unsigned char)((d - ('a'-10)) << 4); else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) - uu |= (d - '0'); + uu |= (unsigned char)(d - '0'); else if ((d >= 'a') && (d <= 'f')) - uu |= (d - ('a'-10)); + uu |= (unsigned char)(d - ('a'-10)); else return (char *) 0; *u = uu; @@ -747,23 +766,110 @@ extern "C" { # error SWIG_LUA_TARGET not defined #endif +#if defined(SWIG_LUA_ELUA_EMULATE) + +struct swig_elua_entry; + +typedef struct swig_elua_key { + int type; + union { + const char* strkey; + lua_Number numkey; + } key; +} swig_elua_key; + +typedef struct swig_elua_val { + int type; + union { + lua_Number number; + const struct swig_elua_entry *table; + const char *string; + lua_CFunction function; + struct { + char member; + long lvalue; + void *pvalue; + swig_type_info **ptype; + } userdata; + } value; +} swig_elua_val; + +typedef struct swig_elua_entry { + swig_elua_key key; + swig_elua_val value; +} swig_elua_entry; + +#define LSTRKEY(x) {LUA_TSTRING, {.strkey = x} } +#define LNUMKEY(x) {LUA_TNUMBER, {.numkey = x} } +#define LNILKEY {LUA_TNIL, {.strkey = 0} } + +#define LNUMVAL(x) {LUA_TNUMBER, {.number = x} } +#define LFUNCVAL(x) {LUA_TFUNCTION, {.function = x} } +#define LROVAL(x) {LUA_TTABLE, {.table = x} } +#define LNILVAL {LUA_TNIL, {.string = 0} } +#define LSTRVAL(x) {LUA_TSTRING, {.string = x} } + +#define LUA_REG_TYPE swig_elua_entry + +#define SWIG_LUA_ELUA_EMUL_METATABLE_KEY "__metatable" + +#define lua_pushrotable(L,p)\ + lua_newtable(L);\ + assert(p);\ + SWIG_Lua_elua_emulate_register(L,(swig_elua_entry*)(p)); + +#define SWIG_LUA_CONSTTAB_POINTER(B,C,D)\ + LSTRKEY(B), {LUA_TUSERDATA, { .userdata={0,0,(void*)(C),&D} } } + +#define SWIG_LUA_CONSTTAB_BINARY(B,S,C,D)\ + LSTRKEY(B), {LUA_TUSERDATA, { .userdata={1,S,(void*)(C),&D} } } +#endif + #if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) # define SWIG_LUA_CONSTTAB_INT(B, C) LSTRKEY(B), LNUMVAL(C) # define SWIG_LUA_CONSTTAB_FLOAT(B, C) LSTRKEY(B), LNUMVAL(C) # define SWIG_LUA_CONSTTAB_STRING(B, C) LSTRKEY(B), LSTRVAL(C) # define SWIG_LUA_CONSTTAB_CHAR(B, C) LSTRKEY(B), LNUMVAL(C) + /* Those two types of constants are not supported in elua */ + +#ifndef SWIG_LUA_CONSTTAB_POINTER +#warning eLua does not support pointers as constants. By default, nil will be used as value +#define SWIG_LUA_CONSTTAB_POINTER(B,C,D) LSTRKEY(B), LNILVAL +#endif + +#ifndef SWIG_LUA_CONSTTAB_BINARY +#warning eLua does not support pointers to member as constants. By default, nil will be used as value +#define SWIG_LUA_CONSTTAB_BINARY(B, S, C, D) LSTRKEY(B), LNILVAL +#endif #else /* SWIG_LUA_FLAVOR_LUA */ # define SWIG_LUA_CONSTTAB_INT(B, C) SWIG_LUA_INT, (char *)B, (long)C, 0, 0, 0 # define SWIG_LUA_CONSTTAB_FLOAT(B, C) SWIG_LUA_FLOAT, (char *)B, 0, (double)C, 0, 0 # define SWIG_LUA_CONSTTAB_STRING(B, C) SWIG_LUA_STRING, (char *)B, 0, 0, (void *)C, 0 # define SWIG_LUA_CONSTTAB_CHAR(B, C) SWIG_LUA_CHAR, (char *)B, (long)C, 0, 0, 0 +# define SWIG_LUA_CONSTTAB_POINTER(B,C,D)\ + SWIG_LUA_POINTER, (char *)B, 0, 0, (void *)C, &D +# define SWIG_LUA_CONSTTAB_BINARY(B, S, C, D)\ + SWIG_LUA_BINARY, (char *)B, S, 0, (void *)C, &D #endif +#ifndef SWIG_LUA_ELUA_EMULATE #if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) # define LRO_STRVAL(v) {{.p = (char *) v}, LUA_TSTRING} # define LSTRVAL LRO_STRVAL #endif +#endif /* SWIG_LUA_ELUA_EMULATE*/ + +#ifndef SWIG_LUA_ELUA_EMULATE +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) + +#ifndef MIN_OPT_LEVEL +#define MIN_OPT_LEVEL 2 +#endif +#include "lrodefs.h" +#include "lrotable.h" +#endif +#endif /* SWIG_LUA_ELUA_EMULATE*/ /* ----------------------------------------------------------------------------- * compatibility defines * ----------------------------------------------------------------------------- */ @@ -790,6 +896,23 @@ extern "C" { # define lua_pushglobaltable(L) lua_pushvalue(L, LUA_GLOBALSINDEX) #endif +/* lua_absindex was introduced in Lua 5.2 */ +#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502 +# define lua_absindex(L,i) ((i)>0 || (i) <= LUA_REGISTRYINDEX ? (i) : lua_gettop(L) + (i) + 1) +#endif + +/* lua_rawsetp was introduced in Lua 5.2 */ +#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502 +#define lua_rawsetp(L,index,ptr)\ + lua_pushlightuserdata(L,(void*)(ptr));\ + lua_insert(L,-2);\ + lua_rawset(L,index); + +#define lua_rawgetp(L,index,ptr)\ + lua_pushlightuserdata(L,(void*)(ptr));\ + lua_rawget(L,index); + +#endif /* -------------------------------------------------------------------------- * Helper functions for error handling @@ -839,6 +962,12 @@ typedef struct { lua_CFunction set; } swig_lua_var_info; +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) +typedef const LUA_REG_TYPE swig_lua_method; +typedef const LUA_REG_TYPE swig_lua_const_info; +#else /* Normal lua */ +typedef luaL_Reg swig_lua_method; + /* Constant information structure */ typedef struct { int type; @@ -849,10 +978,7 @@ typedef struct { swig_type_info **ptype; } swig_lua_const_info; -typedef struct { - const char *name; - lua_CFunction method; -} swig_lua_method; +#endif typedef struct { const char *name; @@ -860,23 +986,28 @@ typedef struct { lua_CFunction setmethod; } swig_lua_attribute; -// Can be used to create namespaces. Currently used to -// wrap class static methods/variables/constants -typedef struct { + +struct swig_lua_class; +/* Can be used to create namespaces. Currently used to wrap class static methods/variables/constants */ +typedef struct swig_lua_namespace { const char *name; swig_lua_method *ns_methods; swig_lua_attribute *ns_attributes; swig_lua_const_info *ns_constants; + struct swig_lua_class **ns_classes; + struct swig_lua_namespace **ns_namespaces; } swig_lua_namespace; typedef struct swig_lua_class { - const char *name; + const char *name; /* Name that this class has in Lua */ + const char *fqname; /* Fully qualified name - Scope + class name */ swig_type_info **type; lua_CFunction constructor; void (*destructor)(void *); swig_lua_method *methods; swig_lua_attribute *attributes; - swig_lua_namespace cls_static; + swig_lua_namespace *cls_static; + swig_lua_method *metatable; /* 0 for -eluac */ struct swig_lua_class **bases; const char **base_names; } swig_lua_class; @@ -940,18 +1071,23 @@ typedef struct { lua_pushcfunction(L, f), \ lua_rawset(L,-3)) +#define SWIG_Lua_add_boolean(L,n,b) \ + (lua_pushstring(L, n), \ + lua_pushboolean(L, b), \ + lua_rawset(L,-3)) + /* special helper for allowing 'nil' for usertypes */ #define SWIG_isptrtype(L,I) (lua_isuserdata(L,I) || lua_isnil(L,I)) #ifdef __cplusplus /* Special helper for member function pointers it gets the address, casts it, then dereferences it */ -//#define SWIG_mem_fn_as_voidptr(a) (*((char**)&(a))) +/*#define SWIG_mem_fn_as_voidptr(a) (*((char**)&(a))) */ #endif /* storing/access of swig_module_info */ SWIGRUNTIME swig_module_info * -SWIG_Lua_GetModule(lua_State* L) { +SWIG_Lua_GetModule(lua_State *L) { swig_module_info *ret = 0; lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); lua_rawget(L,LUA_REGISTRYINDEX); @@ -962,7 +1098,7 @@ SWIG_Lua_GetModule(lua_State* L) { } SWIGRUNTIME void -SWIG_Lua_SetModule(lua_State* L, swig_module_info *module) { +SWIG_Lua_SetModule(lua_State *L, swig_module_info *module) { /* add this all into the Lua registry: */ lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); lua_pushlightuserdata(L,(void*)module); @@ -976,7 +1112,7 @@ SWIG_Lua_SetModule(lua_State* L, swig_module_info *module) { /* this function is called when trying to set an immutable. default action is to print an error. This can removed with a compile flag SWIGLUA_IGNORE_SET_IMMUTABLE */ -SWIGINTERN int SWIG_Lua_set_immutable(lua_State* L) +SWIGINTERN int SWIG_Lua_set_immutable(lua_State *L) { /* there should be 1 param passed in: the new value */ #ifndef SWIGLUA_IGNORE_SET_IMMUTABLE @@ -986,170 +1122,153 @@ SWIGINTERN int SWIG_Lua_set_immutable(lua_State* L) return 0; /* should not return anything */ } -/* the module.get method used for getting linked data */ -SWIGINTERN int SWIG_Lua_module_get(lua_State* L) -{ -/* there should be 2 params passed in - (1) table (not the meta table) - (2) string name of the attribute - printf("SWIG_Lua_module_get %p(%s) '%s'\n", - lua_topointer(L,1),lua_typename(L,lua_type(L,1)), - lua_tostring(L,2)); -*/ - /* get the metatable */ -#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) - assert(lua_isrotable(L,1)); /* just in case */ -#else - assert(lua_istable(L,1)); /* default Lua action */ -#endif - lua_getmetatable(L,1); /* get the metatable */ -#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) - assert(lua_isrotable(L,-1)); /* just in case */ -#else - assert(lua_istable(L,-1)); -#endif - SWIG_Lua_get_table(L,".get"); /* get the .get table */ - lua_remove(L,3); /* remove metatable */ -#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) - if (lua_isrotable(L,-1)) -#else - if (lua_istable(L,-1)) -#endif - { - /* look for the key in the .get table */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); - lua_remove(L,3); /* remove .get */ - if (lua_iscfunction(L,-1)) - { /* found it so call the fn & return its value */ - lua_call(L,0,1); - return 1; - } - lua_pop(L,1); /* remove the top */ - } - lua_pop(L,1); /* remove the .get */ - lua_pushnil(L); /* return a nil */ - return 1; -} +#ifdef SWIG_LUA_ELUA_EMULATE -/* the module.set method used for setting linked data */ -SWIGINTERN int SWIG_Lua_module_set(lua_State* L) +SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State *L,void *ptr,swig_type_info *type, int own); +SWIGRUNTIME void SWIG_Lua_NewPackedObj(lua_State *L,void *ptr,size_t size,swig_type_info *type); +static int swig_lua_elua_emulate_unique_key; + +/* This function emulates eLua rotables behaviour. It loads a rotable definition into the usual lua table. */ +SWIGINTERN void SWIG_Lua_elua_emulate_register(lua_State *L, const swig_elua_entry *table) { -/* there should be 3 params passed in - (1) table (not the meta table) - (2) string name of the attribute - (3) any for the new value -*/ - /* get the metatable */ -#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) - assert(lua_isrotable(L,1)); /* just in case */ -#else - assert(lua_istable(L,1)); /* default Lua action */ -#endif - lua_getmetatable(L,1); /* get the metatable */ -#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) - assert(lua_isrotable(L,-1)); /* just in case */ -#else + int i, table_parsed, parsed_tables_array, target_table; assert(lua_istable(L,-1)); -#endif - SWIG_Lua_get_table(L,".set"); /* get the .set table */ - lua_remove(L,4); /* remove metatable */ -#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) - if (lua_isrotable(L,-1)) -#else - if (lua_istable(L,-1)) -#endif + target_table = lua_gettop(L); + /* Get the registry where we put all parsed tables to avoid loops */ + lua_rawgetp(L, LUA_REGISTRYINDEX, &swig_lua_elua_emulate_unique_key); + if(lua_isnil(L,-1)) { + lua_pop(L,1); + lua_newtable(L); + lua_pushvalue(L,-1); + lua_rawsetp(L,LUA_REGISTRYINDEX,(void*)(&swig_lua_elua_emulate_unique_key)); + } + parsed_tables_array = lua_gettop(L); + lua_pushvalue(L,target_table); + lua_rawsetp(L, parsed_tables_array, table); + table_parsed = 0; + const int SWIGUNUSED pairs_start = lua_gettop(L); + for(i = 0;table[i].key.type != LUA_TNIL || table[i].value.type != LUA_TNIL;i++) { - /* look for the key in the .set table */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); - lua_remove(L,4); /* remove .set */ - if (lua_iscfunction(L,-1)) - { /* found it so call the fn & return its value */ - lua_pushvalue(L,3); /* value */ - lua_call(L,1,0); - return 0; + const swig_elua_entry *entry = table + i; + int is_metatable = 0; + switch(entry->key.type) { + case LUA_TSTRING: + lua_pushstring(L,entry->key.key.strkey); + if(strcmp(entry->key.key.strkey, SWIG_LUA_ELUA_EMUL_METATABLE_KEY) == 0) + is_metatable = 1; + break; + case LUA_TNUMBER: + lua_pushnumber(L,entry->key.key.numkey); + break; + case LUA_TNIL: + lua_pushnil(L); + break; + default: + assert(0); } -#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) - else { - return 0; // Exits stoically if an invalid key is initialized. + switch(entry->value.type) { + case LUA_TSTRING: + lua_pushstring(L,entry->value.value.string); + break; + case LUA_TNUMBER: + lua_pushnumber(L,entry->value.value.number); + break; + case LUA_TFUNCTION: + lua_pushcfunction(L,entry->value.value.function); + break; + case LUA_TTABLE: + lua_rawgetp(L,parsed_tables_array, entry->value.value.table); + table_parsed = !lua_isnil(L,-1); + if(!table_parsed) { + lua_pop(L,1); /*remove nil */ + lua_newtable(L); + SWIG_Lua_elua_emulate_register(L,entry->value.value.table); + } + if(is_metatable) { + assert(lua_istable(L,-1)); + lua_pushvalue(L,-1); + lua_setmetatable(L,target_table); + } + + break; + case LUA_TUSERDATA: + if(entry->value.value.userdata.member) + SWIG_NewMemberObj(L,entry->value.value.userdata.pvalue, + entry->value.value.userdata.lvalue, + *(entry->value.value.userdata.ptype)); + else + SWIG_NewPointerObj(L,entry->value.value.userdata.pvalue, + *(entry->value.value.userdata.ptype),0); + break; + case LUA_TNIL: + lua_pushnil(L); + break; + default: + assert(0); } -#endif + assert(lua_gettop(L) == pairs_start + 2); + lua_rawset(L,target_table); } - lua_settop(L,3); /* reset back to start */ - /* we now have the table, key & new value, so just set directly */ - lua_rawset(L,1); /* add direct */ - return 0; + lua_pop(L,1); /* Removing parsed tables storage */ + assert(lua_gettop(L) == target_table); } -#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) -/* registering a module in lua. Pushes the module table on the stack. */ -SWIGINTERN void SWIG_Lua_module_begin(lua_State* L,const char* name) +SWIGINTERN void SWIG_Lua_elua_emulate_register_clear(lua_State *L) { - assert(lua_istable(L,-1)); /* just in case */ - lua_pushstring(L,name); - lua_newtable(L); /* the table */ - /* add meta table */ - lua_newtable(L); /* the meta table */ - SWIG_Lua_add_function(L,"__index",SWIG_Lua_module_get); - SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_module_set); - lua_pushstring(L,".get"); - lua_newtable(L); /* the .get table */ - lua_rawset(L,-3); /* add .get into metatable */ - lua_pushstring(L,".set"); - lua_newtable(L); /* the .set table */ - lua_rawset(L,-3); /* add .set into metatable */ - lua_setmetatable(L,-2); /* sets meta table in module */ -#ifdef SWIG_LUA_MODULE_GLOBAL - /* If requested, install the module directly into the global namespace. */ - lua_rawset(L,-3); /* add module into parent */ - SWIG_Lua_get_table(L,name); /* get the table back out */ -#else - /* Do not install the module table as global name. The stack top has - the module table with the name below. We pop the top and replace - the name with it. */ - lua_replace(L,-2); -#endif + lua_pushnil(L); + lua_rawsetp(L, LUA_REGISTRYINDEX, &swig_lua_elua_emulate_unique_key); } -/* ending the register */ -SWIGINTERN void SWIG_Lua_module_end(lua_State* L) -{ - lua_pop(L,1); /* tidy stack (remove module) */ -} +SWIGINTERN void SWIG_Lua_get_class_registry(lua_State *L); -/* adding a linked variable to the module */ -SWIGINTERN void SWIG_Lua_module_add_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn) +SWIGINTERN int SWIG_Lua_emulate_elua_getmetatable(lua_State *L) { - assert(lua_istable(L,-1)); /* just in case */ - lua_getmetatable(L,-1); /* get the metatable */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".get"); /* find the .get table */ - assert(lua_istable(L,-1)); /* should be a table: */ - SWIG_Lua_add_function(L,name,getFn); - lua_pop(L,1); /* tidy stack (remove table) */ - if (setFn) /* if there is a set fn */ - { - SWIG_Lua_get_table(L,".set"); /* find the .set table */ - assert(lua_istable(L,-1)); /* should be a table: */ - SWIG_Lua_add_function(L,name,setFn); - lua_pop(L,1); /* tidy stack (remove table) */ + SWIG_check_num_args("getmetatable(SWIG eLua emulation)", 1, 1); + SWIG_Lua_get_class_registry(L); + lua_getfield(L,-1,"lua_getmetatable"); + lua_remove(L,-2); /* remove the registry*/ + assert(!lua_isnil(L,-1)); + lua_pushvalue(L,1); + assert(lua_gettop(L) == 3); /* object | function | object again */ + lua_call(L,1,1); + if(!lua_isnil(L,-1)) /*There is an ordinary metatable */ + return 1; + /*if it is a table, then emulate elua behaviour - check for __metatable attribute of a table*/ + assert(lua_gettop(L) == 2); + if(lua_istable(L,-2)) { + lua_pop(L,1); /*remove the nil*/ + lua_getfield(L,-1, SWIG_LUA_ELUA_EMUL_METATABLE_KEY); } - lua_pop(L,1); /* tidy stack (remove meta) */ + assert(lua_gettop(L) == 2); + return 1; + +fail: + lua_error(L); + return 0; } -#endif -/* adding a function module */ -SWIGINTERN void SWIG_Lua_module_add_function(lua_State* L,const char* name,lua_CFunction fn) +SWIGINTERN void SWIG_Lua_emulate_elua_swap_getmetatable(lua_State *L) { - SWIG_Lua_add_function(L,name,fn); + SWIG_Lua_get_class_registry(L); + lua_pushglobaltable(L); + lua_pushstring(L,"lua_getmetatable"); + lua_getfield(L,-2,"getmetatable"); + assert(!lua_isnil(L,-1)); + lua_rawset(L,-4); + lua_pushstring(L, "getmetatable"); + lua_pushcfunction(L, SWIG_Lua_emulate_elua_getmetatable); + lua_rawset(L,-3); + lua_pop(L,2); + } +/* END OF REMOVE */ +#endif /* ----------------------------------------------------------------------------- - * global variable support code: namespaces + * global variable support code: namespaces and modules (which are the same thing) * ----------------------------------------------------------------------------- */ -SWIGINTERN int SWIG_Lua_namespace_get(lua_State* L) +SWIGINTERN int SWIG_Lua_namespace_get(lua_State *L) { /* there should be 2 params passed in (1) table (not the meta table) @@ -1186,7 +1305,7 @@ SWIGINTERN int SWIG_Lua_namespace_get(lua_State* L) return 0; } -SWIGINTERN int SWIG_Lua_namespace_set(lua_State* L) +SWIGINTERN int SWIG_Lua_namespace_set(lua_State *L) { /* there should be 3 params passed in (1) table (not the meta table) @@ -1213,46 +1332,70 @@ SWIGINTERN int SWIG_Lua_namespace_set(lua_State* L) lua_pop(L,1); /* remove the value */ } lua_pop(L,1); /* remove the value .set table */ + lua_pop(L,1); /* remote metatable */ + lua_rawset(L,-3); return 0; } -SWIGINTERN void SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]); // forward declaration -SWIGINTERN void SWIG_Lua_add_class_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn); // forward declaration +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) /* In elua this is useless */ +SWIGINTERN void SWIG_Lua_InstallConstants(lua_State *L, swig_lua_const_info constants[]); /* forward declaration */ +SWIGINTERN void SWIG_Lua_add_variable(lua_State *L,const char *name,lua_CFunction getFn,lua_CFunction setFn); /* forward declaration */ +SWIGINTERN void SWIG_Lua_class_register(lua_State *L,swig_lua_class *clss); /* helper function - register namespace methods and attributes into namespace */ -SWIGINTERN int SWIG_Lua_add_namespace_details(lua_State* L, swig_lua_namespace* ns) +SWIGINTERN int SWIG_Lua_add_namespace_details(lua_State *L, swig_lua_namespace *ns) { - int i = 0; + int i; + /* There must be namespace table (not metatable) at the top of the stack */ assert(lua_istable(L,-1)); - /* There must be table at the top of the stack */ SWIG_Lua_InstallConstants(L, ns->ns_constants); + /* add methods to the namespace/module table */ + for(i=0;ns->ns_methods[i].name;i++){ + SWIG_Lua_add_function(L,ns->ns_methods[i].name,ns->ns_methods[i].func); + } lua_getmetatable(L,-1); /* add fns */ for(i=0;ns->ns_attributes[i].name;i++){ - SWIG_Lua_add_class_variable(L,ns->ns_attributes[i].name,ns->ns_attributes[i].getmethod,ns->ns_attributes[i].setmethod); - } - - /* add methods to the metatable */ - SWIG_Lua_get_table(L,".fn"); /* find the .fn table */ - assert(lua_istable(L,-1)); /* just in case */ - for(i=0;ns->ns_methods[i].name;i++){ - SWIG_Lua_add_function(L,ns->ns_methods[i].name,ns->ns_methods[i].method); + SWIG_Lua_add_variable(L,ns->ns_attributes[i].name,ns->ns_attributes[i].getmethod,ns->ns_attributes[i].setmethod); } - lua_pop(L,1); /* clear stack - remove metatble */ lua_pop(L,1); return 0; } -/* helper function. creates namespace table and add it to module table */ -SWIGINTERN int SWIG_Lua_namespace_register(lua_State* L, swig_lua_namespace* ns) +/* Register all classes in the namespace */ +SWIGINTERN void SWIG_Lua_add_namespace_classes(lua_State *L, swig_lua_namespace *ns) +{ + swig_lua_class **classes; + + /* There must be a module/namespace table at the top of the stack */ + assert(lua_istable(L,-1)); + + classes = ns->ns_classes; + + if( classes != 0 ) { + while(*classes != 0) { + SWIG_Lua_class_register(L, *classes); + classes++; + } + } +} + +/* Helper function. Creates namespace table and adds it to module table + if 'reg' is true, then will register namespace table to parent one (must be on top of the stack + when function is called). + Function always returns newly registered table on top of the stack. +*/ +SWIGINTERN void SWIG_Lua_namespace_register(lua_State *L, swig_lua_namespace *ns, int reg) { - assert(lua_istable(L,-1)); /* just in case. This is supposed to be module table */ + swig_lua_namespace **sub_namespace; + /* 1 argument - table on the top of the stack */ + const int SWIGUNUSED begin = lua_gettop(L); + assert(lua_istable(L,-1)); /* just in case. This is supposed to be module table or parent namespace table */ lua_checkstack(L,5); - lua_pushstring(L, ns->name); lua_newtable(L); /* namespace itself */ lua_newtable(L); /* metatable for namespace */ @@ -1274,117 +1417,348 @@ SWIGINTERN int SWIG_Lua_namespace_register(lua_State* L, swig_lua_namespace* ns) SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_namespace_set); lua_setmetatable(L,-2); /* set metatable */ - lua_rawset(L,-3); /* add namespace to module table */ - return 0; + + /* Register all functions, variables etc */ + SWIG_Lua_add_namespace_details(L,ns); + /* Register classes */ + SWIG_Lua_add_namespace_classes(L,ns); + + sub_namespace = ns->ns_namespaces; + if( sub_namespace != 0) { + while(*sub_namespace != 0) { + SWIG_Lua_namespace_register(L, *sub_namespace, 1); + lua_pop(L,1); /* removing sub-namespace table */ + sub_namespace++; + } + } + + if (reg) { + lua_pushstring(L,ns->name); + lua_pushvalue(L,-2); + lua_rawset(L,-4); /* add namespace to module table */ + } + assert(lua_gettop(L) == begin+1); } +#endif /* SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA */ + /* ----------------------------------------------------------------------------- * global variable support code: classes * ----------------------------------------------------------------------------- */ -/* the class.get method, performs the lookup of class attributes */ -SWIGINTERN int SWIG_Lua_class_get(lua_State* L) +SWIGINTERN void SWIG_Lua_get_class_metatable(lua_State *L,const char *cname); + +typedef int (*swig_lua_base_iterator_func)(lua_State*,swig_type_info*, int, int *ret); + +SWIGINTERN int SWIG_Lua_iterate_bases(lua_State *L, swig_type_info * SWIGUNUSED swig_type, + int first_arg, swig_lua_base_iterator_func func, int *const ret) +{ + /* first_arg - position of the object in stack. Everything that is above are arguments + * and is passed to every evocation of the func */ + int last_arg = lua_gettop(L);/* position of last argument */ + int original_metatable = last_arg + 1; + size_t bases_count; + int result = SWIG_ERROR; + int bases_table; + (void)swig_type; + lua_getmetatable(L,first_arg); + + /* initialise base search */ +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) + SWIG_Lua_get_table(L,".bases"); + assert(lua_istable(L,-1)); + bases_count = lua_rawlen(L,-1); + bases_table = lua_gettop(L); +#else + /* In elua .bases table doesn't exist. Use table from swig_lua_class */ + (void)bases_table; + assert(swig_type!=0); + swig_module_info *module=SWIG_GetModule(L); + swig_lua_class **bases= ((swig_lua_class*)(swig_type->clientdata))->bases; + const char **base_names= ((swig_lua_class*)(swig_type->clientdata))->base_names; + bases_count = 0; + for(;base_names[bases_count]; + bases_count++);/* get length of bases */ +#endif + + if(ret) + *ret = 0; + if(bases_count>0) + { + int to_remove; + size_t i; + int j; + int subcall_last_arg; + int subcall_first_arg = lua_gettop(L) + 1;/* Here a copy of first_arg and arguments begin */ + int valid = 1; + swig_type_info *base_swig_type = 0; + for(j=first_arg;j<=last_arg;j++) + lua_pushvalue(L,j); + subcall_last_arg = lua_gettop(L); + + /* Trick: temporarily replacing original metatable with metatable for base class and call getter */ + for(i=0;ifqname); + base_swig_type = SWIG_TypeQueryModule(module,module,base_names[i]); + assert(base_swig_type != 0); + } +#endif + + if(!valid) + continue; + assert(lua_isuserdata(L, subcall_first_arg)); + assert(lua_istable(L,-1)); + lua_setmetatable(L,subcall_first_arg); /* Set new metatable */ + assert(lua_gettop(L) == subcall_last_arg); + result = func(L, base_swig_type,subcall_first_arg, ret); /* Forward call */ + if(result != SWIG_ERROR) { + break; + } + } + /* Restore original metatable */ + lua_pushvalue(L,original_metatable); + lua_setmetatable(L,first_arg); + /* Clear - remove everything between last_arg and subcall_last_arg including */ + to_remove = subcall_last_arg - last_arg; + for(j=0;jtype; + result = SWIG_Lua_class_do_get(L,type,1,&ret); + if(result == SWIG_OK) + return ret; + + result = SWIG_Lua_class_do_get_item(L,type,1,&ret); + if(result == SWIG_OK) + return ret; + + return 0; } -/* the class.set method, performs the lookup of class attributes */ -SWIGINTERN int SWIG_Lua_class_set(lua_State* L) +/* helper for the class.set method, performs the lookup of class attributes + * It returns error code. Number of function return values is passed inside 'ret' + */ +SWIGINTERN int SWIG_Lua_class_do_set(lua_State *L, swig_type_info *type, int first_arg, int *ret) { /* there should be 3 params passed in (1) table (not the meta table) (2) string name of the attribute (3) any for the new value -printf("SWIG_Lua_class_set %p(%s) '%s' %p(%s)\n", - lua_topointer(L,1),lua_typename(L,lua_type(L,1)), - lua_tostring(L,2), - lua_topointer(L,3),lua_typename(L,lua_type(L,3)));*/ + */ - assert(lua_isuserdata(L,1)); /* just in case */ - lua_getmetatable(L,1); /* get the meta table */ + int bases_search_result; + int substack_start = lua_gettop(L) - 3; + lua_checkstack(L,5); + assert(lua_isuserdata(L,substack_start+1)); /* just in case */ + lua_getmetatable(L,substack_start+1); /* get the meta table */ assert(lua_istable(L,-1)); /* just in case */ + if(ret) + *ret = 0; /* it is setter - number of return values is always 0 */ SWIG_Lua_get_table(L,".set"); /* find the .set table */ if (lua_istable(L,-1)) { /* look for the key in the .set table */ - lua_pushvalue(L,2); /* key */ + lua_pushvalue(L,substack_start+2); /* key */ lua_rawget(L,-2); + lua_remove(L,-2); /* tidy stack, remove .set table */ if (lua_iscfunction(L,-1)) { /* found it so call the fn & return its value */ - lua_pushvalue(L,1); /* userdata */ - lua_pushvalue(L,3); /* value */ + lua_pushvalue(L,substack_start+1); /* userdata */ + lua_pushvalue(L,substack_start+3); /* value */ lua_call(L,2,0); - return 0; + lua_remove(L,substack_start+4); /*remove metatable*/ + return SWIG_OK; } lua_pop(L,1); /* remove the value */ + } else { + lua_pop(L,1); /* remove the answer for .set table request*/ } - lua_pop(L,1); /* remove the value .set table */ /* NEW: looks for the __setitem() fn this is a user provided set fn */ SWIG_Lua_get_table(L,"__setitem"); /* find the fn */ if (lua_iscfunction(L,-1)) /* if its there */ { /* found it so call the fn & return its value */ - lua_pushvalue(L,1); /* the userdata */ - lua_pushvalue(L,2); /* the parameter */ - lua_pushvalue(L,3); /* the value */ + lua_pushvalue(L,substack_start+1); /* the userdata */ + lua_pushvalue(L,substack_start+2); /* the parameter */ + lua_pushvalue(L,substack_start+3); /* the value */ lua_call(L,3,0); /* 3 values in ,0 out */ lua_remove(L,-2); /* stack tidy, remove metatable */ - return 1; + return SWIG_OK; + } + lua_pop(L,1); /* remove value */ + + lua_pop(L,1); /* remove metatable */ + /* Search among bases */ + bases_search_result = SWIG_Lua_iterate_bases(L,type,first_arg,SWIG_Lua_class_do_set,ret); + if(ret) + assert(*ret == 0); + assert(lua_gettop(L) == substack_start + 3); + return bases_search_result; +} + +/* This is the actual method exported to Lua. It calls SWIG_Lua_class_do_set and correctly + * handles return values. + */ +SWIGINTERN int SWIG_Lua_class_set(lua_State *L) +{ +/* There should be 3 params passed in + (1) table (not the meta table) + (2) string name of the attribute + (3) any for the new value + */ + int ret = 0; + int result; + swig_lua_userdata *usr; + swig_type_info *type; + assert(lua_isuserdata(L,1)); + usr=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ + type = usr->type; + result = SWIG_Lua_class_do_set(L,type,1,&ret); + if(result != SWIG_OK) { + SWIG_Lua_pushferrstring(L,"Assignment not possible. No setter/member with this name. For custom assignments implement __setitem method."); + lua_error(L); + } else { + assert(ret==0); } return 0; } /* the class.destruct method called by the interpreter */ -SWIGINTERN int SWIG_Lua_class_destruct(lua_State* L) +SWIGINTERN int SWIG_Lua_class_destruct(lua_State *L) { /* there should be 1 params passed in (1) userdata (not the meta table) */ - swig_lua_userdata* usr; - swig_lua_class* clss; + swig_lua_userdata *usr; + swig_lua_class *clss; assert(lua_isuserdata(L,-1)); /* just in case */ usr=(swig_lua_userdata*)lua_touserdata(L,-1); /* get it */ /* if must be destroyed & has a destructor */ @@ -1400,31 +1774,30 @@ SWIGINTERN int SWIG_Lua_class_destruct(lua_State* L) } /* the class.__tostring method called by the interpreter and print */ -SWIGINTERN int SWIG_Lua_class_tostring(lua_State* L) +SWIGINTERN int SWIG_Lua_class_tostring(lua_State *L) { /* there should be 1 param passed in (1) userdata (not the metatable) */ + const char *className; + void* userData; assert(lua_isuserdata(L,1)); /* just in case */ - unsigned long userData = (unsigned long)lua_touserdata(L,1); /* get the userdata address for later */ + userData = lua_touserdata(L,1); /* get the userdata address for later */ lua_getmetatable(L,1); /* get the meta table */ assert(lua_istable(L,-1)); /* just in case */ - + lua_getfield(L, -1, ".type"); - const char* className = lua_tostring(L, -1); - - char output[256]; - sprintf(output, "<%s userdata: %lX>", className, userData); - - lua_pushstring(L, (const char*)output); + className = lua_tostring(L, -1); + + lua_pushfstring(L, "<%s userdata: %p>", className, userData); return 1; } /* to manually disown some userdata */ -SWIGINTERN int SWIG_Lua_class_disown(lua_State* L) +SWIGINTERN int SWIG_Lua_class_disown(lua_State *L) { /* there should be 1 params passed in (1) userdata (not the meta table) */ - swig_lua_userdata* usr; + swig_lua_userdata *usr; assert(lua_isuserdata(L,-1)); /* just in case */ usr=(swig_lua_userdata*)lua_touserdata(L,-1); /* get it */ @@ -1432,25 +1805,69 @@ SWIGINTERN int SWIG_Lua_class_disown(lua_State* L) return 0; } -/* Constructor proxy. Used when class name entry in module is not class constructor, -but special table instead. */ -SWIGINTERN int SWIG_Lua_constructor_proxy(lua_State* L) +/* lua callable function to compare userdata's value +the issue is that two userdata may point to the same thing +but to lua, they are different objects */ +SWIGRUNTIME int SWIG_Lua_class_equal(lua_State *L) { - /* unlimited number of parameters - First one is our proxy table and we should remove it - Other we should pass to real constructor - */ - assert(lua_istable(L,1)); - lua_pushstring(L,".constructor"); - lua_rawget(L,1); - assert(!lua_isnil(L,-1)); - lua_replace(L,1); /* replace our table with real constructor */ - lua_call(L,lua_gettop(L)-1,1); - return 1; -} + int result; + swig_lua_userdata *usr1,*usr2; + if (!lua_isuserdata(L,1) || !lua_isuserdata(L,2)) /* just in case */ + return 0; /* nil reply */ + usr1=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ + usr2=(swig_lua_userdata*)lua_touserdata(L,2); /* get data */ + /*result=(usr1->ptr==usr2->ptr && usr1->type==usr2->type); only works if type is the same*/ + result=(usr1->ptr==usr2->ptr); + lua_pushboolean(L,result); + return 1; +} + +/* populate table at the top of the stack with metamethods that ought to be inherited */ +SWIGINTERN void SWIG_Lua_populate_inheritable_metamethods(lua_State *L) +{ + SWIG_Lua_add_boolean(L, "__add", 1); + SWIG_Lua_add_boolean(L, "__sub", 1); + SWIG_Lua_add_boolean(L, "__mul", 1); + SWIG_Lua_add_boolean(L, "__div", 1); + SWIG_Lua_add_boolean(L, "__mod", 1); + SWIG_Lua_add_boolean(L, "__pow", 1); + SWIG_Lua_add_boolean(L, "__unm", 1); + SWIG_Lua_add_boolean(L, "__len", 1 ); + SWIG_Lua_add_boolean(L, "__concat", 1 ); + SWIG_Lua_add_boolean(L, "__eq", 1); + SWIG_Lua_add_boolean(L, "__lt", 1); + SWIG_Lua_add_boolean(L, "__le", 1); + SWIG_Lua_add_boolean(L, "__call", 1); + SWIG_Lua_add_boolean(L, "__tostring", 1); + SWIG_Lua_add_boolean(L, "__gc", 0); +} + +/* creates the swig registry */ +SWIGINTERN void SWIG_Lua_create_class_registry(lua_State *L) +{ + /* create main SWIG registry table */ + lua_pushstring(L,"SWIG"); + lua_newtable(L); + /* populate it with some predefined data */ -/* gets the swig class registry (or creates it) */ -SWIGINTERN void SWIG_Lua_get_class_registry(lua_State* L) + /* .library table. Placeholder */ + lua_pushstring(L,".library"); + lua_newtable(L); + { + /* list of metamethods that class inherits from its bases */ + lua_pushstring(L,"inheritable_metamethods"); + lua_newtable(L); + /* populate with list of metamethods */ + SWIG_Lua_populate_inheritable_metamethods(L); + lua_rawset(L,-3); + } + lua_rawset(L,-3); + + lua_rawset(L,LUA_REGISTRYINDEX); +} + +/* gets the swig registry (or creates it) */ +SWIGINTERN void SWIG_Lua_get_class_registry(lua_State *L) { /* add this all into the swig registry: */ lua_pushstring(L,"SWIG"); @@ -1458,17 +1875,29 @@ SWIGINTERN void SWIG_Lua_get_class_registry(lua_State* L) if (!lua_istable(L,-1)) /* not there */ { /* must be first time, so add it */ lua_pop(L,1); /* remove the result */ - lua_pushstring(L,"SWIG"); - lua_newtable(L); - lua_rawset(L,LUA_REGISTRYINDEX); + SWIG_Lua_create_class_registry(L); /* then get it */ lua_pushstring(L,"SWIG"); lua_rawget(L,LUA_REGISTRYINDEX); } } -/* helper fn to get the classes metatable from the register */ -SWIGINTERN void SWIG_Lua_get_class_metatable(lua_State* L,const char* cname) +SWIGINTERN void SWIG_Lua_get_inheritable_metamethods(lua_State *L) +{ + SWIG_Lua_get_class_registry(L); + lua_pushstring(L, ".library"); + lua_rawget(L,-2); + assert( !lua_isnil(L,-1) ); + lua_pushstring(L, "inheritable_metamethods"); + lua_rawget(L,-2); + + /* Remove class registry and library table */ + lua_remove(L,-2); + lua_remove(L,-2); +} + +/* Helper function to get the classes metatable from the register */ +SWIGINTERN void SWIG_Lua_get_class_metatable(lua_State *L,const char *cname) { SWIG_Lua_get_class_registry(L); /* get the registry */ lua_pushstring(L,cname); /* get the name */ @@ -1476,8 +1905,96 @@ SWIGINTERN void SWIG_Lua_get_class_metatable(lua_State* L,const char* cname) lua_remove(L,-2); /* tidy up (remove registry) */ } +/* Set up the base classes pointers. +Each class structure has a list of pointers to the base class structures. +This function fills them. +It cannot be done at compile time, as this will not work with hireachies +spread over more than one swig file. +Therefore it must be done at runtime, querying the SWIG type system. +*/ +SWIGINTERN void SWIG_Lua_init_base_class(lua_State *L,swig_lua_class *clss) +{ + int i=0; + swig_module_info *module=SWIG_GetModule(L); + for(i=0;clss->base_names[i];i++) + { + if (clss->bases[i]==0) /* not found yet */ + { + /* lookup and cache the base class */ + swig_type_info *info = SWIG_TypeQueryModule(module,module,clss->base_names[i]); + if (info) clss->bases[i] = (swig_lua_class *) info->clientdata; + } + } +} + +#if defined(SWIG_LUA_SQUASH_BASES) && (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) +/* Merges two tables */ +SWIGINTERN void SWIG_Lua_merge_tables_by_index(lua_State *L, int target, int source) +{ + /* iterating */ + lua_pushnil(L); + while (lua_next(L,source) != 0) { + /* -1 - value, -2 - index */ + /* have to copy to assign */ + lua_pushvalue(L,-2); /* copy of index */ + lua_pushvalue(L,-2); /* copy of value */ + lua_rawset(L, target); + lua_pop(L,1); + /* only key is left */ + } +} + +/* Merges two tables with given name. original - index of target metatable, base - index of source metatable */ +SWIGINTERN void SWIG_Lua_merge_tables(lua_State *L, const char* name, int original, int base) +{ + /* push original[name], then base[name] */ + lua_pushstring(L,name); + lua_rawget(L,original); + int original_table = lua_gettop(L); + lua_pushstring(L,name); + lua_rawget(L,base); + int base_table = lua_gettop(L); + SWIG_Lua_merge_tables_by_index(L, original_table, base_table); + /* clearing stack */ + lua_pop(L,2); +} + +/* Function takes all symbols from base and adds it to derived class. It's just a helper. */ +SWIGINTERN void SWIG_Lua_class_squash_base(lua_State *L, swig_lua_class *base_cls) +{ + /* There is one parameter - original, i.e. 'derived' class metatable */ + assert(lua_istable(L,-1)); + int original = lua_gettop(L); + SWIG_Lua_get_class_metatable(L,base_cls->fqname); + int base = lua_gettop(L); + SWIG_Lua_merge_tables(L, ".fn", original, base ); + SWIG_Lua_merge_tables(L, ".set", original, base ); + SWIG_Lua_merge_tables(L, ".get", original, base ); + lua_pop(L,1); +} + +/* Function squashes all symbols from 'clss' bases into itself */ +SWIGINTERN void SWIG_Lua_class_squash_bases(lua_State *L, swig_lua_class *clss) +{ + int i; + SWIG_Lua_get_class_metatable(L,clss->fqname); + for(i=0;clss->base_names[i];i++) + { + if (clss->bases[i]==0) /* Somehow it's not found. Skip it */ + continue; + /* Thing is: all bases are already registered. Thus they have already executed + * this function. So we just need to squash them into us, because their bases + * are already squashed into them. No need for recursion here! + */ + SWIG_Lua_class_squash_base(L, clss->bases[i]); + } + lua_pop(L,1); /*tidy stack*/ +} +#endif + +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) /* In elua this is useless */ /* helper add a variable to a registered class */ -SWIGINTERN void SWIG_Lua_add_class_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn) +SWIGINTERN void SWIG_Lua_add_variable(lua_State *L,const char *name,lua_CFunction getFn,lua_CFunction setFn) { assert(lua_istable(L,-1)); /* just in case */ SWIG_Lua_get_table(L,".get"); /* find the .get table */ @@ -1494,7 +2011,7 @@ SWIGINTERN void SWIG_Lua_add_class_variable(lua_State* L,const char* name,lua_C } /* helper to recursively add class static details (static attributes, operations and constants) */ -SWIGINTERN void SWIG_Lua_add_class_static_details(lua_State* L, swig_lua_class* clss) +SWIGINTERN void SWIG_Lua_add_class_static_details(lua_State *L, swig_lua_class *clss) { int i = 0; /* The class namespace table must be on the top of the stack */ @@ -1505,72 +2022,269 @@ SWIGINTERN void SWIG_Lua_add_class_static_details(lua_State* L, swig_lua_class* SWIG_Lua_add_class_static_details(L,clss->bases[i]); } - SWIG_Lua_add_namespace_details(L, &clss->cls_static); + SWIG_Lua_add_namespace_details(L, clss->cls_static); } +SWIGINTERN void SWIG_Lua_add_class_user_metamethods(lua_State *L, swig_lua_class *clss); /* forward declaration */ + /* helper to recursively add class details (attributes & operations) */ -SWIGINTERN void SWIG_Lua_add_class_details(lua_State* L,swig_lua_class* clss) +SWIGINTERN void SWIG_Lua_add_class_instance_details(lua_State *L, swig_lua_class *clss) { int i; - /* call all the base classes first: we can then override these later: */ + size_t bases_count = 0; + /* Add bases to .bases table */ + SWIG_Lua_get_table(L,".bases"); + assert(lua_istable(L,-1)); /* just in case */ for(i=0;clss->bases[i];i++) { - SWIG_Lua_add_class_details(L,clss->bases[i]); - } - /* add fns */ + SWIG_Lua_get_class_metatable(L,clss->bases[i]->fqname); + /* Base class must be already registered */ + assert(lua_istable(L,-1)); + lua_rawseti(L,-2,i+1); /* In lua indexing starts from 1 */ + bases_count++; + } + assert(lua_rawlen(L,-1) == bases_count); + lua_pop(L,1); /* remove .bases table */ + /* add attributes */ for(i=0;clss->attributes[i].name;i++){ - SWIG_Lua_add_class_variable(L,clss->attributes[i].name,clss->attributes[i].getmethod,clss->attributes[i].setmethod); + SWIG_Lua_add_variable(L,clss->attributes[i].name,clss->attributes[i].getmethod,clss->attributes[i].setmethod); } /* add methods to the metatable */ SWIG_Lua_get_table(L,".fn"); /* find the .fn table */ assert(lua_istable(L,-1)); /* just in case */ for(i=0;clss->methods[i].name;i++){ - SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); + SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].func); } lua_pop(L,1); /* tidy stack (remove table) */ - /* add operator overloads - these look ANY method which start with "__" and assume they - are operator overloads & add them to the metatable - (this might mess up is someone defines a method __gc (the destructor)*/ - for(i=0;clss->methods[i].name;i++){ - if (clss->methods[i].name[0]=='_' && clss->methods[i].name[1]=='_'){ - SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); + /* add operator overloads + This adds methods from metatable array to metatable. Can mess up garbage + collectind if someone defines __gc method + */ + if(clss->metatable) { + for(i=0;clss->metatable[i].name;i++) { + SWIG_Lua_add_function(L,clss->metatable[i].name,clss->metatable[i].func); } } + +#if !defined(SWIG_LUA_SQUASH_BASES) + /* Adding metamethods that are defined in base classes. If bases were squashed + * then it is obviously unnecessary + */ + SWIG_Lua_add_class_user_metamethods(L, clss); +#endif } -/* set up the base classes pointers. -Each class structure has a list of pointers to the base class structures. -This function fills them. -It cannot be done at compile time, as this will not work with hireachies -spread over more than one swig file. -Therefore it must be done at runtime, querying the SWIG type system. +/* Helpers to add user defined class metamedhods - __add, __sub etc. The helpers are needed + for the following issue: Lua runtime checks for metamethod existence with rawget function + ignoring our SWIG-provided __index and __newindex functions. Thus our inheritance-aware method + search algorithm doesn't work in such case. (Not to say that Lua runtime queries metamethod directly + in metatable and not in object). + Current solution is this: if somewhere in hierarchy metamethod __x is defined, then all descendants + are automatically given a special proxy __x that calls the real __x method. + Obvious idea - to copy __x instead of creating __x-proxy is wrong because if someone changes __x in runtime, + those changes must be reflected in all descendants. */ -SWIGINTERN void SWIG_Lua_init_base_class(lua_State* L,swig_lua_class* clss) + +SWIGRUNTIME int SWIG_Lua_resolve_metamethod(lua_State *L); /*forward declaration*/ + +/* The real function that resolves a metamethod. + * Function searches given class and all it's bases(recursively) for first instance of something that is + * not equal to SWIG_Lua_resolve_metatmethod. (Almost always this 'something' is actual metamethod implementation + * and it is a SWIG-generated C function.). It returns value on the top of the L and there is no garbage below the + * answer. + * Returns 1 if found, 0 otherwise. + * clss is class which metatable we will search for method + * metamethod_name_idx is index in L where metamethod name (as string) lies + * skip_check allows to skip searching metamethod in givel clss and immideatelly go to searching in bases. skip_check + * is not caried to subsequent recursive calls - false is always passed. It is set to true only at first call from + * SWIG_Lua_resolve_metamethod + * */ +SWIGINTERN int SWIG_Lua_do_resolve_metamethod(lua_State *L, const swig_lua_class *clss, int metamethod_name_idx, + int skip_check) { - int i=0; - swig_module_info* module=SWIG_GetModule(L); - for(i=0;clss->base_names[i];i++) + /* This function is called recursively */ + int result = 0; + int i = 0; + + if (!skip_check) { + SWIG_Lua_get_class_metatable(L, clss->fqname); + lua_pushvalue(L, metamethod_name_idx); + lua_rawget(L,-2); + /* If this is cfunction and it is equal to SWIG_Lua_resolve_metamethod then + * this isn't the function we are looking for :) + * lua_tocfunction will return NULL if not cfunction + */ + if (!lua_isnil(L,-1) && lua_tocfunction(L,-1) != SWIG_Lua_resolve_metamethod ) { + lua_remove(L,-2); /* removing class metatable */ + return 1; + } + lua_pop(L,2); /* remove class metatable and query result */ + } + + /* Forwarding calls to bases */ + for(i=0;clss->bases[i];i++) { - if (clss->bases[i]==0) /* not found yet */ - { - /* lookup and cache the base class */ - swig_type_info *info = SWIG_TypeQueryModule(module,module,clss->base_names[i]); - if (info) clss->bases[i] = (swig_lua_class *) info->clientdata; + result = SWIG_Lua_do_resolve_metamethod(L, clss->bases[i], metamethod_name_idx, 0); + if (result) + break; + } + + return result; +} + +/* The proxy function for metamethod. All parameters are passed as cclosure. Searches for actual method + * and calls it */ +SWIGRUNTIME int SWIG_Lua_resolve_metamethod(lua_State *L) +{ + int numargs; + int metamethod_name_idx; + const swig_lua_class* clss; + int result; + + lua_checkstack(L,5); + numargs = lua_gettop(L); /* number of arguments to pass to actual metamethod */ + + /* Get upvalues from closure */ + lua_pushvalue(L, lua_upvalueindex(1)); /*Get function name*/ + metamethod_name_idx = lua_gettop(L); + + lua_pushvalue(L, lua_upvalueindex(2)); + clss = (const swig_lua_class*)(lua_touserdata(L,-1)); + lua_pop(L,1); /* remove lightuserdata with clss from stack */ + + /* Actual work */ + result = SWIG_Lua_do_resolve_metamethod(L, clss, metamethod_name_idx, 1); + if (!result) { + SWIG_Lua_pushferrstring(L,"The metamethod proxy is set, but it failed to find actual metamethod. Memory corruption is most likely explanation."); + lua_error(L); + return 0; + } + + lua_remove(L,-2); /* remove metamethod key */ + lua_insert(L,1); /* move function to correct position */ + lua_call(L, numargs, LUA_MULTRET); + return lua_gettop(L); /* return all results */ +} + + +/* If given metamethod must be present in given class, then creates appropriate proxy + * Returns 1 if successfully added, 0 if not added because no base class has it, -1 + * if method is defined in the class metatable itself + */ +SWIGINTERN int SWIG_Lua_add_class_user_metamethod(lua_State *L, swig_lua_class *clss, const int metatable_index) +{ + int key_index; + int success = 0; + int i = 0; + + /* metamethod name - on the top of the stack */ + assert(lua_isstring(L,-1)); + + key_index = lua_gettop(L); + + /* Check whether method is already defined in metatable */ + lua_pushvalue(L,key_index); /* copy of the key */ + lua_gettable(L,metatable_index); + if( !lua_isnil(L,-1) ) { + lua_pop(L,1); + return -1; + } + lua_pop(L,1); + + /* Iterating over immediate bases */ + for(i=0;clss->bases[i];i++) + { + const swig_lua_class *base = clss->bases[i]; + SWIG_Lua_get_class_metatable(L, base->fqname); + lua_pushvalue(L, key_index); + lua_rawget(L, -2); + if( !lua_isnil(L,-1) ) { + lua_pushvalue(L, key_index); + + /* Add proxy function */ + lua_pushvalue(L, key_index); /* first closure value is function name */ + lua_pushlightuserdata(L, clss); /* second closure value is swig_lua_class structure */ + lua_pushcclosure(L, SWIG_Lua_resolve_metamethod, 2); + + lua_rawset(L, metatable_index); + success = 1; + } + lua_pop(L,1); /* remove function or nil */ + lua_pop(L,1); /* remove base class metatable */ + + if( success ) + break; + } + + return success; +} + +SWIGINTERN void SWIG_Lua_add_class_user_metamethods(lua_State *L, swig_lua_class *clss) +{ + int metatable_index; + int metamethods_info_index; + int tostring_undefined; + int eq_undefined = 0; + + SWIG_Lua_get_class_metatable(L, clss->fqname); + metatable_index = lua_gettop(L); + SWIG_Lua_get_inheritable_metamethods(L); + assert(lua_istable(L,-1)); + metamethods_info_index = lua_gettop(L); + lua_pushnil(L); /* first key */ + while(lua_next(L, metamethods_info_index) != 0 ) { + /* key at index -2, value at index -1 */ + const int is_inheritable = lua_toboolean(L,-2); + lua_pop(L,1); /* remove value - we don't need it anymore */ + + if(is_inheritable) { /* if metamethod is inheritable */ + SWIG_Lua_add_class_user_metamethod(L,clss,metatable_index); } } + + lua_pop(L,1); /* remove inheritable metatmethods table */ + + /* Special handling for __tostring method */ + lua_pushstring(L, "__tostring"); + lua_pushvalue(L,-1); + lua_rawget(L,metatable_index); + tostring_undefined = lua_isnil(L,-1); + lua_pop(L,1); + if( tostring_undefined ) { + lua_pushcfunction(L, SWIG_Lua_class_tostring); + lua_rawset(L, metatable_index); + } else { + lua_pop(L,1); /* remove copy of the key */ + } + + /* Special handling for __eq method */ + lua_pushstring(L, "__eq"); + lua_pushvalue(L,-1); + lua_rawget(L,metatable_index); + eq_undefined = lua_isnil(L,-1); + lua_pop(L,1); + if( eq_undefined ) { + lua_pushcfunction(L, SWIG_Lua_class_equal); + lua_rawset(L, metatable_index); + } else { + lua_pop(L,1); /* remove copy of the key */ + } + /* Warning: __index and __newindex are SWIG-defined. For user-defined operator[] + * a __getitem/__setitem method should be defined + */ + lua_pop(L,1); /* pop class metatable */ } /* Register class static methods,attributes etc as well as constructor proxy */ -SWIGINTERN void SWIG_Lua_class_register_static(lua_State* L, swig_lua_class* clss) +SWIGINTERN void SWIG_Lua_class_register_static(lua_State *L, swig_lua_class *clss) { + const int SWIGUNUSED begin = lua_gettop(L); lua_checkstack(L,5); /* just in case */ assert(lua_istable(L,-1)); /* just in case */ - assert(strcmp(clss->name, clss->cls_static.name) == 0); /* in class those 2 must be equal */ + assert(strcmp(clss->name, clss->cls_static->name) == 0); /* in class those 2 must be equal */ - SWIG_Lua_namespace_register(L,&clss->cls_static); + SWIG_Lua_namespace_register(L,clss->cls_static, 1); - SWIG_Lua_get_table(L,clss->name); // Get namespace table back assert(lua_istable(L,-1)); /* just in case */ /* add its constructor to module with the name of the class @@ -1579,10 +2293,9 @@ SWIGINTERN void SWIG_Lua_class_register_static(lua_State* L, swig_lua_class* cls (this overcomes the problem of pure virtual classes without constructors)*/ if (clss->constructor) { - SWIG_Lua_add_function(L,".constructor", clss->constructor); lua_getmetatable(L,-1); assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_add_function(L,"__call", SWIG_Lua_constructor_proxy); + SWIG_Lua_add_function(L,"__call", clss->constructor); lua_pop(L,1); } @@ -1591,19 +2304,60 @@ SWIGINTERN void SWIG_Lua_class_register_static(lua_State* L, swig_lua_class* cls /* clear stack */ lua_pop(L,1); + assert( lua_gettop(L) == begin ); } -/* performs the entire class registration process */ -SWIGINTERN void SWIG_Lua_class_register(lua_State* L,swig_lua_class* clss) +/* Performs the instance (non-static) class registration process. Metatable for class is created + * and added to the class registry. + */ +SWIGINTERN void SWIG_Lua_class_register_instance(lua_State *L,swig_lua_class *clss) { - SWIG_Lua_class_register_static(L,clss); - + const int SWIGUNUSED begin = lua_gettop(L); + int i; + /* if name already there (class is already registered) then do nothing */ + SWIG_Lua_get_class_registry(L); /* get the registry */ + lua_pushstring(L,clss->fqname); /* get the name */ + lua_rawget(L,-2); + if(!lua_isnil(L,-1)) { + lua_pop(L,2); + assert(lua_gettop(L)==begin); + return; + } + lua_pop(L,2); /* tidy stack */ + /* Recursively initialize all bases */ + for(i=0;clss->bases[i];i++) + { + SWIG_Lua_class_register_instance(L,clss->bases[i]); + } + /* Again, get registry and push name */ SWIG_Lua_get_class_registry(L); /* get the registry */ - lua_pushstring(L,clss->name); /* get the name */ + lua_pushstring(L,clss->fqname); /* get the name */ lua_newtable(L); /* create the metatable */ +#if defined(SWIG_LUA_SQUASH_BASES) && (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) + /* If squashing is requested, then merges all bases metatable into this one. + * It would get us all special methods: __getitem, __add etc. + * This would set .fn, .type, and other .xxx incorrectly, but we will overwrite it right away + */ + { + int new_metatable_index = lua_absindex(L,-1); + for(i=0;clss->bases[i];i++) + { + int base_metatable; + SWIG_Lua_get_class_metatable(L,clss->bases[i]->fqname); + base_metatable = lua_absindex(L,-1); + SWIG_Lua_merge_tables_by_index(L,new_metatable_index, base_metatable); + lua_pop(L,1); + } + } + /* And now we will overwrite all incorrectly set data */ +#endif /* add string of class name called ".type" */ lua_pushstring(L,".type"); - lua_pushstring(L,clss->name); + lua_pushstring(L,clss->fqname); + lua_rawset(L,-3); + /* add a table called bases */ + lua_pushstring(L,".bases"); + lua_newtable(L); lua_rawset(L,-3); /* add a table called ".get" */ lua_pushstring(L,".get"); @@ -1623,27 +2377,99 @@ SWIGINTERN void SWIG_Lua_class_register(lua_State* L,swig_lua_class* clss) SWIG_Lua_add_function(L,"__index",SWIG_Lua_class_get); SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_class_set); SWIG_Lua_add_function(L,"__gc",SWIG_Lua_class_destruct); - /* add tostring method for better output */ - SWIG_Lua_add_function(L,"__tostring",SWIG_Lua_class_tostring); /* add it */ lua_rawset(L,-3); /* metatable into registry */ lua_pop(L,1); /* tidy stack (remove registry) */ + assert(lua_gettop(L) == begin); - SWIG_Lua_get_class_metatable(L,clss->name); - SWIG_Lua_add_class_details(L,clss); /* recursive adding of details (atts & ops) */ +#if defined(SWIG_LUA_SQUASH_BASES) && (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) + /* Now merge all symbols from .fn, .set, .get etc from bases to our tables */ + SWIG_Lua_class_squash_bases(L,clss); +#endif + SWIG_Lua_get_class_metatable(L,clss->fqname); + SWIG_Lua_add_class_instance_details(L,clss); /* recursive adding of details (atts & ops) */ lua_pop(L,1); /* tidy stack (remove class metatable) */ + assert( lua_gettop(L) == begin ); +} + +SWIGINTERN void SWIG_Lua_class_register(lua_State *L,swig_lua_class *clss) +{ + int SWIGUNUSED begin; + assert(lua_istable(L,-1)); /* This is a table (module or namespace) where classes will be added */ + SWIG_Lua_class_register_instance(L,clss); + SWIG_Lua_class_register_static(L,clss); + + /* Add links from static part to instance part and vice versa */ + /* [SWIG registry] [Module] + * "MyClass" ----> [MyClass metatable] <===== "MyClass" -+> [static part] + * ".get" ----> ... | | getmetatable()----| + * ".set" ----> ... | | | + * ".static" --------------)----------------/ [static part metatable] + * | ".get" --> ... + * | ".set" --> .... + * |=============================== ".instance" + */ + begin = lua_gettop(L); + lua_pushstring(L,clss->cls_static->name); + lua_rawget(L,-2); /* get class static table */ + assert(lua_istable(L,-1)); + lua_getmetatable(L,-1); + assert(lua_istable(L,-1)); /* get class static metatable */ + lua_pushstring(L,".instance"); /* prepare key */ + + SWIG_Lua_get_class_metatable(L,clss->fqname); /* get class metatable */ + assert(lua_istable(L,-1)); + lua_pushstring(L,".static"); /* prepare key */ + lua_pushvalue(L, -4); /* push static class TABLE */ + assert(lua_istable(L,-1)); + lua_rawset(L,-3); /* assign static class table(!NOT metatable) as ".static" member of class metatable */ + lua_rawset(L,-3); /* assign class metatable as ".instance" member of class static METATABLE */ + lua_pop(L,2); + assert(lua_gettop(L) == begin); +} +#endif /* SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA */ + +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) +SWIGINTERN void SWIG_Lua_elua_class_register_instance(lua_State *L, swig_lua_class *clss) +{ + const int SWIGUNUSED begin = lua_gettop(L); + int i; + /* if name already there (class is already registered) then do nothing */ + SWIG_Lua_get_class_registry(L); /* get the registry */ + lua_pushstring(L,clss->fqname); /* get the name */ + lua_rawget(L,-2); + if(!lua_isnil(L,-1)) { + lua_pop(L,2); + assert(lua_gettop(L)==begin); + return; + } + lua_pop(L,2); /* tidy stack */ + /* Recursively initialize all bases */ + for(i=0;clss->bases[i];i++) + { + SWIG_Lua_elua_class_register_instance(L,clss->bases[i]); + } + /* Again, get registry and push name */ + SWIG_Lua_get_class_registry(L); /* get the registry */ + lua_pushstring(L,clss->fqname); /* get the name */ + assert(clss->metatable); + lua_pushrotable(L, (void*)(clss->metatable)); /* create the metatable */ + lua_rawset(L,-3); + lua_pop(L,1); + assert(lua_gettop(L) == begin); } +#endif /* elua && eluac */ /* ----------------------------------------------------------------------------- * Class/structure conversion fns * ----------------------------------------------------------------------------- */ /* helper to add metatable to new lua object */ -SWIGINTERN void _SWIG_Lua_AddMetatable(lua_State* L,swig_type_info *type) +SWIGINTERN void SWIG_Lua_AddMetatable(lua_State *L,swig_type_info *type) { if (type->clientdata) /* there is clientdata: so add the metatable */ { - SWIG_Lua_get_class_metatable(L,((swig_lua_class*)(type->clientdata))->name); + SWIG_Lua_get_class_metatable(L,((swig_lua_class*)(type->clientdata))->fqname); if (lua_istable(L,-1)) { lua_setmetatable(L,-2); @@ -1656,9 +2482,9 @@ SWIGINTERN void _SWIG_Lua_AddMetatable(lua_State* L,swig_type_info *type) } /* pushes a new object into the lua stack */ -SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State* L,void* ptr,swig_type_info *type, int own) +SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State *L,void *ptr,swig_type_info *type, int own) { - swig_lua_userdata* usr; + swig_lua_userdata *usr; if (!ptr){ lua_pushnil(L); return; @@ -1668,15 +2494,15 @@ SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State* L,void* ptr,swig_type_info *t usr->type=type; usr->own=own; #if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) - _SWIG_Lua_AddMetatable(L,type); /* add metatable */ + SWIG_Lua_AddMetatable(L,type); /* add metatable */ #endif } /* takes a object from the lua stack & converts it into an object of the correct type (if possible) */ -SWIGRUNTIME int SWIG_Lua_ConvertPtr(lua_State* L,int index,void** ptr,swig_type_info *type,int flags) +SWIGRUNTIME int SWIG_Lua_ConvertPtr(lua_State *L,int index,void **ptr,swig_type_info *type,int flags) { - swig_lua_userdata* usr; + swig_lua_userdata *usr; swig_cast_info *cast; if (lua_isnil(L,index)){*ptr=0; return SWIG_OK;} /* special case: lua nil => NULL pointer */ usr=(swig_lua_userdata*)lua_touserdata(L,index); /* get data */ @@ -1703,9 +2529,9 @@ SWIGRUNTIME int SWIG_Lua_ConvertPtr(lua_State* L,int index,void** ptr,swig_type return SWIG_ERROR; /* error */ } -SWIGRUNTIME void* SWIG_Lua_MustGetPtr(lua_State* L,int index,swig_type_info *type,int flags, - int argnum,const char* func_name){ - void* result; +SWIGRUNTIME void* SWIG_Lua_MustGetPtr(lua_State *L,int index,swig_type_info *type,int flags, + int argnum,const char *func_name){ + void *result; if (!SWIG_IsOK(SWIG_ConvertPtr(L,index,&result,type,flags))){ luaL_error (L,"Error in %s, expected a %s at argument number %d\n", func_name,(type && type->str)?type->str:"void*",argnum); @@ -1714,21 +2540,21 @@ SWIGRUNTIME void* SWIG_Lua_MustGetPtr(lua_State* L,int index,swig_type_info *typ } /* pushes a packed userdata. user for member fn pointers only */ -SWIGRUNTIME void SWIG_Lua_NewPackedObj(lua_State* L,void* ptr,size_t size,swig_type_info *type) +SWIGRUNTIME void SWIG_Lua_NewPackedObj(lua_State *L,void *ptr,size_t size,swig_type_info *type) { - swig_lua_rawdata* raw; + swig_lua_rawdata *raw; assert(ptr); /* not acceptable to pass in a NULL value */ raw=(swig_lua_rawdata*)lua_newuserdata(L,sizeof(swig_lua_rawdata)-1+size); /* alloc data */ raw->type=type; raw->own=0; memcpy(raw->data,ptr,size); /* copy the data */ - _SWIG_Lua_AddMetatable(L,type); /* add metatable */ + SWIG_Lua_AddMetatable(L,type); /* add metatable */ } /* converts a packed userdata. user for member fn pointers only */ -SWIGRUNTIME int SWIG_Lua_ConvertPacked(lua_State* L,int index,void* ptr,size_t size,swig_type_info *type) +SWIGRUNTIME int SWIG_Lua_ConvertPacked(lua_State *L,int index,void *ptr,size_t size,swig_type_info *type) { - swig_lua_rawdata* raw; + swig_lua_rawdata *raw; raw=(swig_lua_rawdata*)lua_touserdata(L,index); /* get data */ if (!raw) return SWIG_ERROR; /* error */ if (type==0 || type==raw->type) /* void* or identical type */ @@ -1742,7 +2568,7 @@ SWIGRUNTIME int SWIG_Lua_ConvertPacked(lua_State* L,int index,void* ptr,size_t /* a function to get the typestring of a piece of data */ SWIGRUNTIME const char *SWIG_Lua_typename(lua_State *L, int tp) { - swig_lua_userdata* usr; + swig_lua_userdata *usr; if (lua_isuserdata(L,tp)) { usr=(swig_lua_userdata*)lua_touserdata(L,tp); /* get data */ @@ -1754,29 +2580,12 @@ SWIGRUNTIME const char *SWIG_Lua_typename(lua_State *L, int tp) } /* lua callable function to get the userdata's type */ -SWIGRUNTIME int SWIG_Lua_type(lua_State* L) +SWIGRUNTIME int SWIG_Lua_type(lua_State *L) { lua_pushstring(L,SWIG_Lua_typename(L,1)); return 1; } -/* lua callable function to compare userdata's value -the issue is that two userdata may point to the same thing -but to lua, they are different objects */ -SWIGRUNTIME int SWIG_Lua_equal(lua_State* L) -{ - int result; - swig_lua_userdata *usr1,*usr2; - if (!lua_isuserdata(L,1) || !lua_isuserdata(L,2)) /* just in case */ - return 0; /* nil reply */ - usr1=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ - usr2=(swig_lua_userdata*)lua_touserdata(L,2); /* get data */ - /*result=(usr1->ptr==usr2->ptr && usr1->type==usr2->type); only works if type is the same*/ - result=(usr1->ptr==usr2->ptr); - lua_pushboolean(L,result); - return 1; -} - /* ----------------------------------------------------------------------------- * global variable support code: class/struct typemap functions * ----------------------------------------------------------------------------- */ @@ -1784,13 +2593,13 @@ SWIGRUNTIME int SWIG_Lua_equal(lua_State* L) #if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) /* Install Constants */ SWIGINTERN void -SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) { +SWIG_Lua_InstallConstants(lua_State *L, swig_lua_const_info constants[]) { int i; for (i = 0; constants[i].type; i++) { switch(constants[i].type) { case SWIG_LUA_INT: lua_pushstring(L,constants[i].name); - lua_pushnumber(L,(lua_Number)constants[i].lvalue); + lua_pushinteger(L,(lua_Number)constants[i].lvalue); lua_rawset(L,-3); break; case SWIG_LUA_FLOAT: @@ -1800,7 +2609,10 @@ SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) { break; case SWIG_LUA_CHAR: lua_pushstring(L,constants[i].name); - lua_pushfstring(L,"%c",(char)constants[i].lvalue); + { + char c = constants[i].lvalue; + lua_pushlstring(L,&c,1); + } lua_rawset(L,-3); break; case SWIG_LUA_STRING: @@ -1834,11 +2646,11 @@ SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) { #endif /* Executes a C string in Lua which is a really simple way of calling lua from C Unfortunately lua keeps changing its APIs, so we need a conditional compile -In lua 5.0.X its lua_dostring() -In lua 5.1.X its luaL_dostring() +In lua 5.0.X it's lua_dostring() +In lua 5.1.X it's luaL_dostring() */ SWIGINTERN int -SWIG_Lua_dostring(lua_State *L, const char* str) { +SWIG_Lua_dostring(lua_State *L, const char *str) { int ok,top; if (str==0 || str[0]==0) return 0; /* nothing to do */ top=lua_gettop(L); /* save stack */ @@ -1928,12 +2740,13 @@ SWIG_Lua_dostring(lua_State *L, const char* str) { #define SWIGTYPE_p_rlWebcam swig_types[62] #define SWIGTYPE_p_short swig_types[63] #define SWIGTYPE_p_sockaddr_in swig_types[64] -#define SWIGTYPE_p_unsigned_char swig_types[65] -#define SWIGTYPE_p_unsigned_int swig_types[66] -#define SWIGTYPE_p_unsigned_short swig_types[67] -#define SWIGTYPE_p_void swig_types[68] -static swig_type_info *swig_types[70]; -static swig_module_info swig_module = {swig_types, 69, 0, 0, 0, 0}; +#define SWIGTYPE_p_std__shared_ptrT_rlSharedMemory__LockUserAddr_t swig_types[65] +#define SWIGTYPE_p_unsigned_char swig_types[66] +#define SWIGTYPE_p_unsigned_int swig_types[67] +#define SWIGTYPE_p_unsigned_short swig_types[68] +#define SWIGTYPE_p_void swig_types[69] +static swig_type_info *swig_types[71]; +static swig_module_info swig_module = {swig_types, 70, 0, 0, 0, 0}; #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) @@ -2179,27 +2992,51 @@ static void swig_delete_THREAD_PARAM(void *obj) { THREAD_PARAM *arg1 = (THREAD_PARAM *) obj; delete arg1; } -static swig_lua_method swig_THREAD_PARAM_methods[] = { - {0,0} -}; +static int _proxy__wrap_new_THREAD_PARAM(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_THREAD_PARAM); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_THREAD_PARAM_attributes[] = { - { "thread", _wrap_THREAD_PARAM_thread_get, _wrap_THREAD_PARAM_thread_set}, - { "user", _wrap_THREAD_PARAM_user_get, _wrap_THREAD_PARAM_user_set}, - { "running", _wrap_THREAD_PARAM_running_get, _wrap_THREAD_PARAM_running_set}, + { "thread", _wrap_THREAD_PARAM_thread_get, _wrap_THREAD_PARAM_thread_set }, + { "user", _wrap_THREAD_PARAM_user_get, _wrap_THREAD_PARAM_user_set }, + { "running", _wrap_THREAD_PARAM_running_get, _wrap_THREAD_PARAM_running_set }, {0,0,0} }; -static swig_lua_attribute swig_THREAD_PARAM_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_THREAD_PARAM_methods[]= { + {0,0} }; -static swig_lua_method swig_THREAD_PARAM_cls_methods[] = { +static swig_lua_method swig_THREAD_PARAM_meta[] = { {0,0} }; -static swig_lua_const_info swig_THREAD_PARAM_cls_constants[] = { + +static swig_lua_attribute swig_THREAD_PARAM_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_THREAD_PARAM_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_THREAD_PARAM_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_THREAD_PARAM_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_THREAD_PARAM_Sf_SwigStatic = { + "THREAD_PARAM", + swig_THREAD_PARAM_Sf_SwigStatic_methods, + swig_THREAD_PARAM_Sf_SwigStatic_attributes, + swig_THREAD_PARAM_Sf_SwigStatic_constants, + swig_THREAD_PARAM_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_THREAD_PARAM_bases[] = {0}; static const char *swig_THREAD_PARAM_base_names[] = {0}; -static swig_lua_class _wrap_class_THREAD_PARAM = { "THREAD_PARAM", &SWIGTYPE_p_THREAD_PARAM,_wrap_new_THREAD_PARAM, swig_delete_THREAD_PARAM, swig_THREAD_PARAM_methods, swig_THREAD_PARAM_attributes, { "THREAD_PARAM", swig_THREAD_PARAM_cls_methods, swig_THREAD_PARAM_cls_attributes, swig_THREAD_PARAM_cls_constants }, swig_THREAD_PARAM_bases, swig_THREAD_PARAM_base_names }; +static swig_lua_class _wrap_class_THREAD_PARAM = { "THREAD_PARAM", "THREAD_PARAM", &SWIGTYPE_p_THREAD_PARAM,_proxy__wrap_new_THREAD_PARAM, swig_delete_THREAD_PARAM, swig_THREAD_PARAM_methods, swig_THREAD_PARAM_attributes, &swig_THREAD_PARAM_Sf_SwigStatic, swig_THREAD_PARAM_meta, swig_THREAD_PARAM_bases, swig_THREAD_PARAM_base_names }; static int _wrap_new_rlThread__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -2741,37 +3578,61 @@ static void swig_delete_rlThread(void *obj) { rlThread *arg1 = (rlThread *) obj; delete arg1; } -static swig_lua_method swig_rlThread_methods[] = { - {"create", _wrap_rlThread_create}, - {"trylock", _wrap_rlThread_trylock}, - {"lock", _wrap_rlThread_lock}, - {"unlock", _wrap_rlThread_unlock}, - {"waitSemaphore", _wrap_rlThread_waitSemaphore}, - {"incrementSemaphore", _wrap_rlThread_incrementSemaphore}, - {"join", _wrap_rlThread_join}, - {"cancel", _wrap_rlThread_cancel}, - {"threadExit", _wrap_rlThread_threadExit}, - {0,0} -}; +static int _proxy__wrap_new_rlThread(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlThread); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlThread_attributes[] = { - { "tid", _wrap_rlThread_tid_get, _wrap_rlThread_tid_set}, - { "attr", _wrap_rlThread_attr_get, _wrap_rlThread_attr_set}, - { "mutex", _wrap_rlThread_mutex_get, _wrap_rlThread_mutex_set}, - { "semaphore", _wrap_rlThread_semaphore_get, _wrap_rlThread_semaphore_set}, + { "tid", _wrap_rlThread_tid_get, _wrap_rlThread_tid_set }, + { "attr", _wrap_rlThread_attr_get, _wrap_rlThread_attr_set }, + { "mutex", _wrap_rlThread_mutex_get, _wrap_rlThread_mutex_set }, + { "semaphore", _wrap_rlThread_semaphore_get, _wrap_rlThread_semaphore_set }, {0,0,0} }; -static swig_lua_attribute swig_rlThread_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlThread_methods[]= { + { "create", _wrap_rlThread_create}, + { "trylock", _wrap_rlThread_trylock}, + { "lock", _wrap_rlThread_lock}, + { "unlock", _wrap_rlThread_unlock}, + { "waitSemaphore", _wrap_rlThread_waitSemaphore}, + { "incrementSemaphore", _wrap_rlThread_incrementSemaphore}, + { "join", _wrap_rlThread_join}, + { "cancel", _wrap_rlThread_cancel}, + { "threadExit", _wrap_rlThread_threadExit}, + {0,0} }; -static swig_lua_method swig_rlThread_cls_methods[] = { +static swig_lua_method swig_rlThread_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlThread_cls_constants[] = { + +static swig_lua_attribute swig_rlThread_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlThread_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlThread_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlThread_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlThread_Sf_SwigStatic = { + "rlThread", + swig_rlThread_Sf_SwigStatic_methods, + swig_rlThread_Sf_SwigStatic_attributes, + swig_rlThread_Sf_SwigStatic_constants, + swig_rlThread_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlThread_bases[] = {0}; static const char *swig_rlThread_base_names[] = {0}; -static swig_lua_class _wrap_class_rlThread = { "rlThread", &SWIGTYPE_p_rlThread,_wrap_new_rlThread, swig_delete_rlThread, swig_rlThread_methods, swig_rlThread_attributes, { "rlThread", swig_rlThread_cls_methods, swig_rlThread_cls_attributes, swig_rlThread_cls_constants }, swig_rlThread_bases, swig_rlThread_base_names }; +static swig_lua_class _wrap_class_rlThread = { "rlThread", "rlThread", &SWIGTYPE_p_rlThread,_proxy__wrap_new_rlThread, swig_delete_rlThread, swig_rlThread_methods, swig_rlThread_attributes, &swig_rlThread_Sf_SwigStatic, swig_rlThread_meta, swig_rlThread_bases, swig_rlThread_base_names }; static int _wrap_new_rlMutex__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -2978,30 +3839,54 @@ static void swig_delete_rlMutex(void *obj) { rlMutex *arg1 = (rlMutex *) obj; delete arg1; } -static swig_lua_method swig_rlMutex_methods[] = { - {"trylock", _wrap_rlMutex_trylock}, - {"lock", _wrap_rlMutex_lock}, - {"unlock", _wrap_rlMutex_unlock}, - {0,0} -}; +static int _proxy__wrap_new_rlMutex(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlMutex); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlMutex_attributes[] = { - { "mutex", _wrap_rlMutex_mutex_get, _wrap_rlMutex_mutex_set}, + { "mutex", _wrap_rlMutex_mutex_get, _wrap_rlMutex_mutex_set }, {0,0,0} }; -static swig_lua_attribute swig_rlMutex_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlMutex_methods[]= { + { "trylock", _wrap_rlMutex_trylock}, + { "lock", _wrap_rlMutex_lock}, + { "unlock", _wrap_rlMutex_unlock}, + {0,0} }; -static swig_lua_method swig_rlMutex_cls_methods[] = { +static swig_lua_method swig_rlMutex_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlMutex_cls_constants[] = { + +static swig_lua_attribute swig_rlMutex_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlMutex_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; -static swig_lua_class *swig_rlMutex_bases[] = {0}; -static const char *swig_rlMutex_base_names[] = {0}; -static swig_lua_class _wrap_class_rlMutex = { "rlMutex", &SWIGTYPE_p_rlMutex,_wrap_new_rlMutex, swig_delete_rlMutex, swig_rlMutex_methods, swig_rlMutex_attributes, { "rlMutex", swig_rlMutex_cls_methods, swig_rlMutex_cls_attributes, swig_rlMutex_cls_constants }, swig_rlMutex_bases, swig_rlMutex_base_names }; - -static int _wrap_new_rlSemaphore__SWIG_0(lua_State* L) { +static swig_lua_method swig_rlMutex_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlMutex_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlMutex_Sf_SwigStatic = { + "rlMutex", + swig_rlMutex_Sf_SwigStatic_methods, + swig_rlMutex_Sf_SwigStatic_attributes, + swig_rlMutex_Sf_SwigStatic_constants, + swig_rlMutex_Sf_SwigStatic_classes, + 0 +}; +static swig_lua_class *swig_rlMutex_bases[] = {0}; +static const char *swig_rlMutex_base_names[] = {0}; +static swig_lua_class _wrap_class_rlMutex = { "rlMutex", "rlMutex", &SWIGTYPE_p_rlMutex,_proxy__wrap_new_rlMutex, swig_delete_rlMutex, swig_rlMutex_methods, swig_rlMutex_attributes, &swig_rlMutex_Sf_SwigStatic, swig_rlMutex_meta, swig_rlMutex_bases, swig_rlMutex_base_names }; + +static int _wrap_new_rlSemaphore__SWIG_0(lua_State* L) { int SWIG_arg = 0; int arg1 ; rlSemaphore *result = 0 ; @@ -3177,27 +4062,51 @@ static void swig_delete_rlSemaphore(void *obj) { rlSemaphore *arg1 = (rlSemaphore *) obj; delete arg1; } -static swig_lua_method swig_rlSemaphore_methods[] = { - {"waitSemaphore", _wrap_rlSemaphore_waitSemaphore}, - {"incrementSemaphore", _wrap_rlSemaphore_incrementSemaphore}, - {0,0} -}; +static int _proxy__wrap_new_rlSemaphore(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSemaphore); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlSemaphore_attributes[] = { - { "semaphore", _wrap_rlSemaphore_semaphore_get, _wrap_rlSemaphore_semaphore_set}, + { "semaphore", _wrap_rlSemaphore_semaphore_get, _wrap_rlSemaphore_semaphore_set }, {0,0,0} }; -static swig_lua_attribute swig_rlSemaphore_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlSemaphore_methods[]= { + { "waitSemaphore", _wrap_rlSemaphore_waitSemaphore}, + { "incrementSemaphore", _wrap_rlSemaphore_incrementSemaphore}, + {0,0} }; -static swig_lua_method swig_rlSemaphore_cls_methods[] = { +static swig_lua_method swig_rlSemaphore_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlSemaphore_cls_constants[] = { + +static swig_lua_attribute swig_rlSemaphore_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlSemaphore_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlSemaphore_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlSemaphore_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSemaphore_Sf_SwigStatic = { + "rlSemaphore", + swig_rlSemaphore_Sf_SwigStatic_methods, + swig_rlSemaphore_Sf_SwigStatic_attributes, + swig_rlSemaphore_Sf_SwigStatic_constants, + swig_rlSemaphore_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlSemaphore_bases[] = {0}; static const char *swig_rlSemaphore_base_names[] = {0}; -static swig_lua_class _wrap_class_rlSemaphore = { "rlSemaphore", &SWIGTYPE_p_rlSemaphore,_wrap_new_rlSemaphore, swig_delete_rlSemaphore, swig_rlSemaphore_methods, swig_rlSemaphore_attributes, { "rlSemaphore", swig_rlSemaphore_cls_methods, swig_rlSemaphore_cls_attributes, swig_rlSemaphore_cls_constants }, swig_rlSemaphore_bases, swig_rlSemaphore_base_names }; +static swig_lua_class _wrap_class_rlSemaphore = { "rlSemaphore", "rlSemaphore", &SWIGTYPE_p_rlSemaphore,_proxy__wrap_new_rlSemaphore, swig_delete_rlSemaphore, swig_rlSemaphore_methods, swig_rlSemaphore_attributes, &swig_rlSemaphore_Sf_SwigStatic, swig_rlSemaphore_meta, swig_rlSemaphore_bases, swig_rlSemaphore_base_names }; static int _wrap_new_rlSharedMemory__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -3676,6 +4585,33 @@ static int _wrap_rlSharedMemory_getUserAdr(lua_State* L) { } +static int _wrap_rlSharedMemory_getLock(lua_State* L) { + int SWIG_arg = 0; + rlSharedMemory *arg1 = (rlSharedMemory *) 0 ; + SwigValueWrapper< std::shared_ptr< rlSharedMemory::LockUserAddr > > result; + + SWIG_check_num_args("rlSharedMemory::getLock",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlSharedMemory::getLock",1,"rlSharedMemory *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlSharedMemory,0))){ + SWIG_fail_ptr("rlSharedMemory_getLock",1,SWIGTYPE_p_rlSharedMemory); + } + + result = (arg1)->getLock(); + { + std::shared_ptr< rlSharedMemory::LockUserAddr > * resultptr = new std::shared_ptr< rlSharedMemory::LockUserAddr >((const std::shared_ptr< rlSharedMemory::LockUserAddr > &) result); + SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_std__shared_ptrT_rlSharedMemory__LockUserAddr_t,1); SWIG_arg++; + } + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + static int _wrap_rlSharedMemory_shmKey(lua_State* L) { int SWIG_arg = 0; rlSharedMemory *arg1 = (rlSharedMemory *) 0 ; @@ -3860,36 +4796,46 @@ static void swig_delete_rlSharedMemory(void *obj) { rlSharedMemory *arg1 = (rlSharedMemory *) obj; delete arg1; } -static swig_lua_method swig_rlSharedMemory_methods[] = { - {"deleteSharedMemory", _wrap_rlSharedMemory_deleteSharedMemory}, - {"write", _wrap_rlSharedMemory_write}, - {"read", _wrap_rlSharedMemory_read}, - {"readInt", _wrap_rlSharedMemory_readInt}, - {"readShort", _wrap_rlSharedMemory_readShort}, - {"readByte", _wrap_rlSharedMemory_readByte}, - {"readFloat", _wrap_rlSharedMemory_readFloat}, - {"writeInt", _wrap_rlSharedMemory_writeInt}, - {"writeShort", _wrap_rlSharedMemory_writeShort}, - {"writeByte", _wrap_rlSharedMemory_writeByte}, - {"writeFloat", _wrap_rlSharedMemory_writeFloat}, - {"getUserAdr", _wrap_rlSharedMemory_getUserAdr}, - {"shmKey", _wrap_rlSharedMemory_shmKey}, - {"shmId", _wrap_rlSharedMemory_shmId}, - {"size", _wrap_rlSharedMemory_size}, - {0,0} -}; +static int _proxy__wrap_new_rlSharedMemory(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSharedMemory); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlSharedMemory_attributes[] = { - { "status", _wrap_rlSharedMemory_status_get, _wrap_rlSharedMemory_status_set}, - { "name", _wrap_rlSharedMemory_name_get, _wrap_rlSharedMemory_name_set}, + { "status", _wrap_rlSharedMemory_status_get, _wrap_rlSharedMemory_status_set }, + { "name", _wrap_rlSharedMemory_name_get, _wrap_rlSharedMemory_name_set }, {0,0,0} }; -static swig_lua_attribute swig_rlSharedMemory_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlSharedMemory_methods[]= { + { "deleteSharedMemory", _wrap_rlSharedMemory_deleteSharedMemory}, + { "write", _wrap_rlSharedMemory_write}, + { "read", _wrap_rlSharedMemory_read}, + { "readInt", _wrap_rlSharedMemory_readInt}, + { "readShort", _wrap_rlSharedMemory_readShort}, + { "readByte", _wrap_rlSharedMemory_readByte}, + { "readFloat", _wrap_rlSharedMemory_readFloat}, + { "writeInt", _wrap_rlSharedMemory_writeInt}, + { "writeShort", _wrap_rlSharedMemory_writeShort}, + { "writeByte", _wrap_rlSharedMemory_writeByte}, + { "writeFloat", _wrap_rlSharedMemory_writeFloat}, + { "getUserAdr", _wrap_rlSharedMemory_getUserAdr}, + { "getLock", _wrap_rlSharedMemory_getLock}, + { "shmKey", _wrap_rlSharedMemory_shmKey}, + { "shmId", _wrap_rlSharedMemory_shmId}, + { "size", _wrap_rlSharedMemory_size}, + {0,0} }; -static swig_lua_method swig_rlSharedMemory_cls_methods[] = { +static swig_lua_method swig_rlSharedMemory_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlSharedMemory_cls_constants[] = { + +static swig_lua_attribute swig_rlSharedMemory_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlSharedMemory_Sf_SwigStatic_constants[]= { {SWIG_LUA_CONSTTAB_INT("OK", rlSharedMemory::OK)}, {SWIG_LUA_CONSTTAB_INT("ERROR_FILE", rlSharedMemory::ERROR_FILE)}, {SWIG_LUA_CONSTTAB_INT("ERROR_SHMGET", rlSharedMemory::ERROR_SHMGET)}, @@ -3897,9 +4843,24 @@ static swig_lua_const_info swig_rlSharedMemory_cls_constants[] = { {SWIG_LUA_CONSTTAB_INT("ERROR_SHMCTL", rlSharedMemory::ERROR_SHMCTL)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_rlSharedMemory_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlSharedMemory_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSharedMemory_Sf_SwigStatic = { + "rlSharedMemory", + swig_rlSharedMemory_Sf_SwigStatic_methods, + swig_rlSharedMemory_Sf_SwigStatic_attributes, + swig_rlSharedMemory_Sf_SwigStatic_constants, + swig_rlSharedMemory_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlSharedMemory_bases[] = {0}; static const char *swig_rlSharedMemory_base_names[] = {0}; -static swig_lua_class _wrap_class_rlSharedMemory = { "rlSharedMemory", &SWIGTYPE_p_rlSharedMemory,_wrap_new_rlSharedMemory, swig_delete_rlSharedMemory, swig_rlSharedMemory_methods, swig_rlSharedMemory_attributes, { "rlSharedMemory", swig_rlSharedMemory_cls_methods, swig_rlSharedMemory_cls_attributes, swig_rlSharedMemory_cls_constants }, swig_rlSharedMemory_bases, swig_rlSharedMemory_base_names }; +static swig_lua_class _wrap_class_rlSharedMemory = { "rlSharedMemory", "rlSharedMemory", &SWIGTYPE_p_rlSharedMemory,_proxy__wrap_new_rlSharedMemory, swig_delete_rlSharedMemory, swig_rlSharedMemory_methods, swig_rlSharedMemory_attributes, &swig_rlSharedMemory_Sf_SwigStatic, swig_rlSharedMemory_meta, swig_rlSharedMemory_bases, swig_rlSharedMemory_base_names }; static int _wrap_new_rlIpAdr(lua_State* L) { int SWIG_arg = 0; @@ -4042,27 +5003,52 @@ static void swig_delete_rlIpAdr(void *obj) { rlIpAdr *arg1 = (rlIpAdr *) obj; delete arg1; } -static swig_lua_method swig_rlIpAdr_methods[] = { - {"setAdr", _wrap_rlIpAdr_setAdr}, - {"__eq", _wrap_rlIpAdr___eq}, - {0,0} -}; +static int _proxy__wrap_new_rlIpAdr(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlIpAdr); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlIpAdr_attributes[] = { - { "address", _wrap_rlIpAdr_address_get, _wrap_rlIpAdr_address_set}, + { "address", _wrap_rlIpAdr_address_get, _wrap_rlIpAdr_address_set }, {0,0,0} }; -static swig_lua_attribute swig_rlIpAdr_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlIpAdr_methods[]= { + { "setAdr", _wrap_rlIpAdr_setAdr}, + { "__eq", _wrap_rlIpAdr___eq}, + {0,0} }; -static swig_lua_method swig_rlIpAdr_cls_methods[] = { +static swig_lua_method swig_rlIpAdr_meta[] = { + { "__eq", _wrap_rlIpAdr___eq}, {0,0} }; -static swig_lua_const_info swig_rlIpAdr_cls_constants[] = { + +static swig_lua_attribute swig_rlIpAdr_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlIpAdr_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlIpAdr_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlIpAdr_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlIpAdr_Sf_SwigStatic = { + "rlIpAdr", + swig_rlIpAdr_Sf_SwigStatic_methods, + swig_rlIpAdr_Sf_SwigStatic_attributes, + swig_rlIpAdr_Sf_SwigStatic_constants, + swig_rlIpAdr_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlIpAdr_bases[] = {0}; static const char *swig_rlIpAdr_base_names[] = {0}; -static swig_lua_class _wrap_class_rlIpAdr = { "rlIpAdr", &SWIGTYPE_p_rlIpAdr,_wrap_new_rlIpAdr, swig_delete_rlIpAdr, swig_rlIpAdr_methods, swig_rlIpAdr_attributes, { "rlIpAdr", swig_rlIpAdr_cls_methods, swig_rlIpAdr_cls_attributes, swig_rlIpAdr_cls_constants }, swig_rlIpAdr_bases, swig_rlIpAdr_base_names }; +static swig_lua_class _wrap_class_rlIpAdr = { "rlIpAdr", "rlIpAdr", &SWIGTYPE_p_rlIpAdr,_proxy__wrap_new_rlIpAdr, swig_delete_rlIpAdr, swig_rlIpAdr_methods, swig_rlIpAdr_attributes, &swig_rlIpAdr_Sf_SwigStatic, swig_rlIpAdr_meta, swig_rlIpAdr_bases, swig_rlIpAdr_base_names }; static int _wrap_new_rlUdpSocket__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -4722,33 +5708,57 @@ static void swig_delete_rlUdpSocket(void *obj) { rlUdpSocket *arg1 = (rlUdpSocket *) obj; delete arg1; } -static swig_lua_method swig_rlUdpSocket_methods[] = { - {"setSockopt", _wrap_rlUdpSocket_setSockopt}, - {"bind", _wrap_rlUdpSocket_bind}, - {"select", _wrap_rlUdpSocket_select}, - {"recvfrom", _wrap_rlUdpSocket_recvfrom}, - {"sendto", _wrap_rlUdpSocket_sendto}, - {"printf", _wrap_rlUdpSocket_printf}, - {0,0} -}; +static int _proxy__wrap_new_rlUdpSocket(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlUdpSocket); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlUdpSocket_attributes[] = { - { "debug", _wrap_rlUdpSocket_debug_get, _wrap_rlUdpSocket_debug_set}, - { "readflag", _wrap_rlUdpSocket_readflag_get, _wrap_rlUdpSocket_readflag_set}, - { "writeflag", _wrap_rlUdpSocket_writeflag_get, _wrap_rlUdpSocket_writeflag_set}, + { "debug", _wrap_rlUdpSocket_debug_get, _wrap_rlUdpSocket_debug_set }, + { "readflag", _wrap_rlUdpSocket_readflag_get, _wrap_rlUdpSocket_readflag_set }, + { "writeflag", _wrap_rlUdpSocket_writeflag_get, _wrap_rlUdpSocket_writeflag_set }, {0,0,0} }; -static swig_lua_attribute swig_rlUdpSocket_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlUdpSocket_methods[]= { + { "setSockopt", _wrap_rlUdpSocket_setSockopt}, + { "bind", _wrap_rlUdpSocket_bind}, + { "select", _wrap_rlUdpSocket_select}, + { "recvfrom", _wrap_rlUdpSocket_recvfrom}, + { "sendto", _wrap_rlUdpSocket_sendto}, + { "printf", _wrap_rlUdpSocket_printf}, + {0,0} }; -static swig_lua_method swig_rlUdpSocket_cls_methods[] = { +static swig_lua_method swig_rlUdpSocket_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlUdpSocket_cls_constants[] = { + +static swig_lua_attribute swig_rlUdpSocket_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlUdpSocket_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlUdpSocket_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlUdpSocket_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlUdpSocket_Sf_SwigStatic = { + "rlUdpSocket", + swig_rlUdpSocket_Sf_SwigStatic_methods, + swig_rlUdpSocket_Sf_SwigStatic_attributes, + swig_rlUdpSocket_Sf_SwigStatic_constants, + swig_rlUdpSocket_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlUdpSocket_bases[] = {0}; static const char *swig_rlUdpSocket_base_names[] = {0}; -static swig_lua_class _wrap_class_rlUdpSocket = { "rlUdpSocket", &SWIGTYPE_p_rlUdpSocket,_wrap_new_rlUdpSocket, swig_delete_rlUdpSocket, swig_rlUdpSocket_methods, swig_rlUdpSocket_attributes, { "rlUdpSocket", swig_rlUdpSocket_cls_methods, swig_rlUdpSocket_cls_attributes, swig_rlUdpSocket_cls_constants }, swig_rlUdpSocket_bases, swig_rlUdpSocket_base_names }; +static swig_lua_class _wrap_class_rlUdpSocket = { "rlUdpSocket", "rlUdpSocket", &SWIGTYPE_p_rlUdpSocket,_proxy__wrap_new_rlUdpSocket, swig_delete_rlUdpSocket, swig_rlUdpSocket_methods, swig_rlUdpSocket_attributes, &swig_rlUdpSocket_Sf_SwigStatic, swig_rlUdpSocket_meta, swig_rlUdpSocket_bases, swig_rlUdpSocket_base_names }; static int _wrap_rlwsa(lua_State* L) { int SWIG_arg = 0; @@ -6125,40 +7135,49 @@ static void swig_delete_rlSocket(void *obj) { rlSocket *arg1 = (rlSocket *) obj; delete arg1; } -static swig_lua_method swig_rlSocket_methods[] = { - {"setAdr", _wrap_rlSocket_setAdr}, - {"setPort", _wrap_rlSocket_setPort}, - {"getPort", _wrap_rlSocket_getPort}, - {"setActive", _wrap_rlSocket_setActive}, - {"read", _wrap_rlSocket_read}, - {"readStr", _wrap_rlSocket_readStr}, - {"readHttpHeader", _wrap_rlSocket_readHttpHeader}, - {"write", _wrap_rlSocket_write}, - {"printf", _wrap_rlSocket_printf}, - {"connect", _wrap_rlSocket_connect}, - {"disconnect", _wrap_rlSocket_disconnect}, - {"select", _wrap_rlSocket_select}, - {"isConnected", _wrap_rlSocket_isConnected}, - {"setIPVersion", _wrap_rlSocket_setIPVersion}, - {"getIPVersion", _wrap_rlSocket_getIPVersion}, - {"sendProcessViewBrowserButtonEvent", _wrap_rlSocket_sendProcessViewBrowserButtonEvent}, - {"rlGetsockopt", _wrap_rlSocket_rlGetsockopt}, - {"rlSetsockopt", _wrap_rlSocket_rlSetsockopt}, - {"readHttpContentLength", _wrap_rlSocket_readHttpContentLength}, - {0,0} -}; +static int _proxy__wrap_new_rlSocket(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSocket); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlSocket_attributes[] = { - { "s", _wrap_rlSocket_s_get, _wrap_rlSocket_s_set}, - { "sockaddr", _wrap_rlSocket_sockaddr_get, _wrap_rlSocket_sockaddr_set}, + { "s", _wrap_rlSocket_s_get, _wrap_rlSocket_s_set }, + { "sockaddr", _wrap_rlSocket_sockaddr_get, _wrap_rlSocket_sockaddr_set }, {0,0,0} }; -static swig_lua_attribute swig_rlSocket_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlSocket_methods[]= { + { "setAdr", _wrap_rlSocket_setAdr}, + { "setPort", _wrap_rlSocket_setPort}, + { "getPort", _wrap_rlSocket_getPort}, + { "setActive", _wrap_rlSocket_setActive}, + { "read", _wrap_rlSocket_read}, + { "readStr", _wrap_rlSocket_readStr}, + { "readHttpHeader", _wrap_rlSocket_readHttpHeader}, + { "write", _wrap_rlSocket_write}, + { "printf", _wrap_rlSocket_printf}, + { "connect", _wrap_rlSocket_connect}, + { "disconnect", _wrap_rlSocket_disconnect}, + { "select", _wrap_rlSocket_select}, + { "isConnected", _wrap_rlSocket_isConnected}, + { "setIPVersion", _wrap_rlSocket_setIPVersion}, + { "getIPVersion", _wrap_rlSocket_getIPVersion}, + { "sendProcessViewBrowserButtonEvent", _wrap_rlSocket_sendProcessViewBrowserButtonEvent}, + { "rlGetsockopt", _wrap_rlSocket_rlGetsockopt}, + { "rlSetsockopt", _wrap_rlSocket_rlSetsockopt}, + { "readHttpContentLength", _wrap_rlSocket_readHttpContentLength}, + {0,0} }; -static swig_lua_method swig_rlSocket_cls_methods[] = { +static swig_lua_method swig_rlSocket_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlSocket_cls_constants[] = { + +static swig_lua_attribute swig_rlSocket_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlSocket_Sf_SwigStatic_constants[]= { {SWIG_LUA_CONSTTAB_INT("SOCKET_ERR", rlSocket::SOCKET_ERR)}, {SWIG_LUA_CONSTTAB_INT("SETSOCKOPT_ERR", rlSocket::SETSOCKOPT_ERR)}, {SWIG_LUA_CONSTTAB_INT("LISTEN_ERR", rlSocket::LISTEN_ERR)}, @@ -6168,9 +7187,24 @@ static swig_lua_const_info swig_rlSocket_cls_constants[] = { {SWIG_LUA_CONSTTAB_INT("PORT_ERR", rlSocket::PORT_ERR)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_rlSocket_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlSocket_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSocket_Sf_SwigStatic = { + "rlSocket", + swig_rlSocket_Sf_SwigStatic_methods, + swig_rlSocket_Sf_SwigStatic_attributes, + swig_rlSocket_Sf_SwigStatic_constants, + swig_rlSocket_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlSocket_bases[] = {0}; static const char *swig_rlSocket_base_names[] = {0}; -static swig_lua_class _wrap_class_rlSocket = { "rlSocket", &SWIGTYPE_p_rlSocket,_wrap_new_rlSocket, swig_delete_rlSocket, swig_rlSocket_methods, swig_rlSocket_attributes, { "rlSocket", swig_rlSocket_cls_methods, swig_rlSocket_cls_attributes, swig_rlSocket_cls_constants }, swig_rlSocket_bases, swig_rlSocket_base_names }; +static swig_lua_class _wrap_class_rlSocket = { "rlSocket", "rlSocket", &SWIGTYPE_p_rlSocket,_proxy__wrap_new_rlSocket, swig_delete_rlSocket, swig_rlSocket_methods, swig_rlSocket_attributes, &swig_rlSocket_Sf_SwigStatic, swig_rlSocket_meta, swig_rlSocket_bases, swig_rlSocket_base_names }; static int _wrap_new_rl3964R__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -6830,39 +7864,63 @@ static void swig_delete_rl3964R(void *obj) { rl3964R *arg1 = (rl3964R *) obj; delete arg1; } -static swig_lua_method swig_rl3964R_methods[] = { - {"open", _wrap_rl3964R_open}, - {"close", _wrap_rl3964R_close}, - {"setReadCallback", _wrap_rl3964R_setReadCallback}, - {"write", _wrap_rl3964R_write}, - {"send", _wrap_rl3964R_send}, - {"receive", _wrap_rl3964R_receive}, - {"dprintf", _wrap_rl3964R_dprintf}, - {0,0} -}; +static int _proxy__wrap_new_rl3964R(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rl3964R); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rl3964R_attributes[] = { - { "receiver", _wrap_rl3964R_receiver_get, _wrap_rl3964R_receiver_set}, - { "tty", _wrap_rl3964R_tty_get, _wrap_rl3964R_tty_set}, - { "state", _wrap_rl3964R_state_get, _wrap_rl3964R_state_set}, - { "priority", _wrap_rl3964R_priority_get, _wrap_rl3964R_priority_set}, - { "run", _wrap_rl3964R_run_get, _wrap_rl3964R_run_set}, - { "debug", _wrap_rl3964R_debug_get, _wrap_rl3964R_debug_set}, + { "receiver", _wrap_rl3964R_receiver_get, _wrap_rl3964R_receiver_set }, + { "tty", _wrap_rl3964R_tty_get, _wrap_rl3964R_tty_set }, + { "state", _wrap_rl3964R_state_get, _wrap_rl3964R_state_set }, + { "priority", _wrap_rl3964R_priority_get, _wrap_rl3964R_priority_set }, + { "run", _wrap_rl3964R_run_get, _wrap_rl3964R_run_set }, + { "debug", _wrap_rl3964R_debug_get, _wrap_rl3964R_debug_set }, {0,0,0} }; -static swig_lua_attribute swig_rl3964R_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rl3964R_methods[]= { + { "open", _wrap_rl3964R_open}, + { "close", _wrap_rl3964R_close}, + { "setReadCallback", _wrap_rl3964R_setReadCallback}, + { "write", _wrap_rl3964R_write}, + { "send", _wrap_rl3964R_send}, + { "receive", _wrap_rl3964R_receive}, + { "dprintf", _wrap_rl3964R_dprintf}, + {0,0} }; -static swig_lua_method swig_rl3964R_cls_methods[] = { +static swig_lua_method swig_rl3964R_meta[] = { {0,0} }; -static swig_lua_const_info swig_rl3964R_cls_constants[] = { + +static swig_lua_attribute swig_rl3964R_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rl3964R_Sf_SwigStatic_constants[]= { {SWIG_LUA_CONSTTAB_INT("highPriority", rl3964R::highPriority)}, {SWIG_LUA_CONSTTAB_INT("lowPriority", rl3964R::lowPriority)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_rl3964R_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rl3964R_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rl3964R_Sf_SwigStatic = { + "rl3964R", + swig_rl3964R_Sf_SwigStatic_methods, + swig_rl3964R_Sf_SwigStatic_attributes, + swig_rl3964R_Sf_SwigStatic_constants, + swig_rl3964R_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rl3964R_bases[] = {0}; static const char *swig_rl3964R_base_names[] = {0}; -static swig_lua_class _wrap_class_rl3964R = { "rl3964R", &SWIGTYPE_p_rl3964R,_wrap_new_rl3964R, swig_delete_rl3964R, swig_rl3964R_methods, swig_rl3964R_attributes, { "rl3964R", swig_rl3964R_cls_methods, swig_rl3964R_cls_attributes, swig_rl3964R_cls_constants }, swig_rl3964R_bases, swig_rl3964R_base_names }; +static swig_lua_class _wrap_class_rl3964R = { "rl3964R", "rl3964R", &SWIGTYPE_p_rl3964R,_proxy__wrap_new_rl3964R, swig_delete_rl3964R, swig_rl3964R_methods, swig_rl3964R_attributes, &swig_rl3964R_Sf_SwigStatic, swig_rl3964R_meta, swig_rl3964R_bases, swig_rl3964R_base_names }; static int _wrap_new_rlCommandlineInterface(lua_State* L) { int SWIG_arg = 0; @@ -7357,29 +8415,53 @@ static void swig_delete_rlCommandlineInterface(void *obj) { rlCommandlineInterface *arg1 = (rlCommandlineInterface *) obj; delete arg1; } -static swig_lua_method swig_rlCommandlineInterface_methods[] = { - {"start", _wrap_rlCommandlineInterface_start}, - {"readLine", _wrap_rlCommandlineInterface_readLine}, - {"readBlock", _wrap_rlCommandlineInterface_readBlock}, - {"printf", _wrap_rlCommandlineInterface_printf}, - {"writeBlock", _wrap_rlCommandlineInterface_writeBlock}, - {0,0} -}; +static int _proxy__wrap_new_rlCommandlineInterface(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlCommandlineInterface); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlCommandlineInterface_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlCommandlineInterface_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlCommandlineInterface_methods[]= { + { "start", _wrap_rlCommandlineInterface_start}, + { "readLine", _wrap_rlCommandlineInterface_readLine}, + { "readBlock", _wrap_rlCommandlineInterface_readBlock}, + { "printf", _wrap_rlCommandlineInterface_printf}, + { "writeBlock", _wrap_rlCommandlineInterface_writeBlock}, + {0,0} }; -static swig_lua_method swig_rlCommandlineInterface_cls_methods[] = { +static swig_lua_method swig_rlCommandlineInterface_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlCommandlineInterface_cls_constants[] = { + +static swig_lua_attribute swig_rlCommandlineInterface_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlCommandlineInterface_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlCommandlineInterface_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlCommandlineInterface_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlCommandlineInterface_Sf_SwigStatic = { + "rlCommandlineInterface", + swig_rlCommandlineInterface_Sf_SwigStatic_methods, + swig_rlCommandlineInterface_Sf_SwigStatic_attributes, + swig_rlCommandlineInterface_Sf_SwigStatic_constants, + swig_rlCommandlineInterface_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlCommandlineInterface_bases[] = {0}; static const char *swig_rlCommandlineInterface_base_names[] = {0}; -static swig_lua_class _wrap_class_rlCommandlineInterface = { "rlCommandlineInterface", &SWIGTYPE_p_rlCommandlineInterface,_wrap_new_rlCommandlineInterface, swig_delete_rlCommandlineInterface, swig_rlCommandlineInterface_methods, swig_rlCommandlineInterface_attributes, { "rlCommandlineInterface", swig_rlCommandlineInterface_cls_methods, swig_rlCommandlineInterface_cls_attributes, swig_rlCommandlineInterface_cls_constants }, swig_rlCommandlineInterface_bases, swig_rlCommandlineInterface_base_names }; +static swig_lua_class _wrap_class_rlCommandlineInterface = { "rlCommandlineInterface", "rlCommandlineInterface", &SWIGTYPE_p_rlCommandlineInterface,_proxy__wrap_new_rlCommandlineInterface, swig_delete_rlCommandlineInterface, swig_rlCommandlineInterface_methods, swig_rlCommandlineInterface_attributes, &swig_rlCommandlineInterface_Sf_SwigStatic, swig_rlCommandlineInterface_meta, swig_rlCommandlineInterface_bases, swig_rlCommandlineInterface_base_names }; static int _wrap_rlSetDebugPrintf(lua_State* L) { int SWIG_arg = 0; @@ -9049,39 +10131,63 @@ static void swig_delete_rlDataAcquisition(void *obj) { rlDataAcquisition *arg1 = (rlDataAcquisition *) obj; delete arg1; } -static swig_lua_method swig_rlDataAcquisition_methods[] = { - {"stringValue", _wrap_rlDataAcquisition_stringValue}, - {"intValue", _wrap_rlDataAcquisition_intValue}, - {"floatValue", _wrap_rlDataAcquisition_floatValue}, - {"writeStringValue", _wrap_rlDataAcquisition_writeStringValue}, - {"writeIntValue", _wrap_rlDataAcquisition_writeIntValue}, - {"writeFloatValue", _wrap_rlDataAcquisition_writeFloatValue}, - {"readErrorCount", _wrap_rlDataAcquisition_readErrorCount}, - {"writeErrorCount", _wrap_rlDataAcquisition_writeErrorCount}, - {"lifeCounter", _wrap_rlDataAcquisition_lifeCounter}, - {"firstVariable", _wrap_rlDataAcquisition_firstVariable}, - {"nextVariable", _wrap_rlDataAcquisition_nextVariable}, - {"shmStatus", _wrap_rlDataAcquisition_shmStatus}, - {"shmKey", _wrap_rlDataAcquisition_shmKey}, - {"shmId", _wrap_rlDataAcquisition_shmId}, - {0,0} -}; +static int _proxy__wrap_new_rlDataAcquisition(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlDataAcquisition); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlDataAcquisition_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlDataAcquisition_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlDataAcquisition_methods[]= { + { "stringValue", _wrap_rlDataAcquisition_stringValue}, + { "intValue", _wrap_rlDataAcquisition_intValue}, + { "floatValue", _wrap_rlDataAcquisition_floatValue}, + { "writeStringValue", _wrap_rlDataAcquisition_writeStringValue}, + { "writeIntValue", _wrap_rlDataAcquisition_writeIntValue}, + { "writeFloatValue", _wrap_rlDataAcquisition_writeFloatValue}, + { "readErrorCount", _wrap_rlDataAcquisition_readErrorCount}, + { "writeErrorCount", _wrap_rlDataAcquisition_writeErrorCount}, + { "lifeCounter", _wrap_rlDataAcquisition_lifeCounter}, + { "firstVariable", _wrap_rlDataAcquisition_firstVariable}, + { "nextVariable", _wrap_rlDataAcquisition_nextVariable}, + { "shmStatus", _wrap_rlDataAcquisition_shmStatus}, + { "shmKey", _wrap_rlDataAcquisition_shmKey}, + { "shmId", _wrap_rlDataAcquisition_shmId}, + {0,0} }; -static swig_lua_method swig_rlDataAcquisition_cls_methods[] = { +static swig_lua_method swig_rlDataAcquisition_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlDataAcquisition_cls_constants[] = { + +static swig_lua_attribute swig_rlDataAcquisition_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlDataAcquisition_Sf_SwigStatic_constants[]= { {SWIG_LUA_CONSTTAB_INT("DAQ_ERROR", rlDataAcquisition::DAQ_ERROR)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_rlDataAcquisition_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlDataAcquisition_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlDataAcquisition_Sf_SwigStatic = { + "rlDataAcquisition", + swig_rlDataAcquisition_Sf_SwigStatic_methods, + swig_rlDataAcquisition_Sf_SwigStatic_attributes, + swig_rlDataAcquisition_Sf_SwigStatic_constants, + swig_rlDataAcquisition_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlDataAcquisition_bases[] = {0}; static const char *swig_rlDataAcquisition_base_names[] = {0}; -static swig_lua_class _wrap_class_rlDataAcquisition = { "rlDataAcquisition", &SWIGTYPE_p_rlDataAcquisition,_wrap_new_rlDataAcquisition, swig_delete_rlDataAcquisition, swig_rlDataAcquisition_methods, swig_rlDataAcquisition_attributes, { "rlDataAcquisition", swig_rlDataAcquisition_cls_methods, swig_rlDataAcquisition_cls_attributes, swig_rlDataAcquisition_cls_constants }, swig_rlDataAcquisition_bases, swig_rlDataAcquisition_base_names }; +static swig_lua_class _wrap_class_rlDataAcquisition = { "rlDataAcquisition", "rlDataAcquisition", &SWIGTYPE_p_rlDataAcquisition,_proxy__wrap_new_rlDataAcquisition, swig_delete_rlDataAcquisition, swig_rlDataAcquisition_methods, swig_rlDataAcquisition_attributes, &swig_rlDataAcquisition_Sf_SwigStatic, swig_rlDataAcquisition_meta, swig_rlDataAcquisition_bases, swig_rlDataAcquisition_base_names }; static int _wrap_new_rlDataAcquisitionProvider__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -9689,42 +10795,66 @@ static void swig_delete_rlDataAcquisitionProvider(void *obj) { rlDataAcquisitionProvider *arg1 = (rlDataAcquisitionProvider *) obj; delete arg1; } -static swig_lua_method swig_rlDataAcquisitionProvider_methods[] = { - {"readItemList", _wrap_rlDataAcquisitionProvider_readItemList}, - {"firstItem", _wrap_rlDataAcquisitionProvider_firstItem}, - {"nextItem", _wrap_rlDataAcquisitionProvider_nextItem}, - {"stringValue", _wrap_rlDataAcquisitionProvider_stringValue}, - {"intValue", _wrap_rlDataAcquisitionProvider_intValue}, - {"floatValue", _wrap_rlDataAcquisitionProvider_floatValue}, - {"setStringValue", _wrap_rlDataAcquisitionProvider_setStringValue}, - {"setIntValue", _wrap_rlDataAcquisitionProvider_setIntValue}, - {"setFloatValue", _wrap_rlDataAcquisitionProvider_setFloatValue}, - {"readErrorCount", _wrap_rlDataAcquisitionProvider_readErrorCount}, - {"writeErrorCount", _wrap_rlDataAcquisitionProvider_writeErrorCount}, - {"lifeCounter", _wrap_rlDataAcquisitionProvider_lifeCounter}, - {"setReadErrorCount", _wrap_rlDataAcquisitionProvider_setReadErrorCount}, - {"setWriteErrorCount", _wrap_rlDataAcquisitionProvider_setWriteErrorCount}, - {"setLifeCounter", _wrap_rlDataAcquisitionProvider_setLifeCounter}, - {"shmStatus", _wrap_rlDataAcquisitionProvider_shmStatus}, - {"setAllowAddValues", _wrap_rlDataAcquisitionProvider_setAllowAddValues}, - {0,0} -}; +static int _proxy__wrap_new_rlDataAcquisitionProvider(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlDataAcquisitionProvider); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlDataAcquisitionProvider_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlDataAcquisitionProvider_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlDataAcquisitionProvider_methods[]= { + { "readItemList", _wrap_rlDataAcquisitionProvider_readItemList}, + { "firstItem", _wrap_rlDataAcquisitionProvider_firstItem}, + { "nextItem", _wrap_rlDataAcquisitionProvider_nextItem}, + { "stringValue", _wrap_rlDataAcquisitionProvider_stringValue}, + { "intValue", _wrap_rlDataAcquisitionProvider_intValue}, + { "floatValue", _wrap_rlDataAcquisitionProvider_floatValue}, + { "setStringValue", _wrap_rlDataAcquisitionProvider_setStringValue}, + { "setIntValue", _wrap_rlDataAcquisitionProvider_setIntValue}, + { "setFloatValue", _wrap_rlDataAcquisitionProvider_setFloatValue}, + { "readErrorCount", _wrap_rlDataAcquisitionProvider_readErrorCount}, + { "writeErrorCount", _wrap_rlDataAcquisitionProvider_writeErrorCount}, + { "lifeCounter", _wrap_rlDataAcquisitionProvider_lifeCounter}, + { "setReadErrorCount", _wrap_rlDataAcquisitionProvider_setReadErrorCount}, + { "setWriteErrorCount", _wrap_rlDataAcquisitionProvider_setWriteErrorCount}, + { "setLifeCounter", _wrap_rlDataAcquisitionProvider_setLifeCounter}, + { "shmStatus", _wrap_rlDataAcquisitionProvider_shmStatus}, + { "setAllowAddValues", _wrap_rlDataAcquisitionProvider_setAllowAddValues}, + {0,0} }; -static swig_lua_method swig_rlDataAcquisitionProvider_cls_methods[] = { +static swig_lua_method swig_rlDataAcquisitionProvider_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlDataAcquisitionProvider_cls_constants[] = { + +static swig_lua_attribute swig_rlDataAcquisitionProvider_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlDataAcquisitionProvider_Sf_SwigStatic_constants[]= { {SWIG_LUA_CONSTTAB_INT("DAQ_PROVIDER_ERROR", rlDataAcquisitionProvider::DAQ_PROVIDER_ERROR)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_rlDataAcquisitionProvider_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlDataAcquisitionProvider_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlDataAcquisitionProvider_Sf_SwigStatic = { + "rlDataAcquisitionProvider", + swig_rlDataAcquisitionProvider_Sf_SwigStatic_methods, + swig_rlDataAcquisitionProvider_Sf_SwigStatic_attributes, + swig_rlDataAcquisitionProvider_Sf_SwigStatic_constants, + swig_rlDataAcquisitionProvider_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlDataAcquisitionProvider_bases[] = {0}; static const char *swig_rlDataAcquisitionProvider_base_names[] = {0}; -static swig_lua_class _wrap_class_rlDataAcquisitionProvider = { "rlDataAcquisitionProvider", &SWIGTYPE_p_rlDataAcquisitionProvider,_wrap_new_rlDataAcquisitionProvider, swig_delete_rlDataAcquisitionProvider, swig_rlDataAcquisitionProvider_methods, swig_rlDataAcquisitionProvider_attributes, { "rlDataAcquisitionProvider", swig_rlDataAcquisitionProvider_cls_methods, swig_rlDataAcquisitionProvider_cls_attributes, swig_rlDataAcquisitionProvider_cls_constants }, swig_rlDataAcquisitionProvider_bases, swig_rlDataAcquisitionProvider_base_names }; +static swig_lua_class _wrap_class_rlDataAcquisitionProvider = { "rlDataAcquisitionProvider", "rlDataAcquisitionProvider", &SWIGTYPE_p_rlDataAcquisitionProvider,_proxy__wrap_new_rlDataAcquisitionProvider, swig_delete_rlDataAcquisitionProvider, swig_rlDataAcquisitionProvider_methods, swig_rlDataAcquisitionProvider_attributes, &swig_rlDataAcquisitionProvider_Sf_SwigStatic, swig_rlDataAcquisitionProvider_meta, swig_rlDataAcquisitionProvider_bases, swig_rlDataAcquisitionProvider_base_names }; static int _wrap_new_rlDataProvider__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -10316,39 +11446,63 @@ static void swig_delete_rlDataProvider(void *obj) { rlDataProvider *arg1 = (rlDataProvider *) obj; delete arg1; } -static swig_lua_method swig_rlDataProvider_methods[] = { - {"getInt", _wrap_rlDataProvider_getInt}, - {"getFloat", _wrap_rlDataProvider_getFloat}, - {"getIntArray", _wrap_rlDataProvider_getIntArray}, - {"getFloatArray", _wrap_rlDataProvider_getFloatArray}, - {"getString", _wrap_rlDataProvider_getString}, - {"setInt", _wrap_rlDataProvider_setInt}, - {"setFloat", _wrap_rlDataProvider_setFloat}, - {"setIntArray", _wrap_rlDataProvider_setIntArray}, - {"setFloatArray", _wrap_rlDataProvider_setFloatArray}, - {"setString", _wrap_rlDataProvider_setString}, - {"getIntAndReset", _wrap_rlDataProvider_getIntAndReset}, - {"setIntAndWaitForReset", _wrap_rlDataProvider_setIntAndWaitForReset}, - {"setInt0Semaphore", _wrap_rlDataProvider_setInt0Semaphore}, - {"getInt0Semaphore", _wrap_rlDataProvider_getInt0Semaphore}, - {"run", _wrap_rlDataProvider_run}, - {0,0} -}; +static int _proxy__wrap_new_rlDataProvider(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlDataProvider); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlDataProvider_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlDataProvider_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlDataProvider_methods[]= { + { "getInt", _wrap_rlDataProvider_getInt}, + { "getFloat", _wrap_rlDataProvider_getFloat}, + { "getIntArray", _wrap_rlDataProvider_getIntArray}, + { "getFloatArray", _wrap_rlDataProvider_getFloatArray}, + { "getString", _wrap_rlDataProvider_getString}, + { "setInt", _wrap_rlDataProvider_setInt}, + { "setFloat", _wrap_rlDataProvider_setFloat}, + { "setIntArray", _wrap_rlDataProvider_setIntArray}, + { "setFloatArray", _wrap_rlDataProvider_setFloatArray}, + { "setString", _wrap_rlDataProvider_setString}, + { "getIntAndReset", _wrap_rlDataProvider_getIntAndReset}, + { "setIntAndWaitForReset", _wrap_rlDataProvider_setIntAndWaitForReset}, + { "setInt0Semaphore", _wrap_rlDataProvider_setInt0Semaphore}, + { "getInt0Semaphore", _wrap_rlDataProvider_getInt0Semaphore}, + { "run", _wrap_rlDataProvider_run}, + {0,0} }; -static swig_lua_method swig_rlDataProvider_cls_methods[] = { +static swig_lua_method swig_rlDataProvider_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlDataProvider_cls_constants[] = { + +static swig_lua_attribute swig_rlDataProvider_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlDataProvider_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlDataProvider_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlDataProvider_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlDataProvider_Sf_SwigStatic = { + "rlDataProvider", + swig_rlDataProvider_Sf_SwigStatic_methods, + swig_rlDataProvider_Sf_SwigStatic_attributes, + swig_rlDataProvider_Sf_SwigStatic_constants, + swig_rlDataProvider_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlDataProvider_bases[] = {0}; static const char *swig_rlDataProvider_base_names[] = {0}; -static swig_lua_class _wrap_class_rlDataProvider = { "rlDataProvider", &SWIGTYPE_p_rlDataProvider,_wrap_new_rlDataProvider, swig_delete_rlDataProvider, swig_rlDataProvider_methods, swig_rlDataProvider_attributes, { "rlDataProvider", swig_rlDataProvider_cls_methods, swig_rlDataProvider_cls_attributes, swig_rlDataProvider_cls_constants }, swig_rlDataProvider_bases, swig_rlDataProvider_base_names }; +static swig_lua_class _wrap_class_rlDataProvider = { "rlDataProvider", "rlDataProvider", &SWIGTYPE_p_rlDataProvider,_proxy__wrap_new_rlDataProvider, swig_delete_rlDataProvider, swig_rlDataProvider_methods, swig_rlDataProvider_attributes, &swig_rlDataProvider_Sf_SwigStatic, swig_rlDataProvider_meta, swig_rlDataProvider_bases, swig_rlDataProvider_base_names }; static int _wrap_new_rlDataProviderClient(lua_State* L) { int SWIG_arg = 0; @@ -10897,37 +12051,61 @@ static void swig_delete_rlDataProviderClient(void *obj) { rlDataProviderClient *arg1 = (rlDataProviderClient *) obj; delete arg1; } -static swig_lua_method swig_rlDataProviderClient_methods[] = { - {"getInt", _wrap_rlDataProviderClient_getInt}, - {"getFloat", _wrap_rlDataProviderClient_getFloat}, - {"getIntArray", _wrap_rlDataProviderClient_getIntArray}, - {"getFloatArray", _wrap_rlDataProviderClient_getFloatArray}, - {"getString", _wrap_rlDataProviderClient_getString}, - {"setInt", _wrap_rlDataProviderClient_setInt}, - {"setFloat", _wrap_rlDataProviderClient_setFloat}, - {"setIntArray", _wrap_rlDataProviderClient_setIntArray}, - {"setFloatArray", _wrap_rlDataProviderClient_setFloatArray}, - {"setString", _wrap_rlDataProviderClient_setString}, - {"getIntAndReset", _wrap_rlDataProviderClient_getIntAndReset}, - {"setIntAndWaitForReset", _wrap_rlDataProviderClient_setIntAndWaitForReset}, - {"getInt0Semaphore", _wrap_rlDataProviderClient_getInt0Semaphore}, - {0,0} -}; +static int _proxy__wrap_new_rlDataProviderClient(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlDataProviderClient); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlDataProviderClient_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlDataProviderClient_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlDataProviderClient_methods[]= { + { "getInt", _wrap_rlDataProviderClient_getInt}, + { "getFloat", _wrap_rlDataProviderClient_getFloat}, + { "getIntArray", _wrap_rlDataProviderClient_getIntArray}, + { "getFloatArray", _wrap_rlDataProviderClient_getFloatArray}, + { "getString", _wrap_rlDataProviderClient_getString}, + { "setInt", _wrap_rlDataProviderClient_setInt}, + { "setFloat", _wrap_rlDataProviderClient_setFloat}, + { "setIntArray", _wrap_rlDataProviderClient_setIntArray}, + { "setFloatArray", _wrap_rlDataProviderClient_setFloatArray}, + { "setString", _wrap_rlDataProviderClient_setString}, + { "getIntAndReset", _wrap_rlDataProviderClient_getIntAndReset}, + { "setIntAndWaitForReset", _wrap_rlDataProviderClient_setIntAndWaitForReset}, + { "getInt0Semaphore", _wrap_rlDataProviderClient_getInt0Semaphore}, + {0,0} }; -static swig_lua_method swig_rlDataProviderClient_cls_methods[] = { +static swig_lua_method swig_rlDataProviderClient_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlDataProviderClient_cls_constants[] = { + +static swig_lua_attribute swig_rlDataProviderClient_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlDataProviderClient_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlDataProviderClient_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlDataProviderClient_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlDataProviderClient_Sf_SwigStatic = { + "rlDataProviderClient", + swig_rlDataProviderClient_Sf_SwigStatic_methods, + swig_rlDataProviderClient_Sf_SwigStatic_attributes, + swig_rlDataProviderClient_Sf_SwigStatic_constants, + swig_rlDataProviderClient_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlDataProviderClient_bases[] = {0}; static const char *swig_rlDataProviderClient_base_names[] = {0}; -static swig_lua_class _wrap_class_rlDataProviderClient = { "rlDataProviderClient", &SWIGTYPE_p_rlDataProviderClient,_wrap_new_rlDataProviderClient, swig_delete_rlDataProviderClient, swig_rlDataProviderClient_methods, swig_rlDataProviderClient_attributes, { "rlDataProviderClient", swig_rlDataProviderClient_cls_methods, swig_rlDataProviderClient_cls_attributes, swig_rlDataProviderClient_cls_constants }, swig_rlDataProviderClient_bases, swig_rlDataProviderClient_base_names }; +static swig_lua_class _wrap_class_rlDataProviderClient = { "rlDataProviderClient", "rlDataProviderClient", &SWIGTYPE_p_rlDataProviderClient,_proxy__wrap_new_rlDataProviderClient, swig_delete_rlDataProviderClient, swig_rlDataProviderClient_methods, swig_rlDataProviderClient_attributes, &swig_rlDataProviderClient_Sf_SwigStatic, swig_rlDataProviderClient_meta, swig_rlDataProviderClient_bases, swig_rlDataProviderClient_base_names }; static int _wrap_new_rlDataProviderThreads(lua_State* L) { int SWIG_arg = 0; @@ -11141,28 +12319,52 @@ static void swig_delete_rlDataProviderThreads(void *obj) { rlDataProviderThreads *arg1 = (rlDataProviderThreads *) obj; delete arg1; } -static swig_lua_method swig_rlDataProviderThreads_methods[] = { - {"start", _wrap_rlDataProviderThreads_start}, - {0,0} -}; +static int _proxy__wrap_new_rlDataProviderThreads(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlDataProviderThreads); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlDataProviderThreads_attributes[] = { - { "provider", _wrap_rlDataProviderThreads_provider_get, _wrap_rlDataProviderThreads_provider_set}, - { "thread", _wrap_rlDataProviderThreads_thread_get, _wrap_rlDataProviderThreads_thread_set}, - { "port", _wrap_rlDataProviderThreads_port_get, _wrap_rlDataProviderThreads_port_set}, + { "provider", _wrap_rlDataProviderThreads_provider_get, _wrap_rlDataProviderThreads_provider_set }, + { "thread", _wrap_rlDataProviderThreads_thread_get, _wrap_rlDataProviderThreads_thread_set }, + { "port", _wrap_rlDataProviderThreads_port_get, _wrap_rlDataProviderThreads_port_set }, {0,0,0} }; -static swig_lua_attribute swig_rlDataProviderThreads_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlDataProviderThreads_methods[]= { + { "start", _wrap_rlDataProviderThreads_start}, + {0,0} }; -static swig_lua_method swig_rlDataProviderThreads_cls_methods[] = { +static swig_lua_method swig_rlDataProviderThreads_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlDataProviderThreads_cls_constants[] = { + +static swig_lua_attribute swig_rlDataProviderThreads_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlDataProviderThreads_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlDataProviderThreads_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlDataProviderThreads_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlDataProviderThreads_Sf_SwigStatic = { + "rlDataProviderThreads", + swig_rlDataProviderThreads_Sf_SwigStatic_methods, + swig_rlDataProviderThreads_Sf_SwigStatic_attributes, + swig_rlDataProviderThreads_Sf_SwigStatic_constants, + swig_rlDataProviderThreads_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlDataProviderThreads_bases[] = {0}; static const char *swig_rlDataProviderThreads_base_names[] = {0}; -static swig_lua_class _wrap_class_rlDataProviderThreads = { "rlDataProviderThreads", &SWIGTYPE_p_rlDataProviderThreads,_wrap_new_rlDataProviderThreads, swig_delete_rlDataProviderThreads, swig_rlDataProviderThreads_methods, swig_rlDataProviderThreads_attributes, { "rlDataProviderThreads", swig_rlDataProviderThreads_cls_methods, swig_rlDataProviderThreads_cls_attributes, swig_rlDataProviderThreads_cls_constants }, swig_rlDataProviderThreads_bases, swig_rlDataProviderThreads_base_names }; +static swig_lua_class _wrap_class_rlDataProviderThreads = { "rlDataProviderThreads", "rlDataProviderThreads", &SWIGTYPE_p_rlDataProviderThreads,_proxy__wrap_new_rlDataProviderThreads, swig_delete_rlDataProviderThreads, swig_rlDataProviderThreads_methods, swig_rlDataProviderThreads_attributes, &swig_rlDataProviderThreads_Sf_SwigStatic, swig_rlDataProviderThreads_meta, swig_rlDataProviderThreads_bases, swig_rlDataProviderThreads_base_names }; static int _wrap_rlevent_name_get(lua_State* L) { int SWIG_arg = 0; @@ -11422,26 +12624,50 @@ static void swig_delete_rlEventLogServer(void *obj) { rlEventLogServer *arg1 = (rlEventLogServer *) obj; delete arg1; } -static swig_lua_method swig_rlEventLogServer_methods[] = { - {"getEvent", _wrap_rlEventLogServer_getEvent}, - {"putEvent", _wrap_rlEventLogServer_putEvent}, - {0,0} -}; +static int _proxy__wrap_new_rlEventLogServer(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlEventLogServer); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlEventLogServer_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlEventLogServer_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlEventLogServer_methods[]= { + { "getEvent", _wrap_rlEventLogServer_getEvent}, + { "putEvent", _wrap_rlEventLogServer_putEvent}, + {0,0} }; -static swig_lua_method swig_rlEventLogServer_cls_methods[] = { +static swig_lua_method swig_rlEventLogServer_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlEventLogServer_cls_constants[] = { + +static swig_lua_attribute swig_rlEventLogServer_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlEventLogServer_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlEventLogServer_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlEventLogServer_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlEventLogServer_Sf_SwigStatic = { + "rlEventLogServer", + swig_rlEventLogServer_Sf_SwigStatic_methods, + swig_rlEventLogServer_Sf_SwigStatic_attributes, + swig_rlEventLogServer_Sf_SwigStatic_constants, + swig_rlEventLogServer_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlEventLogServer_bases[] = {0}; static const char *swig_rlEventLogServer_base_names[] = {0}; -static swig_lua_class _wrap_class_rlEventLogServer = { "rlEventLogServer", &SWIGTYPE_p_rlEventLogServer,_wrap_new_rlEventLogServer, swig_delete_rlEventLogServer, swig_rlEventLogServer_methods, swig_rlEventLogServer_attributes, { "rlEventLogServer", swig_rlEventLogServer_cls_methods, swig_rlEventLogServer_cls_attributes, swig_rlEventLogServer_cls_constants }, swig_rlEventLogServer_bases, swig_rlEventLogServer_base_names }; +static swig_lua_class _wrap_class_rlEventLogServer = { "rlEventLogServer", "rlEventLogServer", &SWIGTYPE_p_rlEventLogServer,_proxy__wrap_new_rlEventLogServer, swig_delete_rlEventLogServer, swig_rlEventLogServer_methods, swig_rlEventLogServer_attributes, &swig_rlEventLogServer_Sf_SwigStatic, swig_rlEventLogServer_meta, swig_rlEventLogServer_bases, swig_rlEventLogServer_base_names }; static int _wrap_new_rlEventLogServerThreads(lua_State* L) { int SWIG_arg = 0; @@ -11575,27 +12801,51 @@ static void swig_delete_rlEventLogServerThreads(void *obj) { rlEventLogServerThreads *arg1 = (rlEventLogServerThreads *) obj; delete arg1; } -static swig_lua_method swig_rlEventLogServerThreads_methods[] = { - {"start", _wrap_rlEventLogServerThreads_start}, - {"getPort", _wrap_rlEventLogServerThreads_getPort}, - {0,0} -}; +static int _proxy__wrap_new_rlEventLogServerThreads(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlEventLogServerThreads); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlEventLogServerThreads_attributes[] = { - { "event_log_server", _wrap_rlEventLogServerThreads_event_log_server_get, _wrap_rlEventLogServerThreads_event_log_server_set}, + { "event_log_server", _wrap_rlEventLogServerThreads_event_log_server_get, _wrap_rlEventLogServerThreads_event_log_server_set }, {0,0,0} }; -static swig_lua_attribute swig_rlEventLogServerThreads_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlEventLogServerThreads_methods[]= { + { "start", _wrap_rlEventLogServerThreads_start}, + { "getPort", _wrap_rlEventLogServerThreads_getPort}, + {0,0} }; -static swig_lua_method swig_rlEventLogServerThreads_cls_methods[] = { +static swig_lua_method swig_rlEventLogServerThreads_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlEventLogServerThreads_cls_constants[] = { + +static swig_lua_attribute swig_rlEventLogServerThreads_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlEventLogServerThreads_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlEventLogServerThreads_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlEventLogServerThreads_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlEventLogServerThreads_Sf_SwigStatic = { + "rlEventLogServerThreads", + swig_rlEventLogServerThreads_Sf_SwigStatic_methods, + swig_rlEventLogServerThreads_Sf_SwigStatic_attributes, + swig_rlEventLogServerThreads_Sf_SwigStatic_constants, + swig_rlEventLogServerThreads_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlEventLogServerThreads_bases[] = {0}; static const char *swig_rlEventLogServerThreads_base_names[] = {0}; -static swig_lua_class _wrap_class_rlEventLogServerThreads = { "rlEventLogServerThreads", &SWIGTYPE_p_rlEventLogServerThreads,_wrap_new_rlEventLogServerThreads, swig_delete_rlEventLogServerThreads, swig_rlEventLogServerThreads_methods, swig_rlEventLogServerThreads_attributes, { "rlEventLogServerThreads", swig_rlEventLogServerThreads_cls_methods, swig_rlEventLogServerThreads_cls_attributes, swig_rlEventLogServerThreads_cls_constants }, swig_rlEventLogServerThreads_bases, swig_rlEventLogServerThreads_base_names }; +static swig_lua_class _wrap_class_rlEventLogServerThreads = { "rlEventLogServerThreads", "rlEventLogServerThreads", &SWIGTYPE_p_rlEventLogServerThreads,_proxy__wrap_new_rlEventLogServerThreads, swig_delete_rlEventLogServerThreads, swig_rlEventLogServerThreads_methods, swig_rlEventLogServerThreads_attributes, &swig_rlEventLogServerThreads_Sf_SwigStatic, swig_rlEventLogServerThreads_meta, swig_rlEventLogServerThreads_bases, swig_rlEventLogServerThreads_base_names }; static int _wrap_new_rlFifo__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -11802,33 +13052,57 @@ static void swig_delete_rlFifo(void *obj) { rlFifo *arg1 = (rlFifo *) obj; delete arg1; } -static swig_lua_method swig_rlFifo_methods[] = { - {"read", _wrap_rlFifo_read}, - {"poll", _wrap_rlFifo_poll}, - {"nmesAvailable", _wrap_rlFifo_nmesAvailable}, - {"write", _wrap_rlFifo_write}, - {"printf", _wrap_rlFifo_printf}, - {0,0} -}; +static int _proxy__wrap_new_rlFifo(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlFifo); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlFifo_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlFifo_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlFifo_methods[]= { + { "read", _wrap_rlFifo_read}, + { "poll", _wrap_rlFifo_poll}, + { "nmesAvailable", _wrap_rlFifo_nmesAvailable}, + { "write", _wrap_rlFifo_write}, + { "printf", _wrap_rlFifo_printf}, + {0,0} }; -static swig_lua_method swig_rlFifo_cls_methods[] = { +static swig_lua_method swig_rlFifo_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlFifo_cls_constants[] = { + +static swig_lua_attribute swig_rlFifo_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlFifo_Sf_SwigStatic_constants[]= { {SWIG_LUA_CONSTTAB_INT("DATA_AVAILABLE", rlFifo::DATA_AVAILABLE)}, {SWIG_LUA_CONSTTAB_INT("NO_DATA_AVAILABLE", rlFifo::NO_DATA_AVAILABLE)}, {SWIG_LUA_CONSTTAB_INT("MESSAGE_TO_BIG", rlFifo::MESSAGE_TO_BIG)}, {SWIG_LUA_CONSTTAB_INT("FIFO_FULL", rlFifo::FIFO_FULL)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_rlFifo_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlFifo_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlFifo_Sf_SwigStatic = { + "rlFifo", + swig_rlFifo_Sf_SwigStatic_methods, + swig_rlFifo_Sf_SwigStatic_attributes, + swig_rlFifo_Sf_SwigStatic_constants, + swig_rlFifo_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlFifo_bases[] = {0}; static const char *swig_rlFifo_base_names[] = {0}; -static swig_lua_class _wrap_class_rlFifo = { "rlFifo", &SWIGTYPE_p_rlFifo,_wrap_new_rlFifo, swig_delete_rlFifo, swig_rlFifo_methods, swig_rlFifo_attributes, { "rlFifo", swig_rlFifo_cls_methods, swig_rlFifo_cls_attributes, swig_rlFifo_cls_constants }, swig_rlFifo_bases, swig_rlFifo_base_names }; +static swig_lua_class _wrap_class_rlFifo = { "rlFifo", "rlFifo", &SWIGTYPE_p_rlFifo,_proxy__wrap_new_rlFifo, swig_delete_rlFifo, swig_rlFifo_methods, swig_rlFifo_attributes, &swig_rlFifo_Sf_SwigStatic, swig_rlFifo_meta, swig_rlFifo_bases, swig_rlFifo_base_names }; static int _wrap_rlFileLines_line_set(lua_State* L) { int SWIG_arg = 0; @@ -11963,26 +13237,50 @@ static void swig_delete_rlFileLines(void *obj) { _rlFileLines_ *arg1 = (_rlFileLines_ *) obj; delete arg1; } -static swig_lua_method swig__rlFileLines__methods[] = { +static int _proxy__wrap_new_rlFileLines(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlFileLines); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} +static swig_lua_attribute swig_rlFileLines_attributes[] = { + { "line", _wrap_rlFileLines_line_get, _wrap_rlFileLines_line_set }, + { "next", _wrap_rlFileLines_next_get, _wrap_rlFileLines_next_set }, + {0,0,0} +}; +static swig_lua_method swig_rlFileLines_methods[]= { {0,0} }; -static swig_lua_attribute swig__rlFileLines__attributes[] = { - { "line", _wrap_rlFileLines_line_get, _wrap_rlFileLines_line_set}, - { "next", _wrap_rlFileLines_next_get, _wrap_rlFileLines_next_set}, - {0,0,0} +static swig_lua_method swig_rlFileLines_meta[] = { + {0,0} }; -static swig_lua_attribute swig__rlFileLines__cls_attributes[] = { + +static swig_lua_attribute swig_rlFileLines_Sf_SwigStatic_attributes[] = { {0,0,0} }; -static swig_lua_method swig__rlFileLines__cls_methods[] = { +static swig_lua_const_info swig_rlFileLines_Sf_SwigStatic_constants[]= { + {0,0,0,0,0,0} +}; +static swig_lua_method swig_rlFileLines_Sf_SwigStatic_methods[]= { {0,0} }; -static swig_lua_const_info swig__rlFileLines__cls_constants[] = { - {0,0,0,0,0,0} +static swig_lua_class* swig_rlFileLines_Sf_SwigStatic_classes[]= { + 0 }; -static swig_lua_class *swig__rlFileLines__bases[] = {0}; -static const char *swig__rlFileLines__base_names[] = {0}; -static swig_lua_class _wrap_class__rlFileLines_ = { "rlFileLines", &SWIGTYPE_p__rlFileLines_,_wrap_new_rlFileLines, swig_delete_rlFileLines, swig__rlFileLines__methods, swig__rlFileLines__attributes, { "rlFileLines", swig__rlFileLines__cls_methods, swig__rlFileLines__cls_attributes, swig__rlFileLines__cls_constants }, swig__rlFileLines__bases, swig__rlFileLines__base_names }; + +static swig_lua_namespace swig_rlFileLines_Sf_SwigStatic = { + "rlFileLines", + swig_rlFileLines_Sf_SwigStatic_methods, + swig_rlFileLines_Sf_SwigStatic_attributes, + swig_rlFileLines_Sf_SwigStatic_constants, + swig_rlFileLines_Sf_SwigStatic_classes, + 0 +}; +static swig_lua_class *swig_rlFileLines_bases[] = {0}; +static const char *swig_rlFileLines_base_names[] = {0}; +static swig_lua_class _wrap_class_rlFileLines = { "rlFileLines", "rlFileLines", &SWIGTYPE_p__rlFileLines_,_proxy__wrap_new_rlFileLines, swig_delete_rlFileLines, swig_rlFileLines_methods, swig_rlFileLines_attributes, &swig_rlFileLines_Sf_SwigStatic, swig_rlFileLines_meta, swig_rlFileLines_bases, swig_rlFileLines_base_names }; static int _wrap_new_rlFileLoad(lua_State* L) { int SWIG_arg = 0; @@ -12160,30 +13458,54 @@ static void swig_delete_rlFileLoad(void *obj) { rlFileLoad *arg1 = (rlFileLoad *) obj; delete arg1; } -static swig_lua_method swig_rlFileLoad_methods[] = { - {"load", _wrap_rlFileLoad_load}, - {"unload", _wrap_rlFileLoad_unload}, - {"firstLine", _wrap_rlFileLoad_firstLine}, - {"nextLine", _wrap_rlFileLoad_nextLine}, - {"setDebug", _wrap_rlFileLoad_setDebug}, - {"text2rlstring", _wrap_rlFileLoad_text2rlstring}, - {0,0} -}; +static int _proxy__wrap_new_rlFileLoad(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlFileLoad); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlFileLoad_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlFileLoad_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlFileLoad_methods[]= { + { "load", _wrap_rlFileLoad_load}, + { "unload", _wrap_rlFileLoad_unload}, + { "firstLine", _wrap_rlFileLoad_firstLine}, + { "nextLine", _wrap_rlFileLoad_nextLine}, + { "setDebug", _wrap_rlFileLoad_setDebug}, + { "text2rlstring", _wrap_rlFileLoad_text2rlstring}, + {0,0} }; -static swig_lua_method swig_rlFileLoad_cls_methods[] = { +static swig_lua_method swig_rlFileLoad_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlFileLoad_cls_constants[] = { + +static swig_lua_attribute swig_rlFileLoad_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlFileLoad_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlFileLoad_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlFileLoad_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlFileLoad_Sf_SwigStatic = { + "rlFileLoad", + swig_rlFileLoad_Sf_SwigStatic_methods, + swig_rlFileLoad_Sf_SwigStatic_attributes, + swig_rlFileLoad_Sf_SwigStatic_constants, + swig_rlFileLoad_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlFileLoad_bases[] = {0}; static const char *swig_rlFileLoad_base_names[] = {0}; -static swig_lua_class _wrap_class_rlFileLoad = { "rlFileLoad", &SWIGTYPE_p_rlFileLoad,_wrap_new_rlFileLoad, swig_delete_rlFileLoad, swig_rlFileLoad_methods, swig_rlFileLoad_attributes, { "rlFileLoad", swig_rlFileLoad_cls_methods, swig_rlFileLoad_cls_attributes, swig_rlFileLoad_cls_constants }, swig_rlFileLoad_bases, swig_rlFileLoad_base_names }; +static swig_lua_class _wrap_class_rlFileLoad = { "rlFileLoad", "rlFileLoad", &SWIGTYPE_p_rlFileLoad,_proxy__wrap_new_rlFileLoad, swig_delete_rlFileLoad, swig_rlFileLoad_methods, swig_rlFileLoad_attributes, &swig_rlFileLoad_Sf_SwigStatic, swig_rlFileLoad_meta, swig_rlFileLoad_bases, swig_rlFileLoad_base_names }; static int _wrap_rlHistoryLogLine_next_set(lua_State* L) { int SWIG_arg = 0; @@ -12318,26 +13640,50 @@ static void swig_delete_rlHistoryLogLine(void *obj) { _rlHistoryLogLine_ *arg1 = (_rlHistoryLogLine_ *) obj; delete arg1; } -static swig_lua_method swig__rlHistoryLogLine__methods[] = { +static int _proxy__wrap_new_rlHistoryLogLine(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlHistoryLogLine); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} +static swig_lua_attribute swig_rlHistoryLogLine_attributes[] = { + { "next", _wrap_rlHistoryLogLine_next_get, _wrap_rlHistoryLogLine_next_set }, + { "line", _wrap_rlHistoryLogLine_line_get, _wrap_rlHistoryLogLine_line_set }, + {0,0,0} +}; +static swig_lua_method swig_rlHistoryLogLine_methods[]= { {0,0} }; -static swig_lua_attribute swig__rlHistoryLogLine__attributes[] = { - { "next", _wrap_rlHistoryLogLine_next_get, _wrap_rlHistoryLogLine_next_set}, - { "line", _wrap_rlHistoryLogLine_line_get, _wrap_rlHistoryLogLine_line_set}, - {0,0,0} +static swig_lua_method swig_rlHistoryLogLine_meta[] = { + {0,0} }; -static swig_lua_attribute swig__rlHistoryLogLine__cls_attributes[] = { + +static swig_lua_attribute swig_rlHistoryLogLine_Sf_SwigStatic_attributes[] = { {0,0,0} }; -static swig_lua_method swig__rlHistoryLogLine__cls_methods[] = { +static swig_lua_const_info swig_rlHistoryLogLine_Sf_SwigStatic_constants[]= { + {0,0,0,0,0,0} +}; +static swig_lua_method swig_rlHistoryLogLine_Sf_SwigStatic_methods[]= { {0,0} }; -static swig_lua_const_info swig__rlHistoryLogLine__cls_constants[] = { - {0,0,0,0,0,0} +static swig_lua_class* swig_rlHistoryLogLine_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlHistoryLogLine_Sf_SwigStatic = { + "rlHistoryLogLine", + swig_rlHistoryLogLine_Sf_SwigStatic_methods, + swig_rlHistoryLogLine_Sf_SwigStatic_attributes, + swig_rlHistoryLogLine_Sf_SwigStatic_constants, + swig_rlHistoryLogLine_Sf_SwigStatic_classes, + 0 }; -static swig_lua_class *swig__rlHistoryLogLine__bases[] = {0}; -static const char *swig__rlHistoryLogLine__base_names[] = {0}; -static swig_lua_class _wrap_class__rlHistoryLogLine_ = { "rlHistoryLogLine", &SWIGTYPE_p__rlHistoryLogLine_,_wrap_new_rlHistoryLogLine, swig_delete_rlHistoryLogLine, swig__rlHistoryLogLine__methods, swig__rlHistoryLogLine__attributes, { "rlHistoryLogLine", swig__rlHistoryLogLine__cls_methods, swig__rlHistoryLogLine__cls_attributes, swig__rlHistoryLogLine__cls_constants }, swig__rlHistoryLogLine__bases, swig__rlHistoryLogLine__base_names }; +static swig_lua_class *swig_rlHistoryLogLine_bases[] = {0}; +static const char *swig_rlHistoryLogLine_base_names[] = {0}; +static swig_lua_class _wrap_class_rlHistoryLogLine = { "rlHistoryLogLine", "rlHistoryLogLine", &SWIGTYPE_p__rlHistoryLogLine_,_proxy__wrap_new_rlHistoryLogLine, swig_delete_rlHistoryLogLine, swig_rlHistoryLogLine_methods, swig_rlHistoryLogLine_attributes, &swig_rlHistoryLogLine_Sf_SwigStatic, swig_rlHistoryLogLine_meta, swig_rlHistoryLogLine_bases, swig_rlHistoryLogLine_base_names }; static int _wrap_new_rlHistoryLogger__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -12620,29 +13966,53 @@ static void swig_delete_rlHistoryLogger(void *obj) { rlHistoryLogger *arg1 = (rlHistoryLogger *) obj; delete arg1; } -static swig_lua_method swig_rlHistoryLogger_methods[] = { - {"pushLine", _wrap_rlHistoryLogger_pushLine}, - {"firstLine", _wrap_rlHistoryLogger_firstLine}, - {"nextLine", _wrap_rlHistoryLogger_nextLine}, - {0,0} -}; +static int _proxy__wrap_new_rlHistoryLogger(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlHistoryLogger); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlHistoryLogger_attributes[] = { - { "mutex", _wrap_rlHistoryLogger_mutex_get, _wrap_rlHistoryLogger_mutex_set}, - { "debug", _wrap_rlHistoryLogger_debug_get, _wrap_rlHistoryLogger_debug_set}, + { "mutex", _wrap_rlHistoryLogger_mutex_get, _wrap_rlHistoryLogger_mutex_set }, + { "debug", _wrap_rlHistoryLogger_debug_get, _wrap_rlHistoryLogger_debug_set }, {0,0,0} }; -static swig_lua_attribute swig_rlHistoryLogger_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlHistoryLogger_methods[]= { + { "pushLine", _wrap_rlHistoryLogger_pushLine}, + { "firstLine", _wrap_rlHistoryLogger_firstLine}, + { "nextLine", _wrap_rlHistoryLogger_nextLine}, + {0,0} }; -static swig_lua_method swig_rlHistoryLogger_cls_methods[] = { +static swig_lua_method swig_rlHistoryLogger_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlHistoryLogger_cls_constants[] = { + +static swig_lua_attribute swig_rlHistoryLogger_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlHistoryLogger_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlHistoryLogger_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlHistoryLogger_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlHistoryLogger_Sf_SwigStatic = { + "rlHistoryLogger", + swig_rlHistoryLogger_Sf_SwigStatic_methods, + swig_rlHistoryLogger_Sf_SwigStatic_attributes, + swig_rlHistoryLogger_Sf_SwigStatic_constants, + swig_rlHistoryLogger_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlHistoryLogger_bases[] = {0}; static const char *swig_rlHistoryLogger_base_names[] = {0}; -static swig_lua_class _wrap_class_rlHistoryLogger = { "rlHistoryLogger", &SWIGTYPE_p_rlHistoryLogger,_wrap_new_rlHistoryLogger, swig_delete_rlHistoryLogger, swig_rlHistoryLogger_methods, swig_rlHistoryLogger_attributes, { "rlHistoryLogger", swig_rlHistoryLogger_cls_methods, swig_rlHistoryLogger_cls_attributes, swig_rlHistoryLogger_cls_constants }, swig_rlHistoryLogger_bases, swig_rlHistoryLogger_base_names }; +static swig_lua_class _wrap_class_rlHistoryLogger = { "rlHistoryLogger", "rlHistoryLogger", &SWIGTYPE_p_rlHistoryLogger,_proxy__wrap_new_rlHistoryLogger, swig_delete_rlHistoryLogger, swig_rlHistoryLogger_methods, swig_rlHistoryLogger_attributes, &swig_rlHistoryLogger_Sf_SwigStatic, swig_rlHistoryLogger_meta, swig_rlHistoryLogger_bases, swig_rlHistoryLogger_base_names }; static int _wrap_rlHistoryReaderLine_next_set(lua_State* L) { int SWIG_arg = 0; @@ -12777,26 +14147,50 @@ static void swig_delete_rlHistoryReaderLine(void *obj) { _rlHistoryReaderLine_ *arg1 = (_rlHistoryReaderLine_ *) obj; delete arg1; } -static swig_lua_method swig__rlHistoryReaderLine__methods[] = { +static int _proxy__wrap_new_rlHistoryReaderLine(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlHistoryReaderLine); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} +static swig_lua_attribute swig_rlHistoryReaderLine_attributes[] = { + { "next", _wrap_rlHistoryReaderLine_next_get, _wrap_rlHistoryReaderLine_next_set }, + { "line", _wrap_rlHistoryReaderLine_line_get, _wrap_rlHistoryReaderLine_line_set }, + {0,0,0} +}; +static swig_lua_method swig_rlHistoryReaderLine_methods[]= { {0,0} }; -static swig_lua_attribute swig__rlHistoryReaderLine__attributes[] = { - { "next", _wrap_rlHistoryReaderLine_next_get, _wrap_rlHistoryReaderLine_next_set}, - { "line", _wrap_rlHistoryReaderLine_line_get, _wrap_rlHistoryReaderLine_line_set}, - {0,0,0} +static swig_lua_method swig_rlHistoryReaderLine_meta[] = { + {0,0} }; -static swig_lua_attribute swig__rlHistoryReaderLine__cls_attributes[] = { + +static swig_lua_attribute swig_rlHistoryReaderLine_Sf_SwigStatic_attributes[] = { {0,0,0} }; -static swig_lua_method swig__rlHistoryReaderLine__cls_methods[] = { +static swig_lua_const_info swig_rlHistoryReaderLine_Sf_SwigStatic_constants[]= { + {0,0,0,0,0,0} +}; +static swig_lua_method swig_rlHistoryReaderLine_Sf_SwigStatic_methods[]= { {0,0} }; -static swig_lua_const_info swig__rlHistoryReaderLine__cls_constants[] = { - {0,0,0,0,0,0} +static swig_lua_class* swig_rlHistoryReaderLine_Sf_SwigStatic_classes[]= { + 0 }; -static swig_lua_class *swig__rlHistoryReaderLine__bases[] = {0}; -static const char *swig__rlHistoryReaderLine__base_names[] = {0}; -static swig_lua_class _wrap_class__rlHistoryReaderLine_ = { "rlHistoryReaderLine", &SWIGTYPE_p__rlHistoryReaderLine_,_wrap_new_rlHistoryReaderLine, swig_delete_rlHistoryReaderLine, swig__rlHistoryReaderLine__methods, swig__rlHistoryReaderLine__attributes, { "rlHistoryReaderLine", swig__rlHistoryReaderLine__cls_methods, swig__rlHistoryReaderLine__cls_attributes, swig__rlHistoryReaderLine__cls_constants }, swig__rlHistoryReaderLine__bases, swig__rlHistoryReaderLine__base_names }; + +static swig_lua_namespace swig_rlHistoryReaderLine_Sf_SwigStatic = { + "rlHistoryReaderLine", + swig_rlHistoryReaderLine_Sf_SwigStatic_methods, + swig_rlHistoryReaderLine_Sf_SwigStatic_attributes, + swig_rlHistoryReaderLine_Sf_SwigStatic_constants, + swig_rlHistoryReaderLine_Sf_SwigStatic_classes, + 0 +}; +static swig_lua_class *swig_rlHistoryReaderLine_bases[] = {0}; +static const char *swig_rlHistoryReaderLine_base_names[] = {0}; +static swig_lua_class _wrap_class_rlHistoryReaderLine = { "rlHistoryReaderLine", "rlHistoryReaderLine", &SWIGTYPE_p__rlHistoryReaderLine_,_proxy__wrap_new_rlHistoryReaderLine, swig_delete_rlHistoryReaderLine, swig_rlHistoryReaderLine_methods, swig_rlHistoryReaderLine_attributes, &swig_rlHistoryReaderLine_Sf_SwigStatic, swig_rlHistoryReaderLine_meta, swig_rlHistoryReaderLine_bases, swig_rlHistoryReaderLine_base_names }; static int _wrap_new_rlHistoryReader(lua_State* L) { int SWIG_arg = 0; @@ -13016,30 +14410,54 @@ static void swig_delete_rlHistoryReader(void *obj) { rlHistoryReader *arg1 = (rlHistoryReader *) obj; delete arg1; } -static swig_lua_method swig_rlHistoryReader_methods[] = { - {"read", _wrap_rlHistoryReader_read}, - {"firstLine", _wrap_rlHistoryReader_firstLine}, - {"nextLine", _wrap_rlHistoryReader_nextLine}, - {"clean", _wrap_rlHistoryReader_clean}, - {"cat", _wrap_rlHistoryReader_cat}, - {0,0} -}; +static int _proxy__wrap_new_rlHistoryReader(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlHistoryReader); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlHistoryReader_attributes[] = { - { "debug", _wrap_rlHistoryReader_debug_get, _wrap_rlHistoryReader_debug_set}, + { "debug", _wrap_rlHistoryReader_debug_get, _wrap_rlHistoryReader_debug_set }, {0,0,0} }; -static swig_lua_attribute swig_rlHistoryReader_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlHistoryReader_methods[]= { + { "read", _wrap_rlHistoryReader_read}, + { "firstLine", _wrap_rlHistoryReader_firstLine}, + { "nextLine", _wrap_rlHistoryReader_nextLine}, + { "clean", _wrap_rlHistoryReader_clean}, + { "cat", _wrap_rlHistoryReader_cat}, + {0,0} }; -static swig_lua_method swig_rlHistoryReader_cls_methods[] = { +static swig_lua_method swig_rlHistoryReader_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlHistoryReader_cls_constants[] = { + +static swig_lua_attribute swig_rlHistoryReader_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlHistoryReader_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlHistoryReader_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlHistoryReader_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlHistoryReader_Sf_SwigStatic = { + "rlHistoryReader", + swig_rlHistoryReader_Sf_SwigStatic_methods, + swig_rlHistoryReader_Sf_SwigStatic_attributes, + swig_rlHistoryReader_Sf_SwigStatic_constants, + swig_rlHistoryReader_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlHistoryReader_bases[] = {0}; static const char *swig_rlHistoryReader_base_names[] = {0}; -static swig_lua_class _wrap_class_rlHistoryReader = { "rlHistoryReader", &SWIGTYPE_p_rlHistoryReader,_wrap_new_rlHistoryReader, swig_delete_rlHistoryReader, swig_rlHistoryReader_methods, swig_rlHistoryReader_attributes, { "rlHistoryReader", swig_rlHistoryReader_cls_methods, swig_rlHistoryReader_cls_attributes, swig_rlHistoryReader_cls_constants }, swig_rlHistoryReader_bases, swig_rlHistoryReader_base_names }; +static swig_lua_class _wrap_class_rlHistoryReader = { "rlHistoryReader", "rlHistoryReader", &SWIGTYPE_p_rlHistoryReader,_proxy__wrap_new_rlHistoryReader, swig_delete_rlHistoryReader, swig_rlHistoryReader_methods, swig_rlHistoryReader_attributes, &swig_rlHistoryReader_Sf_SwigStatic, swig_rlHistoryReader_meta, swig_rlHistoryReader_bases, swig_rlHistoryReader_base_names }; static int _wrap_new_rlIniFile(lua_State* L) { int SWIG_arg = 0; @@ -13645,39 +15063,63 @@ static void swig_delete_rlIniFile(void *obj) { rlIniFile *arg1 = (rlIniFile *) obj; delete arg1; } -static swig_lua_method swig_rlIniFile_methods[] = { - {"read", _wrap_rlIniFile_read}, - {"write", _wrap_rlIniFile_write}, - {"filename", _wrap_rlIniFile_filename}, - {"text", _wrap_rlIniFile_text}, - {"setText", _wrap_rlIniFile_setText}, - {"printf", _wrap_rlIniFile_printf}, - {"remove", _wrap_rlIniFile_remove}, - {"firstSection", _wrap_rlIniFile_firstSection}, - {"nextSection", _wrap_rlIniFile_nextSection}, - {"firstName", _wrap_rlIniFile_firstName}, - {"nextName", _wrap_rlIniFile_nextName}, - {"setDefaultSection", _wrap_rlIniFile_setDefaultSection}, - {"defaultSection", _wrap_rlIniFile_defaultSection}, - {"i18n", _wrap_rlIniFile_i18n}, - {"tr", _wrap_rlIniFile_tr}, - {0,0} -}; +static int _proxy__wrap_new_rlIniFile(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlIniFile); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlIniFile_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlIniFile_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlIniFile_methods[]= { + { "read", _wrap_rlIniFile_read}, + { "write", _wrap_rlIniFile_write}, + { "filename", _wrap_rlIniFile_filename}, + { "text", _wrap_rlIniFile_text}, + { "setText", _wrap_rlIniFile_setText}, + { "printf", _wrap_rlIniFile_printf}, + { "remove", _wrap_rlIniFile_remove}, + { "firstSection", _wrap_rlIniFile_firstSection}, + { "nextSection", _wrap_rlIniFile_nextSection}, + { "firstName", _wrap_rlIniFile_firstName}, + { "nextName", _wrap_rlIniFile_nextName}, + { "setDefaultSection", _wrap_rlIniFile_setDefaultSection}, + { "defaultSection", _wrap_rlIniFile_defaultSection}, + { "i18n", _wrap_rlIniFile_i18n}, + { "tr", _wrap_rlIniFile_tr}, + {0,0} }; -static swig_lua_method swig_rlIniFile_cls_methods[] = { +static swig_lua_method swig_rlIniFile_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlIniFile_cls_constants[] = { + +static swig_lua_attribute swig_rlIniFile_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlIniFile_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlIniFile_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlIniFile_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlIniFile_Sf_SwigStatic = { + "rlIniFile", + swig_rlIniFile_Sf_SwigStatic_methods, + swig_rlIniFile_Sf_SwigStatic_attributes, + swig_rlIniFile_Sf_SwigStatic_constants, + swig_rlIniFile_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlIniFile_bases[] = {0}; static const char *swig_rlIniFile_base_names[] = {0}; -static swig_lua_class _wrap_class_rlIniFile = { "rlIniFile", &SWIGTYPE_p_rlIniFile,_wrap_new_rlIniFile, swig_delete_rlIniFile, swig_rlIniFile_methods, swig_rlIniFile_attributes, { "rlIniFile", swig_rlIniFile_cls_methods, swig_rlIniFile_cls_attributes, swig_rlIniFile_cls_constants }, swig_rlIniFile_bases, swig_rlIniFile_base_names }; +static swig_lua_class _wrap_class_rlIniFile = { "rlIniFile", "rlIniFile", &SWIGTYPE_p_rlIniFile,_proxy__wrap_new_rlIniFile, swig_delete_rlIniFile, swig_rlIniFile_methods, swig_rlIniFile_attributes, &swig_rlIniFile_Sf_SwigStatic, swig_rlIniFile_meta, swig_rlIniFile_bases, swig_rlIniFile_base_names }; static int _wrap_rlSetTranslator__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -13769,14 +15211,14 @@ static int _wrap_rltranslate__SWIG_0(lua_State* L) { SWIG_check_num_args("rltranslate",2,2) if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("rltranslate",1,"char const *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("rltranslate",2,"char const **"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("rltranslate",2,"char **"); arg1 = (char *)lua_tostring(L, 1); if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_p_char,0))){ SWIG_fail_ptr("rltranslate",2,SWIGTYPE_p_p_char); } - result = (char *)rltranslate((char const *)arg1,(char const **)arg2); + result = (char *)rltranslate((char const *)arg1,arg2); lua_pushstring(L,(const char *)result); SWIG_arg++; return SWIG_arg; @@ -13846,7 +15288,7 @@ static int _wrap_rltranslate(lua_State* L) { SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'rltranslate'\n" " Possible C/C++ prototypes are:\n" - " rltranslate(char const *,char const **)\n" + " rltranslate(char const *,char **)\n" " rltranslate(char const *)\n"); lua_error(L);return 0; } @@ -14166,28 +15608,52 @@ static void swig_delete_rlInterpreter(void *obj) { rlInterpreter *arg1 = (rlInterpreter *) obj; delete arg1; } -static swig_lua_method swig_rlInterpreter_methods[] = { - {"isCommand", _wrap_rlInterpreter_isCommand}, - {"copyStringParam", _wrap_rlInterpreter_copyStringParam}, - {"maxchar", _wrap_rlInterpreter_maxchar}, - {0,0} -}; +static int _proxy__wrap_new_rlInterpreter(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlInterpreter); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlInterpreter_attributes[] = { - { "line", _wrap_rlInterpreter_line_get, _wrap_rlInterpreter_line_set}, + { "line", _wrap_rlInterpreter_line_get, _wrap_rlInterpreter_line_set }, {0,0,0} }; -static swig_lua_attribute swig_rlInterpreter_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlInterpreter_methods[]= { + { "isCommand", _wrap_rlInterpreter_isCommand}, + { "copyStringParam", _wrap_rlInterpreter_copyStringParam}, + { "maxchar", _wrap_rlInterpreter_maxchar}, + {0,0} }; -static swig_lua_method swig_rlInterpreter_cls_methods[] = { +static swig_lua_method swig_rlInterpreter_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlInterpreter_cls_constants[] = { + +static swig_lua_attribute swig_rlInterpreter_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlInterpreter_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlInterpreter_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlInterpreter_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlInterpreter_Sf_SwigStatic = { + "rlInterpreter", + swig_rlInterpreter_Sf_SwigStatic_methods, + swig_rlInterpreter_Sf_SwigStatic_attributes, + swig_rlInterpreter_Sf_SwigStatic_constants, + swig_rlInterpreter_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlInterpreter_bases[] = {0}; static const char *swig_rlInterpreter_base_names[] = {0}; -static swig_lua_class _wrap_class_rlInterpreter = { "rlInterpreter", &SWIGTYPE_p_rlInterpreter,_wrap_new_rlInterpreter, swig_delete_rlInterpreter, swig_rlInterpreter_methods, swig_rlInterpreter_attributes, { "rlInterpreter", swig_rlInterpreter_cls_methods, swig_rlInterpreter_cls_attributes, swig_rlInterpreter_cls_constants }, swig_rlInterpreter_bases, swig_rlInterpreter_base_names }; +static swig_lua_class _wrap_class_rlInterpreter = { "rlInterpreter", "rlInterpreter", &SWIGTYPE_p_rlInterpreter,_proxy__wrap_new_rlInterpreter, swig_delete_rlInterpreter, swig_rlInterpreter_methods, swig_rlInterpreter_attributes, &swig_rlInterpreter_Sf_SwigStatic, swig_rlInterpreter_meta, swig_rlInterpreter_bases, swig_rlInterpreter_base_names }; static int _wrap_new_rlMailbox(lua_State* L) { int SWIG_arg = 0; @@ -14748,26 +16214,35 @@ static void swig_delete_rlMailbox(void *obj) { rlMailbox *arg1 = (rlMailbox *) obj; delete arg1; } -static swig_lua_method swig_rlMailbox_methods[] = { - {"printf", _wrap_rlMailbox_printf}, - {"setReadBufferSize", _wrap_rlMailbox_setReadBufferSize}, - {"read", _wrap_rlMailbox_read}, - {"write", _wrap_rlMailbox_write}, - {"clear", _wrap_rlMailbox_clear}, - {0,0} -}; +static int _proxy__wrap_new_rlMailbox(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlMailbox); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlMailbox_attributes[] = { - { "status", _wrap_rlMailbox_status_get, _wrap_rlMailbox_status_set}, - { "name", _wrap_rlMailbox_name_get, _wrap_rlMailbox_name_set}, + { "status", _wrap_rlMailbox_status_get, _wrap_rlMailbox_status_set }, + { "name", _wrap_rlMailbox_name_get, _wrap_rlMailbox_name_set }, {0,0,0} }; -static swig_lua_attribute swig_rlMailbox_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlMailbox_methods[]= { + { "printf", _wrap_rlMailbox_printf}, + { "setReadBufferSize", _wrap_rlMailbox_setReadBufferSize}, + { "read", _wrap_rlMailbox_read}, + { "write", _wrap_rlMailbox_write}, + { "clear", _wrap_rlMailbox_clear}, + {0,0} }; -static swig_lua_method swig_rlMailbox_cls_methods[] = { +static swig_lua_method swig_rlMailbox_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlMailbox_cls_constants[] = { + +static swig_lua_attribute swig_rlMailbox_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlMailbox_Sf_SwigStatic_constants[]= { {SWIG_LUA_CONSTTAB_INT("MAILBOX_ERROR", rlMailbox::MAILBOX_ERROR)}, {SWIG_LUA_CONSTTAB_INT("MAILBOX_FULL", rlMailbox::MAILBOX_FULL)}, {SWIG_LUA_CONSTTAB_INT("WAIT", rlMailbox::WAIT)}, @@ -14779,9 +16254,24 @@ static swig_lua_const_info swig_rlMailbox_cls_constants[] = { {SWIG_LUA_CONSTTAB_INT("COULD_NOT_GET_CHAN_ID", rlMailbox::COULD_NOT_GET_CHAN_ID)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_rlMailbox_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlMailbox_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlMailbox_Sf_SwigStatic = { + "rlMailbox", + swig_rlMailbox_Sf_SwigStatic_methods, + swig_rlMailbox_Sf_SwigStatic_attributes, + swig_rlMailbox_Sf_SwigStatic_constants, + swig_rlMailbox_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlMailbox_bases[] = {0}; static const char *swig_rlMailbox_base_names[] = {0}; -static swig_lua_class _wrap_class_rlMailbox = { "rlMailbox", &SWIGTYPE_p_rlMailbox,_wrap_new_rlMailbox, swig_delete_rlMailbox, swig_rlMailbox_methods, swig_rlMailbox_attributes, { "rlMailbox", swig_rlMailbox_cls_methods, swig_rlMailbox_cls_attributes, swig_rlMailbox_cls_constants }, swig_rlMailbox_bases, swig_rlMailbox_base_names }; +static swig_lua_class _wrap_class_rlMailbox = { "rlMailbox", "rlMailbox", &SWIGTYPE_p_rlMailbox,_proxy__wrap_new_rlMailbox, swig_delete_rlMailbox, swig_rlMailbox_methods, swig_rlMailbox_attributes, &swig_rlMailbox_Sf_SwigStatic, swig_rlMailbox_meta, swig_rlMailbox_bases, swig_rlMailbox_base_names }; static int _wrap_new_rlModbusClient(lua_State* L) { int SWIG_arg = 0; @@ -15089,32 +16579,56 @@ static void swig_delete_rlModbusClient(void *obj) { rlModbusClient *arg1 = (rlModbusClient *) obj; delete arg1; } -static swig_lua_method swig_rlModbusClient_methods[] = { - {"write", _wrap_rlModbusClient_write}, - {"writeSingleCoil", _wrap_rlModbusClient_writeSingleCoil}, - {"writeMultipleCoils", _wrap_rlModbusClient_writeMultipleCoils}, - {"writePresetSingleRegister", _wrap_rlModbusClient_writePresetSingleRegister}, - {"writePresetMultipleRegisters", _wrap_rlModbusClient_writePresetMultipleRegisters}, - {"readBit", _wrap_rlModbusClient_readBit}, - {"readByte", _wrap_rlModbusClient_readByte}, - {"readShort", _wrap_rlModbusClient_readShort}, - {0,0} -}; +static int _proxy__wrap_new_rlModbusClient(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlModbusClient); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlModbusClient_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlModbusClient_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlModbusClient_methods[]= { + { "write", _wrap_rlModbusClient_write}, + { "writeSingleCoil", _wrap_rlModbusClient_writeSingleCoil}, + { "writeMultipleCoils", _wrap_rlModbusClient_writeMultipleCoils}, + { "writePresetSingleRegister", _wrap_rlModbusClient_writePresetSingleRegister}, + { "writePresetMultipleRegisters", _wrap_rlModbusClient_writePresetMultipleRegisters}, + { "readBit", _wrap_rlModbusClient_readBit}, + { "readByte", _wrap_rlModbusClient_readByte}, + { "readShort", _wrap_rlModbusClient_readShort}, + {0,0} }; -static swig_lua_method swig_rlModbusClient_cls_methods[] = { +static swig_lua_method swig_rlModbusClient_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlModbusClient_cls_constants[] = { + +static swig_lua_attribute swig_rlModbusClient_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlModbusClient_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlModbusClient_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlModbusClient_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlModbusClient_Sf_SwigStatic = { + "rlModbusClient", + swig_rlModbusClient_Sf_SwigStatic_methods, + swig_rlModbusClient_Sf_SwigStatic_attributes, + swig_rlModbusClient_Sf_SwigStatic_constants, + swig_rlModbusClient_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlModbusClient_bases[] = {0,0,0}; static const char *swig_rlModbusClient_base_names[] = {"rlMailbox *","rlSharedMemory *",0}; -static swig_lua_class _wrap_class_rlModbusClient = { "rlModbusClient", &SWIGTYPE_p_rlModbusClient,_wrap_new_rlModbusClient, swig_delete_rlModbusClient, swig_rlModbusClient_methods, swig_rlModbusClient_attributes, { "rlModbusClient", swig_rlModbusClient_cls_methods, swig_rlModbusClient_cls_attributes, swig_rlModbusClient_cls_constants }, swig_rlModbusClient_bases, swig_rlModbusClient_base_names }; +static swig_lua_class _wrap_class_rlModbusClient = { "rlModbusClient", "rlModbusClient", &SWIGTYPE_p_rlModbusClient,_proxy__wrap_new_rlModbusClient, swig_delete_rlModbusClient, swig_rlModbusClient_methods, swig_rlModbusClient_attributes, &swig_rlModbusClient_Sf_SwigStatic, swig_rlModbusClient_meta, swig_rlModbusClient_bases, swig_rlModbusClient_base_names }; static int _wrap_new_rlModbus__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -17602,37 +19116,46 @@ static void swig_delete_rlModbus(void *obj) { rlModbus *arg1 = (rlModbus *) obj; delete arg1; } -static swig_lua_method swig_rlModbus_methods[] = { - {"write", _wrap_rlModbus_write}, - {"request", _wrap_rlModbus_request}, - {"response", _wrap_rlModbus_response}, - {"readRequest", _wrap_rlModbus_readRequest}, - {"registerSocket", _wrap_rlModbus_registerSocket}, - {"registerSerial", _wrap_rlModbus_registerSerial}, - {"data2int", _wrap_rlModbus_data2int}, - {"int2data", _wrap_rlModbus_int2data}, - {"intsize", _wrap_rlModbus_intsize}, - {"readCoilStatus", _wrap_rlModbus_readCoilStatus}, - {"readInputStatus", _wrap_rlModbus_readInputStatus}, - {"readHoldingRegisters", _wrap_rlModbus_readHoldingRegisters}, - {"readInputRegisters", _wrap_rlModbus_readInputRegisters}, - {"forceSingleCoil", _wrap_rlModbus_forceSingleCoil}, - {"presetSingleRegister", _wrap_rlModbus_presetSingleRegister}, - {"forceMultipleCoils", _wrap_rlModbus_forceMultipleCoils}, - {"presetMultipleRegisters", _wrap_rlModbus_presetMultipleRegisters}, - {0,0} -}; +static int _proxy__wrap_new_rlModbus(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlModbus); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlModbus_attributes[] = { - { "autoreconnectSocket", _wrap_rlModbus_autoreconnectSocket_get, _wrap_rlModbus_autoreconnectSocket_set}, + { "autoreconnectSocket", _wrap_rlModbus_autoreconnectSocket_get, _wrap_rlModbus_autoreconnectSocket_set }, {0,0,0} }; -static swig_lua_attribute swig_rlModbus_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlModbus_methods[]= { + { "write", _wrap_rlModbus_write}, + { "request", _wrap_rlModbus_request}, + { "response", _wrap_rlModbus_response}, + { "readRequest", _wrap_rlModbus_readRequest}, + { "registerSocket", _wrap_rlModbus_registerSocket}, + { "registerSerial", _wrap_rlModbus_registerSerial}, + { "data2int", _wrap_rlModbus_data2int}, + { "int2data", _wrap_rlModbus_int2data}, + { "intsize", _wrap_rlModbus_intsize}, + { "readCoilStatus", _wrap_rlModbus_readCoilStatus}, + { "readInputStatus", _wrap_rlModbus_readInputStatus}, + { "readHoldingRegisters", _wrap_rlModbus_readHoldingRegisters}, + { "readInputRegisters", _wrap_rlModbus_readInputRegisters}, + { "forceSingleCoil", _wrap_rlModbus_forceSingleCoil}, + { "presetSingleRegister", _wrap_rlModbus_presetSingleRegister}, + { "forceMultipleCoils", _wrap_rlModbus_forceMultipleCoils}, + { "presetMultipleRegisters", _wrap_rlModbus_presetMultipleRegisters}, + {0,0} }; -static swig_lua_method swig_rlModbus_cls_methods[] = { +static swig_lua_method swig_rlModbus_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlModbus_cls_constants[] = { + +static swig_lua_attribute swig_rlModbus_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlModbus_Sf_SwigStatic_constants[]= { {SWIG_LUA_CONSTTAB_INT("MODBUS_CHECKSUM_ERROR", rlModbus::MODBUS_CHECKSUM_ERROR)}, {SWIG_LUA_CONSTTAB_INT("MODBUS_ERROR", rlModbus::MODBUS_ERROR)}, {SWIG_LUA_CONSTTAB_INT("MODBUS_SUCCESS", rlModbus::MODBUS_SUCCESS)}, @@ -17657,9 +19180,24 @@ static swig_lua_const_info swig_rlModbus_cls_constants[] = { {SWIG_LUA_CONSTTAB_INT("ReadFifoQueue", rlModbus::ReadFifoQueue)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_rlModbus_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlModbus_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlModbus_Sf_SwigStatic = { + "rlModbus", + swig_rlModbus_Sf_SwigStatic_methods, + swig_rlModbus_Sf_SwigStatic_attributes, + swig_rlModbus_Sf_SwigStatic_constants, + swig_rlModbus_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlModbus_bases[] = {0}; static const char *swig_rlModbus_base_names[] = {0}; -static swig_lua_class _wrap_class_rlModbus = { "rlModbus", &SWIGTYPE_p_rlModbus,_wrap_new_rlModbus, swig_delete_rlModbus, swig_rlModbus_methods, swig_rlModbus_attributes, { "rlModbus", swig_rlModbus_cls_methods, swig_rlModbus_cls_attributes, swig_rlModbus_cls_constants }, swig_rlModbus_bases, swig_rlModbus_base_names }; +static swig_lua_class _wrap_class_rlModbus = { "rlModbus", "rlModbus", &SWIGTYPE_p_rlModbus,_proxy__wrap_new_rlModbus, swig_delete_rlModbus, swig_rlModbus_methods, swig_rlModbus_attributes, &swig_rlModbus_Sf_SwigStatic, swig_rlModbus_meta, swig_rlModbus_bases, swig_rlModbus_base_names }; static int _wrap_new_rlOpcXmlDa__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -18057,34 +19595,58 @@ static void swig_delete_rlOpcXmlDa(void *obj) { rlOpcXmlDa *arg1 = (rlOpcXmlDa *) obj; delete arg1; } -static swig_lua_method swig_rlOpcXmlDa_methods[] = { - {"stringValue", _wrap_rlOpcXmlDa_stringValue}, - {"intValue", _wrap_rlOpcXmlDa_intValue}, - {"floatValue", _wrap_rlOpcXmlDa_floatValue}, - {"writeStringValue", _wrap_rlOpcXmlDa_writeStringValue}, - {"writeIntValue", _wrap_rlOpcXmlDa_writeIntValue}, - {"writeFloatValue", _wrap_rlOpcXmlDa_writeFloatValue}, - {"readErrorCount", _wrap_rlOpcXmlDa_readErrorCount}, - {"writeErrorCount", _wrap_rlOpcXmlDa_writeErrorCount}, - {"shmStatus", _wrap_rlOpcXmlDa_shmStatus}, - {0,0} -}; +static int _proxy__wrap_new_rlOpcXmlDa(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlOpcXmlDa); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlOpcXmlDa_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlOpcXmlDa_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlOpcXmlDa_methods[]= { + { "stringValue", _wrap_rlOpcXmlDa_stringValue}, + { "intValue", _wrap_rlOpcXmlDa_intValue}, + { "floatValue", _wrap_rlOpcXmlDa_floatValue}, + { "writeStringValue", _wrap_rlOpcXmlDa_writeStringValue}, + { "writeIntValue", _wrap_rlOpcXmlDa_writeIntValue}, + { "writeFloatValue", _wrap_rlOpcXmlDa_writeFloatValue}, + { "readErrorCount", _wrap_rlOpcXmlDa_readErrorCount}, + { "writeErrorCount", _wrap_rlOpcXmlDa_writeErrorCount}, + { "shmStatus", _wrap_rlOpcXmlDa_shmStatus}, + {0,0} }; -static swig_lua_method swig_rlOpcXmlDa_cls_methods[] = { +static swig_lua_method swig_rlOpcXmlDa_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlOpcXmlDa_cls_constants[] = { + +static swig_lua_attribute swig_rlOpcXmlDa_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlOpcXmlDa_Sf_SwigStatic_constants[]= { {SWIG_LUA_CONSTTAB_INT("OPCXMLDA_ERROR", rlOpcXmlDa::OPCXMLDA_ERROR)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_rlOpcXmlDa_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlOpcXmlDa_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlOpcXmlDa_Sf_SwigStatic = { + "rlOpcXmlDa", + swig_rlOpcXmlDa_Sf_SwigStatic_methods, + swig_rlOpcXmlDa_Sf_SwigStatic_attributes, + swig_rlOpcXmlDa_Sf_SwigStatic_constants, + swig_rlOpcXmlDa_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlOpcXmlDa_bases[] = {0}; static const char *swig_rlOpcXmlDa_base_names[] = {0}; -static swig_lua_class _wrap_class_rlOpcXmlDa = { "rlOpcXmlDa", &SWIGTYPE_p_rlOpcXmlDa,_wrap_new_rlOpcXmlDa, swig_delete_rlOpcXmlDa, swig_rlOpcXmlDa_methods, swig_rlOpcXmlDa_attributes, { "rlOpcXmlDa", swig_rlOpcXmlDa_cls_methods, swig_rlOpcXmlDa_cls_attributes, swig_rlOpcXmlDa_cls_constants }, swig_rlOpcXmlDa_bases, swig_rlOpcXmlDa_base_names }; +static swig_lua_class _wrap_class_rlOpcXmlDa = { "rlOpcXmlDa", "rlOpcXmlDa", &SWIGTYPE_p_rlOpcXmlDa,_proxy__wrap_new_rlOpcXmlDa, swig_delete_rlOpcXmlDa, swig_rlOpcXmlDa_methods, swig_rlOpcXmlDa_attributes, &swig_rlOpcXmlDa_Sf_SwigStatic, swig_rlOpcXmlDa_meta, swig_rlOpcXmlDa_bases, swig_rlOpcXmlDa_base_names }; static int _wrap_new_rlPcontrol(lua_State* L) { int SWIG_arg = 0; @@ -18452,38 +20014,62 @@ static void swig_delete_rlPcontrol(void *obj) { rlPcontrol *arg1 = (rlPcontrol *) obj; delete arg1; } -static swig_lua_method swig_rlPcontrol_methods[] = { - {"setStartupCommand", _wrap_rlPcontrol_setStartupCommand}, - {"start", _wrap_rlPcontrol_start}, - {"sigterm", _wrap_rlPcontrol_sigterm}, - {"sigkill", _wrap_rlPcontrol_sigkill}, - {"isAlive", _wrap_rlPcontrol_isAlive}, - {"startupCommand", _wrap_rlPcontrol_startupCommand}, - {"processName", _wrap_rlPcontrol_processName}, - {"processTime", _wrap_rlPcontrol_processTime}, - {"setPID", _wrap_rlPcontrol_setPID}, - {"pid", _wrap_rlPcontrol_pid}, - {"getNext", _wrap_rlPcontrol_getNext}, - {"addNew", _wrap_rlPcontrol_addNew}, - {"setPriority", _wrap_rlPcontrol_setPriority}, - {"priority", _wrap_rlPcontrol_priority}, - {0,0} -}; +static int _proxy__wrap_new_rlPcontrol(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlPcontrol); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlPcontrol_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlPcontrol_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlPcontrol_methods[]= { + { "setStartupCommand", _wrap_rlPcontrol_setStartupCommand}, + { "start", _wrap_rlPcontrol_start}, + { "sigterm", _wrap_rlPcontrol_sigterm}, + { "sigkill", _wrap_rlPcontrol_sigkill}, + { "isAlive", _wrap_rlPcontrol_isAlive}, + { "startupCommand", _wrap_rlPcontrol_startupCommand}, + { "processName", _wrap_rlPcontrol_processName}, + { "processTime", _wrap_rlPcontrol_processTime}, + { "setPID", _wrap_rlPcontrol_setPID}, + { "pid", _wrap_rlPcontrol_pid}, + { "getNext", _wrap_rlPcontrol_getNext}, + { "addNew", _wrap_rlPcontrol_addNew}, + { "setPriority", _wrap_rlPcontrol_setPriority}, + { "priority", _wrap_rlPcontrol_priority}, + {0,0} }; -static swig_lua_method swig_rlPcontrol_cls_methods[] = { +static swig_lua_method swig_rlPcontrol_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlPcontrol_cls_constants[] = { + +static swig_lua_attribute swig_rlPcontrol_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlPcontrol_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlPcontrol_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlPcontrol_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlPcontrol_Sf_SwigStatic = { + "rlPcontrol", + swig_rlPcontrol_Sf_SwigStatic_methods, + swig_rlPcontrol_Sf_SwigStatic_attributes, + swig_rlPcontrol_Sf_SwigStatic_constants, + swig_rlPcontrol_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlPcontrol_bases[] = {0}; static const char *swig_rlPcontrol_base_names[] = {0}; -static swig_lua_class _wrap_class_rlPcontrol = { "rlPcontrol", &SWIGTYPE_p_rlPcontrol,_wrap_new_rlPcontrol, swig_delete_rlPcontrol, swig_rlPcontrol_methods, swig_rlPcontrol_attributes, { "rlPcontrol", swig_rlPcontrol_cls_methods, swig_rlPcontrol_cls_attributes, swig_rlPcontrol_cls_constants }, swig_rlPcontrol_bases, swig_rlPcontrol_base_names }; +static swig_lua_class _wrap_class_rlPcontrol = { "rlPcontrol", "rlPcontrol", &SWIGTYPE_p_rlPcontrol,_proxy__wrap_new_rlPcontrol, swig_delete_rlPcontrol, swig_rlPcontrol_methods, swig_rlPcontrol_attributes, &swig_rlPcontrol_Sf_SwigStatic, swig_rlPcontrol_meta, swig_rlPcontrol_bases, swig_rlPcontrol_base_names }; static int _wrap_new_rlPlcState__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -19906,59 +21492,83 @@ static void swig_delete_rlPlcState(void *obj) { rlPlcState *arg1 = (rlPlcState *) obj; delete arg1; } -static swig_lua_method swig_rlPlcState_methods[] = { - {"rememberState", _wrap_rlPlcState_rememberState}, - {"intChanged", _wrap_rlPlcState_intChanged}, - {"floatChanged", _wrap_rlPlcState_floatChanged}, - {"doubleChanged", _wrap_rlPlcState_doubleChanged}, - {"intHasIncreased", _wrap_rlPlcState_intHasIncreased}, - {"floatHasIncreased", _wrap_rlPlcState_floatHasIncreased}, - {"doubleHasIncreased", _wrap_rlPlcState_doubleHasIncreased}, - {"intHasDecreased", _wrap_rlPlcState_intHasDecreased}, - {"floatHasDecreased", _wrap_rlPlcState_floatHasDecreased}, - {"doubleHasDecreased", _wrap_rlPlcState_doubleHasDecreased}, - {"deltaInt", _wrap_rlPlcState_deltaInt}, - {"deltaFloat", _wrap_rlPlcState_deltaFloat}, - {"deltaDouble", _wrap_rlPlcState_deltaDouble}, - {"set", _wrap_rlPlcState_set}, - {"clear", _wrap_rlPlcState_clear}, - {"isSet", _wrap_rlPlcState_isSet}, - {"isClear", _wrap_rlPlcState_isClear}, - {"hasBeenSet", _wrap_rlPlcState_hasBeenSet}, - {"hasBeenCleared", _wrap_rlPlcState_hasBeenCleared}, - {"maxInt", _wrap_rlPlcState_maxInt}, - {"maxFloat", _wrap_rlPlcState_maxFloat}, - {"maxDouble", _wrap_rlPlcState_maxDouble}, - {"getInt", _wrap_rlPlcState_getInt}, - {"getFloat", _wrap_rlPlcState_getFloat}, - {"getDouble", _wrap_rlPlcState_getDouble}, - {"getOldInt", _wrap_rlPlcState_getOldInt}, - {"getOldFloat", _wrap_rlPlcState_getOldFloat}, - {"getOldDouble", _wrap_rlPlcState_getOldDouble}, - {0,0} -}; +static int _proxy__wrap_new_rlPlcState(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlPlcState); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlPlcState_attributes[] = { - { "i", _wrap_rlPlcState_i_get, _wrap_rlPlcState_i_set}, - { "i_old", _wrap_rlPlcState_i_old_get, _wrap_rlPlcState_i_old_set}, - { "f", _wrap_rlPlcState_f_get, _wrap_rlPlcState_f_set}, - { "f_old", _wrap_rlPlcState_f_old_get, _wrap_rlPlcState_f_old_set}, - { "d", _wrap_rlPlcState_d_get, _wrap_rlPlcState_d_set}, - { "d_old", _wrap_rlPlcState_d_old_get, _wrap_rlPlcState_d_old_set}, - { "shm", _wrap_rlPlcState_shm_get, _wrap_rlPlcState_shm_set}, + { "i", _wrap_rlPlcState_i_get, _wrap_rlPlcState_i_set }, + { "i_old", _wrap_rlPlcState_i_old_get, _wrap_rlPlcState_i_old_set }, + { "f", _wrap_rlPlcState_f_get, _wrap_rlPlcState_f_set }, + { "f_old", _wrap_rlPlcState_f_old_get, _wrap_rlPlcState_f_old_set }, + { "d", _wrap_rlPlcState_d_get, _wrap_rlPlcState_d_set }, + { "d_old", _wrap_rlPlcState_d_old_get, _wrap_rlPlcState_d_old_set }, + { "shm", _wrap_rlPlcState_shm_get, _wrap_rlPlcState_shm_set }, {0,0,0} }; -static swig_lua_attribute swig_rlPlcState_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlPlcState_methods[]= { + { "rememberState", _wrap_rlPlcState_rememberState}, + { "intChanged", _wrap_rlPlcState_intChanged}, + { "floatChanged", _wrap_rlPlcState_floatChanged}, + { "doubleChanged", _wrap_rlPlcState_doubleChanged}, + { "intHasIncreased", _wrap_rlPlcState_intHasIncreased}, + { "floatHasIncreased", _wrap_rlPlcState_floatHasIncreased}, + { "doubleHasIncreased", _wrap_rlPlcState_doubleHasIncreased}, + { "intHasDecreased", _wrap_rlPlcState_intHasDecreased}, + { "floatHasDecreased", _wrap_rlPlcState_floatHasDecreased}, + { "doubleHasDecreased", _wrap_rlPlcState_doubleHasDecreased}, + { "deltaInt", _wrap_rlPlcState_deltaInt}, + { "deltaFloat", _wrap_rlPlcState_deltaFloat}, + { "deltaDouble", _wrap_rlPlcState_deltaDouble}, + { "set", _wrap_rlPlcState_set}, + { "clear", _wrap_rlPlcState_clear}, + { "isSet", _wrap_rlPlcState_isSet}, + { "isClear", _wrap_rlPlcState_isClear}, + { "hasBeenSet", _wrap_rlPlcState_hasBeenSet}, + { "hasBeenCleared", _wrap_rlPlcState_hasBeenCleared}, + { "maxInt", _wrap_rlPlcState_maxInt}, + { "maxFloat", _wrap_rlPlcState_maxFloat}, + { "maxDouble", _wrap_rlPlcState_maxDouble}, + { "getInt", _wrap_rlPlcState_getInt}, + { "getFloat", _wrap_rlPlcState_getFloat}, + { "getDouble", _wrap_rlPlcState_getDouble}, + { "getOldInt", _wrap_rlPlcState_getOldInt}, + { "getOldFloat", _wrap_rlPlcState_getOldFloat}, + { "getOldDouble", _wrap_rlPlcState_getOldDouble}, + {0,0} }; -static swig_lua_method swig_rlPlcState_cls_methods[] = { +static swig_lua_method swig_rlPlcState_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlPlcState_cls_constants[] = { + +static swig_lua_attribute swig_rlPlcState_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlPlcState_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlPlcState_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlPlcState_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlPlcState_Sf_SwigStatic = { + "rlPlcState", + swig_rlPlcState_Sf_SwigStatic_methods, + swig_rlPlcState_Sf_SwigStatic_attributes, + swig_rlPlcState_Sf_SwigStatic_constants, + swig_rlPlcState_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlPlcState_bases[] = {0}; static const char *swig_rlPlcState_base_names[] = {0}; -static swig_lua_class _wrap_class_rlPlcState = { "rlPlcState", &SWIGTYPE_p_rlPlcState,_wrap_new_rlPlcState, swig_delete_rlPlcState, swig_rlPlcState_methods, swig_rlPlcState_attributes, { "rlPlcState", swig_rlPlcState_cls_methods, swig_rlPlcState_cls_attributes, swig_rlPlcState_cls_constants }, swig_rlPlcState_bases, swig_rlPlcState_base_names }; +static swig_lua_class _wrap_class_rlPlcState = { "rlPlcState", "rlPlcState", &SWIGTYPE_p_rlPlcState,_proxy__wrap_new_rlPlcState, swig_delete_rlPlcState, swig_rlPlcState_methods, swig_rlPlcState_attributes, &swig_rlPlcState_Sf_SwigStatic, swig_rlPlcState_meta, swig_rlPlcState_bases, swig_rlPlcState_base_names }; static int _wrap_new_rlPlcMem(lua_State* L) { int SWIG_arg = 0; @@ -20752,49 +22362,73 @@ static void swig_delete_rlPlcMem(void *obj) { rlPlcMem *arg1 = (rlPlcMem *) obj; delete arg1; } -static swig_lua_method swig_rlPlcMem_methods[] = { - {"rememberState", _wrap_rlPlcMem_rememberState}, - {"intChanged", _wrap_rlPlcMem_intChanged}, - {"floatChanged", _wrap_rlPlcMem_floatChanged}, - {"doubleChanged", _wrap_rlPlcMem_doubleChanged}, - {"intHasIncreased", _wrap_rlPlcMem_intHasIncreased}, - {"floatHasIncreased", _wrap_rlPlcMem_floatHasIncreased}, - {"doubleHasIncreased", _wrap_rlPlcMem_doubleHasIncreased}, - {"intHasDecreased", _wrap_rlPlcMem_intHasDecreased}, - {"floatHasDecreased", _wrap_rlPlcMem_floatHasDecreased}, - {"doubleHasDecreased", _wrap_rlPlcMem_doubleHasDecreased}, - {"deltaInt", _wrap_rlPlcMem_deltaInt}, - {"deltaFloat", _wrap_rlPlcMem_deltaFloat}, - {"deltaDouble", _wrap_rlPlcMem_deltaDouble}, - {"set", _wrap_rlPlcMem_set}, - {"clear", _wrap_rlPlcMem_clear}, - {"isSet", _wrap_rlPlcMem_isSet}, - {"isClear", _wrap_rlPlcMem_isClear}, - {"hasBeenSet", _wrap_rlPlcMem_hasBeenSet}, - {"hasBeenCleared", _wrap_rlPlcMem_hasBeenCleared}, - {0,0} -}; +static int _proxy__wrap_new_rlPlcMem(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlPlcMem); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlPlcMem_attributes[] = { - { "i", _wrap_rlPlcMem_i_get, _wrap_rlPlcMem_i_set}, - { "i_old", _wrap_rlPlcMem_i_old_get, _wrap_rlPlcMem_i_old_set}, - { "f", _wrap_rlPlcMem_f_get, _wrap_rlPlcMem_f_set}, - { "f_old", _wrap_rlPlcMem_f_old_get, _wrap_rlPlcMem_f_old_set}, - { "d", _wrap_rlPlcMem_d_get, _wrap_rlPlcMem_d_set}, - { "d_old", _wrap_rlPlcMem_d_old_get, _wrap_rlPlcMem_d_old_set}, + { "i", _wrap_rlPlcMem_i_get, _wrap_rlPlcMem_i_set }, + { "i_old", _wrap_rlPlcMem_i_old_get, _wrap_rlPlcMem_i_old_set }, + { "f", _wrap_rlPlcMem_f_get, _wrap_rlPlcMem_f_set }, + { "f_old", _wrap_rlPlcMem_f_old_get, _wrap_rlPlcMem_f_old_set }, + { "d", _wrap_rlPlcMem_d_get, _wrap_rlPlcMem_d_set }, + { "d_old", _wrap_rlPlcMem_d_old_get, _wrap_rlPlcMem_d_old_set }, {0,0,0} }; -static swig_lua_attribute swig_rlPlcMem_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlPlcMem_methods[]= { + { "rememberState", _wrap_rlPlcMem_rememberState}, + { "intChanged", _wrap_rlPlcMem_intChanged}, + { "floatChanged", _wrap_rlPlcMem_floatChanged}, + { "doubleChanged", _wrap_rlPlcMem_doubleChanged}, + { "intHasIncreased", _wrap_rlPlcMem_intHasIncreased}, + { "floatHasIncreased", _wrap_rlPlcMem_floatHasIncreased}, + { "doubleHasIncreased", _wrap_rlPlcMem_doubleHasIncreased}, + { "intHasDecreased", _wrap_rlPlcMem_intHasDecreased}, + { "floatHasDecreased", _wrap_rlPlcMem_floatHasDecreased}, + { "doubleHasDecreased", _wrap_rlPlcMem_doubleHasDecreased}, + { "deltaInt", _wrap_rlPlcMem_deltaInt}, + { "deltaFloat", _wrap_rlPlcMem_deltaFloat}, + { "deltaDouble", _wrap_rlPlcMem_deltaDouble}, + { "set", _wrap_rlPlcMem_set}, + { "clear", _wrap_rlPlcMem_clear}, + { "isSet", _wrap_rlPlcMem_isSet}, + { "isClear", _wrap_rlPlcMem_isClear}, + { "hasBeenSet", _wrap_rlPlcMem_hasBeenSet}, + { "hasBeenCleared", _wrap_rlPlcMem_hasBeenCleared}, + {0,0} }; -static swig_lua_method swig_rlPlcMem_cls_methods[] = { +static swig_lua_method swig_rlPlcMem_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlPlcMem_cls_constants[] = { + +static swig_lua_attribute swig_rlPlcMem_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlPlcMem_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlPlcMem_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlPlcMem_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlPlcMem_Sf_SwigStatic = { + "rlPlcMem", + swig_rlPlcMem_Sf_SwigStatic_methods, + swig_rlPlcMem_Sf_SwigStatic_attributes, + swig_rlPlcMem_Sf_SwigStatic_constants, + swig_rlPlcMem_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlPlcMem_bases[] = {0}; static const char *swig_rlPlcMem_base_names[] = {0}; -static swig_lua_class _wrap_class_rlPlcMem = { "rlPlcMem", &SWIGTYPE_p_rlPlcMem,_wrap_new_rlPlcMem, swig_delete_rlPlcMem, swig_rlPlcMem_methods, swig_rlPlcMem_attributes, { "rlPlcMem", swig_rlPlcMem_cls_methods, swig_rlPlcMem_cls_attributes, swig_rlPlcMem_cls_constants }, swig_rlPlcMem_bases, swig_rlPlcMem_base_names }; +static swig_lua_class _wrap_class_rlPlcMem = { "rlPlcMem", "rlPlcMem", &SWIGTYPE_p_rlPlcMem,_proxy__wrap_new_rlPlcMem, swig_delete_rlPlcMem, swig_rlPlcMem_methods, swig_rlPlcMem_attributes, &swig_rlPlcMem_Sf_SwigStatic, swig_rlPlcMem_meta, swig_rlPlcMem_bases, swig_rlPlcMem_base_names }; static int _wrap_new_rlPPIClient__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -21413,32 +23047,41 @@ static void swig_delete_rlPPIClient(void *obj) { rlPPIClient *arg1 = (rlPPIClient *) obj; delete arg1; } -static swig_lua_method swig_rlPPIClient_methods[] = { - {"write", _wrap_rlPPIClient_write}, - {"writeFloat", _wrap_rlPPIClient_writeFloat}, - {"writeDword", _wrap_rlPPIClient_writeDword}, - {"writeShort", _wrap_rlPPIClient_writeShort}, - {"writeUDword", _wrap_rlPPIClient_writeUDword}, - {"writeUShort", _wrap_rlPPIClient_writeUShort}, - {"read", _wrap_rlPPIClient_read}, - {"Float", _wrap_rlPPIClient_Float}, - {"Dword", _wrap_rlPPIClient_Dword}, - {"Short", _wrap_rlPPIClient_Short}, - {"UDword", _wrap_rlPPIClient_UDword}, - {"UShort", _wrap_rlPPIClient_UShort}, - {0,0} -}; +static int _proxy__wrap_new_rlPPIClient(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlPPIClient); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlPPIClient_attributes[] = { - { "buf", _wrap_rlPPIClient_buf_get, _wrap_rlPPIClient_buf_set}, + { "buf", _wrap_rlPPIClient_buf_get, _wrap_rlPPIClient_buf_set }, {0,0,0} }; -static swig_lua_attribute swig_rlPPIClient_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlPPIClient_methods[]= { + { "write", _wrap_rlPPIClient_write}, + { "writeFloat", _wrap_rlPPIClient_writeFloat}, + { "writeDword", _wrap_rlPPIClient_writeDword}, + { "writeShort", _wrap_rlPPIClient_writeShort}, + { "writeUDword", _wrap_rlPPIClient_writeUDword}, + { "writeUShort", _wrap_rlPPIClient_writeUShort}, + { "read", _wrap_rlPPIClient_read}, + { "Float", _wrap_rlPPIClient_Float}, + { "Dword", _wrap_rlPPIClient_Dword}, + { "Short", _wrap_rlPPIClient_Short}, + { "UDword", _wrap_rlPPIClient_UDword}, + { "UShort", _wrap_rlPPIClient_UShort}, + {0,0} }; -static swig_lua_method swig_rlPPIClient_cls_methods[] = { +static swig_lua_method swig_rlPPIClient_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlPPIClient_cls_constants[] = { + +static swig_lua_attribute swig_rlPPIClient_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlPPIClient_Sf_SwigStatic_constants[]= { {SWIG_LUA_CONSTTAB_INT("daveSD", rlPPIClient::daveSD)}, {SWIG_LUA_CONSTTAB_INT("daveInputs", rlPPIClient::daveInputs)}, {SWIG_LUA_CONSTTAB_INT("daveOutputs", rlPPIClient::daveOutputs)}, @@ -21451,9 +23094,24 @@ static swig_lua_const_info swig_rlPPIClient_cls_constants[] = { {SWIG_LUA_CONSTTAB_INT("daveTimer", rlPPIClient::daveTimer)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_rlPPIClient_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlPPIClient_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlPPIClient_Sf_SwigStatic = { + "rlPPIClient", + swig_rlPPIClient_Sf_SwigStatic_methods, + swig_rlPPIClient_Sf_SwigStatic_attributes, + swig_rlPPIClient_Sf_SwigStatic_constants, + swig_rlPPIClient_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlPPIClient_bases[] = {0,0}; static const char *swig_rlPPIClient_base_names[] = {"rlMailbox *",0}; -static swig_lua_class _wrap_class_rlPPIClient = { "rlPPIClient", &SWIGTYPE_p_rlPPIClient,_wrap_new_rlPPIClient, swig_delete_rlPPIClient, swig_rlPPIClient_methods, swig_rlPPIClient_attributes, { "rlPPIClient", swig_rlPPIClient_cls_methods, swig_rlPPIClient_cls_attributes, swig_rlPPIClient_cls_constants }, swig_rlPPIClient_bases, swig_rlPPIClient_base_names }; +static swig_lua_class _wrap_class_rlPPIClient = { "rlPPIClient", "rlPPIClient", &SWIGTYPE_p_rlPPIClient,_proxy__wrap_new_rlPPIClient, swig_delete_rlPPIClient, swig_rlPPIClient_methods, swig_rlPPIClient_attributes, &swig_rlPPIClient_Sf_SwigStatic, swig_rlPPIClient_meta, swig_rlPPIClient_bases, swig_rlPPIClient_base_names }; static int _wrap_new_rlSerial(lua_State* L) { int SWIG_arg = 0; @@ -22523,36 +24181,60 @@ static void swig_delete_rlSerial(void *obj) { rlSerial *arg1 = (rlSerial *) obj; delete arg1; } -static swig_lua_method swig_rlSerial_methods[] = { - {"openDevice", _wrap_rlSerial_openDevice}, - {"select", _wrap_rlSerial_select}, - {"readChar", _wrap_rlSerial_readChar}, - {"writeChar", _wrap_rlSerial_writeChar}, - {"readBlock", _wrap_rlSerial_readBlock}, - {"writeBlock", _wrap_rlSerial_writeBlock}, - {"readLine", _wrap_rlSerial_readLine}, - {"closeDevice", _wrap_rlSerial_closeDevice}, - {"setTrace", _wrap_rlSerial_setTrace}, - {0,0} -}; +static int _proxy__wrap_new_rlSerial(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSerial); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlSerial_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlSerial_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlSerial_methods[]= { + { "openDevice", _wrap_rlSerial_openDevice}, + { "select", _wrap_rlSerial_select}, + { "readChar", _wrap_rlSerial_readChar}, + { "writeChar", _wrap_rlSerial_writeChar}, + { "readBlock", _wrap_rlSerial_readBlock}, + { "writeBlock", _wrap_rlSerial_writeBlock}, + { "readLine", _wrap_rlSerial_readLine}, + { "closeDevice", _wrap_rlSerial_closeDevice}, + { "setTrace", _wrap_rlSerial_setTrace}, + {0,0} }; -static swig_lua_method swig_rlSerial_cls_methods[] = { +static swig_lua_method swig_rlSerial_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlSerial_cls_constants[] = { + +static swig_lua_attribute swig_rlSerial_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlSerial_Sf_SwigStatic_constants[]= { {SWIG_LUA_CONSTTAB_INT("NONE", rlSerial::NONE)}, {SWIG_LUA_CONSTTAB_INT("ODD", rlSerial::ODD)}, {SWIG_LUA_CONSTTAB_INT("EVEN", rlSerial::EVEN)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_rlSerial_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlSerial_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSerial_Sf_SwigStatic = { + "rlSerial", + swig_rlSerial_Sf_SwigStatic_methods, + swig_rlSerial_Sf_SwigStatic_attributes, + swig_rlSerial_Sf_SwigStatic_constants, + swig_rlSerial_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlSerial_bases[] = {0}; static const char *swig_rlSerial_base_names[] = {0}; -static swig_lua_class _wrap_class_rlSerial = { "rlSerial", &SWIGTYPE_p_rlSerial,_wrap_new_rlSerial, swig_delete_rlSerial, swig_rlSerial_methods, swig_rlSerial_attributes, { "rlSerial", swig_rlSerial_cls_methods, swig_rlSerial_cls_attributes, swig_rlSerial_cls_constants }, swig_rlSerial_bases, swig_rlSerial_base_names }; +static swig_lua_class _wrap_class_rlSerial = { "rlSerial", "rlSerial", &SWIGTYPE_p_rlSerial,_proxy__wrap_new_rlSerial, swig_delete_rlSerial, swig_rlSerial_methods, swig_rlSerial_attributes, &swig_rlSerial_Sf_SwigStatic, swig_rlSerial_meta, swig_rlSerial_bases, swig_rlSerial_base_names }; static int _wrap_new_rlSiemensTCPClient__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -23269,34 +24951,43 @@ static void swig_delete_rlSiemensTCPClient(void *obj) { rlSiemensTCPClient *arg1 = (rlSiemensTCPClient *) obj; delete arg1; } -static swig_lua_method swig_rlSiemensTCPClient_methods[] = { - {"write", _wrap_rlSiemensTCPClient_write}, - {"writeBit", _wrap_rlSiemensTCPClient_writeBit}, - {"writeByte", _wrap_rlSiemensTCPClient_writeByte}, - {"writeFloat", _wrap_rlSiemensTCPClient_writeFloat}, - {"writeDword", _wrap_rlSiemensTCPClient_writeDword}, - {"writeShort", _wrap_rlSiemensTCPClient_writeShort}, - {"writeUDword", _wrap_rlSiemensTCPClient_writeUDword}, - {"writeUShort", _wrap_rlSiemensTCPClient_writeUShort}, - {"read", _wrap_rlSiemensTCPClient_read}, - {"Float", _wrap_rlSiemensTCPClient_Float}, - {"Dword", _wrap_rlSiemensTCPClient_Dword}, - {"Short", _wrap_rlSiemensTCPClient_Short}, - {"UDword", _wrap_rlSiemensTCPClient_UDword}, - {"UShort", _wrap_rlSiemensTCPClient_UShort}, - {0,0} -}; +static int _proxy__wrap_new_rlSiemensTCPClient(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSiemensTCPClient); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlSiemensTCPClient_attributes[] = { - { "buf", _wrap_rlSiemensTCPClient_buf_get, _wrap_rlSiemensTCPClient_buf_set}, + { "buf", _wrap_rlSiemensTCPClient_buf_get, _wrap_rlSiemensTCPClient_buf_set }, {0,0,0} }; -static swig_lua_attribute swig_rlSiemensTCPClient_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlSiemensTCPClient_methods[]= { + { "write", _wrap_rlSiemensTCPClient_write}, + { "writeBit", _wrap_rlSiemensTCPClient_writeBit}, + { "writeByte", _wrap_rlSiemensTCPClient_writeByte}, + { "writeFloat", _wrap_rlSiemensTCPClient_writeFloat}, + { "writeDword", _wrap_rlSiemensTCPClient_writeDword}, + { "writeShort", _wrap_rlSiemensTCPClient_writeShort}, + { "writeUDword", _wrap_rlSiemensTCPClient_writeUDword}, + { "writeUShort", _wrap_rlSiemensTCPClient_writeUShort}, + { "read", _wrap_rlSiemensTCPClient_read}, + { "Float", _wrap_rlSiemensTCPClient_Float}, + { "Dword", _wrap_rlSiemensTCPClient_Dword}, + { "Short", _wrap_rlSiemensTCPClient_Short}, + { "UDword", _wrap_rlSiemensTCPClient_UDword}, + { "UShort", _wrap_rlSiemensTCPClient_UShort}, + {0,0} }; -static swig_lua_method swig_rlSiemensTCPClient_cls_methods[] = { +static swig_lua_method swig_rlSiemensTCPClient_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlSiemensTCPClient_cls_constants[] = { + +static swig_lua_attribute swig_rlSiemensTCPClient_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlSiemensTCPClient_Sf_SwigStatic_constants[]= { {SWIG_LUA_CONSTTAB_INT("ORG_DB", rlSiemensTCPClient::ORG_DB)}, {SWIG_LUA_CONSTTAB_INT("ORG_M", rlSiemensTCPClient::ORG_M)}, {SWIG_LUA_CONSTTAB_INT("ORG_E", rlSiemensTCPClient::ORG_E)}, @@ -23306,9 +24997,24 @@ static swig_lua_const_info swig_rlSiemensTCPClient_cls_constants[] = { {SWIG_LUA_CONSTTAB_INT("ORG_T", rlSiemensTCPClient::ORG_T)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_rlSiemensTCPClient_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlSiemensTCPClient_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSiemensTCPClient_Sf_SwigStatic = { + "rlSiemensTCPClient", + swig_rlSiemensTCPClient_Sf_SwigStatic_methods, + swig_rlSiemensTCPClient_Sf_SwigStatic_attributes, + swig_rlSiemensTCPClient_Sf_SwigStatic_constants, + swig_rlSiemensTCPClient_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlSiemensTCPClient_bases[] = {0,0}; static const char *swig_rlSiemensTCPClient_base_names[] = {"rlMailbox *",0}; -static swig_lua_class _wrap_class_rlSiemensTCPClient = { "rlSiemensTCPClient", &SWIGTYPE_p_rlSiemensTCPClient,_wrap_new_rlSiemensTCPClient, swig_delete_rlSiemensTCPClient, swig_rlSiemensTCPClient_methods, swig_rlSiemensTCPClient_attributes, { "rlSiemensTCPClient", swig_rlSiemensTCPClient_cls_methods, swig_rlSiemensTCPClient_cls_attributes, swig_rlSiemensTCPClient_cls_constants }, swig_rlSiemensTCPClient_bases, swig_rlSiemensTCPClient_base_names }; +static swig_lua_class _wrap_class_rlSiemensTCPClient = { "rlSiemensTCPClient", "rlSiemensTCPClient", &SWIGTYPE_p_rlSiemensTCPClient,_proxy__wrap_new_rlSiemensTCPClient, swig_delete_rlSiemensTCPClient, swig_rlSiemensTCPClient_methods, swig_rlSiemensTCPClient_attributes, &swig_rlSiemensTCPClient_Sf_SwigStatic, swig_rlSiemensTCPClient_meta, swig_rlSiemensTCPClient_bases, swig_rlSiemensTCPClient_base_names }; static int _wrap_new_rlSiemensTCP__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -23892,24 +25598,33 @@ static void swig_delete_rlSiemensTCP(void *obj) { rlSiemensTCP *arg1 = (rlSiemensTCP *) obj; delete arg1; } -static swig_lua_method swig_rlSiemensTCP_methods[] = { - {"getDefaultConnectBlock", _wrap_rlSiemensTCP_getDefaultConnectBlock}, - {"setConnectBlock", _wrap_rlSiemensTCP_setConnectBlock}, - {"getConnectBlock", _wrap_rlSiemensTCP_getConnectBlock}, - {"write", _wrap_rlSiemensTCP_write}, - {"fetch", _wrap_rlSiemensTCP_fetch}, - {0,0} -}; +static int _proxy__wrap_new_rlSiemensTCP(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSiemensTCP); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlSiemensTCP_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlSiemensTCP_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlSiemensTCP_methods[]= { + { "getDefaultConnectBlock", _wrap_rlSiemensTCP_getDefaultConnectBlock}, + { "setConnectBlock", _wrap_rlSiemensTCP_setConnectBlock}, + { "getConnectBlock", _wrap_rlSiemensTCP_getConnectBlock}, + { "write", _wrap_rlSiemensTCP_write}, + { "fetch", _wrap_rlSiemensTCP_fetch}, + {0,0} }; -static swig_lua_method swig_rlSiemensTCP_cls_methods[] = { +static swig_lua_method swig_rlSiemensTCP_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlSiemensTCP_cls_constants[] = { + +static swig_lua_attribute swig_rlSiemensTCP_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlSiemensTCP_Sf_SwigStatic_constants[]= { {SWIG_LUA_CONSTTAB_INT("ORG_DB", rlSiemensTCP::ORG_DB)}, {SWIG_LUA_CONSTTAB_INT("ORG_M", rlSiemensTCP::ORG_M)}, {SWIG_LUA_CONSTTAB_INT("ORG_E", rlSiemensTCP::ORG_E)}, @@ -23929,9 +25644,24 @@ static swig_lua_const_info swig_rlSiemensTCP_cls_constants[] = { {SWIG_LUA_CONSTTAB_INT("WriteByte", rlSiemensTCP::WriteByte)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_rlSiemensTCP_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlSiemensTCP_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSiemensTCP_Sf_SwigStatic = { + "rlSiemensTCP", + swig_rlSiemensTCP_Sf_SwigStatic_methods, + swig_rlSiemensTCP_Sf_SwigStatic_attributes, + swig_rlSiemensTCP_Sf_SwigStatic_constants, + swig_rlSiemensTCP_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlSiemensTCP_bases[] = {0,0}; static const char *swig_rlSiemensTCP_base_names[] = {"rlSocket *",0}; -static swig_lua_class _wrap_class_rlSiemensTCP = { "rlSiemensTCP", &SWIGTYPE_p_rlSiemensTCP,_wrap_new_rlSiemensTCP, swig_delete_rlSiemensTCP, swig_rlSiemensTCP_methods, swig_rlSiemensTCP_attributes, { "rlSiemensTCP", swig_rlSiemensTCP_cls_methods, swig_rlSiemensTCP_cls_attributes, swig_rlSiemensTCP_cls_constants }, swig_rlSiemensTCP_bases, swig_rlSiemensTCP_base_names }; +static swig_lua_class _wrap_class_rlSiemensTCP = { "rlSiemensTCP", "rlSiemensTCP", &SWIGTYPE_p_rlSiemensTCP,_proxy__wrap_new_rlSiemensTCP, swig_delete_rlSiemensTCP, swig_rlSiemensTCP_methods, swig_rlSiemensTCP_attributes, &swig_rlSiemensTCP_Sf_SwigStatic, swig_rlSiemensTCP_meta, swig_rlSiemensTCP_bases, swig_rlSiemensTCP_base_names }; static int _wrap_new_rlSpawn(lua_State* L) { int SWIG_arg = 0; @@ -24369,36 +26099,60 @@ static void swig_delete_rlSpawn(void *obj) { rlSpawn *arg1 = (rlSpawn *) obj; delete arg1; } -static swig_lua_method swig_rlSpawn_methods[] = { - {"spawn", _wrap_rlSpawn_spawn}, - {"readLine", _wrap_rlSpawn_readLine}, - {"getchar", _wrap_rlSpawn_getchar}, - {"select", _wrap_rlSpawn_select}, - {"writeString", _wrap_rlSpawn_writeString}, - {"write", _wrap_rlSpawn_write}, - {"printf", _wrap_rlSpawn_printf}, - {"printAll", _wrap_rlSpawn_printAll}, - {"getFilepointer", _wrap_rlSpawn_getFilepointer}, - {"sigkill", _wrap_rlSpawn_sigkill}, - {"readJpegBuffer", _wrap_rlSpawn_readJpegBuffer}, - {0,0} -}; +static int _proxy__wrap_new_rlSpawn(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSpawn); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlSpawn_attributes[] = { - { "pid", _wrap_rlSpawn_pid_get, _wrap_rlSpawn_pid_set}, + { "pid", _wrap_rlSpawn_pid_get, _wrap_rlSpawn_pid_set }, {0,0,0} }; -static swig_lua_attribute swig_rlSpawn_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlSpawn_methods[]= { + { "spawn", _wrap_rlSpawn_spawn}, + { "readLine", _wrap_rlSpawn_readLine}, + { "getchar", _wrap_rlSpawn_getchar}, + { "select", _wrap_rlSpawn_select}, + { "writeString", _wrap_rlSpawn_writeString}, + { "write", _wrap_rlSpawn_write}, + { "printf", _wrap_rlSpawn_printf}, + { "printAll", _wrap_rlSpawn_printAll}, + { "getFilepointer", _wrap_rlSpawn_getFilepointer}, + { "sigkill", _wrap_rlSpawn_sigkill}, + { "readJpegBuffer", _wrap_rlSpawn_readJpegBuffer}, + {0,0} }; -static swig_lua_method swig_rlSpawn_cls_methods[] = { +static swig_lua_method swig_rlSpawn_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlSpawn_cls_constants[] = { + +static swig_lua_attribute swig_rlSpawn_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlSpawn_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlSpawn_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlSpawn_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSpawn_Sf_SwigStatic = { + "rlSpawn", + swig_rlSpawn_Sf_SwigStatic_methods, + swig_rlSpawn_Sf_SwigStatic_attributes, + swig_rlSpawn_Sf_SwigStatic_constants, + swig_rlSpawn_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlSpawn_bases[] = {0}; static const char *swig_rlSpawn_base_names[] = {0}; -static swig_lua_class _wrap_class_rlSpawn = { "rlSpawn", &SWIGTYPE_p_rlSpawn,_wrap_new_rlSpawn, swig_delete_rlSpawn, swig_rlSpawn_methods, swig_rlSpawn_attributes, { "rlSpawn", swig_rlSpawn_cls_methods, swig_rlSpawn_cls_attributes, swig_rlSpawn_cls_constants }, swig_rlSpawn_bases, swig_rlSpawn_base_names }; +static swig_lua_class _wrap_class_rlSpawn = { "rlSpawn", "rlSpawn", &SWIGTYPE_p_rlSpawn,_proxy__wrap_new_rlSpawn, swig_delete_rlSpawn, swig_rlSpawn_methods, swig_rlSpawn_attributes, &swig_rlSpawn_Sf_SwigStatic, swig_rlSpawn_meta, swig_rlSpawn_bases, swig_rlSpawn_base_names }; static int _wrap_new_rlSpreadsheetCell__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -24648,31 +26402,55 @@ static void swig_delete_rlSpreadsheetCell(void *obj) { rlSpreadsheetCell *arg1 = (rlSpreadsheetCell *) obj; delete arg1; } -static swig_lua_method swig_rlSpreadsheetCell_methods[] = { - {"text", _wrap_rlSpreadsheetCell_text}, - {"setText", _wrap_rlSpreadsheetCell_setText}, - {"printf", _wrap_rlSpreadsheetCell_printf}, - {"clear", _wrap_rlSpreadsheetCell_clear}, - {"setNextCell", _wrap_rlSpreadsheetCell_setNextCell}, - {"getNextCell", _wrap_rlSpreadsheetCell_getNextCell}, - {"exists", _wrap_rlSpreadsheetCell_exists}, - {0,0} -}; +static int _proxy__wrap_new_rlSpreadsheetCell(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSpreadsheetCell); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlSpreadsheetCell_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlSpreadsheetCell_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlSpreadsheetCell_methods[]= { + { "text", _wrap_rlSpreadsheetCell_text}, + { "setText", _wrap_rlSpreadsheetCell_setText}, + { "printf", _wrap_rlSpreadsheetCell_printf}, + { "clear", _wrap_rlSpreadsheetCell_clear}, + { "setNextCell", _wrap_rlSpreadsheetCell_setNextCell}, + { "getNextCell", _wrap_rlSpreadsheetCell_getNextCell}, + { "exists", _wrap_rlSpreadsheetCell_exists}, + {0,0} }; -static swig_lua_method swig_rlSpreadsheetCell_cls_methods[] = { +static swig_lua_method swig_rlSpreadsheetCell_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlSpreadsheetCell_cls_constants[] = { + +static swig_lua_attribute swig_rlSpreadsheetCell_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlSpreadsheetCell_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlSpreadsheetCell_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlSpreadsheetCell_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSpreadsheetCell_Sf_SwigStatic = { + "rlSpreadsheetCell", + swig_rlSpreadsheetCell_Sf_SwigStatic_methods, + swig_rlSpreadsheetCell_Sf_SwigStatic_attributes, + swig_rlSpreadsheetCell_Sf_SwigStatic_constants, + swig_rlSpreadsheetCell_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlSpreadsheetCell_bases[] = {0}; static const char *swig_rlSpreadsheetCell_base_names[] = {0}; -static swig_lua_class _wrap_class_rlSpreadsheetCell = { "rlSpreadsheetCell", &SWIGTYPE_p_rlSpreadsheetCell,_wrap_new_rlSpreadsheetCell, swig_delete_rlSpreadsheetCell, swig_rlSpreadsheetCell_methods, swig_rlSpreadsheetCell_attributes, { "rlSpreadsheetCell", swig_rlSpreadsheetCell_cls_methods, swig_rlSpreadsheetCell_cls_attributes, swig_rlSpreadsheetCell_cls_constants }, swig_rlSpreadsheetCell_bases, swig_rlSpreadsheetCell_base_names }; +static swig_lua_class _wrap_class_rlSpreadsheetCell = { "rlSpreadsheetCell", "rlSpreadsheetCell", &SWIGTYPE_p_rlSpreadsheetCell,_proxy__wrap_new_rlSpreadsheetCell, swig_delete_rlSpreadsheetCell, swig_rlSpreadsheetCell_methods, swig_rlSpreadsheetCell_attributes, &swig_rlSpreadsheetCell_Sf_SwigStatic, swig_rlSpreadsheetCell_meta, swig_rlSpreadsheetCell_bases, swig_rlSpreadsheetCell_base_names }; static int _wrap_new_rlSpreadsheetRow(lua_State* L) { int SWIG_arg = 0; @@ -25166,34 +26944,58 @@ static void swig_delete_rlSpreadsheetRow(void *obj) { rlSpreadsheetRow *arg1 = (rlSpreadsheetRow *) obj; delete arg1; } -static swig_lua_method swig_rlSpreadsheetRow_methods[] = { - {"text", _wrap_rlSpreadsheetRow_text}, - {"setText", _wrap_rlSpreadsheetRow_setText}, - {"printf", _wrap_rlSpreadsheetRow_printf}, - {"clear", _wrap_rlSpreadsheetRow_clear}, - {"setNextRow", _wrap_rlSpreadsheetRow_setNextRow}, - {"getNextRow", _wrap_rlSpreadsheetRow_getNextRow}, - {"getFirstCell", _wrap_rlSpreadsheetRow_getFirstCell}, - {"readRow", _wrap_rlSpreadsheetRow_readRow}, - {"writeRow", _wrap_rlSpreadsheetRow_writeRow}, - {"exists", _wrap_rlSpreadsheetRow_exists}, - {0,0} -}; +static int _proxy__wrap_new_rlSpreadsheetRow(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSpreadsheetRow); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlSpreadsheetRow_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlSpreadsheetRow_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlSpreadsheetRow_methods[]= { + { "text", _wrap_rlSpreadsheetRow_text}, + { "setText", _wrap_rlSpreadsheetRow_setText}, + { "printf", _wrap_rlSpreadsheetRow_printf}, + { "clear", _wrap_rlSpreadsheetRow_clear}, + { "setNextRow", _wrap_rlSpreadsheetRow_setNextRow}, + { "getNextRow", _wrap_rlSpreadsheetRow_getNextRow}, + { "getFirstCell", _wrap_rlSpreadsheetRow_getFirstCell}, + { "readRow", _wrap_rlSpreadsheetRow_readRow}, + { "writeRow", _wrap_rlSpreadsheetRow_writeRow}, + { "exists", _wrap_rlSpreadsheetRow_exists}, + {0,0} }; -static swig_lua_method swig_rlSpreadsheetRow_cls_methods[] = { +static swig_lua_method swig_rlSpreadsheetRow_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlSpreadsheetRow_cls_constants[] = { + +static swig_lua_attribute swig_rlSpreadsheetRow_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlSpreadsheetRow_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlSpreadsheetRow_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlSpreadsheetRow_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSpreadsheetRow_Sf_SwigStatic = { + "rlSpreadsheetRow", + swig_rlSpreadsheetRow_Sf_SwigStatic_methods, + swig_rlSpreadsheetRow_Sf_SwigStatic_attributes, + swig_rlSpreadsheetRow_Sf_SwigStatic_constants, + swig_rlSpreadsheetRow_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlSpreadsheetRow_bases[] = {0}; static const char *swig_rlSpreadsheetRow_base_names[] = {0}; -static swig_lua_class _wrap_class_rlSpreadsheetRow = { "rlSpreadsheetRow", &SWIGTYPE_p_rlSpreadsheetRow,_wrap_new_rlSpreadsheetRow, swig_delete_rlSpreadsheetRow, swig_rlSpreadsheetRow_methods, swig_rlSpreadsheetRow_attributes, { "rlSpreadsheetRow", swig_rlSpreadsheetRow_cls_methods, swig_rlSpreadsheetRow_cls_attributes, swig_rlSpreadsheetRow_cls_constants }, swig_rlSpreadsheetRow_bases, swig_rlSpreadsheetRow_base_names }; +static swig_lua_class _wrap_class_rlSpreadsheetRow = { "rlSpreadsheetRow", "rlSpreadsheetRow", &SWIGTYPE_p_rlSpreadsheetRow,_proxy__wrap_new_rlSpreadsheetRow, swig_delete_rlSpreadsheetRow, swig_rlSpreadsheetRow_methods, swig_rlSpreadsheetRow_attributes, &swig_rlSpreadsheetRow_Sf_SwigStatic, swig_rlSpreadsheetRow_meta, swig_rlSpreadsheetRow_bases, swig_rlSpreadsheetRow_base_names }; static int _wrap_new_rlSpreadsheetTable__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -25571,35 +27373,59 @@ static void swig_delete_rlSpreadsheetTable(void *obj) { rlSpreadsheetTable *arg1 = (rlSpreadsheetTable *) obj; delete arg1; } -static swig_lua_method swig_rlSpreadsheetTable_methods[] = { - {"text", _wrap_rlSpreadsheetTable_text}, - {"setText", _wrap_rlSpreadsheetTable_setText}, - {"printf", _wrap_rlSpreadsheetTable_printf}, - {"clear", _wrap_rlSpreadsheetTable_clear}, - {"read", _wrap_rlSpreadsheetTable_read}, - {"write", _wrap_rlSpreadsheetTable_write}, - {"setNextTable", _wrap_rlSpreadsheetTable_setNextTable}, - {"getNextTable", _wrap_rlSpreadsheetTable_getNextTable}, - {"getFirstRow", _wrap_rlSpreadsheetTable_getFirstRow}, - {"exists", _wrap_rlSpreadsheetTable_exists}, - {"setDelimitor", _wrap_rlSpreadsheetTable_setDelimitor}, - {0,0} -}; +static int _proxy__wrap_new_rlSpreadsheetTable(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSpreadsheetTable); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlSpreadsheetTable_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlSpreadsheetTable_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlSpreadsheetTable_methods[]= { + { "text", _wrap_rlSpreadsheetTable_text}, + { "setText", _wrap_rlSpreadsheetTable_setText}, + { "printf", _wrap_rlSpreadsheetTable_printf}, + { "clear", _wrap_rlSpreadsheetTable_clear}, + { "read", _wrap_rlSpreadsheetTable_read}, + { "write", _wrap_rlSpreadsheetTable_write}, + { "setNextTable", _wrap_rlSpreadsheetTable_setNextTable}, + { "getNextTable", _wrap_rlSpreadsheetTable_getNextTable}, + { "getFirstRow", _wrap_rlSpreadsheetTable_getFirstRow}, + { "exists", _wrap_rlSpreadsheetTable_exists}, + { "setDelimitor", _wrap_rlSpreadsheetTable_setDelimitor}, + {0,0} }; -static swig_lua_method swig_rlSpreadsheetTable_cls_methods[] = { +static swig_lua_method swig_rlSpreadsheetTable_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlSpreadsheetTable_cls_constants[] = { + +static swig_lua_attribute swig_rlSpreadsheetTable_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlSpreadsheetTable_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlSpreadsheetTable_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlSpreadsheetTable_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSpreadsheetTable_Sf_SwigStatic = { + "rlSpreadsheetTable", + swig_rlSpreadsheetTable_Sf_SwigStatic_methods, + swig_rlSpreadsheetTable_Sf_SwigStatic_attributes, + swig_rlSpreadsheetTable_Sf_SwigStatic_constants, + swig_rlSpreadsheetTable_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlSpreadsheetTable_bases[] = {0}; static const char *swig_rlSpreadsheetTable_base_names[] = {0}; -static swig_lua_class _wrap_class_rlSpreadsheetTable = { "rlSpreadsheetTable", &SWIGTYPE_p_rlSpreadsheetTable,_wrap_new_rlSpreadsheetTable, swig_delete_rlSpreadsheetTable, swig_rlSpreadsheetTable_methods, swig_rlSpreadsheetTable_attributes, { "rlSpreadsheetTable", swig_rlSpreadsheetTable_cls_methods, swig_rlSpreadsheetTable_cls_attributes, swig_rlSpreadsheetTable_cls_constants }, swig_rlSpreadsheetTable_bases, swig_rlSpreadsheetTable_base_names }; +static swig_lua_class _wrap_class_rlSpreadsheetTable = { "rlSpreadsheetTable", "rlSpreadsheetTable", &SWIGTYPE_p_rlSpreadsheetTable,_proxy__wrap_new_rlSpreadsheetTable, swig_delete_rlSpreadsheetTable, swig_rlSpreadsheetTable_methods, swig_rlSpreadsheetTable_attributes, &swig_rlSpreadsheetTable_Sf_SwigStatic, swig_rlSpreadsheetTable_meta, swig_rlSpreadsheetTable_bases, swig_rlSpreadsheetTable_base_names }; static int _wrap_new_rlSpreadsheetWorkbook__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -25935,33 +27761,57 @@ static void swig_delete_rlSpreadsheetWorkbook(void *obj) { rlSpreadsheetWorkbook *arg1 = (rlSpreadsheetWorkbook *) obj; delete arg1; } -static swig_lua_method swig_rlSpreadsheetWorkbook_methods[] = { - {"text", _wrap_rlSpreadsheetWorkbook_text}, - {"setText", _wrap_rlSpreadsheetWorkbook_setText}, - {"printf", _wrap_rlSpreadsheetWorkbook_printf}, - {"clear", _wrap_rlSpreadsheetWorkbook_clear}, - {"read", _wrap_rlSpreadsheetWorkbook_read}, - {"write", _wrap_rlSpreadsheetWorkbook_write}, - {"exists", _wrap_rlSpreadsheetWorkbook_exists}, - {"getFirstTable", _wrap_rlSpreadsheetWorkbook_getFirstTable}, - {"setDelimitor", _wrap_rlSpreadsheetWorkbook_setDelimitor}, - {0,0} -}; +static int _proxy__wrap_new_rlSpreadsheetWorkbook(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSpreadsheetWorkbook); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlSpreadsheetWorkbook_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlSpreadsheetWorkbook_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlSpreadsheetWorkbook_methods[]= { + { "text", _wrap_rlSpreadsheetWorkbook_text}, + { "setText", _wrap_rlSpreadsheetWorkbook_setText}, + { "printf", _wrap_rlSpreadsheetWorkbook_printf}, + { "clear", _wrap_rlSpreadsheetWorkbook_clear}, + { "read", _wrap_rlSpreadsheetWorkbook_read}, + { "write", _wrap_rlSpreadsheetWorkbook_write}, + { "exists", _wrap_rlSpreadsheetWorkbook_exists}, + { "getFirstTable", _wrap_rlSpreadsheetWorkbook_getFirstTable}, + { "setDelimitor", _wrap_rlSpreadsheetWorkbook_setDelimitor}, + {0,0} }; -static swig_lua_method swig_rlSpreadsheetWorkbook_cls_methods[] = { +static swig_lua_method swig_rlSpreadsheetWorkbook_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlSpreadsheetWorkbook_cls_constants[] = { + +static swig_lua_attribute swig_rlSpreadsheetWorkbook_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlSpreadsheetWorkbook_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlSpreadsheetWorkbook_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlSpreadsheetWorkbook_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSpreadsheetWorkbook_Sf_SwigStatic = { + "rlSpreadsheetWorkbook", + swig_rlSpreadsheetWorkbook_Sf_SwigStatic_methods, + swig_rlSpreadsheetWorkbook_Sf_SwigStatic_attributes, + swig_rlSpreadsheetWorkbook_Sf_SwigStatic_constants, + swig_rlSpreadsheetWorkbook_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlSpreadsheetWorkbook_bases[] = {0}; static const char *swig_rlSpreadsheetWorkbook_base_names[] = {0}; -static swig_lua_class _wrap_class_rlSpreadsheetWorkbook = { "rlSpreadsheetWorkbook", &SWIGTYPE_p_rlSpreadsheetWorkbook,_wrap_new_rlSpreadsheetWorkbook, swig_delete_rlSpreadsheetWorkbook, swig_rlSpreadsheetWorkbook_methods, swig_rlSpreadsheetWorkbook_attributes, { "rlSpreadsheetWorkbook", swig_rlSpreadsheetWorkbook_cls_methods, swig_rlSpreadsheetWorkbook_cls_attributes, swig_rlSpreadsheetWorkbook_cls_constants }, swig_rlSpreadsheetWorkbook_bases, swig_rlSpreadsheetWorkbook_base_names }; +static swig_lua_class _wrap_class_rlSpreadsheetWorkbook = { "rlSpreadsheetWorkbook", "rlSpreadsheetWorkbook", &SWIGTYPE_p_rlSpreadsheetWorkbook,_proxy__wrap_new_rlSpreadsheetWorkbook, swig_delete_rlSpreadsheetWorkbook, swig_rlSpreadsheetWorkbook_methods, swig_rlSpreadsheetWorkbook_attributes, &swig_rlSpreadsheetWorkbook_Sf_SwigStatic, swig_rlSpreadsheetWorkbook_meta, swig_rlSpreadsheetWorkbook_bases, swig_rlSpreadsheetWorkbook_base_names }; static int _wrap_rlCRLF_get(lua_State* L) { int SWIG_arg = 0; @@ -26065,6 +27915,30 @@ static int _wrap_new_rlString__SWIG_3(lua_State* L) { } +static int _wrap_new_rlString__SWIG_4(lua_State* L) { + int SWIG_arg = 0; + rlString *arg1 = 0 ; + rlString *result = 0 ; + + SWIG_check_num_args("rlString::rlString",1,1) + if(!lua_isuserdata(L,1)) SWIG_fail_arg("rlString::rlString",1,"rlString const &"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlString,0))){ + SWIG_fail_ptr("new_rlString",1,SWIGTYPE_p_rlString); + } + + result = (rlString *)new rlString((rlString const &)*arg1); + SWIG_NewPointerObj(L,result,SWIGTYPE_p_rlString,1); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + static int _wrap_new_rlString(lua_State* L) { int argc; int argv[2]={ @@ -26103,6 +27977,20 @@ static int _wrap_new_rlString(lua_State* L) { return _wrap_new_rlString__SWIG_3(L); } } + if (argc == 1) { + int _v; + { + void *ptr; + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_rlString, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + return _wrap_new_rlString__SWIG_4(L); + } + } if (argc == 1) { int _v; { @@ -26118,7 +28006,8 @@ static int _wrap_new_rlString(lua_State* L) { " rlString::rlString(char const *)\n" " rlString::rlString()\n" " rlString::rlString(rlString &)\n" - " rlString::rlString(rlString *)\n"); + " rlString::rlString(rlString *)\n" + " rlString::rlString(rlString const &)\n"); lua_error(L);return 0; } @@ -26298,6 +28187,37 @@ static int _wrap_rlString___eq__SWIG_1(lua_State* L) { } +static int _wrap_rlString___eq__SWIG_2(lua_State* L) { + int SWIG_arg = 0; + rlString *arg1 = (rlString *) 0 ; + rlString *arg2 = 0 ; + int result; + + SWIG_check_num_args("rlString::operator ==",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlString::operator ==",1,"rlString *"); + if(!lua_isuserdata(L,2)) SWIG_fail_arg("rlString::operator ==",2,"rlString const &"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlString,0))){ + SWIG_fail_ptr("rlString___eq",1,SWIGTYPE_p_rlString); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_rlString,0))){ + SWIG_fail_ptr("rlString___eq",2,SWIGTYPE_p_rlString); + } + + result = (int)(arg1)->operator ==((rlString const &)*arg2); + lua_pushnumber(L, (lua_Number) result); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + static int _wrap_rlString___eq(lua_State* L) { int argc; int argv[3]={ @@ -26329,6 +28249,30 @@ static int _wrap_rlString___eq(lua_State* L) { } } } + if (argc == 2) { + int _v; + { + void *ptr; + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_rlString, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + { + void *ptr; + if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_rlString, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + return _wrap_rlString___eq__SWIG_2(L); + } + } + } if (argc == 2) { int _v; { @@ -26352,12 +28296,13 @@ static int _wrap_rlString___eq(lua_State* L) { SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'rlString___eq'\n" " Possible C/C++ prototypes are:\n" " rlString::operator ==(char const *)\n" - " rlString::operator ==(rlString &)\n"); + " rlString::operator ==(rlString &)\n" + " rlString::operator ==(rlString const &)\n"); lua_error(L);return 0; } -static int _wrap_rlString_text(lua_State* L) { +static int _wrap_rlString_text__SWIG_0(lua_State* L) { int SWIG_arg = 0; rlString *arg1 = (rlString *) 0 ; char *result = 0 ; @@ -26381,6 +28326,74 @@ static int _wrap_rlString_text(lua_State* L) { } +static int _wrap_rlString_text__SWIG_1(lua_State* L) { + int SWIG_arg = 0; + rlString *arg1 = (rlString *) 0 ; + char *result = 0 ; + + SWIG_check_num_args("rlString::text",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlString::text",1,"rlString const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlString,0))){ + SWIG_fail_ptr("rlString_text",1,SWIGTYPE_p_rlString); + } + + result = (char *)((rlString const *)arg1)->text(); + lua_pushstring(L,(const char *)result); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_rlString_text(lua_State* L) { + int argc; + int argv[2]={ + 1,2 + }; + + argc = lua_gettop(L); + if (argc == 1) { + int _v; + { + void *ptr; + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_rlString, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + return _wrap_rlString_text__SWIG_0(L); + } + } + if (argc == 1) { + int _v; + { + void *ptr; + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_rlString, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + return _wrap_rlString_text__SWIG_1(L); + } + } + + SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'rlString_text'\n" + " Possible C/C++ prototypes are:\n" + " rlString::text()\n" + " rlString::text() const\n"); + lua_error(L);return 0; +} + + static int _wrap_rlString_setText(lua_State* L) { int SWIG_arg = 0; rlString *arg1 = (rlString *) 0 ; @@ -26933,45 +28946,71 @@ static void swig_delete_rlString(void *obj) { rlString *arg1 = (rlString *) obj; delete arg1; } -static swig_lua_method swig_rlString_methods[] = { - {"__add", _wrap_rlString___add}, - {"__eq", _wrap_rlString___eq}, - {"text", _wrap_rlString_text}, - {"setText", _wrap_rlString_setText}, - {"printf", _wrap_rlString_printf}, - {"strcpy", _wrap_rlString_strcpy}, - {"cat", _wrap_rlString_cat}, - {"upper", _wrap_rlString_upper}, - {"lower", _wrap_rlString_lower}, - {"startsWith", _wrap_rlString_startsWith}, - {"strnocasecmp", _wrap_rlString_strnocasecmp}, - {"strnnocasecmp", _wrap_rlString_strnnocasecmp}, - {"strstr", _wrap_rlString_strstr}, - {"strchr", _wrap_rlString_strchr}, - {"strrchr", _wrap_rlString_strrchr}, - {"removeQuotas", _wrap_rlString_removeQuotas}, - {"removeNewline", _wrap_rlString_removeNewline}, - {"read", _wrap_rlString_read}, - {"write", _wrap_rlString_write}, - {"toFilename", _wrap_rlString_toFilename}, - {"toDirname", _wrap_rlString_toDirname}, - {0,0} -}; +static int _proxy__wrap_new_rlString(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlString); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlString_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlString_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlString_methods[]= { + { "__add", _wrap_rlString___add}, + { "__eq", _wrap_rlString___eq}, + { "text", _wrap_rlString_text}, + { "setText", _wrap_rlString_setText}, + { "printf", _wrap_rlString_printf}, + { "strcpy", _wrap_rlString_strcpy}, + { "cat", _wrap_rlString_cat}, + { "upper", _wrap_rlString_upper}, + { "lower", _wrap_rlString_lower}, + { "startsWith", _wrap_rlString_startsWith}, + { "strnocasecmp", _wrap_rlString_strnocasecmp}, + { "strnnocasecmp", _wrap_rlString_strnnocasecmp}, + { "strstr", _wrap_rlString_strstr}, + { "strchr", _wrap_rlString_strchr}, + { "strrchr", _wrap_rlString_strrchr}, + { "removeQuotas", _wrap_rlString_removeQuotas}, + { "removeNewline", _wrap_rlString_removeNewline}, + { "read", _wrap_rlString_read}, + { "write", _wrap_rlString_write}, + { "toFilename", _wrap_rlString_toFilename}, + { "toDirname", _wrap_rlString_toDirname}, + {0,0} }; -static swig_lua_method swig_rlString_cls_methods[] = { +static swig_lua_method swig_rlString_meta[] = { + { "__add", _wrap_rlString___add}, + { "__eq", _wrap_rlString___eq}, {0,0} }; -static swig_lua_const_info swig_rlString_cls_constants[] = { + +static swig_lua_attribute swig_rlString_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlString_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlString_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlString_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlString_Sf_SwigStatic = { + "rlString", + swig_rlString_Sf_SwigStatic_methods, + swig_rlString_Sf_SwigStatic_attributes, + swig_rlString_Sf_SwigStatic_constants, + swig_rlString_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlString_bases[] = {0}; static const char *swig_rlString_base_names[] = {0}; -static swig_lua_class _wrap_class_rlString = { "rlString", &SWIGTYPE_p_rlString,_wrap_new_rlString, swig_delete_rlString, swig_rlString_methods, swig_rlString_attributes, { "rlString", swig_rlString_cls_methods, swig_rlString_cls_attributes, swig_rlString_cls_constants }, swig_rlString_bases, swig_rlString_base_names }; +static swig_lua_class _wrap_class_rlString = { "rlString", "rlString", &SWIGTYPE_p_rlString,_proxy__wrap_new_rlString, swig_delete_rlString, swig_rlString_methods, swig_rlString_attributes, &swig_rlString_Sf_SwigStatic, swig_rlString_meta, swig_rlString_bases, swig_rlString_base_names }; static int _wrap_new_rlSvgPosition__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -27613,37 +29652,61 @@ static void swig_delete_rlSvgPosition(void *obj) { rlSvgPosition *arg1 = (rlSvgPosition *) obj; delete arg1; } -static swig_lua_method swig_rlSvgPosition_methods[] = { - {"setInit", _wrap_rlSvgPosition_setInit}, - {"move", _wrap_rlSvgPosition_move}, - {"moveRelative", _wrap_rlSvgPosition_moveRelative}, - {"scale", _wrap_rlSvgPosition_scale}, - {"scaleRelative", _wrap_rlSvgPosition_scaleRelative}, - {"rotate", _wrap_rlSvgPosition_rotate}, - {0,0} -}; +static int _proxy__wrap_new_rlSvgPosition(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSvgPosition); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlSvgPosition_attributes[] = { - { "sx", _wrap_rlSvgPosition_sx_get, _wrap_rlSvgPosition_sx_set}, - { "alpha", _wrap_rlSvgPosition_alpha_get, _wrap_rlSvgPosition_alpha_set}, - { "x0", _wrap_rlSvgPosition_x0_get, _wrap_rlSvgPosition_x0_set}, - { "y0", _wrap_rlSvgPosition_y0_get, _wrap_rlSvgPosition_y0_set}, - { "cx", _wrap_rlSvgPosition_cx_get, _wrap_rlSvgPosition_cx_set}, - { "cy", _wrap_rlSvgPosition_cy_get, _wrap_rlSvgPosition_cy_set}, - { "init", _wrap_rlSvgPosition_init_get, _wrap_rlSvgPosition_init_set}, + { "sx", _wrap_rlSvgPosition_sx_get, _wrap_rlSvgPosition_sx_set }, + { "alpha", _wrap_rlSvgPosition_alpha_get, _wrap_rlSvgPosition_alpha_set }, + { "x0", _wrap_rlSvgPosition_x0_get, _wrap_rlSvgPosition_x0_set }, + { "y0", _wrap_rlSvgPosition_y0_get, _wrap_rlSvgPosition_y0_set }, + { "cx", _wrap_rlSvgPosition_cx_get, _wrap_rlSvgPosition_cx_set }, + { "cy", _wrap_rlSvgPosition_cy_get, _wrap_rlSvgPosition_cy_set }, + { "init", _wrap_rlSvgPosition_init_get, _wrap_rlSvgPosition_init_set }, {0,0,0} }; -static swig_lua_attribute swig_rlSvgPosition_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlSvgPosition_methods[]= { + { "setInit", _wrap_rlSvgPosition_setInit}, + { "move", _wrap_rlSvgPosition_move}, + { "moveRelative", _wrap_rlSvgPosition_moveRelative}, + { "scale", _wrap_rlSvgPosition_scale}, + { "scaleRelative", _wrap_rlSvgPosition_scaleRelative}, + { "rotate", _wrap_rlSvgPosition_rotate}, + {0,0} }; -static swig_lua_method swig_rlSvgPosition_cls_methods[] = { +static swig_lua_method swig_rlSvgPosition_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlSvgPosition_cls_constants[] = { + +static swig_lua_attribute swig_rlSvgPosition_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlSvgPosition_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlSvgPosition_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlSvgPosition_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSvgPosition_Sf_SwigStatic = { + "rlSvgPosition", + swig_rlSvgPosition_Sf_SwigStatic_methods, + swig_rlSvgPosition_Sf_SwigStatic_attributes, + swig_rlSvgPosition_Sf_SwigStatic_constants, + swig_rlSvgPosition_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlSvgPosition_bases[] = {0}; static const char *swig_rlSvgPosition_base_names[] = {0}; -static swig_lua_class _wrap_class_rlSvgPosition = { "rlSvgPosition", &SWIGTYPE_p_rlSvgPosition,_wrap_new_rlSvgPosition, swig_delete_rlSvgPosition, swig_rlSvgPosition_methods, swig_rlSvgPosition_attributes, { "rlSvgPosition", swig_rlSvgPosition_cls_methods, swig_rlSvgPosition_cls_attributes, swig_rlSvgPosition_cls_constants }, swig_rlSvgPosition_bases, swig_rlSvgPosition_base_names }; +static swig_lua_class _wrap_class_rlSvgPosition = { "rlSvgPosition", "rlSvgPosition", &SWIGTYPE_p_rlSvgPosition,_proxy__wrap_new_rlSvgPosition, swig_delete_rlSvgPosition, swig_rlSvgPosition_methods, swig_rlSvgPosition_attributes, &swig_rlSvgPosition_Sf_SwigStatic, swig_rlSvgPosition_meta, swig_rlSvgPosition_bases, swig_rlSvgPosition_base_names }; static int _wrap_new_rlSvgAnimator(lua_State* L) { int SWIG_arg = 0; @@ -29002,62 +31065,86 @@ static void swig_delete_rlSvgAnimator(void *obj) { rlSvgAnimator *arg1 = (rlSvgAnimator *) obj; delete arg1; } -static swig_lua_method swig_rlSvgAnimator_methods[] = { - {"setSocket", _wrap_rlSvgAnimator_setSocket}, - {"setId", _wrap_rlSvgAnimator_setId}, - {"read", _wrap_rlSvgAnimator_read}, - {"writeSocket", _wrap_rlSvgAnimator_writeSocket}, - {"svgPrintf", _wrap_rlSvgAnimator_svgPrintf}, - {"svgRecursivePrintf", _wrap_rlSvgAnimator_svgRecursivePrintf}, - {"svgSearchAndReplace", _wrap_rlSvgAnimator_svgSearchAndReplace}, - {"svgRecursiveSearchAndReplace", _wrap_rlSvgAnimator_svgRecursiveSearchAndReplace}, - {"svgTextPrintf", _wrap_rlSvgAnimator_svgTextPrintf}, - {"svgRemoveStyleOption", _wrap_rlSvgAnimator_svgRemoveStyleOption}, - {"svgRecursiveRemoveStyleOption", _wrap_rlSvgAnimator_svgRecursiveRemoveStyleOption}, - {"svgChangeStyleOption", _wrap_rlSvgAnimator_svgChangeStyleOption}, - {"svgRecursiveChangeStyleOption", _wrap_rlSvgAnimator_svgRecursiveChangeStyleOption}, - {"svgSetStyleOption", _wrap_rlSvgAnimator_svgSetStyleOption}, - {"svgRecursiveSetStyleOption", _wrap_rlSvgAnimator_svgRecursiveSetStyleOption}, - {"show", _wrap_rlSvgAnimator_show}, - {"setMatrix", _wrap_rlSvgAnimator_setMatrix}, - {"setMainObject", _wrap_rlSvgAnimator_setMainObject}, - {"mainObject", _wrap_rlSvgAnimator_mainObject}, - {"setXY0", _wrap_rlSvgAnimator_setXY0}, - {"x0", _wrap_rlSvgAnimator_x0}, - {"y0", _wrap_rlSvgAnimator_y0}, - {"setMouseXY0", _wrap_rlSvgAnimator_setMouseXY0}, - {"mouseX0", _wrap_rlSvgAnimator_mouseX0}, - {"mouseY0", _wrap_rlSvgAnimator_mouseY0}, - {"setMouseXY1", _wrap_rlSvgAnimator_setMouseXY1}, - {"mouseX1", _wrap_rlSvgAnimator_mouseX1}, - {"mouseY1", _wrap_rlSvgAnimator_mouseY1}, - {"setScale", _wrap_rlSvgAnimator_setScale}, - {"scale", _wrap_rlSvgAnimator_scale}, - {"zoomCenter", _wrap_rlSvgAnimator_zoomCenter}, - {"zoomRect", _wrap_rlSvgAnimator_zoomRect}, - {"setMainObjectMatrix", _wrap_rlSvgAnimator_setMainObjectMatrix}, - {"setWindowSize", _wrap_rlSvgAnimator_setWindowSize}, - {"windowWidth", _wrap_rlSvgAnimator_windowWidth}, - {"windowHeight", _wrap_rlSvgAnimator_windowHeight}, - {"moveMainObject", _wrap_rlSvgAnimator_moveMainObject}, - {0,0} -}; +static int _proxy__wrap_new_rlSvgAnimator(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSvgAnimator); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlSvgAnimator_attributes[] = { - { "isModified", _wrap_rlSvgAnimator_isModified_get, _wrap_rlSvgAnimator_isModified_set}, + { "isModified", _wrap_rlSvgAnimator_isModified_get, _wrap_rlSvgAnimator_isModified_set }, {0,0,0} }; -static swig_lua_attribute swig_rlSvgAnimator_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlSvgAnimator_methods[]= { + { "setSocket", _wrap_rlSvgAnimator_setSocket}, + { "setId", _wrap_rlSvgAnimator_setId}, + { "read", _wrap_rlSvgAnimator_read}, + { "writeSocket", _wrap_rlSvgAnimator_writeSocket}, + { "svgPrintf", _wrap_rlSvgAnimator_svgPrintf}, + { "svgRecursivePrintf", _wrap_rlSvgAnimator_svgRecursivePrintf}, + { "svgSearchAndReplace", _wrap_rlSvgAnimator_svgSearchAndReplace}, + { "svgRecursiveSearchAndReplace", _wrap_rlSvgAnimator_svgRecursiveSearchAndReplace}, + { "svgTextPrintf", _wrap_rlSvgAnimator_svgTextPrintf}, + { "svgRemoveStyleOption", _wrap_rlSvgAnimator_svgRemoveStyleOption}, + { "svgRecursiveRemoveStyleOption", _wrap_rlSvgAnimator_svgRecursiveRemoveStyleOption}, + { "svgChangeStyleOption", _wrap_rlSvgAnimator_svgChangeStyleOption}, + { "svgRecursiveChangeStyleOption", _wrap_rlSvgAnimator_svgRecursiveChangeStyleOption}, + { "svgSetStyleOption", _wrap_rlSvgAnimator_svgSetStyleOption}, + { "svgRecursiveSetStyleOption", _wrap_rlSvgAnimator_svgRecursiveSetStyleOption}, + { "show", _wrap_rlSvgAnimator_show}, + { "setMatrix", _wrap_rlSvgAnimator_setMatrix}, + { "setMainObject", _wrap_rlSvgAnimator_setMainObject}, + { "mainObject", _wrap_rlSvgAnimator_mainObject}, + { "setXY0", _wrap_rlSvgAnimator_setXY0}, + { "x0", _wrap_rlSvgAnimator_x0}, + { "y0", _wrap_rlSvgAnimator_y0}, + { "setMouseXY0", _wrap_rlSvgAnimator_setMouseXY0}, + { "mouseX0", _wrap_rlSvgAnimator_mouseX0}, + { "mouseY0", _wrap_rlSvgAnimator_mouseY0}, + { "setMouseXY1", _wrap_rlSvgAnimator_setMouseXY1}, + { "mouseX1", _wrap_rlSvgAnimator_mouseX1}, + { "mouseY1", _wrap_rlSvgAnimator_mouseY1}, + { "setScale", _wrap_rlSvgAnimator_setScale}, + { "scale", _wrap_rlSvgAnimator_scale}, + { "zoomCenter", _wrap_rlSvgAnimator_zoomCenter}, + { "zoomRect", _wrap_rlSvgAnimator_zoomRect}, + { "setMainObjectMatrix", _wrap_rlSvgAnimator_setMainObjectMatrix}, + { "setWindowSize", _wrap_rlSvgAnimator_setWindowSize}, + { "windowWidth", _wrap_rlSvgAnimator_windowWidth}, + { "windowHeight", _wrap_rlSvgAnimator_windowHeight}, + { "moveMainObject", _wrap_rlSvgAnimator_moveMainObject}, + {0,0} }; -static swig_lua_method swig_rlSvgAnimator_cls_methods[] = { +static swig_lua_method swig_rlSvgAnimator_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlSvgAnimator_cls_constants[] = { + +static swig_lua_attribute swig_rlSvgAnimator_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlSvgAnimator_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlSvgAnimator_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlSvgAnimator_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSvgAnimator_Sf_SwigStatic = { + "rlSvgAnimator", + swig_rlSvgAnimator_Sf_SwigStatic_methods, + swig_rlSvgAnimator_Sf_SwigStatic_attributes, + swig_rlSvgAnimator_Sf_SwigStatic_constants, + swig_rlSvgAnimator_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlSvgAnimator_bases[] = {0}; static const char *swig_rlSvgAnimator_base_names[] = {0}; -static swig_lua_class _wrap_class_rlSvgAnimator = { "rlSvgAnimator", &SWIGTYPE_p_rlSvgAnimator,_wrap_new_rlSvgAnimator, swig_delete_rlSvgAnimator, swig_rlSvgAnimator_methods, swig_rlSvgAnimator_attributes, { "rlSvgAnimator", swig_rlSvgAnimator_cls_methods, swig_rlSvgAnimator_cls_attributes, swig_rlSvgAnimator_cls_constants }, swig_rlSvgAnimator_bases, swig_rlSvgAnimator_base_names }; +static swig_lua_class _wrap_class_rlSvgAnimator = { "rlSvgAnimator", "rlSvgAnimator", &SWIGTYPE_p_rlSvgAnimator,_proxy__wrap_new_rlSvgAnimator, swig_delete_rlSvgAnimator, swig_rlSvgAnimator_methods, swig_rlSvgAnimator_attributes, &swig_rlSvgAnimator_Sf_SwigStatic, swig_rlSvgAnimator_meta, swig_rlSvgAnimator_bases, swig_rlSvgAnimator_base_names }; static int _wrap_new_rlSvgCat(lua_State* L) { int SWIG_arg = 0; @@ -29121,1190 +31208,7 @@ static int _wrap_rlSvgCat_open__SWIG_1(lua_State* L) { } arg2 = (char *)lua_tostring(L, 2); - result = (int)(arg1)->open((char const *)arg2); - lua_pushnumber(L, (lua_Number) result); SWIG_arg++; - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_rlSvgCat_open(lua_State* L) { - int argc; - int argv[4]={ - 1,2,3,4 - }; - - argc = lua_gettop(L); - if (argc == 2) { - int _v; - { - void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_rlSvgCat, 0)) { - _v = 0; - } else { - _v = 1; - } - } - if (_v) { - { - _v = SWIG_lua_isnilstring(L,argv[1]); - } - if (_v) { - return _wrap_rlSvgCat_open__SWIG_1(L); - } - } - } - if (argc == 3) { - int _v; - { - void *ptr; - if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_rlSvgCat, 0)) { - _v = 0; - } else { - _v = 1; - } - } - if (_v) { - { - _v = SWIG_lua_isnilstring(L,argv[1]); - } - if (_v) { - { - _v = SWIG_lua_isnilstring(L,argv[2]); - } - if (_v) { - return _wrap_rlSvgCat_open__SWIG_0(L); - } - } - } - } - - SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'rlSvgCat_open'\n" - " Possible C/C++ prototypes are:\n" - " rlSvgCat::open(char const *,char const *)\n" - " rlSvgCat::open(char const *)\n"); - lua_error(L);return 0; -} - - -static int _wrap_rlSvgCat_reopenSocket(lua_State* L) { - int SWIG_arg = 0; - rlSvgCat *arg1 = (rlSvgCat *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int result; - - SWIG_check_num_args("rlSvgCat::reopenSocket",3,3) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlSvgCat::reopenSocket",1,"rlSvgCat *"); - if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("rlSvgCat::reopenSocket",2,"char const *"); - if(!lua_isnumber(L,3)) SWIG_fail_arg("rlSvgCat::reopenSocket",3,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlSvgCat,0))){ - SWIG_fail_ptr("rlSvgCat_reopenSocket",1,SWIGTYPE_p_rlSvgCat); - } - - arg2 = (char *)lua_tostring(L, 2); - arg3 = (int)lua_tonumber(L, 3); - result = (int)(arg1)->reopenSocket((char const *)arg2,arg3); - lua_pushnumber(L, (lua_Number) result); SWIG_arg++; - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_rlSvgCat_cat(lua_State* L) { - int SWIG_arg = 0; - rlSvgCat *arg1 = (rlSvgCat *) 0 ; - - SWIG_check_num_args("rlSvgCat::cat",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlSvgCat::cat",1,"rlSvgCat *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlSvgCat,0))){ - SWIG_fail_ptr("rlSvgCat_cat",1,SWIGTYPE_p_rlSvgCat); - } - - (arg1)->cat(); - - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_rlSvgCat_close(lua_State* L) { - int SWIG_arg = 0; - rlSvgCat *arg1 = (rlSvgCat *) 0 ; - - SWIG_check_num_args("rlSvgCat::close",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlSvgCat::close",1,"rlSvgCat *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlSvgCat,0))){ - SWIG_fail_ptr("rlSvgCat_close",1,SWIGTYPE_p_rlSvgCat); - } - - (arg1)->close(); - - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static void swig_delete_rlSvgCat(void *obj) { -rlSvgCat *arg1 = (rlSvgCat *) obj; -delete arg1; -} -static swig_lua_method swig_rlSvgCat_methods[] = { - {"open", _wrap_rlSvgCat_open}, - {"reopenSocket", _wrap_rlSvgCat_reopenSocket}, - {"cat", _wrap_rlSvgCat_cat}, - {"close", _wrap_rlSvgCat_close}, - {0,0} -}; -static swig_lua_attribute swig_rlSvgCat_attributes[] = { - {0,0,0} -}; -static swig_lua_attribute swig_rlSvgCat_cls_attributes[] = { - {0,0,0} -}; -static swig_lua_method swig_rlSvgCat_cls_methods[] = { - {0,0} -}; -static swig_lua_const_info swig_rlSvgCat_cls_constants[] = { - {0,0,0,0,0,0} -}; -static swig_lua_class *swig_rlSvgCat_bases[] = {0}; -static const char *swig_rlSvgCat_base_names[] = {0}; -static swig_lua_class _wrap_class_rlSvgCat = { "rlSvgCat", &SWIGTYPE_p_rlSvgCat,_wrap_new_rlSvgCat, swig_delete_rlSvgCat, swig_rlSvgCat_methods, swig_rlSvgCat_attributes, { "rlSvgCat", swig_rlSvgCat_cls_methods, swig_rlSvgCat_cls_attributes, swig_rlSvgCat_cls_constants }, swig_rlSvgCat_bases, swig_rlSvgCat_base_names }; - -static int _wrap_new_rlTime__SWIG_0(lua_State* L) { - int SWIG_arg = 0; - int arg1 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - rlTime *result = 0 ; - - SWIG_check_num_args("rlTime::rlTime",7,7) - if(!lua_isnumber(L,1)) SWIG_fail_arg("rlTime::rlTime",1,"int"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("rlTime::rlTime",2,"int"); - if(!lua_isnumber(L,3)) SWIG_fail_arg("rlTime::rlTime",3,"int"); - if(!lua_isnumber(L,4)) SWIG_fail_arg("rlTime::rlTime",4,"int"); - if(!lua_isnumber(L,5)) SWIG_fail_arg("rlTime::rlTime",5,"int"); - if(!lua_isnumber(L,6)) SWIG_fail_arg("rlTime::rlTime",6,"int"); - if(!lua_isnumber(L,7)) SWIG_fail_arg("rlTime::rlTime",7,"int"); - arg1 = (int)lua_tonumber(L, 1); - arg2 = (int)lua_tonumber(L, 2); - arg3 = (int)lua_tonumber(L, 3); - arg4 = (int)lua_tonumber(L, 4); - arg5 = (int)lua_tonumber(L, 5); - arg6 = (int)lua_tonumber(L, 6); - arg7 = (int)lua_tonumber(L, 7); - result = (rlTime *)new rlTime(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - SWIG_NewPointerObj(L,result,SWIGTYPE_p_rlTime,1); SWIG_arg++; - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_new_rlTime__SWIG_1(lua_State* L) { - int SWIG_arg = 0; - int arg1 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - rlTime *result = 0 ; - - SWIG_check_num_args("rlTime::rlTime",6,6) - if(!lua_isnumber(L,1)) SWIG_fail_arg("rlTime::rlTime",1,"int"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("rlTime::rlTime",2,"int"); - if(!lua_isnumber(L,3)) SWIG_fail_arg("rlTime::rlTime",3,"int"); - if(!lua_isnumber(L,4)) SWIG_fail_arg("rlTime::rlTime",4,"int"); - if(!lua_isnumber(L,5)) SWIG_fail_arg("rlTime::rlTime",5,"int"); - if(!lua_isnumber(L,6)) SWIG_fail_arg("rlTime::rlTime",6,"int"); - arg1 = (int)lua_tonumber(L, 1); - arg2 = (int)lua_tonumber(L, 2); - arg3 = (int)lua_tonumber(L, 3); - arg4 = (int)lua_tonumber(L, 4); - arg5 = (int)lua_tonumber(L, 5); - arg6 = (int)lua_tonumber(L, 6); - result = (rlTime *)new rlTime(arg1,arg2,arg3,arg4,arg5,arg6); - SWIG_NewPointerObj(L,result,SWIGTYPE_p_rlTime,1); SWIG_arg++; - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_new_rlTime__SWIG_2(lua_State* L) { - int SWIG_arg = 0; - int arg1 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - rlTime *result = 0 ; - - SWIG_check_num_args("rlTime::rlTime",5,5) - if(!lua_isnumber(L,1)) SWIG_fail_arg("rlTime::rlTime",1,"int"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("rlTime::rlTime",2,"int"); - if(!lua_isnumber(L,3)) SWIG_fail_arg("rlTime::rlTime",3,"int"); - if(!lua_isnumber(L,4)) SWIG_fail_arg("rlTime::rlTime",4,"int"); - if(!lua_isnumber(L,5)) SWIG_fail_arg("rlTime::rlTime",5,"int"); - arg1 = (int)lua_tonumber(L, 1); - arg2 = (int)lua_tonumber(L, 2); - arg3 = (int)lua_tonumber(L, 3); - arg4 = (int)lua_tonumber(L, 4); - arg5 = (int)lua_tonumber(L, 5); - result = (rlTime *)new rlTime(arg1,arg2,arg3,arg4,arg5); - SWIG_NewPointerObj(L,result,SWIGTYPE_p_rlTime,1); SWIG_arg++; - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_new_rlTime__SWIG_3(lua_State* L) { - int SWIG_arg = 0; - int arg1 ; - int arg2 ; - int arg3 ; - int arg4 ; - rlTime *result = 0 ; - - SWIG_check_num_args("rlTime::rlTime",4,4) - if(!lua_isnumber(L,1)) SWIG_fail_arg("rlTime::rlTime",1,"int"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("rlTime::rlTime",2,"int"); - if(!lua_isnumber(L,3)) SWIG_fail_arg("rlTime::rlTime",3,"int"); - if(!lua_isnumber(L,4)) SWIG_fail_arg("rlTime::rlTime",4,"int"); - arg1 = (int)lua_tonumber(L, 1); - arg2 = (int)lua_tonumber(L, 2); - arg3 = (int)lua_tonumber(L, 3); - arg4 = (int)lua_tonumber(L, 4); - result = (rlTime *)new rlTime(arg1,arg2,arg3,arg4); - SWIG_NewPointerObj(L,result,SWIGTYPE_p_rlTime,1); SWIG_arg++; - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_new_rlTime__SWIG_4(lua_State* L) { - int SWIG_arg = 0; - int arg1 ; - int arg2 ; - int arg3 ; - rlTime *result = 0 ; - - SWIG_check_num_args("rlTime::rlTime",3,3) - if(!lua_isnumber(L,1)) SWIG_fail_arg("rlTime::rlTime",1,"int"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("rlTime::rlTime",2,"int"); - if(!lua_isnumber(L,3)) SWIG_fail_arg("rlTime::rlTime",3,"int"); - arg1 = (int)lua_tonumber(L, 1); - arg2 = (int)lua_tonumber(L, 2); - arg3 = (int)lua_tonumber(L, 3); - result = (rlTime *)new rlTime(arg1,arg2,arg3); - SWIG_NewPointerObj(L,result,SWIGTYPE_p_rlTime,1); SWIG_arg++; - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_new_rlTime__SWIG_5(lua_State* L) { - int SWIG_arg = 0; - int arg1 ; - int arg2 ; - rlTime *result = 0 ; - - SWIG_check_num_args("rlTime::rlTime",2,2) - if(!lua_isnumber(L,1)) SWIG_fail_arg("rlTime::rlTime",1,"int"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("rlTime::rlTime",2,"int"); - arg1 = (int)lua_tonumber(L, 1); - arg2 = (int)lua_tonumber(L, 2); - result = (rlTime *)new rlTime(arg1,arg2); - SWIG_NewPointerObj(L,result,SWIGTYPE_p_rlTime,1); SWIG_arg++; - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_new_rlTime__SWIG_6(lua_State* L) { - int SWIG_arg = 0; - int arg1 ; - rlTime *result = 0 ; - - SWIG_check_num_args("rlTime::rlTime",1,1) - if(!lua_isnumber(L,1)) SWIG_fail_arg("rlTime::rlTime",1,"int"); - arg1 = (int)lua_tonumber(L, 1); - result = (rlTime *)new rlTime(arg1); - SWIG_NewPointerObj(L,result,SWIGTYPE_p_rlTime,1); SWIG_arg++; - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_new_rlTime__SWIG_7(lua_State* L) { - int SWIG_arg = 0; - rlTime *result = 0 ; - - SWIG_check_num_args("rlTime::rlTime",0,0) - result = (rlTime *)new rlTime(); - SWIG_NewPointerObj(L,result,SWIGTYPE_p_rlTime,1); SWIG_arg++; - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_new_rlTime(lua_State* L) { - int argc; - int argv[8]={ - 1,2,3,4,5,6,7,8 - }; - - argc = lua_gettop(L); - if (argc == 0) { - return _wrap_new_rlTime__SWIG_7(L); - } - if (argc == 1) { - int _v; - { - _v = lua_isnumber(L,argv[0]); - } - if (_v) { - return _wrap_new_rlTime__SWIG_6(L); - } - } - if (argc == 2) { - int _v; - { - _v = lua_isnumber(L,argv[0]); - } - if (_v) { - { - _v = lua_isnumber(L,argv[1]); - } - if (_v) { - return _wrap_new_rlTime__SWIG_5(L); - } - } - } - if (argc == 3) { - int _v; - { - _v = lua_isnumber(L,argv[0]); - } - if (_v) { - { - _v = lua_isnumber(L,argv[1]); - } - if (_v) { - { - _v = lua_isnumber(L,argv[2]); - } - if (_v) { - return _wrap_new_rlTime__SWIG_4(L); - } - } - } - } - if (argc == 4) { - int _v; - { - _v = lua_isnumber(L,argv[0]); - } - if (_v) { - { - _v = lua_isnumber(L,argv[1]); - } - if (_v) { - { - _v = lua_isnumber(L,argv[2]); - } - if (_v) { - { - _v = lua_isnumber(L,argv[3]); - } - if (_v) { - return _wrap_new_rlTime__SWIG_3(L); - } - } - } - } - } - if (argc == 5) { - int _v; - { - _v = lua_isnumber(L,argv[0]); - } - if (_v) { - { - _v = lua_isnumber(L,argv[1]); - } - if (_v) { - { - _v = lua_isnumber(L,argv[2]); - } - if (_v) { - { - _v = lua_isnumber(L,argv[3]); - } - if (_v) { - { - _v = lua_isnumber(L,argv[4]); - } - if (_v) { - return _wrap_new_rlTime__SWIG_2(L); - } - } - } - } - } - } - if (argc == 6) { - int _v; - { - _v = lua_isnumber(L,argv[0]); - } - if (_v) { - { - _v = lua_isnumber(L,argv[1]); - } - if (_v) { - { - _v = lua_isnumber(L,argv[2]); - } - if (_v) { - { - _v = lua_isnumber(L,argv[3]); - } - if (_v) { - { - _v = lua_isnumber(L,argv[4]); - } - if (_v) { - { - _v = lua_isnumber(L,argv[5]); - } - if (_v) { - return _wrap_new_rlTime__SWIG_1(L); - } - } - } - } - } - } - } - if (argc == 7) { - int _v; - { - _v = lua_isnumber(L,argv[0]); - } - if (_v) { - { - _v = lua_isnumber(L,argv[1]); - } - if (_v) { - { - _v = lua_isnumber(L,argv[2]); - } - if (_v) { - { - _v = lua_isnumber(L,argv[3]); - } - if (_v) { - { - _v = lua_isnumber(L,argv[4]); - } - if (_v) { - { - _v = lua_isnumber(L,argv[5]); - } - if (_v) { - { - _v = lua_isnumber(L,argv[6]); - } - if (_v) { - return _wrap_new_rlTime__SWIG_0(L); - } - } - } - } - } - } - } - } - - SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'new_rlTime'\n" - " Possible C/C++ prototypes are:\n" - " rlTime::rlTime(int,int,int,int,int,int,int)\n" - " rlTime::rlTime(int,int,int,int,int,int)\n" - " rlTime::rlTime(int,int,int,int,int)\n" - " rlTime::rlTime(int,int,int,int)\n" - " rlTime::rlTime(int,int,int)\n" - " rlTime::rlTime(int,int)\n" - " rlTime::rlTime(int)\n" - " rlTime::rlTime()\n"); - lua_error(L);return 0; -} - - -static int _wrap_rlTime_getTimeString(lua_State* L) { - int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; - char *result = 0 ; - - SWIG_check_num_args("rlTime::getTimeString",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::getTimeString",1,"rlTime *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime_getTimeString",1,SWIGTYPE_p_rlTime); - } - - result = (char *)(arg1)->getTimeString(); - lua_pushstring(L,(const char *)result); SWIG_arg++; - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_rlTime_getIsoTimeString(lua_State* L) { - int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; - char *result = 0 ; - - SWIG_check_num_args("rlTime::getIsoTimeString",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::getIsoTimeString",1,"rlTime *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime_getIsoTimeString",1,SWIGTYPE_p_rlTime); - } - - result = (char *)(arg1)->getIsoTimeString(); - lua_pushstring(L,(const char *)result); SWIG_arg++; - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_rlTime_getLocalTime(lua_State* L) { - int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; - - SWIG_check_num_args("rlTime::getLocalTime",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::getLocalTime",1,"rlTime *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime_getLocalTime",1,SWIGTYPE_p_rlTime); - } - - (arg1)->getLocalTime(); - - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_rlTime_getFileModificationTime(lua_State* L) { - int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - SWIG_check_num_args("rlTime::getFileModificationTime",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::getFileModificationTime",1,"rlTime *"); - if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("rlTime::getFileModificationTime",2,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime_getFileModificationTime",1,SWIGTYPE_p_rlTime); - } - - arg2 = (char *)lua_tostring(L, 2); - result = (int)(arg1)->getFileModificationTime((char const *)arg2); - lua_pushnumber(L, (lua_Number) result); SWIG_arg++; - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_rlTime_setTimeFromString(lua_State* L) { - int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; - char *arg2 = (char *) 0 ; - - SWIG_check_num_args("rlTime::setTimeFromString",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::setTimeFromString",1,"rlTime *"); - if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("rlTime::setTimeFromString",2,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime_setTimeFromString",1,SWIGTYPE_p_rlTime); - } - - arg2 = (char *)lua_tostring(L, 2); - (arg1)->setTimeFromString((char const *)arg2); - - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_rlTime_setTimeFromIsoString(lua_State* L) { - int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; - char *arg2 = (char *) 0 ; - - SWIG_check_num_args("rlTime::setTimeFromIsoString",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::setTimeFromIsoString",1,"rlTime *"); - if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("rlTime::setTimeFromIsoString",2,"char const *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime_setTimeFromIsoString",1,SWIGTYPE_p_rlTime); - } - - arg2 = (char *)lua_tostring(L, 2); - (arg1)->setTimeFromIsoString((char const *)arg2); - - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_rlTime_setLocalTime(lua_State* L) { - int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; - - SWIG_check_num_args("rlTime::setLocalTime",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::setLocalTime",1,"rlTime *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime_setLocalTime",1,SWIGTYPE_p_rlTime); - } - - (arg1)->setLocalTime(); - - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_rlTime_secondsSinceEpoche(lua_State* L) { - int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; - double result; - - SWIG_check_num_args("rlTime::secondsSinceEpoche",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::secondsSinceEpoche",1,"rlTime *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime_secondsSinceEpoche",1,SWIGTYPE_p_rlTime); - } - - result = (double)(arg1)->secondsSinceEpoche(); - lua_pushnumber(L, (lua_Number) result); SWIG_arg++; - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_rlTime___add(lua_State* L) { - int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; - rlTime *arg2 = 0 ; - rlTime result; - - SWIG_check_num_args("rlTime::operator +",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::operator +",1,"rlTime *"); - if(!lua_isuserdata(L,2)) SWIG_fail_arg("rlTime::operator +",2,"rlTime &"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime___add",1,SWIGTYPE_p_rlTime); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime___add",2,SWIGTYPE_p_rlTime); - } - - result = (arg1)->operator +(*arg2); - { - rlTime * resultptr = new rlTime((const rlTime &) result); - SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_rlTime,1); SWIG_arg++; - } - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_rlTime___sub(lua_State* L) { - int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; - rlTime *arg2 = 0 ; - rlTime result; - - SWIG_check_num_args("rlTime::operator -",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::operator -",1,"rlTime *"); - if(!lua_isuserdata(L,2)) SWIG_fail_arg("rlTime::operator -",2,"rlTime &"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime___sub",1,SWIGTYPE_p_rlTime); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime___sub",2,SWIGTYPE_p_rlTime); - } - - result = (arg1)->operator -(*arg2); - { - rlTime * resultptr = new rlTime((const rlTime &) result); - SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_rlTime,1); SWIG_arg++; - } - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_rlTime___eq(lua_State* L) { - int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; - rlTime *arg2 = 0 ; - int result; - - SWIG_check_num_args("rlTime::operator ==",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::operator ==",1,"rlTime *"); - if(!lua_isuserdata(L,2)) SWIG_fail_arg("rlTime::operator ==",2,"rlTime &"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime___eq",1,SWIGTYPE_p_rlTime); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime___eq",2,SWIGTYPE_p_rlTime); - } - - result = (int)(arg1)->operator ==(*arg2); - lua_pushnumber(L, (lua_Number) result); SWIG_arg++; - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_rlTime___lt(lua_State* L) { - int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; - rlTime *arg2 = 0 ; - int result; - - SWIG_check_num_args("rlTime::operator <",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::operator <",1,"rlTime *"); - if(!lua_isuserdata(L,2)) SWIG_fail_arg("rlTime::operator <",2,"rlTime &"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime___lt",1,SWIGTYPE_p_rlTime); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime___lt",2,SWIGTYPE_p_rlTime); - } - - result = (int)(arg1)->operator <(*arg2); - lua_pushnumber(L, (lua_Number) result); SWIG_arg++; - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_rlTime___le(lua_State* L) { - int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; - rlTime *arg2 = 0 ; - int result; - - SWIG_check_num_args("rlTime::operator <=",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::operator <=",1,"rlTime *"); - if(!lua_isuserdata(L,2)) SWIG_fail_arg("rlTime::operator <=",2,"rlTime &"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime___le",1,SWIGTYPE_p_rlTime); - } - - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime___le",2,SWIGTYPE_p_rlTime); - } - - result = (int)(arg1)->operator <=(*arg2); - lua_pushnumber(L, (lua_Number) result); SWIG_arg++; - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_rlTime_year_set(lua_State* L) { - int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; - int arg2 ; - - SWIG_check_num_args("rlTime::year",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::year",1,"rlTime *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("rlTime::year",2,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime_year_set",1,SWIGTYPE_p_rlTime); - } - - arg2 = (int)lua_tonumber(L, 2); - if (arg1) (arg1)->year = arg2; - - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_rlTime_year_get(lua_State* L) { - int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; - int result; - - SWIG_check_num_args("rlTime::year",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::year",1,"rlTime *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime_year_get",1,SWIGTYPE_p_rlTime); - } - - result = (int) ((arg1)->year); - lua_pushnumber(L, (lua_Number) result); SWIG_arg++; - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_rlTime_month_set(lua_State* L) { - int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; - int arg2 ; - - SWIG_check_num_args("rlTime::month",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::month",1,"rlTime *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("rlTime::month",2,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime_month_set",1,SWIGTYPE_p_rlTime); - } - - arg2 = (int)lua_tonumber(L, 2); - if (arg1) (arg1)->month = arg2; - - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_rlTime_month_get(lua_State* L) { - int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; - int result; - - SWIG_check_num_args("rlTime::month",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::month",1,"rlTime *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime_month_get",1,SWIGTYPE_p_rlTime); - } - - result = (int) ((arg1)->month); - lua_pushnumber(L, (lua_Number) result); SWIG_arg++; - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_rlTime_day_set(lua_State* L) { - int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; - int arg2 ; - - SWIG_check_num_args("rlTime::day",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::day",1,"rlTime *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("rlTime::day",2,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime_day_set",1,SWIGTYPE_p_rlTime); - } - - arg2 = (int)lua_tonumber(L, 2); - if (arg1) (arg1)->day = arg2; - - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_rlTime_day_get(lua_State* L) { - int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; - int result; - - SWIG_check_num_args("rlTime::day",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::day",1,"rlTime *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime_day_get",1,SWIGTYPE_p_rlTime); - } - - result = (int) ((arg1)->day); - lua_pushnumber(L, (lua_Number) result); SWIG_arg++; - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_rlTime_hour_set(lua_State* L) { - int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; - int arg2 ; - - SWIG_check_num_args("rlTime::hour",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::hour",1,"rlTime *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("rlTime::hour",2,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime_hour_set",1,SWIGTYPE_p_rlTime); - } - - arg2 = (int)lua_tonumber(L, 2); - if (arg1) (arg1)->hour = arg2; - - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_rlTime_hour_get(lua_State* L) { - int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; - int result; - - SWIG_check_num_args("rlTime::hour",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::hour",1,"rlTime *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime_hour_get",1,SWIGTYPE_p_rlTime); - } - - result = (int) ((arg1)->hour); - lua_pushnumber(L, (lua_Number) result); SWIG_arg++; - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_rlTime_minute_set(lua_State* L) { - int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; - int arg2 ; - - SWIG_check_num_args("rlTime::minute",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::minute",1,"rlTime *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("rlTime::minute",2,"int"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime_minute_set",1,SWIGTYPE_p_rlTime); - } - - arg2 = (int)lua_tonumber(L, 2); - if (arg1) (arg1)->minute = arg2; - - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_rlTime_minute_get(lua_State* L) { - int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; - int result; - - SWIG_check_num_args("rlTime::minute",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::minute",1,"rlTime *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime_minute_get",1,SWIGTYPE_p_rlTime); - } - - result = (int) ((arg1)->minute); + result = (int)(arg1)->open((char const *)arg2); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; @@ -30316,45 +31220,84 @@ static int _wrap_rlTime_minute_get(lua_State* L) { } -static int _wrap_rlTime_second_set(lua_State* L) { - int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; - int arg2 ; - - SWIG_check_num_args("rlTime::second",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::second",1,"rlTime *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("rlTime::second",2,"int"); +static int _wrap_rlSvgCat_open(lua_State* L) { + int argc; + int argv[4]={ + 1,2,3,4 + }; - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime_second_set",1,SWIGTYPE_p_rlTime); + argc = lua_gettop(L); + if (argc == 2) { + int _v; + { + void *ptr; + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_rlSvgCat, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + { + _v = SWIG_lua_isnilstring(L,argv[1]); + } + if (_v) { + return _wrap_rlSvgCat_open__SWIG_1(L); + } + } + } + if (argc == 3) { + int _v; + { + void *ptr; + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_rlSvgCat, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + { + _v = SWIG_lua_isnilstring(L,argv[1]); + } + if (_v) { + { + _v = SWIG_lua_isnilstring(L,argv[2]); + } + if (_v) { + return _wrap_rlSvgCat_open__SWIG_0(L); + } + } + } } - arg2 = (int)lua_tonumber(L, 2); - if (arg1) (arg1)->second = arg2; - - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; + SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'rlSvgCat_open'\n" + " Possible C/C++ prototypes are:\n" + " rlSvgCat::open(char const *,char const *)\n" + " rlSvgCat::open(char const *)\n"); + lua_error(L);return 0; } -static int _wrap_rlTime_second_get(lua_State* L) { +static int _wrap_rlSvgCat_reopenSocket(lua_State* L) { int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; + rlSvgCat *arg1 = (rlSvgCat *) 0 ; + char *arg2 = (char *) 0 ; + int arg3 ; int result; - SWIG_check_num_args("rlTime::second",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::second",1,"rlTime *"); + SWIG_check_num_args("rlSvgCat::reopenSocket",3,3) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlSvgCat::reopenSocket",1,"rlSvgCat *"); + if(!SWIG_lua_isnilstring(L,2)) SWIG_fail_arg("rlSvgCat::reopenSocket",2,"char const *"); + if(!lua_isnumber(L,3)) SWIG_fail_arg("rlSvgCat::reopenSocket",3,"int"); - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime_second_get",1,SWIGTYPE_p_rlTime); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlSvgCat,0))){ + SWIG_fail_ptr("rlSvgCat_reopenSocket",1,SWIGTYPE_p_rlSvgCat); } - result = (int) ((arg1)->second); + arg2 = (char *)lua_tostring(L, 2); + arg3 = (int)lua_tonumber(L, 3); + result = (int)(arg1)->reopenSocket((char const *)arg2,arg3); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; @@ -30366,21 +31309,18 @@ static int _wrap_rlTime_second_get(lua_State* L) { } -static int _wrap_rlTime_millisecond_set(lua_State* L) { +static int _wrap_rlSvgCat_cat(lua_State* L) { int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; - int arg2 ; + rlSvgCat *arg1 = (rlSvgCat *) 0 ; - SWIG_check_num_args("rlTime::millisecond",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::millisecond",1,"rlTime *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("rlTime::millisecond",2,"int"); + SWIG_check_num_args("rlSvgCat::cat",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlSvgCat::cat",1,"rlSvgCat *"); - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime_millisecond_set",1,SWIGTYPE_p_rlTime); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlSvgCat,0))){ + SWIG_fail_ptr("rlSvgCat_cat",1,SWIGTYPE_p_rlSvgCat); } - arg2 = (int)lua_tonumber(L, 2); - if (arg1) (arg1)->millisecond = arg2; + (arg1)->cat(); return SWIG_arg; @@ -30392,20 +31332,19 @@ static int _wrap_rlTime_millisecond_set(lua_State* L) { } -static int _wrap_rlTime_millisecond_get(lua_State* L) { +static int _wrap_rlSvgCat_close(lua_State* L) { int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; - int result; + rlSvgCat *arg1 = (rlSvgCat *) 0 ; - SWIG_check_num_args("rlTime::millisecond",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::millisecond",1,"rlTime *"); + SWIG_check_num_args("rlSvgCat::close",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlSvgCat::close",1,"rlSvgCat *"); - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime_millisecond_get",1,SWIGTYPE_p_rlTime); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlSvgCat,0))){ + SWIG_fail_ptr("rlSvgCat_close",1,SWIGTYPE_p_rlSvgCat); } - result = (int) ((arg1)->millisecond); - lua_pushnumber(L, (lua_Number) result); SWIG_arg++; + (arg1)->close(); + return SWIG_arg; if(0) SWIG_fail; @@ -30416,48 +31355,56 @@ static int _wrap_rlTime_millisecond_get(lua_State* L) { } -static void swig_delete_rlTime(void *obj) { -rlTime *arg1 = (rlTime *) obj; +static void swig_delete_rlSvgCat(void *obj) { +rlSvgCat *arg1 = (rlSvgCat *) obj; delete arg1; } -static swig_lua_method swig_rlTime_methods[] = { - {"getTimeString", _wrap_rlTime_getTimeString}, - {"getIsoTimeString", _wrap_rlTime_getIsoTimeString}, - {"getLocalTime", _wrap_rlTime_getLocalTime}, - {"getFileModificationTime", _wrap_rlTime_getFileModificationTime}, - {"setTimeFromString", _wrap_rlTime_setTimeFromString}, - {"setTimeFromIsoString", _wrap_rlTime_setTimeFromIsoString}, - {"setLocalTime", _wrap_rlTime_setLocalTime}, - {"secondsSinceEpoche", _wrap_rlTime_secondsSinceEpoche}, - {"__add", _wrap_rlTime___add}, - {"__sub", _wrap_rlTime___sub}, - {"__eq", _wrap_rlTime___eq}, - {"__lt", _wrap_rlTime___lt}, - {"__le", _wrap_rlTime___le}, +static int _proxy__wrap_new_rlSvgCat(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSvgCat); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} +static swig_lua_attribute swig_rlSvgCat_attributes[] = { + {0,0,0} +}; +static swig_lua_method swig_rlSvgCat_methods[]= { + { "open", _wrap_rlSvgCat_open}, + { "reopenSocket", _wrap_rlSvgCat_reopenSocket}, + { "cat", _wrap_rlSvgCat_cat}, + { "close", _wrap_rlSvgCat_close}, {0,0} }; -static swig_lua_attribute swig_rlTime_attributes[] = { - { "year", _wrap_rlTime_year_get, _wrap_rlTime_year_set}, - { "month", _wrap_rlTime_month_get, _wrap_rlTime_month_set}, - { "day", _wrap_rlTime_day_get, _wrap_rlTime_day_set}, - { "hour", _wrap_rlTime_hour_get, _wrap_rlTime_hour_set}, - { "minute", _wrap_rlTime_minute_get, _wrap_rlTime_minute_set}, - { "second", _wrap_rlTime_second_get, _wrap_rlTime_second_set}, - { "millisecond", _wrap_rlTime_millisecond_get, _wrap_rlTime_millisecond_set}, - {0,0,0} +static swig_lua_method swig_rlSvgCat_meta[] = { + {0,0} }; -static swig_lua_attribute swig_rlTime_cls_attributes[] = { + +static swig_lua_attribute swig_rlSvgCat_Sf_SwigStatic_attributes[] = { {0,0,0} }; -static swig_lua_method swig_rlTime_cls_methods[] = { +static swig_lua_const_info swig_rlSvgCat_Sf_SwigStatic_constants[]= { + {0,0,0,0,0,0} +}; +static swig_lua_method swig_rlSvgCat_Sf_SwigStatic_methods[]= { {0,0} }; -static swig_lua_const_info swig_rlTime_cls_constants[] = { - {0,0,0,0,0,0} +static swig_lua_class* swig_rlSvgCat_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSvgCat_Sf_SwigStatic = { + "rlSvgCat", + swig_rlSvgCat_Sf_SwigStatic_methods, + swig_rlSvgCat_Sf_SwigStatic_attributes, + swig_rlSvgCat_Sf_SwigStatic_constants, + swig_rlSvgCat_Sf_SwigStatic_classes, + 0 }; -static swig_lua_class *swig_rlTime_bases[] = {0}; -static const char *swig_rlTime_base_names[] = {0}; -static swig_lua_class _wrap_class_rlTime = { "rlTime", &SWIGTYPE_p_rlTime,_wrap_new_rlTime, swig_delete_rlTime, swig_rlTime_methods, swig_rlTime_attributes, { "rlTime", swig_rlTime_cls_methods, swig_rlTime_cls_attributes, swig_rlTime_cls_constants }, swig_rlTime_bases, swig_rlTime_base_names }; +static swig_lua_class *swig_rlSvgCat_bases[] = {0}; +static const char *swig_rlSvgCat_base_names[] = {0}; +static swig_lua_class _wrap_class_rlSvgCat = { "rlSvgCat", "rlSvgCat", &SWIGTYPE_p_rlSvgCat,_proxy__wrap_new_rlSvgCat, swig_delete_rlSvgCat, swig_rlSvgCat_methods, swig_rlSvgCat_attributes, &swig_rlSvgCat_Sf_SwigStatic, swig_rlSvgCat_meta, swig_rlSvgCat_bases, swig_rlSvgCat_base_names }; static int _wrap_new_rlWebcam(lua_State* L) { int SWIG_arg = 0; @@ -31190,36 +32137,60 @@ static void swig_delete_rlWebcam(void *obj) { rlWebcam *arg1 = (rlWebcam *) obj; delete arg1; } -static swig_lua_method swig_rlWebcam_methods[] = { - {"setUrl", _wrap_rlWebcam_setUrl}, - {"disconnect", _wrap_rlWebcam_disconnect}, - {"getSnapshot", _wrap_rlWebcam_getSnapshot}, - {"getFrame", _wrap_rlWebcam_getFrame}, - {"getFrameBuffer", _wrap_rlWebcam_getFrameBuffer}, - {"getUrl", _wrap_rlWebcam_getUrl}, - {"getHost", _wrap_rlWebcam_getHost}, - {"getPort", _wrap_rlWebcam_getPort}, - {"getPath", _wrap_rlWebcam_getPath}, - {0,0} -}; +static int _proxy__wrap_new_rlWebcam(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlWebcam); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlWebcam_attributes[] = { - { "debug", _wrap_rlWebcam_debug_get, _wrap_rlWebcam_debug_set}, - { "filename", _wrap_rlWebcam_filename_get, _wrap_rlWebcam_filename_set}, - { "sock", _wrap_rlWebcam_sock_get, _wrap_rlWebcam_sock_set}, + { "debug", _wrap_rlWebcam_debug_get, _wrap_rlWebcam_debug_set }, + { "filename", _wrap_rlWebcam_filename_get, _wrap_rlWebcam_filename_set }, + { "sock", _wrap_rlWebcam_sock_get, _wrap_rlWebcam_sock_set }, {0,0,0} }; -static swig_lua_attribute swig_rlWebcam_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlWebcam_methods[]= { + { "setUrl", _wrap_rlWebcam_setUrl}, + { "disconnect", _wrap_rlWebcam_disconnect}, + { "getSnapshot", _wrap_rlWebcam_getSnapshot}, + { "getFrame", _wrap_rlWebcam_getFrame}, + { "getFrameBuffer", _wrap_rlWebcam_getFrameBuffer}, + { "getUrl", _wrap_rlWebcam_getUrl}, + { "getHost", _wrap_rlWebcam_getHost}, + { "getPort", _wrap_rlWebcam_getPort}, + { "getPath", _wrap_rlWebcam_getPath}, + {0,0} }; -static swig_lua_method swig_rlWebcam_cls_methods[] = { +static swig_lua_method swig_rlWebcam_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlWebcam_cls_constants[] = { + +static swig_lua_attribute swig_rlWebcam_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlWebcam_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlWebcam_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlWebcam_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlWebcam_Sf_SwigStatic = { + "rlWebcam", + swig_rlWebcam_Sf_SwigStatic_methods, + swig_rlWebcam_Sf_SwigStatic_attributes, + swig_rlWebcam_Sf_SwigStatic_constants, + swig_rlWebcam_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlWebcam_bases[] = {0}; static const char *swig_rlWebcam_base_names[] = {0}; -static swig_lua_class _wrap_class_rlWebcam = { "rlWebcam", &SWIGTYPE_p_rlWebcam,_wrap_new_rlWebcam, swig_delete_rlWebcam, swig_rlWebcam_methods, swig_rlWebcam_attributes, { "rlWebcam", swig_rlWebcam_cls_methods, swig_rlWebcam_cls_attributes, swig_rlWebcam_cls_constants }, swig_rlWebcam_bases, swig_rlWebcam_base_names }; +static swig_lua_class _wrap_class_rlWebcam = { "rlWebcam", "rlWebcam", &SWIGTYPE_p_rlWebcam,_proxy__wrap_new_rlWebcam, swig_delete_rlWebcam, swig_rlWebcam_methods, swig_rlWebcam_attributes, &swig_rlWebcam_Sf_SwigStatic, swig_rlWebcam_meta, swig_rlWebcam_bases, swig_rlWebcam_base_names }; static int _wrap_rlsleep(lua_State* L) { int SWIG_arg = 0; @@ -31240,73 +32211,12 @@ static int _wrap_rlsleep(lua_State* L) { } -#ifdef __cplusplus -} -#endif - -static const struct luaL_Reg swig_commands[] = { - { "rlwsa", _wrap_rlwsa}, - { "rlScoketWrite", _wrap_rlScoketWrite}, - { "rlSetDebugPrintf", _wrap_rlSetDebugPrintf}, - { "rlDebugPrintf", _wrap_rlDebugPrintf}, - { "rlInputAvailable", _wrap_rlInputAvailable}, - { "rlLastLinePrintf", _wrap_rlLastLinePrintf}, - { "rlpass", _wrap_rlpass}, - { "rlstrncpy", _wrap_rlstrncpy}, - { "rlstrlinecpy", _wrap_rlstrlinecpy}, - { "rlsnprintf", _wrap_rlsnprintf}, - { "rlSetSigtermHandler", _wrap_rlSetSigtermHandler}, - { "rlFindFile", _wrap_rlFindFile}, - { "rlGetInifile", _wrap_rlGetInifile}, - { "rlSwapShort", _wrap_rlSwapShort}, - { "rlEib1", _wrap_rlEib1}, - { "rlEib2", _wrap_rlEib2}, - { "rlLon1", _wrap_rlLon1}, - { "rlLon2", _wrap_rlLon2}, - { "rlProfibus1", _wrap_rlProfibus1}, - { "rlProfibus2", _wrap_rlProfibus2}, - { "rlCan1", _wrap_rlCan1}, - { "rlCan2", _wrap_rlCan2}, - { "rlBrowser", _wrap_rlBrowser}, - { "rlsystem", _wrap_rlsystem}, - { "rlSubmitPvserver",_wrap_rlSubmitPvserver}, - { "rlOption", _wrap_rlOption}, - { "rlIntOption", _wrap_rlIntOption}, - { "rlFloatOption", _wrap_rlFloatOption}, - { "rlTextOption", _wrap_rlTextOption}, - { "rlCopyTextfile", _wrap_rlCopyTextfile}, - { "rlupper", _wrap_rlupper}, - { "rllower", _wrap_rllower}, - { "rlStartsWith", _wrap_rlStartsWith}, - { "rlEndsWith", _wrap_rlEndsWith}, - { "rlStrMatch", _wrap_rlStrMatch}, - { "rlFRead", _wrap_rlFRead}, - { "rlFWrite", _wrap_rlFWrite}, - { "rlWriteFile", _wrap_rlWriteFile}, - { "rlMkdir",_wrap_rlMkdir}, - { "rlBitSet", _wrap_rlBitSet}, - { "rlBitClear", _wrap_rlBitClear}, - { "rlBitChange", _wrap_rlBitChange}, - { "rlBitTest", _wrap_rlBitTest}, - { "rlPushToDoubleBuffer", _wrap_rlPushToDoubleBuffer}, - { "rlPushToFloatBuffer", _wrap_rlPushToFloatBuffer}, - { "rlEventInit", _wrap_rlEventInit}, - { "rlSetEventLocation", _wrap_rlSetEventLocation}, - { "rlEventPrintf", _wrap_rlEventPrintf}, - { "rlSetTranslator",_wrap_rlSetTranslator}, - { "rltranslate",_wrap_rltranslate}, - { "rltranslate2",_wrap_rltranslate2}, - { "rlsleep", _wrap_rlsleep}, - {0,0} -}; - -static swig_lua_var_info swig_variables[] = { +static swig_lua_attribute swig_SwigModule_attributes[] = { { "rlevent_name", _wrap_rlevent_name_get, SWIG_Lua_set_immutable }, { "rlCRLF", _wrap_rlCRLF_get, SWIG_Lua_set_immutable }, {0,0,0} }; - -static swig_lua_const_info swig_constants[] = { +static swig_lua_const_info swig_SwigModule_constants[]= { {SWIG_LUA_CONSTTAB_INT("rl_PRINTF_LENGTH", 4096)}, {SWIG_LUA_CONSTTAB_INT("rl_PRINTF_LENGTH_SPREADSHEET", 4096)}, {SWIG_LUA_CONSTTAB_INT("BIT0", 1)}, @@ -31473,6 +32383,126 @@ static swig_lua_const_info swig_constants[] = { {SWIG_LUA_CONSTTAB_INT("rlSiemensTCP_WriteByte", rlSiemensTCP::WriteByte)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_SwigModule_methods[]= { + { "rlwsa", _wrap_rlwsa}, + { "rlScoketWrite", _wrap_rlScoketWrite}, + { "rlSetDebugPrintf", _wrap_rlSetDebugPrintf}, + { "rlDebugPrintf", _wrap_rlDebugPrintf}, + { "rlInputAvailable", _wrap_rlInputAvailable}, + { "rlLastLinePrintf", _wrap_rlLastLinePrintf}, + { "rlpass", _wrap_rlpass}, + { "rlstrncpy", _wrap_rlstrncpy}, + { "rlstrlinecpy", _wrap_rlstrlinecpy}, + { "rlsnprintf", _wrap_rlsnprintf}, + { "rlSetSigtermHandler", _wrap_rlSetSigtermHandler}, + { "rlFindFile", _wrap_rlFindFile}, + { "rlGetInifile", _wrap_rlGetInifile}, + { "rlSwapShort", _wrap_rlSwapShort}, + { "rlEib1", _wrap_rlEib1}, + { "rlEib2", _wrap_rlEib2}, + { "rlLon1", _wrap_rlLon1}, + { "rlLon2", _wrap_rlLon2}, + { "rlProfibus1", _wrap_rlProfibus1}, + { "rlProfibus2", _wrap_rlProfibus2}, + { "rlCan1", _wrap_rlCan1}, + { "rlCan2", _wrap_rlCan2}, + { "rlBrowser", _wrap_rlBrowser}, + { "rlsystem", _wrap_rlsystem}, + { "rlSubmitPvserver", _wrap_rlSubmitPvserver}, + { "rlOption", _wrap_rlOption}, + { "rlIntOption", _wrap_rlIntOption}, + { "rlFloatOption", _wrap_rlFloatOption}, + { "rlTextOption", _wrap_rlTextOption}, + { "rlCopyTextfile", _wrap_rlCopyTextfile}, + { "rlupper", _wrap_rlupper}, + { "rllower", _wrap_rllower}, + { "rlStartsWith", _wrap_rlStartsWith}, + { "rlEndsWith", _wrap_rlEndsWith}, + { "rlStrMatch", _wrap_rlStrMatch}, + { "rlFRead", _wrap_rlFRead}, + { "rlFWrite", _wrap_rlFWrite}, + { "rlWriteFile", _wrap_rlWriteFile}, + { "rlMkdir", _wrap_rlMkdir}, + { "rlBitSet", _wrap_rlBitSet}, + { "rlBitClear", _wrap_rlBitClear}, + { "rlBitChange", _wrap_rlBitChange}, + { "rlBitTest", _wrap_rlBitTest}, + { "rlPushToDoubleBuffer", _wrap_rlPushToDoubleBuffer}, + { "rlPushToFloatBuffer", _wrap_rlPushToFloatBuffer}, + { "rlEventInit", _wrap_rlEventInit}, + { "rlSetEventLocation", _wrap_rlSetEventLocation}, + { "rlEventPrintf", _wrap_rlEventPrintf}, + { "rlSetTranslator", _wrap_rlSetTranslator}, + { "rltranslate", _wrap_rltranslate}, + { "rltranslate2", _wrap_rltranslate2}, + { "rlsleep", _wrap_rlsleep}, + {0,0} +}; +static swig_lua_class* swig_SwigModule_classes[]= { +&_wrap_class_THREAD_PARAM, +&_wrap_class_rlThread, +&_wrap_class_rlMutex, +&_wrap_class_rlSemaphore, +&_wrap_class_rlSharedMemory, +&_wrap_class_rlIpAdr, +&_wrap_class_rlUdpSocket, +&_wrap_class_rlSocket, +&_wrap_class_rl3964R, +&_wrap_class_rlCommandlineInterface, +&_wrap_class_rlDataAcquisition, +&_wrap_class_rlDataAcquisitionProvider, +&_wrap_class_rlDataProvider, +&_wrap_class_rlDataProviderClient, +&_wrap_class_rlDataProviderThreads, +&_wrap_class_rlEventLogServer, +&_wrap_class_rlEventLogServerThreads, +&_wrap_class_rlFifo, +&_wrap_class_rlFileLines, +&_wrap_class_rlFileLoad, +&_wrap_class_rlHistoryLogLine, +&_wrap_class_rlHistoryLogger, +&_wrap_class_rlHistoryReaderLine, +&_wrap_class_rlHistoryReader, +&_wrap_class_rlIniFile, +&_wrap_class_rlInterpreter, +&_wrap_class_rlMailbox, +&_wrap_class_rlModbusClient, +&_wrap_class_rlModbus, +&_wrap_class_rlOpcXmlDa, +&_wrap_class_rlPcontrol, +&_wrap_class_rlPlcState, +&_wrap_class_rlPlcMem, +&_wrap_class_rlPPIClient, +&_wrap_class_rlSerial, +&_wrap_class_rlSiemensTCPClient, +&_wrap_class_rlSiemensTCP, +&_wrap_class_rlSpawn, +&_wrap_class_rlSpreadsheetCell, +&_wrap_class_rlSpreadsheetRow, +&_wrap_class_rlSpreadsheetTable, +&_wrap_class_rlSpreadsheetWorkbook, +&_wrap_class_rlString, +&_wrap_class_rlSvgPosition, +&_wrap_class_rlSvgAnimator, +&_wrap_class_rlSvgCat, +&_wrap_class_rlWebcam, + 0 +}; +static swig_lua_namespace* swig_SwigModule_namespaces[] = { + 0 +}; + +static swig_lua_namespace swig_SwigModule = { + "rllib", + swig_SwigModule_methods, + swig_SwigModule_attributes, + swig_SwigModule_constants, + swig_SwigModule_classes, + swig_SwigModule_namespaces +}; +#ifdef __cplusplus +} +#endif /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ @@ -31500,9 +32530,9 @@ static void *_p_rlSiemensTCPClientTo_p_rlSharedMemory(void *x, int *SWIGUNUSEDPA static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_THREAD_PARAM = {"_p_THREAD_PARAM", "THREAD_PARAM *", 0, 0, (void*)&_wrap_class_THREAD_PARAM, 0}; static swig_type_info _swigt__p_WSEMAPHORE = {"_p_WSEMAPHORE", "WSEMAPHORE *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p__rlFileLines_ = {"_p__rlFileLines_", "rlFileLines *|_rlFileLines_ *", 0, 0, (void*)&_wrap_class__rlFileLines_, 0}; -static swig_type_info _swigt__p__rlHistoryLogLine_ = {"_p__rlHistoryLogLine_", "_rlHistoryLogLine_ *|rlHistoryLogLine *", 0, 0, (void*)&_wrap_class__rlHistoryLogLine_, 0}; -static swig_type_info _swigt__p__rlHistoryReaderLine_ = {"_p__rlHistoryReaderLine_", "rlHistoryReaderLine *|_rlHistoryReaderLine_ *", 0, 0, (void*)&_wrap_class__rlHistoryReaderLine_, 0}; +static swig_type_info _swigt__p__rlFileLines_ = {"_p__rlFileLines_", "rlFileLines *|_rlFileLines_ *", 0, 0, (void*)&_wrap_class_rlFileLines, 0}; +static swig_type_info _swigt__p__rlHistoryLogLine_ = {"_p__rlHistoryLogLine_", "_rlHistoryLogLine_ *|rlHistoryLogLine *", 0, 0, (void*)&_wrap_class_rlHistoryLogLine, 0}; +static swig_type_info _swigt__p__rlHistoryReaderLine_ = {"_p__rlHistoryReaderLine_", "rlHistoryReaderLine *|_rlHistoryReaderLine_ *", 0, 0, (void*)&_wrap_class_rlHistoryReaderLine, 0}; static swig_type_info _swigt__p_a_4__char = {"_p_a_4__char", "char (*)[4]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p_q_const__unsigned_char_int__void = {"_p_f_p_q_const__unsigned_char_int__void", "void (*)(unsigned char const *,int)", 0, 0, (void*)0, 0}; @@ -31557,11 +32587,12 @@ static swig_type_info _swigt__p_rlSvgCat = {"_p_rlSvgCat", "rlSvgCat *", 0, 0, ( static swig_type_info _swigt__p_rlSvgPosition = {"_p_rlSvgPosition", "rlSvgPosition *", 0, 0, (void*)&_wrap_class_rlSvgPosition, 0}; static swig_type_info _swigt__p_rlSvgPosition__rlPositionInit = {"_p_rlSvgPosition__rlPositionInit", "rlSvgPosition::rlPositionInit *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_rlThread = {"_p_rlThread", "rlThread *", 0, 0, (void*)&_wrap_class_rlThread, 0}; -static swig_type_info _swigt__p_rlTime = {"_p_rlTime", "rlTime *", 0, 0, (void*)&_wrap_class_rlTime, 0}; +static swig_type_info _swigt__p_rlTime = {"_p_rlTime", "rlTime *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_rlUdpSocket = {"_p_rlUdpSocket", "rlUdpSocket *", 0, 0, (void*)&_wrap_class_rlUdpSocket, 0}; static swig_type_info _swigt__p_rlWebcam = {"_p_rlWebcam", "rlWebcam *", 0, 0, (void*)&_wrap_class_rlWebcam, 0}; static swig_type_info _swigt__p_short = {"_p_short", "short *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_sockaddr_in = {"_p_sockaddr_in", "sockaddr_in *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__shared_ptrT_rlSharedMemory__LockUserAddr_t = {"_p_std__shared_ptrT_rlSharedMemory__LockUserAddr_t", "std::shared_ptr< rlSharedMemory::LockUserAddr > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *", 0, 0, (void*)0, 0}; @@ -31633,6 +32664,7 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_rlWebcam, &_swigt__p_short, &_swigt__p_sockaddr_in, + &_swigt__p_std__shared_ptrT_rlSharedMemory__LockUserAddr_t, &_swigt__p_unsigned_char, &_swigt__p_unsigned_int, &_swigt__p_unsigned_short, @@ -31704,6 +32736,7 @@ static swig_cast_info _swigc__p_rlUdpSocket[] = { {&_swigt__p_rlUdpSocket, 0, 0 static swig_cast_info _swigc__p_rlWebcam[] = { {&_swigt__p_rlWebcam, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_short[] = { {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_sockaddr_in[] = { {&_swigt__p_sockaddr_in, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__shared_ptrT_rlSharedMemory__LockUserAddr_t[] = { {&_swigt__p_std__shared_ptrT_rlSharedMemory__LockUserAddr_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}}; @@ -31775,6 +32808,7 @@ static swig_cast_info *swig_cast_initial[] = { _swigc__p_rlWebcam, _swigc__p_short, _swigc__p_sockaddr_in, + _swigc__p_std__shared_ptrT_rlSharedMemory__LockUserAddr_t, _swigc__p_unsigned_char, _swigc__p_unsigned_int, _swigc__p_unsigned_short, @@ -31797,7 +32831,7 @@ static swig_cast_info *swig_cast_initial[] = { * array with the correct data and linking the correct swig_cast_info * structures together. * - * The generated swig_type_info structures are assigned staticly to an initial + * The generated swig_type_info structures are assigned statically to an initial * array. We just loop through that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the @@ -31841,7 +32875,7 @@ SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; swig_module_info *module_head, *iter; - int found, init; + int init; /* check to see if the circular list has been setup, if not, set it up */ if (swig_module.next==0) { @@ -31860,22 +32894,18 @@ SWIG_InitializeModule(void *clientdata) { /* This is the first module loaded for this interpreter */ /* so set the swig module into the interpreter */ SWIG_SetModule(clientdata, &swig_module); - module_head = &swig_module; } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ - found=0; iter=module_head; do { if (iter==&swig_module) { - found=1; - break; + /* Our module is already in the list, so there's nothing more to do. */ + return; } iter=iter->next; } while (iter!= module_head); - /* if the is found in the list, then all is done and we may leave */ - if (found) return; - /* otherwise we must add out module into the list */ + /* otherwise we must add our module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; } @@ -32039,27 +33069,18 @@ SWIGEXPORT int SWIG_init(lua_State* L) /* default Lua action */ { #if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) /* valid for both Lua and eLua */ int i; + int globalRegister = 0; /* start with global table */ lua_pushglobaltable (L); - /* SWIG's internal initalisation */ + /* SWIG's internal initialisation */ SWIG_InitializeModule((void*)L); SWIG_PropagateClientData(); #endif -#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) +#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) || defined(SWIG_LUA_ELUA_EMULATE) /* add a global fn */ SWIG_Lua_add_function(L,"swig_type",SWIG_Lua_type); - SWIG_Lua_add_function(L,"swig_equals",SWIG_Lua_equal); - /* begin the module (its a table with the same name as the module) */ - SWIG_Lua_module_begin(L,SWIG_name); - /* add commands/functions */ - for (i = 0; swig_commands[i].name; i++){ - SWIG_Lua_module_add_function(L,swig_commands[i].name,swig_commands[i].func); - } - /* add variables */ - for (i = 0; swig_variables[i].name; i++){ - SWIG_Lua_module_add_variable(L,swig_variables[i].name,swig_variables[i].get,swig_variables[i].set); - } + SWIG_Lua_add_function(L,"swig_equals",SWIG_Lua_class_equal); #endif #if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) @@ -32069,17 +33090,34 @@ SWIGEXPORT int SWIG_init(lua_State* L) /* default Lua action */ SWIG_Lua_init_base_class(L,(swig_lua_class*)(swig_types[i]->clientdata)); } } - /* additional registration structs & classes in lua */ +#ifdef SWIG_LUA_MODULE_GLOBAL + globalRegister = 1; +#endif + + +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) + SWIG_Lua_namespace_register(L,&swig_SwigModule, globalRegister); +#endif + +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) for (i = 0; swig_types[i]; i++){ if (swig_types[i]->clientdata){ - SWIG_Lua_class_register(L,(swig_lua_class*)(swig_types[i]->clientdata)); + SWIG_Lua_elua_class_register_instance(L,(swig_lua_class*)(swig_types[i]->clientdata)); } } #endif -#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) - /* constants */ - SWIG_Lua_InstallConstants(L,swig_constants); +#if defined(SWIG_LUA_ELUA_EMULATE) + lua_newtable(L); + SWIG_Lua_elua_emulate_register(L,swig_SwigModule.ns_methods); + SWIG_Lua_elua_emulate_register_clear(L); + if(globalRegister) { + lua_pushstring(L,swig_SwigModule.name); + lua_pushvalue(L,-2); + lua_rawset(L,-4); + } +#endif + #endif #if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) diff --git a/language_bindings/language_binding_wrap_lua.cxx b/language_bindings/language_binding_wrap_lua.cxx index fa623dc1..cb086a19 100644 --- a/language_bindings/language_binding_wrap_lua.cxx +++ b/language_bindings/language_binding_wrap_lua.cxx @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.12 + * Version 3.0.12 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make @@ -8,7 +8,11 @@ * interface file instead. * ----------------------------------------------------------------------------- */ + +#ifndef SWIGLUA #define SWIGLUA +#endif + #define SWIG_LUA_TARGET SWIG_LUA_FLAVOR_LUA #define SWIG_LUA_MODULE_GLOBAL @@ -103,9 +107,11 @@ template T SwigValueInit() { #endif /* exporting methods */ -#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) -# ifndef GCC_HASCLASSVISIBILITY -# define GCC_HASCLASSVISIBILITY +#if defined(__GNUC__) +# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) +# ifndef GCC_HASCLASSVISIBILITY +# define GCC_HASCLASSVISIBILITY +# endif # endif #endif @@ -144,6 +150,19 @@ template T SwigValueInit() { # define _SCL_SECURE_NO_DEPRECATE #endif +/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */ +#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) +# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 +#endif + +/* Intel's compiler complains if a variable which was never initialised is + * cast to void, which is a common idiom which we use to indicate that we + * are aware a variable isn't used. So we just silence that warning. + * See: https://github.com/swig/swig/issues/192 for more discussion. + */ +#ifdef __INTEL_COMPILER +# pragma warning disable 592 +#endif /* ----------------------------------------------------------------------------- * swigrun.swg @@ -551,14 +570,14 @@ SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *iter = start; do { if (iter->size) { - register size_t l = 0; - register size_t r = iter->size - 1; + size_t l = 0; + size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ - register size_t i = (l + r) >> 1; + size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { - register int compare = strcmp(name, iname); + int compare = strcmp(name, iname); if (compare == 0) { return iter->types[i]; } else if (compare < 0) { @@ -602,7 +621,7 @@ SWIG_TypeQueryModule(swig_module_info *start, of the str field (the human readable name) */ swig_module_info *iter = start; do { - register size_t i = 0; + size_t i = 0; for (; i < iter->size; ++i) { if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) return iter->types[i]; @@ -621,10 +640,10 @@ SWIG_TypeQueryModule(swig_module_info *start, SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz) { static const char hex[17] = "0123456789abcdef"; - register const unsigned char *u = (unsigned char *) ptr; - register const unsigned char *eu = u + sz; + const unsigned char *u = (unsigned char *) ptr; + const unsigned char *eu = u + sz; for (; u != eu; ++u) { - register unsigned char uu = *u; + unsigned char uu = *u; *(c++) = hex[(uu & 0xf0) >> 4]; *(c++) = hex[uu & 0xf]; } @@ -636,22 +655,22 @@ SWIG_PackData(char *c, void *ptr, size_t sz) { */ SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz) { - register unsigned char *u = (unsigned char *) ptr; - register const unsigned char *eu = u + sz; + unsigned char *u = (unsigned char *) ptr; + const unsigned char *eu = u + sz; for (; u != eu; ++u) { - register char d = *(c++); - register unsigned char uu; + char d = *(c++); + unsigned char uu; if ((d >= '0') && (d <= '9')) - uu = ((d - '0') << 4); + uu = (unsigned char)((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) - uu = ((d - ('a'-10)) << 4); + uu = (unsigned char)((d - ('a'-10)) << 4); else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) - uu |= (d - '0'); + uu |= (unsigned char)(d - '0'); else if ((d >= 'a') && (d <= 'f')) - uu |= (d - ('a'-10)); + uu |= (unsigned char)(d - ('a'-10)); else return (char *) 0; *u = uu; @@ -747,23 +766,110 @@ extern "C" { # error SWIG_LUA_TARGET not defined #endif +#if defined(SWIG_LUA_ELUA_EMULATE) + +struct swig_elua_entry; + +typedef struct swig_elua_key { + int type; + union { + const char* strkey; + lua_Number numkey; + } key; +} swig_elua_key; + +typedef struct swig_elua_val { + int type; + union { + lua_Number number; + const struct swig_elua_entry *table; + const char *string; + lua_CFunction function; + struct { + char member; + long lvalue; + void *pvalue; + swig_type_info **ptype; + } userdata; + } value; +} swig_elua_val; + +typedef struct swig_elua_entry { + swig_elua_key key; + swig_elua_val value; +} swig_elua_entry; + +#define LSTRKEY(x) {LUA_TSTRING, {.strkey = x} } +#define LNUMKEY(x) {LUA_TNUMBER, {.numkey = x} } +#define LNILKEY {LUA_TNIL, {.strkey = 0} } + +#define LNUMVAL(x) {LUA_TNUMBER, {.number = x} } +#define LFUNCVAL(x) {LUA_TFUNCTION, {.function = x} } +#define LROVAL(x) {LUA_TTABLE, {.table = x} } +#define LNILVAL {LUA_TNIL, {.string = 0} } +#define LSTRVAL(x) {LUA_TSTRING, {.string = x} } + +#define LUA_REG_TYPE swig_elua_entry + +#define SWIG_LUA_ELUA_EMUL_METATABLE_KEY "__metatable" + +#define lua_pushrotable(L,p)\ + lua_newtable(L);\ + assert(p);\ + SWIG_Lua_elua_emulate_register(L,(swig_elua_entry*)(p)); + +#define SWIG_LUA_CONSTTAB_POINTER(B,C,D)\ + LSTRKEY(B), {LUA_TUSERDATA, { .userdata={0,0,(void*)(C),&D} } } + +#define SWIG_LUA_CONSTTAB_BINARY(B,S,C,D)\ + LSTRKEY(B), {LUA_TUSERDATA, { .userdata={1,S,(void*)(C),&D} } } +#endif + #if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) # define SWIG_LUA_CONSTTAB_INT(B, C) LSTRKEY(B), LNUMVAL(C) # define SWIG_LUA_CONSTTAB_FLOAT(B, C) LSTRKEY(B), LNUMVAL(C) # define SWIG_LUA_CONSTTAB_STRING(B, C) LSTRKEY(B), LSTRVAL(C) # define SWIG_LUA_CONSTTAB_CHAR(B, C) LSTRKEY(B), LNUMVAL(C) + /* Those two types of constants are not supported in elua */ + +#ifndef SWIG_LUA_CONSTTAB_POINTER +#warning eLua does not support pointers as constants. By default, nil will be used as value +#define SWIG_LUA_CONSTTAB_POINTER(B,C,D) LSTRKEY(B), LNILVAL +#endif + +#ifndef SWIG_LUA_CONSTTAB_BINARY +#warning eLua does not support pointers to member as constants. By default, nil will be used as value +#define SWIG_LUA_CONSTTAB_BINARY(B, S, C, D) LSTRKEY(B), LNILVAL +#endif #else /* SWIG_LUA_FLAVOR_LUA */ # define SWIG_LUA_CONSTTAB_INT(B, C) SWIG_LUA_INT, (char *)B, (long)C, 0, 0, 0 # define SWIG_LUA_CONSTTAB_FLOAT(B, C) SWIG_LUA_FLOAT, (char *)B, 0, (double)C, 0, 0 # define SWIG_LUA_CONSTTAB_STRING(B, C) SWIG_LUA_STRING, (char *)B, 0, 0, (void *)C, 0 # define SWIG_LUA_CONSTTAB_CHAR(B, C) SWIG_LUA_CHAR, (char *)B, (long)C, 0, 0, 0 +# define SWIG_LUA_CONSTTAB_POINTER(B,C,D)\ + SWIG_LUA_POINTER, (char *)B, 0, 0, (void *)C, &D +# define SWIG_LUA_CONSTTAB_BINARY(B, S, C, D)\ + SWIG_LUA_BINARY, (char *)B, S, 0, (void *)C, &D #endif +#ifndef SWIG_LUA_ELUA_EMULATE #if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) # define LRO_STRVAL(v) {{.p = (char *) v}, LUA_TSTRING} # define LSTRVAL LRO_STRVAL #endif +#endif /* SWIG_LUA_ELUA_EMULATE*/ + +#ifndef SWIG_LUA_ELUA_EMULATE +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) + +#ifndef MIN_OPT_LEVEL +#define MIN_OPT_LEVEL 2 +#endif +#include "lrodefs.h" +#include "lrotable.h" +#endif +#endif /* SWIG_LUA_ELUA_EMULATE*/ /* ----------------------------------------------------------------------------- * compatibility defines * ----------------------------------------------------------------------------- */ @@ -790,6 +896,23 @@ extern "C" { # define lua_pushglobaltable(L) lua_pushvalue(L, LUA_GLOBALSINDEX) #endif +/* lua_absindex was introduced in Lua 5.2 */ +#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502 +# define lua_absindex(L,i) ((i)>0 || (i) <= LUA_REGISTRYINDEX ? (i) : lua_gettop(L) + (i) + 1) +#endif + +/* lua_rawsetp was introduced in Lua 5.2 */ +#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502 +#define lua_rawsetp(L,index,ptr)\ + lua_pushlightuserdata(L,(void*)(ptr));\ + lua_insert(L,-2);\ + lua_rawset(L,index); + +#define lua_rawgetp(L,index,ptr)\ + lua_pushlightuserdata(L,(void*)(ptr));\ + lua_rawget(L,index); + +#endif /* -------------------------------------------------------------------------- * Helper functions for error handling @@ -839,6 +962,12 @@ typedef struct { lua_CFunction set; } swig_lua_var_info; +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) +typedef const LUA_REG_TYPE swig_lua_method; +typedef const LUA_REG_TYPE swig_lua_const_info; +#else /* Normal lua */ +typedef luaL_Reg swig_lua_method; + /* Constant information structure */ typedef struct { int type; @@ -849,10 +978,7 @@ typedef struct { swig_type_info **ptype; } swig_lua_const_info; -typedef struct { - const char *name; - lua_CFunction method; -} swig_lua_method; +#endif typedef struct { const char *name; @@ -860,23 +986,28 @@ typedef struct { lua_CFunction setmethod; } swig_lua_attribute; -// Can be used to create namespaces. Currently used to -// wrap class static methods/variables/constants -typedef struct { + +struct swig_lua_class; +/* Can be used to create namespaces. Currently used to wrap class static methods/variables/constants */ +typedef struct swig_lua_namespace { const char *name; swig_lua_method *ns_methods; swig_lua_attribute *ns_attributes; swig_lua_const_info *ns_constants; + struct swig_lua_class **ns_classes; + struct swig_lua_namespace **ns_namespaces; } swig_lua_namespace; typedef struct swig_lua_class { - const char *name; + const char *name; /* Name that this class has in Lua */ + const char *fqname; /* Fully qualified name - Scope + class name */ swig_type_info **type; lua_CFunction constructor; void (*destructor)(void *); swig_lua_method *methods; swig_lua_attribute *attributes; - swig_lua_namespace cls_static; + swig_lua_namespace *cls_static; + swig_lua_method *metatable; /* 0 for -eluac */ struct swig_lua_class **bases; const char **base_names; } swig_lua_class; @@ -940,18 +1071,23 @@ typedef struct { lua_pushcfunction(L, f), \ lua_rawset(L,-3)) +#define SWIG_Lua_add_boolean(L,n,b) \ + (lua_pushstring(L, n), \ + lua_pushboolean(L, b), \ + lua_rawset(L,-3)) + /* special helper for allowing 'nil' for usertypes */ #define SWIG_isptrtype(L,I) (lua_isuserdata(L,I) || lua_isnil(L,I)) #ifdef __cplusplus /* Special helper for member function pointers it gets the address, casts it, then dereferences it */ -//#define SWIG_mem_fn_as_voidptr(a) (*((char**)&(a))) +/*#define SWIG_mem_fn_as_voidptr(a) (*((char**)&(a))) */ #endif /* storing/access of swig_module_info */ SWIGRUNTIME swig_module_info * -SWIG_Lua_GetModule(lua_State* L) { +SWIG_Lua_GetModule(lua_State *L) { swig_module_info *ret = 0; lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); lua_rawget(L,LUA_REGISTRYINDEX); @@ -962,7 +1098,7 @@ SWIG_Lua_GetModule(lua_State* L) { } SWIGRUNTIME void -SWIG_Lua_SetModule(lua_State* L, swig_module_info *module) { +SWIG_Lua_SetModule(lua_State *L, swig_module_info *module) { /* add this all into the Lua registry: */ lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); lua_pushlightuserdata(L,(void*)module); @@ -976,7 +1112,7 @@ SWIG_Lua_SetModule(lua_State* L, swig_module_info *module) { /* this function is called when trying to set an immutable. default action is to print an error. This can removed with a compile flag SWIGLUA_IGNORE_SET_IMMUTABLE */ -SWIGINTERN int SWIG_Lua_set_immutable(lua_State* L) +SWIGINTERN int SWIG_Lua_set_immutable(lua_State *L) { /* there should be 1 param passed in: the new value */ #ifndef SWIGLUA_IGNORE_SET_IMMUTABLE @@ -986,170 +1122,153 @@ SWIGINTERN int SWIG_Lua_set_immutable(lua_State* L) return 0; /* should not return anything */ } -/* the module.get method used for getting linked data */ -SWIGINTERN int SWIG_Lua_module_get(lua_State* L) -{ -/* there should be 2 params passed in - (1) table (not the meta table) - (2) string name of the attribute - printf("SWIG_Lua_module_get %p(%s) '%s'\n", - lua_topointer(L,1),lua_typename(L,lua_type(L,1)), - lua_tostring(L,2)); -*/ - /* get the metatable */ -#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) - assert(lua_isrotable(L,1)); /* just in case */ -#else - assert(lua_istable(L,1)); /* default Lua action */ -#endif - lua_getmetatable(L,1); /* get the metatable */ -#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) - assert(lua_isrotable(L,-1)); /* just in case */ -#else - assert(lua_istable(L,-1)); -#endif - SWIG_Lua_get_table(L,".get"); /* get the .get table */ - lua_remove(L,3); /* remove metatable */ -#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) - if (lua_isrotable(L,-1)) -#else - if (lua_istable(L,-1)) -#endif - { - /* look for the key in the .get table */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); - lua_remove(L,3); /* remove .get */ - if (lua_iscfunction(L,-1)) - { /* found it so call the fn & return its value */ - lua_call(L,0,1); - return 1; - } - lua_pop(L,1); /* remove the top */ - } - lua_pop(L,1); /* remove the .get */ - lua_pushnil(L); /* return a nil */ - return 1; -} +#ifdef SWIG_LUA_ELUA_EMULATE -/* the module.set method used for setting linked data */ -SWIGINTERN int SWIG_Lua_module_set(lua_State* L) +SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State *L,void *ptr,swig_type_info *type, int own); +SWIGRUNTIME void SWIG_Lua_NewPackedObj(lua_State *L,void *ptr,size_t size,swig_type_info *type); +static int swig_lua_elua_emulate_unique_key; + +/* This function emulates eLua rotables behaviour. It loads a rotable definition into the usual lua table. */ +SWIGINTERN void SWIG_Lua_elua_emulate_register(lua_State *L, const swig_elua_entry *table) { -/* there should be 3 params passed in - (1) table (not the meta table) - (2) string name of the attribute - (3) any for the new value -*/ - /* get the metatable */ -#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) - assert(lua_isrotable(L,1)); /* just in case */ -#else - assert(lua_istable(L,1)); /* default Lua action */ -#endif - lua_getmetatable(L,1); /* get the metatable */ -#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) - assert(lua_isrotable(L,-1)); /* just in case */ -#else + int i, table_parsed, parsed_tables_array, target_table; assert(lua_istable(L,-1)); -#endif - SWIG_Lua_get_table(L,".set"); /* get the .set table */ - lua_remove(L,4); /* remove metatable */ -#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) - if (lua_isrotable(L,-1)) -#else - if (lua_istable(L,-1)) -#endif + target_table = lua_gettop(L); + /* Get the registry where we put all parsed tables to avoid loops */ + lua_rawgetp(L, LUA_REGISTRYINDEX, &swig_lua_elua_emulate_unique_key); + if(lua_isnil(L,-1)) { + lua_pop(L,1); + lua_newtable(L); + lua_pushvalue(L,-1); + lua_rawsetp(L,LUA_REGISTRYINDEX,(void*)(&swig_lua_elua_emulate_unique_key)); + } + parsed_tables_array = lua_gettop(L); + lua_pushvalue(L,target_table); + lua_rawsetp(L, parsed_tables_array, table); + table_parsed = 0; + const int SWIGUNUSED pairs_start = lua_gettop(L); + for(i = 0;table[i].key.type != LUA_TNIL || table[i].value.type != LUA_TNIL;i++) { - /* look for the key in the .set table */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); - lua_remove(L,4); /* remove .set */ - if (lua_iscfunction(L,-1)) - { /* found it so call the fn & return its value */ - lua_pushvalue(L,3); /* value */ - lua_call(L,1,0); - return 0; + const swig_elua_entry *entry = table + i; + int is_metatable = 0; + switch(entry->key.type) { + case LUA_TSTRING: + lua_pushstring(L,entry->key.key.strkey); + if(strcmp(entry->key.key.strkey, SWIG_LUA_ELUA_EMUL_METATABLE_KEY) == 0) + is_metatable = 1; + break; + case LUA_TNUMBER: + lua_pushnumber(L,entry->key.key.numkey); + break; + case LUA_TNIL: + lua_pushnil(L); + break; + default: + assert(0); } -#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) - else { - return 0; // Exits stoically if an invalid key is initialized. + switch(entry->value.type) { + case LUA_TSTRING: + lua_pushstring(L,entry->value.value.string); + break; + case LUA_TNUMBER: + lua_pushnumber(L,entry->value.value.number); + break; + case LUA_TFUNCTION: + lua_pushcfunction(L,entry->value.value.function); + break; + case LUA_TTABLE: + lua_rawgetp(L,parsed_tables_array, entry->value.value.table); + table_parsed = !lua_isnil(L,-1); + if(!table_parsed) { + lua_pop(L,1); /*remove nil */ + lua_newtable(L); + SWIG_Lua_elua_emulate_register(L,entry->value.value.table); + } + if(is_metatable) { + assert(lua_istable(L,-1)); + lua_pushvalue(L,-1); + lua_setmetatable(L,target_table); + } + + break; + case LUA_TUSERDATA: + if(entry->value.value.userdata.member) + SWIG_NewMemberObj(L,entry->value.value.userdata.pvalue, + entry->value.value.userdata.lvalue, + *(entry->value.value.userdata.ptype)); + else + SWIG_NewPointerObj(L,entry->value.value.userdata.pvalue, + *(entry->value.value.userdata.ptype),0); + break; + case LUA_TNIL: + lua_pushnil(L); + break; + default: + assert(0); } -#endif + assert(lua_gettop(L) == pairs_start + 2); + lua_rawset(L,target_table); } - lua_settop(L,3); /* reset back to start */ - /* we now have the table, key & new value, so just set directly */ - lua_rawset(L,1); /* add direct */ - return 0; + lua_pop(L,1); /* Removing parsed tables storage */ + assert(lua_gettop(L) == target_table); } -#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) -/* registering a module in lua. Pushes the module table on the stack. */ -SWIGINTERN void SWIG_Lua_module_begin(lua_State* L,const char* name) +SWIGINTERN void SWIG_Lua_elua_emulate_register_clear(lua_State *L) { - assert(lua_istable(L,-1)); /* just in case */ - lua_pushstring(L,name); - lua_newtable(L); /* the table */ - /* add meta table */ - lua_newtable(L); /* the meta table */ - SWIG_Lua_add_function(L,"__index",SWIG_Lua_module_get); - SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_module_set); - lua_pushstring(L,".get"); - lua_newtable(L); /* the .get table */ - lua_rawset(L,-3); /* add .get into metatable */ - lua_pushstring(L,".set"); - lua_newtable(L); /* the .set table */ - lua_rawset(L,-3); /* add .set into metatable */ - lua_setmetatable(L,-2); /* sets meta table in module */ -#ifdef SWIG_LUA_MODULE_GLOBAL - /* If requested, install the module directly into the global namespace. */ - lua_rawset(L,-3); /* add module into parent */ - SWIG_Lua_get_table(L,name); /* get the table back out */ -#else - /* Do not install the module table as global name. The stack top has - the module table with the name below. We pop the top and replace - the name with it. */ - lua_replace(L,-2); -#endif + lua_pushnil(L); + lua_rawsetp(L, LUA_REGISTRYINDEX, &swig_lua_elua_emulate_unique_key); } -/* ending the register */ -SWIGINTERN void SWIG_Lua_module_end(lua_State* L) -{ - lua_pop(L,1); /* tidy stack (remove module) */ -} +SWIGINTERN void SWIG_Lua_get_class_registry(lua_State *L); -/* adding a linked variable to the module */ -SWIGINTERN void SWIG_Lua_module_add_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn) +SWIGINTERN int SWIG_Lua_emulate_elua_getmetatable(lua_State *L) { - assert(lua_istable(L,-1)); /* just in case */ - lua_getmetatable(L,-1); /* get the metatable */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".get"); /* find the .get table */ - assert(lua_istable(L,-1)); /* should be a table: */ - SWIG_Lua_add_function(L,name,getFn); - lua_pop(L,1); /* tidy stack (remove table) */ - if (setFn) /* if there is a set fn */ - { - SWIG_Lua_get_table(L,".set"); /* find the .set table */ - assert(lua_istable(L,-1)); /* should be a table: */ - SWIG_Lua_add_function(L,name,setFn); - lua_pop(L,1); /* tidy stack (remove table) */ + SWIG_check_num_args("getmetatable(SWIG eLua emulation)", 1, 1); + SWIG_Lua_get_class_registry(L); + lua_getfield(L,-1,"lua_getmetatable"); + lua_remove(L,-2); /* remove the registry*/ + assert(!lua_isnil(L,-1)); + lua_pushvalue(L,1); + assert(lua_gettop(L) == 3); /* object | function | object again */ + lua_call(L,1,1); + if(!lua_isnil(L,-1)) /*There is an ordinary metatable */ + return 1; + /*if it is a table, then emulate elua behaviour - check for __metatable attribute of a table*/ + assert(lua_gettop(L) == 2); + if(lua_istable(L,-2)) { + lua_pop(L,1); /*remove the nil*/ + lua_getfield(L,-1, SWIG_LUA_ELUA_EMUL_METATABLE_KEY); } - lua_pop(L,1); /* tidy stack (remove meta) */ + assert(lua_gettop(L) == 2); + return 1; + +fail: + lua_error(L); + return 0; } -#endif -/* adding a function module */ -SWIGINTERN void SWIG_Lua_module_add_function(lua_State* L,const char* name,lua_CFunction fn) +SWIGINTERN void SWIG_Lua_emulate_elua_swap_getmetatable(lua_State *L) { - SWIG_Lua_add_function(L,name,fn); + SWIG_Lua_get_class_registry(L); + lua_pushglobaltable(L); + lua_pushstring(L,"lua_getmetatable"); + lua_getfield(L,-2,"getmetatable"); + assert(!lua_isnil(L,-1)); + lua_rawset(L,-4); + lua_pushstring(L, "getmetatable"); + lua_pushcfunction(L, SWIG_Lua_emulate_elua_getmetatable); + lua_rawset(L,-3); + lua_pop(L,2); + } +/* END OF REMOVE */ +#endif /* ----------------------------------------------------------------------------- - * global variable support code: namespaces + * global variable support code: namespaces and modules (which are the same thing) * ----------------------------------------------------------------------------- */ -SWIGINTERN int SWIG_Lua_namespace_get(lua_State* L) +SWIGINTERN int SWIG_Lua_namespace_get(lua_State *L) { /* there should be 2 params passed in (1) table (not the meta table) @@ -1186,7 +1305,7 @@ SWIGINTERN int SWIG_Lua_namespace_get(lua_State* L) return 0; } -SWIGINTERN int SWIG_Lua_namespace_set(lua_State* L) +SWIGINTERN int SWIG_Lua_namespace_set(lua_State *L) { /* there should be 3 params passed in (1) table (not the meta table) @@ -1213,46 +1332,70 @@ SWIGINTERN int SWIG_Lua_namespace_set(lua_State* L) lua_pop(L,1); /* remove the value */ } lua_pop(L,1); /* remove the value .set table */ + lua_pop(L,1); /* remote metatable */ + lua_rawset(L,-3); return 0; } -SWIGINTERN void SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]); // forward declaration -SWIGINTERN void SWIG_Lua_add_class_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn); // forward declaration +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) /* In elua this is useless */ +SWIGINTERN void SWIG_Lua_InstallConstants(lua_State *L, swig_lua_const_info constants[]); /* forward declaration */ +SWIGINTERN void SWIG_Lua_add_variable(lua_State *L,const char *name,lua_CFunction getFn,lua_CFunction setFn); /* forward declaration */ +SWIGINTERN void SWIG_Lua_class_register(lua_State *L,swig_lua_class *clss); /* helper function - register namespace methods and attributes into namespace */ -SWIGINTERN int SWIG_Lua_add_namespace_details(lua_State* L, swig_lua_namespace* ns) +SWIGINTERN int SWIG_Lua_add_namespace_details(lua_State *L, swig_lua_namespace *ns) { - int i = 0; + int i; + /* There must be namespace table (not metatable) at the top of the stack */ assert(lua_istable(L,-1)); - /* There must be table at the top of the stack */ SWIG_Lua_InstallConstants(L, ns->ns_constants); + /* add methods to the namespace/module table */ + for(i=0;ns->ns_methods[i].name;i++){ + SWIG_Lua_add_function(L,ns->ns_methods[i].name,ns->ns_methods[i].func); + } lua_getmetatable(L,-1); /* add fns */ for(i=0;ns->ns_attributes[i].name;i++){ - SWIG_Lua_add_class_variable(L,ns->ns_attributes[i].name,ns->ns_attributes[i].getmethod,ns->ns_attributes[i].setmethod); - } - - /* add methods to the metatable */ - SWIG_Lua_get_table(L,".fn"); /* find the .fn table */ - assert(lua_istable(L,-1)); /* just in case */ - for(i=0;ns->ns_methods[i].name;i++){ - SWIG_Lua_add_function(L,ns->ns_methods[i].name,ns->ns_methods[i].method); + SWIG_Lua_add_variable(L,ns->ns_attributes[i].name,ns->ns_attributes[i].getmethod,ns->ns_attributes[i].setmethod); } - lua_pop(L,1); /* clear stack - remove metatble */ lua_pop(L,1); return 0; } -/* helper function. creates namespace table and add it to module table */ -SWIGINTERN int SWIG_Lua_namespace_register(lua_State* L, swig_lua_namespace* ns) +/* Register all classes in the namespace */ +SWIGINTERN void SWIG_Lua_add_namespace_classes(lua_State *L, swig_lua_namespace *ns) +{ + swig_lua_class **classes; + + /* There must be a module/namespace table at the top of the stack */ + assert(lua_istable(L,-1)); + + classes = ns->ns_classes; + + if( classes != 0 ) { + while(*classes != 0) { + SWIG_Lua_class_register(L, *classes); + classes++; + } + } +} + +/* Helper function. Creates namespace table and adds it to module table + if 'reg' is true, then will register namespace table to parent one (must be on top of the stack + when function is called). + Function always returns newly registered table on top of the stack. +*/ +SWIGINTERN void SWIG_Lua_namespace_register(lua_State *L, swig_lua_namespace *ns, int reg) { - assert(lua_istable(L,-1)); /* just in case. This is supposed to be module table */ + swig_lua_namespace **sub_namespace; + /* 1 argument - table on the top of the stack */ + const int SWIGUNUSED begin = lua_gettop(L); + assert(lua_istable(L,-1)); /* just in case. This is supposed to be module table or parent namespace table */ lua_checkstack(L,5); - lua_pushstring(L, ns->name); lua_newtable(L); /* namespace itself */ lua_newtable(L); /* metatable for namespace */ @@ -1274,117 +1417,348 @@ SWIGINTERN int SWIG_Lua_namespace_register(lua_State* L, swig_lua_namespace* ns) SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_namespace_set); lua_setmetatable(L,-2); /* set metatable */ - lua_rawset(L,-3); /* add namespace to module table */ - return 0; + + /* Register all functions, variables etc */ + SWIG_Lua_add_namespace_details(L,ns); + /* Register classes */ + SWIG_Lua_add_namespace_classes(L,ns); + + sub_namespace = ns->ns_namespaces; + if( sub_namespace != 0) { + while(*sub_namespace != 0) { + SWIG_Lua_namespace_register(L, *sub_namespace, 1); + lua_pop(L,1); /* removing sub-namespace table */ + sub_namespace++; + } + } + + if (reg) { + lua_pushstring(L,ns->name); + lua_pushvalue(L,-2); + lua_rawset(L,-4); /* add namespace to module table */ + } + assert(lua_gettop(L) == begin+1); } +#endif /* SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA */ + /* ----------------------------------------------------------------------------- * global variable support code: classes * ----------------------------------------------------------------------------- */ -/* the class.get method, performs the lookup of class attributes */ -SWIGINTERN int SWIG_Lua_class_get(lua_State* L) +SWIGINTERN void SWIG_Lua_get_class_metatable(lua_State *L,const char *cname); + +typedef int (*swig_lua_base_iterator_func)(lua_State*,swig_type_info*, int, int *ret); + +SWIGINTERN int SWIG_Lua_iterate_bases(lua_State *L, swig_type_info * SWIGUNUSED swig_type, + int first_arg, swig_lua_base_iterator_func func, int *const ret) +{ + /* first_arg - position of the object in stack. Everything that is above are arguments + * and is passed to every evocation of the func */ + int last_arg = lua_gettop(L);/* position of last argument */ + int original_metatable = last_arg + 1; + size_t bases_count; + int result = SWIG_ERROR; + int bases_table; + (void)swig_type; + lua_getmetatable(L,first_arg); + + /* initialise base search */ +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) + SWIG_Lua_get_table(L,".bases"); + assert(lua_istable(L,-1)); + bases_count = lua_rawlen(L,-1); + bases_table = lua_gettop(L); +#else + /* In elua .bases table doesn't exist. Use table from swig_lua_class */ + (void)bases_table; + assert(swig_type!=0); + swig_module_info *module=SWIG_GetModule(L); + swig_lua_class **bases= ((swig_lua_class*)(swig_type->clientdata))->bases; + const char **base_names= ((swig_lua_class*)(swig_type->clientdata))->base_names; + bases_count = 0; + for(;base_names[bases_count]; + bases_count++);/* get length of bases */ +#endif + + if(ret) + *ret = 0; + if(bases_count>0) + { + int to_remove; + size_t i; + int j; + int subcall_last_arg; + int subcall_first_arg = lua_gettop(L) + 1;/* Here a copy of first_arg and arguments begin */ + int valid = 1; + swig_type_info *base_swig_type = 0; + for(j=first_arg;j<=last_arg;j++) + lua_pushvalue(L,j); + subcall_last_arg = lua_gettop(L); + + /* Trick: temporarily replacing original metatable with metatable for base class and call getter */ + for(i=0;ifqname); + base_swig_type = SWIG_TypeQueryModule(module,module,base_names[i]); + assert(base_swig_type != 0); + } +#endif + + if(!valid) + continue; + assert(lua_isuserdata(L, subcall_first_arg)); + assert(lua_istable(L,-1)); + lua_setmetatable(L,subcall_first_arg); /* Set new metatable */ + assert(lua_gettop(L) == subcall_last_arg); + result = func(L, base_swig_type,subcall_first_arg, ret); /* Forward call */ + if(result != SWIG_ERROR) { + break; + } + } + /* Restore original metatable */ + lua_pushvalue(L,original_metatable); + lua_setmetatable(L,first_arg); + /* Clear - remove everything between last_arg and subcall_last_arg including */ + to_remove = subcall_last_arg - last_arg; + for(j=0;jtype; + result = SWIG_Lua_class_do_get(L,type,1,&ret); + if(result == SWIG_OK) + return ret; + + result = SWIG_Lua_class_do_get_item(L,type,1,&ret); + if(result == SWIG_OK) + return ret; + + return 0; } -/* the class.set method, performs the lookup of class attributes */ -SWIGINTERN int SWIG_Lua_class_set(lua_State* L) +/* helper for the class.set method, performs the lookup of class attributes + * It returns error code. Number of function return values is passed inside 'ret' + */ +SWIGINTERN int SWIG_Lua_class_do_set(lua_State *L, swig_type_info *type, int first_arg, int *ret) { /* there should be 3 params passed in (1) table (not the meta table) (2) string name of the attribute (3) any for the new value -printf("SWIG_Lua_class_set %p(%s) '%s' %p(%s)\n", - lua_topointer(L,1),lua_typename(L,lua_type(L,1)), - lua_tostring(L,2), - lua_topointer(L,3),lua_typename(L,lua_type(L,3)));*/ + */ - assert(lua_isuserdata(L,1)); /* just in case */ - lua_getmetatable(L,1); /* get the meta table */ + int bases_search_result; + int substack_start = lua_gettop(L) - 3; + lua_checkstack(L,5); + assert(lua_isuserdata(L,substack_start+1)); /* just in case */ + lua_getmetatable(L,substack_start+1); /* get the meta table */ assert(lua_istable(L,-1)); /* just in case */ + if(ret) + *ret = 0; /* it is setter - number of return values is always 0 */ SWIG_Lua_get_table(L,".set"); /* find the .set table */ if (lua_istable(L,-1)) { /* look for the key in the .set table */ - lua_pushvalue(L,2); /* key */ + lua_pushvalue(L,substack_start+2); /* key */ lua_rawget(L,-2); + lua_remove(L,-2); /* tidy stack, remove .set table */ if (lua_iscfunction(L,-1)) { /* found it so call the fn & return its value */ - lua_pushvalue(L,1); /* userdata */ - lua_pushvalue(L,3); /* value */ + lua_pushvalue(L,substack_start+1); /* userdata */ + lua_pushvalue(L,substack_start+3); /* value */ lua_call(L,2,0); - return 0; + lua_remove(L,substack_start+4); /*remove metatable*/ + return SWIG_OK; } lua_pop(L,1); /* remove the value */ + } else { + lua_pop(L,1); /* remove the answer for .set table request*/ } - lua_pop(L,1); /* remove the value .set table */ /* NEW: looks for the __setitem() fn this is a user provided set fn */ SWIG_Lua_get_table(L,"__setitem"); /* find the fn */ if (lua_iscfunction(L,-1)) /* if its there */ { /* found it so call the fn & return its value */ - lua_pushvalue(L,1); /* the userdata */ - lua_pushvalue(L,2); /* the parameter */ - lua_pushvalue(L,3); /* the value */ + lua_pushvalue(L,substack_start+1); /* the userdata */ + lua_pushvalue(L,substack_start+2); /* the parameter */ + lua_pushvalue(L,substack_start+3); /* the value */ lua_call(L,3,0); /* 3 values in ,0 out */ lua_remove(L,-2); /* stack tidy, remove metatable */ - return 1; + return SWIG_OK; + } + lua_pop(L,1); /* remove value */ + + lua_pop(L,1); /* remove metatable */ + /* Search among bases */ + bases_search_result = SWIG_Lua_iterate_bases(L,type,first_arg,SWIG_Lua_class_do_set,ret); + if(ret) + assert(*ret == 0); + assert(lua_gettop(L) == substack_start + 3); + return bases_search_result; +} + +/* This is the actual method exported to Lua. It calls SWIG_Lua_class_do_set and correctly + * handles return values. + */ +SWIGINTERN int SWIG_Lua_class_set(lua_State *L) +{ +/* There should be 3 params passed in + (1) table (not the meta table) + (2) string name of the attribute + (3) any for the new value + */ + int ret = 0; + int result; + swig_lua_userdata *usr; + swig_type_info *type; + assert(lua_isuserdata(L,1)); + usr=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ + type = usr->type; + result = SWIG_Lua_class_do_set(L,type,1,&ret); + if(result != SWIG_OK) { + SWIG_Lua_pushferrstring(L,"Assignment not possible. No setter/member with this name. For custom assignments implement __setitem method."); + lua_error(L); + } else { + assert(ret==0); } return 0; } /* the class.destruct method called by the interpreter */ -SWIGINTERN int SWIG_Lua_class_destruct(lua_State* L) +SWIGINTERN int SWIG_Lua_class_destruct(lua_State *L) { /* there should be 1 params passed in (1) userdata (not the meta table) */ - swig_lua_userdata* usr; - swig_lua_class* clss; + swig_lua_userdata *usr; + swig_lua_class *clss; assert(lua_isuserdata(L,-1)); /* just in case */ usr=(swig_lua_userdata*)lua_touserdata(L,-1); /* get it */ /* if must be destroyed & has a destructor */ @@ -1400,31 +1774,30 @@ SWIGINTERN int SWIG_Lua_class_destruct(lua_State* L) } /* the class.__tostring method called by the interpreter and print */ -SWIGINTERN int SWIG_Lua_class_tostring(lua_State* L) +SWIGINTERN int SWIG_Lua_class_tostring(lua_State *L) { /* there should be 1 param passed in (1) userdata (not the metatable) */ + const char *className; + void* userData; assert(lua_isuserdata(L,1)); /* just in case */ - unsigned long userData = (unsigned long)lua_touserdata(L,1); /* get the userdata address for later */ + userData = lua_touserdata(L,1); /* get the userdata address for later */ lua_getmetatable(L,1); /* get the meta table */ assert(lua_istable(L,-1)); /* just in case */ - + lua_getfield(L, -1, ".type"); - const char* className = lua_tostring(L, -1); - - char output[256]; - sprintf(output, "<%s userdata: %lX>", className, userData); - - lua_pushstring(L, (const char*)output); + className = lua_tostring(L, -1); + + lua_pushfstring(L, "<%s userdata: %p>", className, userData); return 1; } /* to manually disown some userdata */ -SWIGINTERN int SWIG_Lua_class_disown(lua_State* L) +SWIGINTERN int SWIG_Lua_class_disown(lua_State *L) { /* there should be 1 params passed in (1) userdata (not the meta table) */ - swig_lua_userdata* usr; + swig_lua_userdata *usr; assert(lua_isuserdata(L,-1)); /* just in case */ usr=(swig_lua_userdata*)lua_touserdata(L,-1); /* get it */ @@ -1432,25 +1805,69 @@ SWIGINTERN int SWIG_Lua_class_disown(lua_State* L) return 0; } -/* Constructor proxy. Used when class name entry in module is not class constructor, -but special table instead. */ -SWIGINTERN int SWIG_Lua_constructor_proxy(lua_State* L) +/* lua callable function to compare userdata's value +the issue is that two userdata may point to the same thing +but to lua, they are different objects */ +SWIGRUNTIME int SWIG_Lua_class_equal(lua_State *L) { - /* unlimited number of parameters - First one is our proxy table and we should remove it - Other we should pass to real constructor - */ - assert(lua_istable(L,1)); - lua_pushstring(L,".constructor"); - lua_rawget(L,1); - assert(!lua_isnil(L,-1)); - lua_replace(L,1); /* replace our table with real constructor */ - lua_call(L,lua_gettop(L)-1,1); - return 1; -} + int result; + swig_lua_userdata *usr1,*usr2; + if (!lua_isuserdata(L,1) || !lua_isuserdata(L,2)) /* just in case */ + return 0; /* nil reply */ + usr1=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ + usr2=(swig_lua_userdata*)lua_touserdata(L,2); /* get data */ + /*result=(usr1->ptr==usr2->ptr && usr1->type==usr2->type); only works if type is the same*/ + result=(usr1->ptr==usr2->ptr); + lua_pushboolean(L,result); + return 1; +} + +/* populate table at the top of the stack with metamethods that ought to be inherited */ +SWIGINTERN void SWIG_Lua_populate_inheritable_metamethods(lua_State *L) +{ + SWIG_Lua_add_boolean(L, "__add", 1); + SWIG_Lua_add_boolean(L, "__sub", 1); + SWIG_Lua_add_boolean(L, "__mul", 1); + SWIG_Lua_add_boolean(L, "__div", 1); + SWIG_Lua_add_boolean(L, "__mod", 1); + SWIG_Lua_add_boolean(L, "__pow", 1); + SWIG_Lua_add_boolean(L, "__unm", 1); + SWIG_Lua_add_boolean(L, "__len", 1 ); + SWIG_Lua_add_boolean(L, "__concat", 1 ); + SWIG_Lua_add_boolean(L, "__eq", 1); + SWIG_Lua_add_boolean(L, "__lt", 1); + SWIG_Lua_add_boolean(L, "__le", 1); + SWIG_Lua_add_boolean(L, "__call", 1); + SWIG_Lua_add_boolean(L, "__tostring", 1); + SWIG_Lua_add_boolean(L, "__gc", 0); +} + +/* creates the swig registry */ +SWIGINTERN void SWIG_Lua_create_class_registry(lua_State *L) +{ + /* create main SWIG registry table */ + lua_pushstring(L,"SWIG"); + lua_newtable(L); + /* populate it with some predefined data */ -/* gets the swig class registry (or creates it) */ -SWIGINTERN void SWIG_Lua_get_class_registry(lua_State* L) + /* .library table. Placeholder */ + lua_pushstring(L,".library"); + lua_newtable(L); + { + /* list of metamethods that class inherits from its bases */ + lua_pushstring(L,"inheritable_metamethods"); + lua_newtable(L); + /* populate with list of metamethods */ + SWIG_Lua_populate_inheritable_metamethods(L); + lua_rawset(L,-3); + } + lua_rawset(L,-3); + + lua_rawset(L,LUA_REGISTRYINDEX); +} + +/* gets the swig registry (or creates it) */ +SWIGINTERN void SWIG_Lua_get_class_registry(lua_State *L) { /* add this all into the swig registry: */ lua_pushstring(L,"SWIG"); @@ -1458,17 +1875,29 @@ SWIGINTERN void SWIG_Lua_get_class_registry(lua_State* L) if (!lua_istable(L,-1)) /* not there */ { /* must be first time, so add it */ lua_pop(L,1); /* remove the result */ - lua_pushstring(L,"SWIG"); - lua_newtable(L); - lua_rawset(L,LUA_REGISTRYINDEX); + SWIG_Lua_create_class_registry(L); /* then get it */ lua_pushstring(L,"SWIG"); lua_rawget(L,LUA_REGISTRYINDEX); } } -/* helper fn to get the classes metatable from the register */ -SWIGINTERN void SWIG_Lua_get_class_metatable(lua_State* L,const char* cname) +SWIGINTERN void SWIG_Lua_get_inheritable_metamethods(lua_State *L) +{ + SWIG_Lua_get_class_registry(L); + lua_pushstring(L, ".library"); + lua_rawget(L,-2); + assert( !lua_isnil(L,-1) ); + lua_pushstring(L, "inheritable_metamethods"); + lua_rawget(L,-2); + + /* Remove class registry and library table */ + lua_remove(L,-2); + lua_remove(L,-2); +} + +/* Helper function to get the classes metatable from the register */ +SWIGINTERN void SWIG_Lua_get_class_metatable(lua_State *L,const char *cname) { SWIG_Lua_get_class_registry(L); /* get the registry */ lua_pushstring(L,cname); /* get the name */ @@ -1476,8 +1905,96 @@ SWIGINTERN void SWIG_Lua_get_class_metatable(lua_State* L,const char* cname) lua_remove(L,-2); /* tidy up (remove registry) */ } +/* Set up the base classes pointers. +Each class structure has a list of pointers to the base class structures. +This function fills them. +It cannot be done at compile time, as this will not work with hireachies +spread over more than one swig file. +Therefore it must be done at runtime, querying the SWIG type system. +*/ +SWIGINTERN void SWIG_Lua_init_base_class(lua_State *L,swig_lua_class *clss) +{ + int i=0; + swig_module_info *module=SWIG_GetModule(L); + for(i=0;clss->base_names[i];i++) + { + if (clss->bases[i]==0) /* not found yet */ + { + /* lookup and cache the base class */ + swig_type_info *info = SWIG_TypeQueryModule(module,module,clss->base_names[i]); + if (info) clss->bases[i] = (swig_lua_class *) info->clientdata; + } + } +} + +#if defined(SWIG_LUA_SQUASH_BASES) && (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) +/* Merges two tables */ +SWIGINTERN void SWIG_Lua_merge_tables_by_index(lua_State *L, int target, int source) +{ + /* iterating */ + lua_pushnil(L); + while (lua_next(L,source) != 0) { + /* -1 - value, -2 - index */ + /* have to copy to assign */ + lua_pushvalue(L,-2); /* copy of index */ + lua_pushvalue(L,-2); /* copy of value */ + lua_rawset(L, target); + lua_pop(L,1); + /* only key is left */ + } +} + +/* Merges two tables with given name. original - index of target metatable, base - index of source metatable */ +SWIGINTERN void SWIG_Lua_merge_tables(lua_State *L, const char* name, int original, int base) +{ + /* push original[name], then base[name] */ + lua_pushstring(L,name); + lua_rawget(L,original); + int original_table = lua_gettop(L); + lua_pushstring(L,name); + lua_rawget(L,base); + int base_table = lua_gettop(L); + SWIG_Lua_merge_tables_by_index(L, original_table, base_table); + /* clearing stack */ + lua_pop(L,2); +} + +/* Function takes all symbols from base and adds it to derived class. It's just a helper. */ +SWIGINTERN void SWIG_Lua_class_squash_base(lua_State *L, swig_lua_class *base_cls) +{ + /* There is one parameter - original, i.e. 'derived' class metatable */ + assert(lua_istable(L,-1)); + int original = lua_gettop(L); + SWIG_Lua_get_class_metatable(L,base_cls->fqname); + int base = lua_gettop(L); + SWIG_Lua_merge_tables(L, ".fn", original, base ); + SWIG_Lua_merge_tables(L, ".set", original, base ); + SWIG_Lua_merge_tables(L, ".get", original, base ); + lua_pop(L,1); +} + +/* Function squashes all symbols from 'clss' bases into itself */ +SWIGINTERN void SWIG_Lua_class_squash_bases(lua_State *L, swig_lua_class *clss) +{ + int i; + SWIG_Lua_get_class_metatable(L,clss->fqname); + for(i=0;clss->base_names[i];i++) + { + if (clss->bases[i]==0) /* Somehow it's not found. Skip it */ + continue; + /* Thing is: all bases are already registered. Thus they have already executed + * this function. So we just need to squash them into us, because their bases + * are already squashed into them. No need for recursion here! + */ + SWIG_Lua_class_squash_base(L, clss->bases[i]); + } + lua_pop(L,1); /*tidy stack*/ +} +#endif + +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) /* In elua this is useless */ /* helper add a variable to a registered class */ -SWIGINTERN void SWIG_Lua_add_class_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn) +SWIGINTERN void SWIG_Lua_add_variable(lua_State *L,const char *name,lua_CFunction getFn,lua_CFunction setFn) { assert(lua_istable(L,-1)); /* just in case */ SWIG_Lua_get_table(L,".get"); /* find the .get table */ @@ -1494,7 +2011,7 @@ SWIGINTERN void SWIG_Lua_add_class_variable(lua_State* L,const char* name,lua_C } /* helper to recursively add class static details (static attributes, operations and constants) */ -SWIGINTERN void SWIG_Lua_add_class_static_details(lua_State* L, swig_lua_class* clss) +SWIGINTERN void SWIG_Lua_add_class_static_details(lua_State *L, swig_lua_class *clss) { int i = 0; /* The class namespace table must be on the top of the stack */ @@ -1505,72 +2022,269 @@ SWIGINTERN void SWIG_Lua_add_class_static_details(lua_State* L, swig_lua_class* SWIG_Lua_add_class_static_details(L,clss->bases[i]); } - SWIG_Lua_add_namespace_details(L, &clss->cls_static); + SWIG_Lua_add_namespace_details(L, clss->cls_static); } +SWIGINTERN void SWIG_Lua_add_class_user_metamethods(lua_State *L, swig_lua_class *clss); /* forward declaration */ + /* helper to recursively add class details (attributes & operations) */ -SWIGINTERN void SWIG_Lua_add_class_details(lua_State* L,swig_lua_class* clss) +SWIGINTERN void SWIG_Lua_add_class_instance_details(lua_State *L, swig_lua_class *clss) { int i; - /* call all the base classes first: we can then override these later: */ + size_t bases_count = 0; + /* Add bases to .bases table */ + SWIG_Lua_get_table(L,".bases"); + assert(lua_istable(L,-1)); /* just in case */ for(i=0;clss->bases[i];i++) { - SWIG_Lua_add_class_details(L,clss->bases[i]); - } - /* add fns */ + SWIG_Lua_get_class_metatable(L,clss->bases[i]->fqname); + /* Base class must be already registered */ + assert(lua_istable(L,-1)); + lua_rawseti(L,-2,i+1); /* In lua indexing starts from 1 */ + bases_count++; + } + assert(lua_rawlen(L,-1) == bases_count); + lua_pop(L,1); /* remove .bases table */ + /* add attributes */ for(i=0;clss->attributes[i].name;i++){ - SWIG_Lua_add_class_variable(L,clss->attributes[i].name,clss->attributes[i].getmethod,clss->attributes[i].setmethod); + SWIG_Lua_add_variable(L,clss->attributes[i].name,clss->attributes[i].getmethod,clss->attributes[i].setmethod); } /* add methods to the metatable */ SWIG_Lua_get_table(L,".fn"); /* find the .fn table */ assert(lua_istable(L,-1)); /* just in case */ for(i=0;clss->methods[i].name;i++){ - SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); + SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].func); } lua_pop(L,1); /* tidy stack (remove table) */ - /* add operator overloads - these look ANY method which start with "__" and assume they - are operator overloads & add them to the metatable - (this might mess up is someone defines a method __gc (the destructor)*/ - for(i=0;clss->methods[i].name;i++){ - if (clss->methods[i].name[0]=='_' && clss->methods[i].name[1]=='_'){ - SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); + /* add operator overloads + This adds methods from metatable array to metatable. Can mess up garbage + collectind if someone defines __gc method + */ + if(clss->metatable) { + for(i=0;clss->metatable[i].name;i++) { + SWIG_Lua_add_function(L,clss->metatable[i].name,clss->metatable[i].func); } } + +#if !defined(SWIG_LUA_SQUASH_BASES) + /* Adding metamethods that are defined in base classes. If bases were squashed + * then it is obviously unnecessary + */ + SWIG_Lua_add_class_user_metamethods(L, clss); +#endif } -/* set up the base classes pointers. -Each class structure has a list of pointers to the base class structures. -This function fills them. -It cannot be done at compile time, as this will not work with hireachies -spread over more than one swig file. -Therefore it must be done at runtime, querying the SWIG type system. +/* Helpers to add user defined class metamedhods - __add, __sub etc. The helpers are needed + for the following issue: Lua runtime checks for metamethod existence with rawget function + ignoring our SWIG-provided __index and __newindex functions. Thus our inheritance-aware method + search algorithm doesn't work in such case. (Not to say that Lua runtime queries metamethod directly + in metatable and not in object). + Current solution is this: if somewhere in hierarchy metamethod __x is defined, then all descendants + are automatically given a special proxy __x that calls the real __x method. + Obvious idea - to copy __x instead of creating __x-proxy is wrong because if someone changes __x in runtime, + those changes must be reflected in all descendants. */ -SWIGINTERN void SWIG_Lua_init_base_class(lua_State* L,swig_lua_class* clss) + +SWIGRUNTIME int SWIG_Lua_resolve_metamethod(lua_State *L); /*forward declaration*/ + +/* The real function that resolves a metamethod. + * Function searches given class and all it's bases(recursively) for first instance of something that is + * not equal to SWIG_Lua_resolve_metatmethod. (Almost always this 'something' is actual metamethod implementation + * and it is a SWIG-generated C function.). It returns value on the top of the L and there is no garbage below the + * answer. + * Returns 1 if found, 0 otherwise. + * clss is class which metatable we will search for method + * metamethod_name_idx is index in L where metamethod name (as string) lies + * skip_check allows to skip searching metamethod in givel clss and immideatelly go to searching in bases. skip_check + * is not caried to subsequent recursive calls - false is always passed. It is set to true only at first call from + * SWIG_Lua_resolve_metamethod + * */ +SWIGINTERN int SWIG_Lua_do_resolve_metamethod(lua_State *L, const swig_lua_class *clss, int metamethod_name_idx, + int skip_check) { - int i=0; - swig_module_info* module=SWIG_GetModule(L); - for(i=0;clss->base_names[i];i++) + /* This function is called recursively */ + int result = 0; + int i = 0; + + if (!skip_check) { + SWIG_Lua_get_class_metatable(L, clss->fqname); + lua_pushvalue(L, metamethod_name_idx); + lua_rawget(L,-2); + /* If this is cfunction and it is equal to SWIG_Lua_resolve_metamethod then + * this isn't the function we are looking for :) + * lua_tocfunction will return NULL if not cfunction + */ + if (!lua_isnil(L,-1) && lua_tocfunction(L,-1) != SWIG_Lua_resolve_metamethod ) { + lua_remove(L,-2); /* removing class metatable */ + return 1; + } + lua_pop(L,2); /* remove class metatable and query result */ + } + + /* Forwarding calls to bases */ + for(i=0;clss->bases[i];i++) { - if (clss->bases[i]==0) /* not found yet */ - { - /* lookup and cache the base class */ - swig_type_info *info = SWIG_TypeQueryModule(module,module,clss->base_names[i]); - if (info) clss->bases[i] = (swig_lua_class *) info->clientdata; + result = SWIG_Lua_do_resolve_metamethod(L, clss->bases[i], metamethod_name_idx, 0); + if (result) + break; + } + + return result; +} + +/* The proxy function for metamethod. All parameters are passed as cclosure. Searches for actual method + * and calls it */ +SWIGRUNTIME int SWIG_Lua_resolve_metamethod(lua_State *L) +{ + int numargs; + int metamethod_name_idx; + const swig_lua_class* clss; + int result; + + lua_checkstack(L,5); + numargs = lua_gettop(L); /* number of arguments to pass to actual metamethod */ + + /* Get upvalues from closure */ + lua_pushvalue(L, lua_upvalueindex(1)); /*Get function name*/ + metamethod_name_idx = lua_gettop(L); + + lua_pushvalue(L, lua_upvalueindex(2)); + clss = (const swig_lua_class*)(lua_touserdata(L,-1)); + lua_pop(L,1); /* remove lightuserdata with clss from stack */ + + /* Actual work */ + result = SWIG_Lua_do_resolve_metamethod(L, clss, metamethod_name_idx, 1); + if (!result) { + SWIG_Lua_pushferrstring(L,"The metamethod proxy is set, but it failed to find actual metamethod. Memory corruption is most likely explanation."); + lua_error(L); + return 0; + } + + lua_remove(L,-2); /* remove metamethod key */ + lua_insert(L,1); /* move function to correct position */ + lua_call(L, numargs, LUA_MULTRET); + return lua_gettop(L); /* return all results */ +} + + +/* If given metamethod must be present in given class, then creates appropriate proxy + * Returns 1 if successfully added, 0 if not added because no base class has it, -1 + * if method is defined in the class metatable itself + */ +SWIGINTERN int SWIG_Lua_add_class_user_metamethod(lua_State *L, swig_lua_class *clss, const int metatable_index) +{ + int key_index; + int success = 0; + int i = 0; + + /* metamethod name - on the top of the stack */ + assert(lua_isstring(L,-1)); + + key_index = lua_gettop(L); + + /* Check whether method is already defined in metatable */ + lua_pushvalue(L,key_index); /* copy of the key */ + lua_gettable(L,metatable_index); + if( !lua_isnil(L,-1) ) { + lua_pop(L,1); + return -1; + } + lua_pop(L,1); + + /* Iterating over immediate bases */ + for(i=0;clss->bases[i];i++) + { + const swig_lua_class *base = clss->bases[i]; + SWIG_Lua_get_class_metatable(L, base->fqname); + lua_pushvalue(L, key_index); + lua_rawget(L, -2); + if( !lua_isnil(L,-1) ) { + lua_pushvalue(L, key_index); + + /* Add proxy function */ + lua_pushvalue(L, key_index); /* first closure value is function name */ + lua_pushlightuserdata(L, clss); /* second closure value is swig_lua_class structure */ + lua_pushcclosure(L, SWIG_Lua_resolve_metamethod, 2); + + lua_rawset(L, metatable_index); + success = 1; + } + lua_pop(L,1); /* remove function or nil */ + lua_pop(L,1); /* remove base class metatable */ + + if( success ) + break; + } + + return success; +} + +SWIGINTERN void SWIG_Lua_add_class_user_metamethods(lua_State *L, swig_lua_class *clss) +{ + int metatable_index; + int metamethods_info_index; + int tostring_undefined; + int eq_undefined = 0; + + SWIG_Lua_get_class_metatable(L, clss->fqname); + metatable_index = lua_gettop(L); + SWIG_Lua_get_inheritable_metamethods(L); + assert(lua_istable(L,-1)); + metamethods_info_index = lua_gettop(L); + lua_pushnil(L); /* first key */ + while(lua_next(L, metamethods_info_index) != 0 ) { + /* key at index -2, value at index -1 */ + const int is_inheritable = lua_toboolean(L,-2); + lua_pop(L,1); /* remove value - we don't need it anymore */ + + if(is_inheritable) { /* if metamethod is inheritable */ + SWIG_Lua_add_class_user_metamethod(L,clss,metatable_index); } } + + lua_pop(L,1); /* remove inheritable metatmethods table */ + + /* Special handling for __tostring method */ + lua_pushstring(L, "__tostring"); + lua_pushvalue(L,-1); + lua_rawget(L,metatable_index); + tostring_undefined = lua_isnil(L,-1); + lua_pop(L,1); + if( tostring_undefined ) { + lua_pushcfunction(L, SWIG_Lua_class_tostring); + lua_rawset(L, metatable_index); + } else { + lua_pop(L,1); /* remove copy of the key */ + } + + /* Special handling for __eq method */ + lua_pushstring(L, "__eq"); + lua_pushvalue(L,-1); + lua_rawget(L,metatable_index); + eq_undefined = lua_isnil(L,-1); + lua_pop(L,1); + if( eq_undefined ) { + lua_pushcfunction(L, SWIG_Lua_class_equal); + lua_rawset(L, metatable_index); + } else { + lua_pop(L,1); /* remove copy of the key */ + } + /* Warning: __index and __newindex are SWIG-defined. For user-defined operator[] + * a __getitem/__setitem method should be defined + */ + lua_pop(L,1); /* pop class metatable */ } /* Register class static methods,attributes etc as well as constructor proxy */ -SWIGINTERN void SWIG_Lua_class_register_static(lua_State* L, swig_lua_class* clss) +SWIGINTERN void SWIG_Lua_class_register_static(lua_State *L, swig_lua_class *clss) { + const int SWIGUNUSED begin = lua_gettop(L); lua_checkstack(L,5); /* just in case */ assert(lua_istable(L,-1)); /* just in case */ - assert(strcmp(clss->name, clss->cls_static.name) == 0); /* in class those 2 must be equal */ + assert(strcmp(clss->name, clss->cls_static->name) == 0); /* in class those 2 must be equal */ - SWIG_Lua_namespace_register(L,&clss->cls_static); + SWIG_Lua_namespace_register(L,clss->cls_static, 1); - SWIG_Lua_get_table(L,clss->name); // Get namespace table back assert(lua_istable(L,-1)); /* just in case */ /* add its constructor to module with the name of the class @@ -1579,10 +2293,9 @@ SWIGINTERN void SWIG_Lua_class_register_static(lua_State* L, swig_lua_class* cls (this overcomes the problem of pure virtual classes without constructors)*/ if (clss->constructor) { - SWIG_Lua_add_function(L,".constructor", clss->constructor); lua_getmetatable(L,-1); assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_add_function(L,"__call", SWIG_Lua_constructor_proxy); + SWIG_Lua_add_function(L,"__call", clss->constructor); lua_pop(L,1); } @@ -1591,19 +2304,60 @@ SWIGINTERN void SWIG_Lua_class_register_static(lua_State* L, swig_lua_class* cls /* clear stack */ lua_pop(L,1); + assert( lua_gettop(L) == begin ); } -/* performs the entire class registration process */ -SWIGINTERN void SWIG_Lua_class_register(lua_State* L,swig_lua_class* clss) +/* Performs the instance (non-static) class registration process. Metatable for class is created + * and added to the class registry. + */ +SWIGINTERN void SWIG_Lua_class_register_instance(lua_State *L,swig_lua_class *clss) { - SWIG_Lua_class_register_static(L,clss); - + const int SWIGUNUSED begin = lua_gettop(L); + int i; + /* if name already there (class is already registered) then do nothing */ + SWIG_Lua_get_class_registry(L); /* get the registry */ + lua_pushstring(L,clss->fqname); /* get the name */ + lua_rawget(L,-2); + if(!lua_isnil(L,-1)) { + lua_pop(L,2); + assert(lua_gettop(L)==begin); + return; + } + lua_pop(L,2); /* tidy stack */ + /* Recursively initialize all bases */ + for(i=0;clss->bases[i];i++) + { + SWIG_Lua_class_register_instance(L,clss->bases[i]); + } + /* Again, get registry and push name */ SWIG_Lua_get_class_registry(L); /* get the registry */ - lua_pushstring(L,clss->name); /* get the name */ + lua_pushstring(L,clss->fqname); /* get the name */ lua_newtable(L); /* create the metatable */ +#if defined(SWIG_LUA_SQUASH_BASES) && (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) + /* If squashing is requested, then merges all bases metatable into this one. + * It would get us all special methods: __getitem, __add etc. + * This would set .fn, .type, and other .xxx incorrectly, but we will overwrite it right away + */ + { + int new_metatable_index = lua_absindex(L,-1); + for(i=0;clss->bases[i];i++) + { + int base_metatable; + SWIG_Lua_get_class_metatable(L,clss->bases[i]->fqname); + base_metatable = lua_absindex(L,-1); + SWIG_Lua_merge_tables_by_index(L,new_metatable_index, base_metatable); + lua_pop(L,1); + } + } + /* And now we will overwrite all incorrectly set data */ +#endif /* add string of class name called ".type" */ lua_pushstring(L,".type"); - lua_pushstring(L,clss->name); + lua_pushstring(L,clss->fqname); + lua_rawset(L,-3); + /* add a table called bases */ + lua_pushstring(L,".bases"); + lua_newtable(L); lua_rawset(L,-3); /* add a table called ".get" */ lua_pushstring(L,".get"); @@ -1623,27 +2377,99 @@ SWIGINTERN void SWIG_Lua_class_register(lua_State* L,swig_lua_class* clss) SWIG_Lua_add_function(L,"__index",SWIG_Lua_class_get); SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_class_set); SWIG_Lua_add_function(L,"__gc",SWIG_Lua_class_destruct); - /* add tostring method for better output */ - SWIG_Lua_add_function(L,"__tostring",SWIG_Lua_class_tostring); /* add it */ lua_rawset(L,-3); /* metatable into registry */ lua_pop(L,1); /* tidy stack (remove registry) */ + assert(lua_gettop(L) == begin); - SWIG_Lua_get_class_metatable(L,clss->name); - SWIG_Lua_add_class_details(L,clss); /* recursive adding of details (atts & ops) */ +#if defined(SWIG_LUA_SQUASH_BASES) && (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) + /* Now merge all symbols from .fn, .set, .get etc from bases to our tables */ + SWIG_Lua_class_squash_bases(L,clss); +#endif + SWIG_Lua_get_class_metatable(L,clss->fqname); + SWIG_Lua_add_class_instance_details(L,clss); /* recursive adding of details (atts & ops) */ lua_pop(L,1); /* tidy stack (remove class metatable) */ + assert( lua_gettop(L) == begin ); +} + +SWIGINTERN void SWIG_Lua_class_register(lua_State *L,swig_lua_class *clss) +{ + int SWIGUNUSED begin; + assert(lua_istable(L,-1)); /* This is a table (module or namespace) where classes will be added */ + SWIG_Lua_class_register_instance(L,clss); + SWIG_Lua_class_register_static(L,clss); + + /* Add links from static part to instance part and vice versa */ + /* [SWIG registry] [Module] + * "MyClass" ----> [MyClass metatable] <===== "MyClass" -+> [static part] + * ".get" ----> ... | | getmetatable()----| + * ".set" ----> ... | | | + * ".static" --------------)----------------/ [static part metatable] + * | ".get" --> ... + * | ".set" --> .... + * |=============================== ".instance" + */ + begin = lua_gettop(L); + lua_pushstring(L,clss->cls_static->name); + lua_rawget(L,-2); /* get class static table */ + assert(lua_istable(L,-1)); + lua_getmetatable(L,-1); + assert(lua_istable(L,-1)); /* get class static metatable */ + lua_pushstring(L,".instance"); /* prepare key */ + + SWIG_Lua_get_class_metatable(L,clss->fqname); /* get class metatable */ + assert(lua_istable(L,-1)); + lua_pushstring(L,".static"); /* prepare key */ + lua_pushvalue(L, -4); /* push static class TABLE */ + assert(lua_istable(L,-1)); + lua_rawset(L,-3); /* assign static class table(!NOT metatable) as ".static" member of class metatable */ + lua_rawset(L,-3); /* assign class metatable as ".instance" member of class static METATABLE */ + lua_pop(L,2); + assert(lua_gettop(L) == begin); +} +#endif /* SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA */ + +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) +SWIGINTERN void SWIG_Lua_elua_class_register_instance(lua_State *L, swig_lua_class *clss) +{ + const int SWIGUNUSED begin = lua_gettop(L); + int i; + /* if name already there (class is already registered) then do nothing */ + SWIG_Lua_get_class_registry(L); /* get the registry */ + lua_pushstring(L,clss->fqname); /* get the name */ + lua_rawget(L,-2); + if(!lua_isnil(L,-1)) { + lua_pop(L,2); + assert(lua_gettop(L)==begin); + return; + } + lua_pop(L,2); /* tidy stack */ + /* Recursively initialize all bases */ + for(i=0;clss->bases[i];i++) + { + SWIG_Lua_elua_class_register_instance(L,clss->bases[i]); + } + /* Again, get registry and push name */ + SWIG_Lua_get_class_registry(L); /* get the registry */ + lua_pushstring(L,clss->fqname); /* get the name */ + assert(clss->metatable); + lua_pushrotable(L, (void*)(clss->metatable)); /* create the metatable */ + lua_rawset(L,-3); + lua_pop(L,1); + assert(lua_gettop(L) == begin); } +#endif /* elua && eluac */ /* ----------------------------------------------------------------------------- * Class/structure conversion fns * ----------------------------------------------------------------------------- */ /* helper to add metatable to new lua object */ -SWIGINTERN void _SWIG_Lua_AddMetatable(lua_State* L,swig_type_info *type) +SWIGINTERN void SWIG_Lua_AddMetatable(lua_State *L,swig_type_info *type) { if (type->clientdata) /* there is clientdata: so add the metatable */ { - SWIG_Lua_get_class_metatable(L,((swig_lua_class*)(type->clientdata))->name); + SWIG_Lua_get_class_metatable(L,((swig_lua_class*)(type->clientdata))->fqname); if (lua_istable(L,-1)) { lua_setmetatable(L,-2); @@ -1656,9 +2482,9 @@ SWIGINTERN void _SWIG_Lua_AddMetatable(lua_State* L,swig_type_info *type) } /* pushes a new object into the lua stack */ -SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State* L,void* ptr,swig_type_info *type, int own) +SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State *L,void *ptr,swig_type_info *type, int own) { - swig_lua_userdata* usr; + swig_lua_userdata *usr; if (!ptr){ lua_pushnil(L); return; @@ -1668,15 +2494,15 @@ SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State* L,void* ptr,swig_type_info *t usr->type=type; usr->own=own; #if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) - _SWIG_Lua_AddMetatable(L,type); /* add metatable */ + SWIG_Lua_AddMetatable(L,type); /* add metatable */ #endif } /* takes a object from the lua stack & converts it into an object of the correct type (if possible) */ -SWIGRUNTIME int SWIG_Lua_ConvertPtr(lua_State* L,int index,void** ptr,swig_type_info *type,int flags) +SWIGRUNTIME int SWIG_Lua_ConvertPtr(lua_State *L,int index,void **ptr,swig_type_info *type,int flags) { - swig_lua_userdata* usr; + swig_lua_userdata *usr; swig_cast_info *cast; if (lua_isnil(L,index)){*ptr=0; return SWIG_OK;} /* special case: lua nil => NULL pointer */ usr=(swig_lua_userdata*)lua_touserdata(L,index); /* get data */ @@ -1703,9 +2529,9 @@ SWIGRUNTIME int SWIG_Lua_ConvertPtr(lua_State* L,int index,void** ptr,swig_type return SWIG_ERROR; /* error */ } -SWIGRUNTIME void* SWIG_Lua_MustGetPtr(lua_State* L,int index,swig_type_info *type,int flags, - int argnum,const char* func_name){ - void* result; +SWIGRUNTIME void* SWIG_Lua_MustGetPtr(lua_State *L,int index,swig_type_info *type,int flags, + int argnum,const char *func_name){ + void *result; if (!SWIG_IsOK(SWIG_ConvertPtr(L,index,&result,type,flags))){ luaL_error (L,"Error in %s, expected a %s at argument number %d\n", func_name,(type && type->str)?type->str:"void*",argnum); @@ -1714,21 +2540,21 @@ SWIGRUNTIME void* SWIG_Lua_MustGetPtr(lua_State* L,int index,swig_type_info *typ } /* pushes a packed userdata. user for member fn pointers only */ -SWIGRUNTIME void SWIG_Lua_NewPackedObj(lua_State* L,void* ptr,size_t size,swig_type_info *type) +SWIGRUNTIME void SWIG_Lua_NewPackedObj(lua_State *L,void *ptr,size_t size,swig_type_info *type) { - swig_lua_rawdata* raw; + swig_lua_rawdata *raw; assert(ptr); /* not acceptable to pass in a NULL value */ raw=(swig_lua_rawdata*)lua_newuserdata(L,sizeof(swig_lua_rawdata)-1+size); /* alloc data */ raw->type=type; raw->own=0; memcpy(raw->data,ptr,size); /* copy the data */ - _SWIG_Lua_AddMetatable(L,type); /* add metatable */ + SWIG_Lua_AddMetatable(L,type); /* add metatable */ } /* converts a packed userdata. user for member fn pointers only */ -SWIGRUNTIME int SWIG_Lua_ConvertPacked(lua_State* L,int index,void* ptr,size_t size,swig_type_info *type) +SWIGRUNTIME int SWIG_Lua_ConvertPacked(lua_State *L,int index,void *ptr,size_t size,swig_type_info *type) { - swig_lua_rawdata* raw; + swig_lua_rawdata *raw; raw=(swig_lua_rawdata*)lua_touserdata(L,index); /* get data */ if (!raw) return SWIG_ERROR; /* error */ if (type==0 || type==raw->type) /* void* or identical type */ @@ -1742,7 +2568,7 @@ SWIGRUNTIME int SWIG_Lua_ConvertPacked(lua_State* L,int index,void* ptr,size_t /* a function to get the typestring of a piece of data */ SWIGRUNTIME const char *SWIG_Lua_typename(lua_State *L, int tp) { - swig_lua_userdata* usr; + swig_lua_userdata *usr; if (lua_isuserdata(L,tp)) { usr=(swig_lua_userdata*)lua_touserdata(L,tp); /* get data */ @@ -1754,29 +2580,12 @@ SWIGRUNTIME const char *SWIG_Lua_typename(lua_State *L, int tp) } /* lua callable function to get the userdata's type */ -SWIGRUNTIME int SWIG_Lua_type(lua_State* L) +SWIGRUNTIME int SWIG_Lua_type(lua_State *L) { lua_pushstring(L,SWIG_Lua_typename(L,1)); return 1; } -/* lua callable function to compare userdata's value -the issue is that two userdata may point to the same thing -but to lua, they are different objects */ -SWIGRUNTIME int SWIG_Lua_equal(lua_State* L) -{ - int result; - swig_lua_userdata *usr1,*usr2; - if (!lua_isuserdata(L,1) || !lua_isuserdata(L,2)) /* just in case */ - return 0; /* nil reply */ - usr1=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ - usr2=(swig_lua_userdata*)lua_touserdata(L,2); /* get data */ - /*result=(usr1->ptr==usr2->ptr && usr1->type==usr2->type); only works if type is the same*/ - result=(usr1->ptr==usr2->ptr); - lua_pushboolean(L,result); - return 1; -} - /* ----------------------------------------------------------------------------- * global variable support code: class/struct typemap functions * ----------------------------------------------------------------------------- */ @@ -1784,13 +2593,13 @@ SWIGRUNTIME int SWIG_Lua_equal(lua_State* L) #if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) /* Install Constants */ SWIGINTERN void -SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) { +SWIG_Lua_InstallConstants(lua_State *L, swig_lua_const_info constants[]) { int i; for (i = 0; constants[i].type; i++) { switch(constants[i].type) { case SWIG_LUA_INT: lua_pushstring(L,constants[i].name); - lua_pushnumber(L,(lua_Number)constants[i].lvalue); + lua_pushinteger(L,(lua_Number)constants[i].lvalue); lua_rawset(L,-3); break; case SWIG_LUA_FLOAT: @@ -1800,7 +2609,10 @@ SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) { break; case SWIG_LUA_CHAR: lua_pushstring(L,constants[i].name); - lua_pushfstring(L,"%c",(char)constants[i].lvalue); + { + char c = constants[i].lvalue; + lua_pushlstring(L,&c,1); + } lua_rawset(L,-3); break; case SWIG_LUA_STRING: @@ -1834,11 +2646,11 @@ SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) { #endif /* Executes a C string in Lua which is a really simple way of calling lua from C Unfortunately lua keeps changing its APIs, so we need a conditional compile -In lua 5.0.X its lua_dostring() -In lua 5.1.X its luaL_dostring() +In lua 5.0.X it's lua_dostring() +In lua 5.1.X it's luaL_dostring() */ SWIGINTERN int -SWIG_Lua_dostring(lua_State *L, const char* str) { +SWIG_Lua_dostring(lua_State *L, const char *str) { int ok,top; if (str==0 || str[0]==0) return 0; /* nothing to do */ top=lua_gettop(L); /* save stack */ @@ -2121,27 +2933,51 @@ static void swig_delete_PARSE_EVENT_STRUCT(void *obj) { PARSE_EVENT_STRUCT *arg1 = (PARSE_EVENT_STRUCT *) obj; delete arg1; } -static swig_lua_method swig_PARSE_EVENT_STRUCT_methods[] = { - {0,0} -}; +static int _proxy__wrap_new_PARSE_EVENT_STRUCT(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_PARSE_EVENT_STRUCT); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_PARSE_EVENT_STRUCT_attributes[] = { - { "event", _wrap_PARSE_EVENT_STRUCT_event_get, _wrap_PARSE_EVENT_STRUCT_event_set}, - { "i", _wrap_PARSE_EVENT_STRUCT_i_get, _wrap_PARSE_EVENT_STRUCT_i_set}, - { "text", _wrap_PARSE_EVENT_STRUCT_text_get, _wrap_PARSE_EVENT_STRUCT_text_set}, + { "event", _wrap_PARSE_EVENT_STRUCT_event_get, _wrap_PARSE_EVENT_STRUCT_event_set }, + { "i", _wrap_PARSE_EVENT_STRUCT_i_get, _wrap_PARSE_EVENT_STRUCT_i_set }, + { "text", _wrap_PARSE_EVENT_STRUCT_text_get, _wrap_PARSE_EVENT_STRUCT_text_set }, {0,0,0} }; -static swig_lua_attribute swig_PARSE_EVENT_STRUCT_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_PARSE_EVENT_STRUCT_methods[]= { + {0,0} }; -static swig_lua_method swig_PARSE_EVENT_STRUCT_cls_methods[] = { +static swig_lua_method swig_PARSE_EVENT_STRUCT_meta[] = { {0,0} }; -static swig_lua_const_info swig_PARSE_EVENT_STRUCT_cls_constants[] = { + +static swig_lua_attribute swig_PARSE_EVENT_STRUCT_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_PARSE_EVENT_STRUCT_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_PARSE_EVENT_STRUCT_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_PARSE_EVENT_STRUCT_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_PARSE_EVENT_STRUCT_Sf_SwigStatic = { + "PARSE_EVENT_STRUCT", + swig_PARSE_EVENT_STRUCT_Sf_SwigStatic_methods, + swig_PARSE_EVENT_STRUCT_Sf_SwigStatic_attributes, + swig_PARSE_EVENT_STRUCT_Sf_SwigStatic_constants, + swig_PARSE_EVENT_STRUCT_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_PARSE_EVENT_STRUCT_bases[] = {0}; static const char *swig_PARSE_EVENT_STRUCT_base_names[] = {0}; -static swig_lua_class _wrap_class_PARSE_EVENT_STRUCT = { "PARSE_EVENT_STRUCT", &SWIGTYPE_p_PARSE_EVENT_STRUCT,_wrap_new_PARSE_EVENT_STRUCT, swig_delete_PARSE_EVENT_STRUCT, swig_PARSE_EVENT_STRUCT_methods, swig_PARSE_EVENT_STRUCT_attributes, { "PARSE_EVENT_STRUCT", swig_PARSE_EVENT_STRUCT_cls_methods, swig_PARSE_EVENT_STRUCT_cls_attributes, swig_PARSE_EVENT_STRUCT_cls_constants }, swig_PARSE_EVENT_STRUCT_bases, swig_PARSE_EVENT_STRUCT_base_names }; +static swig_lua_class _wrap_class_PARSE_EVENT_STRUCT = { "PARSE_EVENT_STRUCT", "PARSE_EVENT_STRUCT", &SWIGTYPE_p_PARSE_EVENT_STRUCT,_proxy__wrap_new_PARSE_EVENT_STRUCT, swig_delete_PARSE_EVENT_STRUCT, swig_PARSE_EVENT_STRUCT_methods, swig_PARSE_EVENT_STRUCT_attributes, &swig_PARSE_EVENT_STRUCT_Sf_SwigStatic, swig_PARSE_EVENT_STRUCT_meta, swig_PARSE_EVENT_STRUCT_bases, swig_PARSE_EVENT_STRUCT_base_names }; static int _wrap_PARAM_s_set(lua_State* L) { int SWIG_arg = 0; @@ -4498,13 +5334,22 @@ static int _wrap_PARAM_fhdltmp_get(lua_State* L) { } -static int _wrap_new_PARAM(lua_State* L) { +static int _wrap_PARAM_iclientsocket_set(lua_State* L) { int SWIG_arg = 0; - _PARAM_ *result = 0 ; + _PARAM_ *arg1 = (_PARAM_ *) 0 ; + int arg2 ; + + SWIG_check_num_args("_PARAM_::iclientsocket",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("_PARAM_::iclientsocket",1,"_PARAM_ *"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("_PARAM_::iclientsocket",2,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p__PARAM_,0))){ + SWIG_fail_ptr("PARAM_iclientsocket_set",1,SWIGTYPE_p__PARAM_); + } + + arg2 = (int)lua_tonumber(L, 2); + if (arg1) (arg1)->iclientsocket = arg2; - SWIG_check_num_args("_PARAM_::_PARAM_",0,0) - result = (_PARAM_ *)new _PARAM_(); - SWIG_NewPointerObj(L,result,SWIGTYPE_p__PARAM_,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -4515,73 +5360,241 @@ static int _wrap_new_PARAM(lua_State* L) { } -static void swig_delete_PARAM(void *obj) { -_PARAM_ *arg1 = (_PARAM_ *) obj; -delete arg1; -} -static swig_lua_method swig__PARAM__methods[] = { - {0,0} -}; -static swig_lua_attribute swig__PARAM__attributes[] = { - { "s", _wrap_PARAM_s_get, _wrap_PARAM_s_set}, - { "os", _wrap_PARAM_os_get, _wrap_PARAM_os_set}, - { "port", _wrap_PARAM_port_get, _wrap_PARAM_port_set}, - { "language", _wrap_PARAM_language_get, _wrap_PARAM_language_set}, - { "convert_units", _wrap_PARAM_convert_units_get, _wrap_PARAM_convert_units_set}, - { "fp", _wrap_PARAM_fp_get, _wrap_PARAM_fp_set}, - { "sleep", _wrap_PARAM_sleep_get, _wrap_PARAM_sleep_set}, - { "cleanup", _wrap_PARAM_cleanup_get, _wrap_PARAM_cleanup_set}, - { "app_data", _wrap_PARAM_app_data_get, _wrap_PARAM_app_data_set}, - { "user", _wrap_PARAM_user_get, _wrap_PARAM_user_set}, - { "clipboard", _wrap_PARAM_clipboard_get, _wrap_PARAM_clipboard_set}, - { "clipboard_length", _wrap_PARAM_clipboard_length_get, _wrap_PARAM_clipboard_length_set}, - { "modal", _wrap_PARAM_modal_get, _wrap_PARAM_modal_set}, - { "readData", _wrap_PARAM_readData_get, _wrap_PARAM_readData_set}, - { "showData", _wrap_PARAM_showData_get, _wrap_PARAM_showData_set}, - { "modal_d", _wrap_PARAM_modal_d_get, _wrap_PARAM_modal_d_set}, - { "modalUserData", _wrap_PARAM_modalUserData_get, _wrap_PARAM_modalUserData_set}, - { "parse_event_struct", _wrap_PARAM_parse_event_struct_get, _wrap_PARAM_parse_event_struct_set}, - { "x", _wrap_PARAM_x_get, _wrap_PARAM_x_set}, - { "y", _wrap_PARAM_y_get, _wrap_PARAM_y_set}, - { "nxy", _wrap_PARAM_nxy_get, _wrap_PARAM_nxy_set}, - { "url", _wrap_PARAM_url_get, _wrap_PARAM_url_set}, - { "initial_mask", _wrap_PARAM_initial_mask_get, _wrap_PARAM_initial_mask_set}, - { "file_prefix", _wrap_PARAM_file_prefix_get, _wrap_PARAM_file_prefix_set}, - { "free", _wrap_PARAM_free_get, _wrap_PARAM_free_set}, - { "version", _wrap_PARAM_version_get, _wrap_PARAM_version_set}, - { "pvserver_version", _wrap_PARAM_pvserver_version_get, _wrap_PARAM_pvserver_version_set}, - { "exit_on_bind_error", _wrap_PARAM_exit_on_bind_error_get, _wrap_PARAM_exit_on_bind_error_set}, - { "hello_counter", _wrap_PARAM_hello_counter_get, _wrap_PARAM_hello_counter_set}, - { "local_milliseconds", _wrap_PARAM_local_milliseconds_get, _wrap_PARAM_local_milliseconds_set}, - { "force_null_event", _wrap_PARAM_force_null_event_get, _wrap_PARAM_force_null_event_set}, - { "allow_pause", _wrap_PARAM_allow_pause_get, _wrap_PARAM_allow_pause_set}, - { "pause", _wrap_PARAM_pause_get, _wrap_PARAM_pause_set}, - { "my_pvlock_count", _wrap_PARAM_my_pvlock_count_get, _wrap_PARAM_my_pvlock_count_set}, - { "num_additional_widgets", _wrap_PARAM_num_additional_widgets_get, _wrap_PARAM_num_additional_widgets_set}, - { "mouse_x", _wrap_PARAM_mouse_x_get, _wrap_PARAM_mouse_x_set}, - { "mouse_y", _wrap_PARAM_mouse_y_get, _wrap_PARAM_mouse_y_set}, - { "mytext", _wrap_PARAM_mytext_get, _wrap_PARAM_mytext_set}, - { "communication_plugin", _wrap_PARAM_communication_plugin_get, _wrap_PARAM_communication_plugin_set}, - { "use_communication_plugin", _wrap_PARAM_use_communication_plugin_get, _wrap_PARAM_use_communication_plugin_set}, - { "lang_section", _wrap_PARAM_lang_section_get, _wrap_PARAM_lang_section_set}, - { "mytext2", _wrap_PARAM_mytext2_get, _wrap_PARAM_mytext2_set}, - { "http", _wrap_PARAM_http_get, _wrap_PARAM_http_set}, - { "fptmp", _wrap_PARAM_fptmp_get, _wrap_PARAM_fptmp_set}, - { "fhdltmp", _wrap_PARAM_fhdltmp_get, _wrap_PARAM_fhdltmp_set}, - {0,0,0} -}; -static swig_lua_attribute swig__PARAM__cls_attributes[] = { - {0,0,0} -}; -static swig_lua_method swig__PARAM__cls_methods[] = { - {0,0} -}; -static swig_lua_const_info swig__PARAM__cls_constants[] = { - {0,0,0,0,0,0} -}; -static swig_lua_class *swig__PARAM__bases[] = {0}; -static const char *swig__PARAM__base_names[] = {0}; -static swig_lua_class _wrap_class__PARAM_ = { "PARAM", &SWIGTYPE_p__PARAM_,_wrap_new_PARAM, swig_delete_PARAM, swig__PARAM__methods, swig__PARAM__attributes, { "PARAM", swig__PARAM__cls_methods, swig__PARAM__cls_attributes, swig__PARAM__cls_constants }, swig__PARAM__bases, swig__PARAM__base_names }; +static int _wrap_PARAM_iclientsocket_get(lua_State* L) { + int SWIG_arg = 0; + _PARAM_ *arg1 = (_PARAM_ *) 0 ; + int result; + + SWIG_check_num_args("_PARAM_::iclientsocket",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("_PARAM_::iclientsocket",1,"_PARAM_ *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p__PARAM_,0))){ + SWIG_fail_ptr("PARAM_iclientsocket_get",1,SWIGTYPE_p__PARAM_); + } + + result = (int) ((arg1)->iclientsocket); + lua_pushnumber(L, (lua_Number) result); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_PARAM_is_binary_set(lua_State* L) { + int SWIG_arg = 0; + _PARAM_ *arg1 = (_PARAM_ *) 0 ; + int arg2 ; + + SWIG_check_num_args("_PARAM_::is_binary",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("_PARAM_::is_binary",1,"_PARAM_ *"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("_PARAM_::is_binary",2,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p__PARAM_,0))){ + SWIG_fail_ptr("PARAM_is_binary_set",1,SWIGTYPE_p__PARAM_); + } + + arg2 = (int)lua_tonumber(L, 2); + if (arg1) (arg1)->is_binary = arg2; + + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_PARAM_is_binary_get(lua_State* L) { + int SWIG_arg = 0; + _PARAM_ *arg1 = (_PARAM_ *) 0 ; + int result; + + SWIG_check_num_args("_PARAM_::is_binary",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("_PARAM_::is_binary",1,"_PARAM_ *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p__PARAM_,0))){ + SWIG_fail_ptr("PARAM_is_binary_get",1,SWIGTYPE_p__PARAM_); + } + + result = (int) ((arg1)->is_binary); + lua_pushnumber(L, (lua_Number) result); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_PARAM_button_set(lua_State* L) { + int SWIG_arg = 0; + _PARAM_ *arg1 = (_PARAM_ *) 0 ; + int arg2 ; + + SWIG_check_num_args("_PARAM_::button",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("_PARAM_::button",1,"_PARAM_ *"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("_PARAM_::button",2,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p__PARAM_,0))){ + SWIG_fail_ptr("PARAM_button_set",1,SWIGTYPE_p__PARAM_); + } + + arg2 = (int)lua_tonumber(L, 2); + if (arg1) (arg1)->button = arg2; + + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_PARAM_button_get(lua_State* L) { + int SWIG_arg = 0; + _PARAM_ *arg1 = (_PARAM_ *) 0 ; + int result; + + SWIG_check_num_args("_PARAM_::button",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("_PARAM_::button",1,"_PARAM_ *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p__PARAM_,0))){ + SWIG_fail_ptr("PARAM_button_get",1,SWIGTYPE_p__PARAM_); + } + + result = (int) ((arg1)->button); + lua_pushnumber(L, (lua_Number) result); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_new_PARAM(lua_State* L) { + int SWIG_arg = 0; + _PARAM_ *result = 0 ; + + SWIG_check_num_args("_PARAM_::_PARAM_",0,0) + result = (_PARAM_ *)new _PARAM_(); + SWIG_NewPointerObj(L,result,SWIGTYPE_p__PARAM_,1); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static void swig_delete_PARAM(void *obj) { +_PARAM_ *arg1 = (_PARAM_ *) obj; +delete arg1; +} +static int _proxy__wrap_new_PARAM(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_PARAM); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} +static swig_lua_attribute swig_PARAM_attributes[] = { + { "s", _wrap_PARAM_s_get, _wrap_PARAM_s_set }, + { "os", _wrap_PARAM_os_get, _wrap_PARAM_os_set }, + { "port", _wrap_PARAM_port_get, _wrap_PARAM_port_set }, + { "language", _wrap_PARAM_language_get, _wrap_PARAM_language_set }, + { "convert_units", _wrap_PARAM_convert_units_get, _wrap_PARAM_convert_units_set }, + { "fp", _wrap_PARAM_fp_get, _wrap_PARAM_fp_set }, + { "sleep", _wrap_PARAM_sleep_get, _wrap_PARAM_sleep_set }, + { "cleanup", _wrap_PARAM_cleanup_get, _wrap_PARAM_cleanup_set }, + { "app_data", _wrap_PARAM_app_data_get, _wrap_PARAM_app_data_set }, + { "user", _wrap_PARAM_user_get, _wrap_PARAM_user_set }, + { "clipboard", _wrap_PARAM_clipboard_get, _wrap_PARAM_clipboard_set }, + { "clipboard_length", _wrap_PARAM_clipboard_length_get, _wrap_PARAM_clipboard_length_set }, + { "modal", _wrap_PARAM_modal_get, _wrap_PARAM_modal_set }, + { "readData", _wrap_PARAM_readData_get, _wrap_PARAM_readData_set }, + { "showData", _wrap_PARAM_showData_get, _wrap_PARAM_showData_set }, + { "modal_d", _wrap_PARAM_modal_d_get, _wrap_PARAM_modal_d_set }, + { "modalUserData", _wrap_PARAM_modalUserData_get, _wrap_PARAM_modalUserData_set }, + { "parse_event_struct", _wrap_PARAM_parse_event_struct_get, _wrap_PARAM_parse_event_struct_set }, + { "x", _wrap_PARAM_x_get, _wrap_PARAM_x_set }, + { "y", _wrap_PARAM_y_get, _wrap_PARAM_y_set }, + { "nxy", _wrap_PARAM_nxy_get, _wrap_PARAM_nxy_set }, + { "url", _wrap_PARAM_url_get, _wrap_PARAM_url_set }, + { "initial_mask", _wrap_PARAM_initial_mask_get, _wrap_PARAM_initial_mask_set }, + { "file_prefix", _wrap_PARAM_file_prefix_get, _wrap_PARAM_file_prefix_set }, + { "free", _wrap_PARAM_free_get, _wrap_PARAM_free_set }, + { "version", _wrap_PARAM_version_get, _wrap_PARAM_version_set }, + { "pvserver_version", _wrap_PARAM_pvserver_version_get, _wrap_PARAM_pvserver_version_set }, + { "exit_on_bind_error", _wrap_PARAM_exit_on_bind_error_get, _wrap_PARAM_exit_on_bind_error_set }, + { "hello_counter", _wrap_PARAM_hello_counter_get, _wrap_PARAM_hello_counter_set }, + { "local_milliseconds", _wrap_PARAM_local_milliseconds_get, _wrap_PARAM_local_milliseconds_set }, + { "force_null_event", _wrap_PARAM_force_null_event_get, _wrap_PARAM_force_null_event_set }, + { "allow_pause", _wrap_PARAM_allow_pause_get, _wrap_PARAM_allow_pause_set }, + { "pause", _wrap_PARAM_pause_get, _wrap_PARAM_pause_set }, + { "my_pvlock_count", _wrap_PARAM_my_pvlock_count_get, _wrap_PARAM_my_pvlock_count_set }, + { "num_additional_widgets", _wrap_PARAM_num_additional_widgets_get, _wrap_PARAM_num_additional_widgets_set }, + { "mouse_x", _wrap_PARAM_mouse_x_get, _wrap_PARAM_mouse_x_set }, + { "mouse_y", _wrap_PARAM_mouse_y_get, _wrap_PARAM_mouse_y_set }, + { "mytext", _wrap_PARAM_mytext_get, _wrap_PARAM_mytext_set }, + { "communication_plugin", _wrap_PARAM_communication_plugin_get, _wrap_PARAM_communication_plugin_set }, + { "use_communication_plugin", _wrap_PARAM_use_communication_plugin_get, _wrap_PARAM_use_communication_plugin_set }, + { "lang_section", _wrap_PARAM_lang_section_get, _wrap_PARAM_lang_section_set }, + { "mytext2", _wrap_PARAM_mytext2_get, _wrap_PARAM_mytext2_set }, + { "http", _wrap_PARAM_http_get, _wrap_PARAM_http_set }, + { "fptmp", _wrap_PARAM_fptmp_get, _wrap_PARAM_fptmp_set }, + { "fhdltmp", _wrap_PARAM_fhdltmp_get, _wrap_PARAM_fhdltmp_set }, + { "iclientsocket", _wrap_PARAM_iclientsocket_get, _wrap_PARAM_iclientsocket_set }, + { "is_binary", _wrap_PARAM_is_binary_get, _wrap_PARAM_is_binary_set }, + { "button", _wrap_PARAM_button_get, _wrap_PARAM_button_set }, + {0,0,0} +}; +static swig_lua_method swig_PARAM_methods[]= { + {0,0} +}; +static swig_lua_method swig_PARAM_meta[] = { + {0,0} +}; + +static swig_lua_attribute swig_PARAM_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_PARAM_Sf_SwigStatic_constants[]= { + {0,0,0,0,0,0} +}; +static swig_lua_method swig_PARAM_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_PARAM_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_PARAM_Sf_SwigStatic = { + "PARAM", + swig_PARAM_Sf_SwigStatic_methods, + swig_PARAM_Sf_SwigStatic_attributes, + swig_PARAM_Sf_SwigStatic_constants, + swig_PARAM_Sf_SwigStatic_classes, + 0 +}; +static swig_lua_class *swig_PARAM_bases[] = {0}; +static const char *swig_PARAM_base_names[] = {0}; +static swig_lua_class _wrap_class_PARAM = { "PARAM", "PARAM", &SWIGTYPE_p__PARAM_,_proxy__wrap_new_PARAM, swig_delete_PARAM, swig_PARAM_methods, swig_PARAM_attributes, &swig_PARAM_Sf_SwigStatic, swig_PARAM_meta, swig_PARAM_bases, swig_PARAM_base_names }; static int _wrap_null_string_get(lua_State* L) { int SWIG_arg = 0; @@ -5179,35 +6192,59 @@ static void swig_delete_IntegerArray(void *obj) { IntegerArray *arg1 = (IntegerArray *) obj; delete arg1; } -static swig_lua_method swig_IntegerArray_methods[] = { - {0,0} -}; +static int _proxy__wrap_new_IntegerArray(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_IntegerArray); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_IntegerArray_attributes[] = { - { "i", _wrap_IntegerArray_i_get, _wrap_IntegerArray_i_set}, - { "i0", _wrap_IntegerArray_i0_get, _wrap_IntegerArray_i0_set}, - { "i1", _wrap_IntegerArray_i1_get, _wrap_IntegerArray_i1_set}, - { "i2", _wrap_IntegerArray_i2_get, _wrap_IntegerArray_i2_set}, - { "i3", _wrap_IntegerArray_i3_get, _wrap_IntegerArray_i3_set}, - { "i4", _wrap_IntegerArray_i4_get, _wrap_IntegerArray_i4_set}, - { "i5", _wrap_IntegerArray_i5_get, _wrap_IntegerArray_i5_set}, - { "i6", _wrap_IntegerArray_i6_get, _wrap_IntegerArray_i6_set}, - { "i7", _wrap_IntegerArray_i7_get, _wrap_IntegerArray_i7_set}, - { "i8", _wrap_IntegerArray_i8_get, _wrap_IntegerArray_i8_set}, - { "i9", _wrap_IntegerArray_i9_get, _wrap_IntegerArray_i9_set}, + { "i", _wrap_IntegerArray_i_get, _wrap_IntegerArray_i_set }, + { "i0", _wrap_IntegerArray_i0_get, _wrap_IntegerArray_i0_set }, + { "i1", _wrap_IntegerArray_i1_get, _wrap_IntegerArray_i1_set }, + { "i2", _wrap_IntegerArray_i2_get, _wrap_IntegerArray_i2_set }, + { "i3", _wrap_IntegerArray_i3_get, _wrap_IntegerArray_i3_set }, + { "i4", _wrap_IntegerArray_i4_get, _wrap_IntegerArray_i4_set }, + { "i5", _wrap_IntegerArray_i5_get, _wrap_IntegerArray_i5_set }, + { "i6", _wrap_IntegerArray_i6_get, _wrap_IntegerArray_i6_set }, + { "i7", _wrap_IntegerArray_i7_get, _wrap_IntegerArray_i7_set }, + { "i8", _wrap_IntegerArray_i8_get, _wrap_IntegerArray_i8_set }, + { "i9", _wrap_IntegerArray_i9_get, _wrap_IntegerArray_i9_set }, {0,0,0} }; -static swig_lua_attribute swig_IntegerArray_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_IntegerArray_methods[]= { + {0,0} }; -static swig_lua_method swig_IntegerArray_cls_methods[] = { +static swig_lua_method swig_IntegerArray_meta[] = { {0,0} }; -static swig_lua_const_info swig_IntegerArray_cls_constants[] = { + +static swig_lua_attribute swig_IntegerArray_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_IntegerArray_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_IntegerArray_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_IntegerArray_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_IntegerArray_Sf_SwigStatic = { + "IntegerArray", + swig_IntegerArray_Sf_SwigStatic_methods, + swig_IntegerArray_Sf_SwigStatic_attributes, + swig_IntegerArray_Sf_SwigStatic_constants, + swig_IntegerArray_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_IntegerArray_bases[] = {0}; static const char *swig_IntegerArray_base_names[] = {0}; -static swig_lua_class _wrap_class_IntegerArray = { "IntegerArray", &SWIGTYPE_p_IntegerArray,_wrap_new_IntegerArray, swig_delete_IntegerArray, swig_IntegerArray_methods, swig_IntegerArray_attributes, { "IntegerArray", swig_IntegerArray_cls_methods, swig_IntegerArray_cls_attributes, swig_IntegerArray_cls_constants }, swig_IntegerArray_bases, swig_IntegerArray_base_names }; +static swig_lua_class _wrap_class_IntegerArray = { "IntegerArray", "IntegerArray", &SWIGTYPE_p_IntegerArray,_proxy__wrap_new_IntegerArray, swig_delete_IntegerArray, swig_IntegerArray_methods, swig_IntegerArray_attributes, &swig_IntegerArray_Sf_SwigStatic, swig_IntegerArray_meta, swig_IntegerArray_bases, swig_IntegerArray_base_names }; static int _wrap_FloatArray_f_set(lua_State* L) { int SWIG_arg = 0; @@ -5788,35 +6825,59 @@ static void swig_delete_FloatArray(void *obj) { FloatArray *arg1 = (FloatArray *) obj; delete arg1; } -static swig_lua_method swig_FloatArray_methods[] = { - {0,0} -}; +static int _proxy__wrap_new_FloatArray(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_FloatArray); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_FloatArray_attributes[] = { - { "f", _wrap_FloatArray_f_get, _wrap_FloatArray_f_set}, - { "f0", _wrap_FloatArray_f0_get, _wrap_FloatArray_f0_set}, - { "f1", _wrap_FloatArray_f1_get, _wrap_FloatArray_f1_set}, - { "f2", _wrap_FloatArray_f2_get, _wrap_FloatArray_f2_set}, - { "f3", _wrap_FloatArray_f3_get, _wrap_FloatArray_f3_set}, - { "f4", _wrap_FloatArray_f4_get, _wrap_FloatArray_f4_set}, - { "f5", _wrap_FloatArray_f5_get, _wrap_FloatArray_f5_set}, - { "f6", _wrap_FloatArray_f6_get, _wrap_FloatArray_f6_set}, - { "f7", _wrap_FloatArray_f7_get, _wrap_FloatArray_f7_set}, - { "f8", _wrap_FloatArray_f8_get, _wrap_FloatArray_f8_set}, - { "f9", _wrap_FloatArray_f9_get, _wrap_FloatArray_f9_set}, + { "f", _wrap_FloatArray_f_get, _wrap_FloatArray_f_set }, + { "f0", _wrap_FloatArray_f0_get, _wrap_FloatArray_f0_set }, + { "f1", _wrap_FloatArray_f1_get, _wrap_FloatArray_f1_set }, + { "f2", _wrap_FloatArray_f2_get, _wrap_FloatArray_f2_set }, + { "f3", _wrap_FloatArray_f3_get, _wrap_FloatArray_f3_set }, + { "f4", _wrap_FloatArray_f4_get, _wrap_FloatArray_f4_set }, + { "f5", _wrap_FloatArray_f5_get, _wrap_FloatArray_f5_set }, + { "f6", _wrap_FloatArray_f6_get, _wrap_FloatArray_f6_set }, + { "f7", _wrap_FloatArray_f7_get, _wrap_FloatArray_f7_set }, + { "f8", _wrap_FloatArray_f8_get, _wrap_FloatArray_f8_set }, + { "f9", _wrap_FloatArray_f9_get, _wrap_FloatArray_f9_set }, {0,0,0} }; -static swig_lua_attribute swig_FloatArray_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_FloatArray_methods[]= { + {0,0} }; -static swig_lua_method swig_FloatArray_cls_methods[] = { +static swig_lua_method swig_FloatArray_meta[] = { {0,0} }; -static swig_lua_const_info swig_FloatArray_cls_constants[] = { + +static swig_lua_attribute swig_FloatArray_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_FloatArray_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_FloatArray_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_FloatArray_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_FloatArray_Sf_SwigStatic = { + "FloatArray", + swig_FloatArray_Sf_SwigStatic_methods, + swig_FloatArray_Sf_SwigStatic_attributes, + swig_FloatArray_Sf_SwigStatic_constants, + swig_FloatArray_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_FloatArray_bases[] = {0}; static const char *swig_FloatArray_base_names[] = {0}; -static swig_lua_class _wrap_class_FloatArray = { "FloatArray", &SWIGTYPE_p_FloatArray,_wrap_new_FloatArray, swig_delete_FloatArray, swig_FloatArray_methods, swig_FloatArray_attributes, { "FloatArray", swig_FloatArray_cls_methods, swig_FloatArray_cls_attributes, swig_FloatArray_cls_constants }, swig_FloatArray_bases, swig_FloatArray_base_names }; +static swig_lua_class _wrap_class_FloatArray = { "FloatArray", "FloatArray", &SWIGTYPE_p_FloatArray,_proxy__wrap_new_FloatArray, swig_delete_FloatArray, swig_FloatArray_methods, swig_FloatArray_attributes, &swig_FloatArray_Sf_SwigStatic, swig_FloatArray_meta, swig_FloatArray_bases, swig_FloatArray_base_names }; static int _wrap_pvTime_millisecond_set(lua_State* L) { int SWIG_arg = 0; @@ -6189,31 +7250,55 @@ static void swig_delete_pvTime(void *obj) { pvTime *arg1 = (pvTime *) obj; delete arg1; } -static swig_lua_method swig_pvTime_methods[] = { - {0,0} -}; +static int _proxy__wrap_new_pvTime(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_pvTime); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_pvTime_attributes[] = { - { "millisecond", _wrap_pvTime_millisecond_get, _wrap_pvTime_millisecond_set}, - { "second", _wrap_pvTime_second_get, _wrap_pvTime_second_set}, - { "minute", _wrap_pvTime_minute_get, _wrap_pvTime_minute_set}, - { "hour", _wrap_pvTime_hour_get, _wrap_pvTime_hour_set}, - { "day", _wrap_pvTime_day_get, _wrap_pvTime_day_set}, - { "month", _wrap_pvTime_month_get, _wrap_pvTime_month_set}, - { "year", _wrap_pvTime_year_get, _wrap_pvTime_year_set}, + { "millisecond", _wrap_pvTime_millisecond_get, _wrap_pvTime_millisecond_set }, + { "second", _wrap_pvTime_second_get, _wrap_pvTime_second_set }, + { "minute", _wrap_pvTime_minute_get, _wrap_pvTime_minute_set }, + { "hour", _wrap_pvTime_hour_get, _wrap_pvTime_hour_set }, + { "day", _wrap_pvTime_day_get, _wrap_pvTime_day_set }, + { "month", _wrap_pvTime_month_get, _wrap_pvTime_month_set }, + { "year", _wrap_pvTime_year_get, _wrap_pvTime_year_set }, {0,0,0} }; -static swig_lua_attribute swig_pvTime_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_pvTime_methods[]= { + {0,0} }; -static swig_lua_method swig_pvTime_cls_methods[] = { +static swig_lua_method swig_pvTime_meta[] = { {0,0} }; -static swig_lua_const_info swig_pvTime_cls_constants[] = { + +static swig_lua_attribute swig_pvTime_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_pvTime_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_pvTime_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_pvTime_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_pvTime_Sf_SwigStatic = { + "pvTime", + swig_pvTime_Sf_SwigStatic_methods, + swig_pvTime_Sf_SwigStatic_attributes, + swig_pvTime_Sf_SwigStatic_constants, + swig_pvTime_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_pvTime_bases[] = {0}; static const char *swig_pvTime_base_names[] = {0}; -static swig_lua_class _wrap_class_pvTime = { "pvTime", &SWIGTYPE_p_pvTime,_wrap_new_pvTime, swig_delete_pvTime, swig_pvTime_methods, swig_pvTime_attributes, { "pvTime", swig_pvTime_cls_methods, swig_pvTime_cls_attributes, swig_pvTime_cls_constants }, swig_pvTime_bases, swig_pvTime_base_names }; +static swig_lua_class _wrap_class_pvTime = { "pvTime", "pvTime", &SWIGTYPE_p_pvTime,_proxy__wrap_new_pvTime, swig_delete_pvTime, swig_pvTime_methods, swig_pvTime_attributes, &swig_pvTime_Sf_SwigStatic, swig_pvTime_meta, swig_pvTime_bases, swig_pvTime_base_names }; static int _wrap_pvAddressTableItem_s_set(lua_State* L) { int SWIG_arg = 0; @@ -6394,27 +7479,51 @@ static void swig_delete_pvAddressTableItem(void *obj) { pvAddressTableItem *arg1 = (pvAddressTableItem *) obj; delete arg1; } -static swig_lua_method swig_pvAddressTableItem_methods[] = { - {0,0} -}; +static int _proxy__wrap_new_pvAddressTableItem(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_pvAddressTableItem); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_pvAddressTableItem_attributes[] = { - { "s", _wrap_pvAddressTableItem_s_get, _wrap_pvAddressTableItem_s_set}, - { "version", _wrap_pvAddressTableItem_version_get, _wrap_pvAddressTableItem_version_set}, - { "adr", _wrap_pvAddressTableItem_adr_get, _wrap_pvAddressTableItem_adr_set}, + { "s", _wrap_pvAddressTableItem_s_get, _wrap_pvAddressTableItem_s_set }, + { "version", _wrap_pvAddressTableItem_version_get, _wrap_pvAddressTableItem_version_set }, + { "adr", _wrap_pvAddressTableItem_adr_get, _wrap_pvAddressTableItem_adr_set }, {0,0,0} }; -static swig_lua_attribute swig_pvAddressTableItem_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_pvAddressTableItem_methods[]= { + {0,0} }; -static swig_lua_method swig_pvAddressTableItem_cls_methods[] = { +static swig_lua_method swig_pvAddressTableItem_meta[] = { {0,0} }; -static swig_lua_const_info swig_pvAddressTableItem_cls_constants[] = { + +static swig_lua_attribute swig_pvAddressTableItem_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_pvAddressTableItem_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_pvAddressTableItem_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_pvAddressTableItem_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_pvAddressTableItem_Sf_SwigStatic = { + "pvAddressTableItem", + swig_pvAddressTableItem_Sf_SwigStatic_methods, + swig_pvAddressTableItem_Sf_SwigStatic_attributes, + swig_pvAddressTableItem_Sf_SwigStatic_constants, + swig_pvAddressTableItem_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_pvAddressTableItem_bases[] = {0}; static const char *swig_pvAddressTableItem_base_names[] = {0}; -static swig_lua_class _wrap_class_pvAddressTableItem = { "pvAddressTableItem", &SWIGTYPE_p_pvAddressTableItem,_wrap_new_pvAddressTableItem, swig_delete_pvAddressTableItem, swig_pvAddressTableItem_methods, swig_pvAddressTableItem_attributes, { "pvAddressTableItem", swig_pvAddressTableItem_cls_methods, swig_pvAddressTableItem_cls_attributes, swig_pvAddressTableItem_cls_constants }, swig_pvAddressTableItem_bases, swig_pvAddressTableItem_base_names }; +static swig_lua_class _wrap_class_pvAddressTableItem = { "pvAddressTableItem", "pvAddressTableItem", &SWIGTYPE_p_pvAddressTableItem,_proxy__wrap_new_pvAddressTableItem, swig_delete_pvAddressTableItem, swig_pvAddressTableItem_methods, swig_pvAddressTableItem_attributes, &swig_pvAddressTableItem_Sf_SwigStatic, swig_pvAddressTableItem_meta, swig_pvAddressTableItem_bases, swig_pvAddressTableItem_base_names }; static int _wrap_pvAddressTable_adr_set(lua_State* L) { int SWIG_arg = 0; @@ -6495,25 +7604,49 @@ static void swig_delete_pvAddressTable(void *obj) { pvAddressTable *arg1 = (pvAddressTable *) obj; delete arg1; } -static swig_lua_method swig_pvAddressTable_methods[] = { - {0,0} -}; +static int _proxy__wrap_new_pvAddressTable(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_pvAddressTable); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_pvAddressTable_attributes[] = { - { "adr", _wrap_pvAddressTable_adr_get, _wrap_pvAddressTable_adr_set}, + { "adr", _wrap_pvAddressTable_adr_get, _wrap_pvAddressTable_adr_set }, {0,0,0} }; -static swig_lua_attribute swig_pvAddressTable_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_pvAddressTable_methods[]= { + {0,0} }; -static swig_lua_method swig_pvAddressTable_cls_methods[] = { +static swig_lua_method swig_pvAddressTable_meta[] = { {0,0} }; -static swig_lua_const_info swig_pvAddressTable_cls_constants[] = { + +static swig_lua_attribute swig_pvAddressTable_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_pvAddressTable_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_pvAddressTable_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_pvAddressTable_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_pvAddressTable_Sf_SwigStatic = { + "pvAddressTable", + swig_pvAddressTable_Sf_SwigStatic_methods, + swig_pvAddressTable_Sf_SwigStatic_attributes, + swig_pvAddressTable_Sf_SwigStatic_constants, + swig_pvAddressTable_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_pvAddressTable_bases[] = {0}; static const char *swig_pvAddressTable_base_names[] = {0}; -static swig_lua_class _wrap_class_pvAddressTable = { "pvAddressTable", &SWIGTYPE_p_pvAddressTable,_wrap_new_pvAddressTable, swig_delete_pvAddressTable, swig_pvAddressTable_methods, swig_pvAddressTable_attributes, { "pvAddressTable", swig_pvAddressTable_cls_methods, swig_pvAddressTable_cls_attributes, swig_pvAddressTable_cls_constants }, swig_pvAddressTable_bases, swig_pvAddressTable_base_names }; +static swig_lua_class _wrap_class_pvAddressTable = { "pvAddressTable", "pvAddressTable", &SWIGTYPE_p_pvAddressTable,_proxy__wrap_new_pvAddressTable, swig_delete_pvAddressTable, swig_pvAddressTable_methods, swig_pvAddressTable_attributes, &swig_pvAddressTable_Sf_SwigStatic, swig_pvAddressTable_meta, swig_pvAddressTable_bases, swig_pvAddressTable_base_names }; static int _wrap_glencode_set_param(lua_State* L) { int SWIG_arg = 0; @@ -14453,6 +15586,30 @@ static int _wrap_pvSaveDrawBuffer(lua_State* L) { } +static int _wrap_pvWaitpid(lua_State* L) { + int SWIG_arg = 0; + PARAM *arg1 = (PARAM *) 0 ; + int result; + + SWIG_check_num_args("pvWaitpid",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("pvWaitpid",1,"PARAM *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p__PARAM_,0))){ + SWIG_fail_ptr("pvWaitpid",1,SWIGTYPE_p__PARAM_); + } + + result = (int)pvWaitpid(arg1); + lua_pushnumber(L, (lua_Number) result); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + static int _wrap_pvText(lua_State* L) { int SWIG_arg = 0; PARAM *arg1 = (PARAM *) 0 ; @@ -17651,32 +18808,56 @@ static void swig_delete_glFont(void *obj) { glFont *arg1 = (glFont *) obj; delete arg1; } -static swig_lua_method swig_glFont_methods[] = { - {"read", _wrap_glFont_read}, - {"lineHeight", _wrap_glFont_lineHeight}, - {"charWidth", _wrap_glFont_charWidth}, - {"stringWidth", _wrap_glFont_stringWidth}, - {"drawString", _wrap_glFont_drawString}, - {"setZoom", _wrap_glFont_setZoom}, - {"setRotation", _wrap_glFont_setRotation}, - {"setFontSize", _wrap_glFont_setFontSize}, - {0,0} -}; +static int _proxy__wrap_new_glFont(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_glFont); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_glFont_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_glFont_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_glFont_methods[]= { + { "read", _wrap_glFont_read}, + { "lineHeight", _wrap_glFont_lineHeight}, + { "charWidth", _wrap_glFont_charWidth}, + { "stringWidth", _wrap_glFont_stringWidth}, + { "drawString", _wrap_glFont_drawString}, + { "setZoom", _wrap_glFont_setZoom}, + { "setRotation", _wrap_glFont_setRotation}, + { "setFontSize", _wrap_glFont_setFontSize}, + {0,0} }; -static swig_lua_method swig_glFont_cls_methods[] = { +static swig_lua_method swig_glFont_meta[] = { {0,0} }; -static swig_lua_const_info swig_glFont_cls_constants[] = { + +static swig_lua_attribute swig_glFont_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_glFont_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_glFont_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_glFont_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_glFont_Sf_SwigStatic = { + "glFont", + swig_glFont_Sf_SwigStatic_methods, + swig_glFont_Sf_SwigStatic_attributes, + swig_glFont_Sf_SwigStatic_constants, + swig_glFont_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_glFont_bases[] = {0}; static const char *swig_glFont_base_names[] = {0}; -static swig_lua_class _wrap_class_glFont = { "glFont", &SWIGTYPE_p_glFont,_wrap_new_glFont, swig_delete_glFont, swig_glFont_methods, swig_glFont_attributes, { "glFont", swig_glFont_cls_methods, swig_glFont_cls_attributes, swig_glFont_cls_constants }, swig_glFont_bases, swig_glFont_base_names }; +static swig_lua_class _wrap_class_glFont = { "glFont", "glFont", &SWIGTYPE_p_glFont,_proxy__wrap_new_glFont, swig_delete_glFont, swig_glFont_methods, swig_glFont_attributes, &swig_glFont_Sf_SwigStatic, swig_glFont_meta, swig_glFont_bases, swig_glFont_base_names }; static int _wrap_pvSendOpenGL__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -28575,35 +29756,59 @@ static void swig_delete_pvWidgetIdManager(void *obj) { pvWidgetIdManager *arg1 = (pvWidgetIdManager *) obj; delete arg1; } -static swig_lua_method swig_pvWidgetIdManager_methods[] = { - {"init", _wrap_pvWidgetIdManager_init}, - {"newId", _wrap_pvWidgetIdManager_newId}, - {"deleteWidget", _wrap_pvWidgetIdManager_deleteWidget}, - {"id", _wrap_pvWidgetIdManager_id}, - {"isInMap", _wrap_pvWidgetIdManager_isInMap}, - {"firstId", _wrap_pvWidgetIdManager_firstId}, - {"nextId", _wrap_pvWidgetIdManager_nextId}, - {"endId", _wrap_pvWidgetIdManager_endId}, - {"name", _wrap_pvWidgetIdManager_name}, - {"idStart", _wrap_pvWidgetIdManager_idStart}, - {"readEnumFromMask", _wrap_pvWidgetIdManager_readEnumFromMask}, - {0,0} -}; +static int _proxy__wrap_new_pvWidgetIdManager(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_pvWidgetIdManager); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_pvWidgetIdManager_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_pvWidgetIdManager_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_pvWidgetIdManager_methods[]= { + { "init", _wrap_pvWidgetIdManager_init}, + { "newId", _wrap_pvWidgetIdManager_newId}, + { "deleteWidget", _wrap_pvWidgetIdManager_deleteWidget}, + { "id", _wrap_pvWidgetIdManager_id}, + { "isInMap", _wrap_pvWidgetIdManager_isInMap}, + { "firstId", _wrap_pvWidgetIdManager_firstId}, + { "nextId", _wrap_pvWidgetIdManager_nextId}, + { "endId", _wrap_pvWidgetIdManager_endId}, + { "name", _wrap_pvWidgetIdManager_name}, + { "idStart", _wrap_pvWidgetIdManager_idStart}, + { "readEnumFromMask", _wrap_pvWidgetIdManager_readEnumFromMask}, + {0,0} }; -static swig_lua_method swig_pvWidgetIdManager_cls_methods[] = { +static swig_lua_method swig_pvWidgetIdManager_meta[] = { {0,0} }; -static swig_lua_const_info swig_pvWidgetIdManager_cls_constants[] = { + +static swig_lua_attribute swig_pvWidgetIdManager_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_pvWidgetIdManager_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_pvWidgetIdManager_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_pvWidgetIdManager_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_pvWidgetIdManager_Sf_SwigStatic = { + "pvWidgetIdManager", + swig_pvWidgetIdManager_Sf_SwigStatic_methods, + swig_pvWidgetIdManager_Sf_SwigStatic_attributes, + swig_pvWidgetIdManager_Sf_SwigStatic_constants, + swig_pvWidgetIdManager_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_pvWidgetIdManager_bases[] = {0}; static const char *swig_pvWidgetIdManager_base_names[] = {0}; -static swig_lua_class _wrap_class_pvWidgetIdManager = { "pvWidgetIdManager", &SWIGTYPE_p_pvWidgetIdManager,_wrap_new_pvWidgetIdManager, swig_delete_pvWidgetIdManager, swig_pvWidgetIdManager_methods, swig_pvWidgetIdManager_attributes, { "pvWidgetIdManager", swig_pvWidgetIdManager_cls_methods, swig_pvWidgetIdManager_cls_attributes, swig_pvWidgetIdManager_cls_constants }, swig_pvWidgetIdManager_bases, swig_pvWidgetIdManager_base_names }; +static swig_lua_class _wrap_class_pvWidgetIdManager = { "pvWidgetIdManager", "pvWidgetIdManager", &SWIGTYPE_p_pvWidgetIdManager,_proxy__wrap_new_pvWidgetIdManager, swig_delete_pvWidgetIdManager, swig_pvWidgetIdManager_methods, swig_pvWidgetIdManager_attributes, &swig_pvWidgetIdManager_Sf_SwigStatic, swig_pvWidgetIdManager_meta, swig_pvWidgetIdManager_bases, swig_pvWidgetIdManager_base_names }; static int _wrap_new_qtDatabase(lua_State* L) { int SWIG_arg = 0; @@ -29088,36 +30293,60 @@ static void swig_delete_qtDatabase(void *obj) { qtDatabase *arg1 = (qtDatabase *) obj; delete arg1; } -static swig_lua_method swig_qtDatabase_methods[] = { - {"open", _wrap_qtDatabase_open}, - {"close", _wrap_qtDatabase_close}, - {"query", _wrap_qtDatabase_query}, - {"populateTable", _wrap_qtDatabase_populateTable}, - {"recordFieldValue", _wrap_qtDatabase_recordFieldValue}, - {"dbQuery", _wrap_qtDatabase_dbQuery}, - {"dbRecordFieldValue", _wrap_qtDatabase_dbRecordFieldValue}, - {"nextRecord", _wrap_qtDatabase_nextRecord}, - {0,0} -}; -static swig_lua_attribute swig_qtDatabase_attributes[] = { - { "connectionName", _wrap_qtDatabase_connectionName_get, _wrap_qtDatabase_connectionName_set}, - { "db", _wrap_qtDatabase_db_get, _wrap_qtDatabase_db_set}, - { "result", _wrap_qtDatabase_result_get, _wrap_qtDatabase_result_set}, - { "error", _wrap_qtDatabase_error_get, _wrap_qtDatabase_error_set}, +static int _proxy__wrap_new_qtDatabase(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_qtDatabase); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} +static swig_lua_attribute swig_qtDatabase_attributes[] = { + { "connectionName", _wrap_qtDatabase_connectionName_get, _wrap_qtDatabase_connectionName_set }, + { "db", _wrap_qtDatabase_db_get, _wrap_qtDatabase_db_set }, + { "result", _wrap_qtDatabase_result_get, _wrap_qtDatabase_result_set }, + { "error", _wrap_qtDatabase_error_get, _wrap_qtDatabase_error_set }, {0,0,0} }; -static swig_lua_attribute swig_qtDatabase_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_qtDatabase_methods[]= { + { "open", _wrap_qtDatabase_open}, + { "close", _wrap_qtDatabase_close}, + { "query", _wrap_qtDatabase_query}, + { "populateTable", _wrap_qtDatabase_populateTable}, + { "recordFieldValue", _wrap_qtDatabase_recordFieldValue}, + { "dbQuery", _wrap_qtDatabase_dbQuery}, + { "dbRecordFieldValue", _wrap_qtDatabase_dbRecordFieldValue}, + { "nextRecord", _wrap_qtDatabase_nextRecord}, + {0,0} }; -static swig_lua_method swig_qtDatabase_cls_methods[] = { +static swig_lua_method swig_qtDatabase_meta[] = { {0,0} }; -static swig_lua_const_info swig_qtDatabase_cls_constants[] = { + +static swig_lua_attribute swig_qtDatabase_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_qtDatabase_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_qtDatabase_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_qtDatabase_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_qtDatabase_Sf_SwigStatic = { + "qtDatabase", + swig_qtDatabase_Sf_SwigStatic_methods, + swig_qtDatabase_Sf_SwigStatic_attributes, + swig_qtDatabase_Sf_SwigStatic_constants, + swig_qtDatabase_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_qtDatabase_bases[] = {0}; static const char *swig_qtDatabase_base_names[] = {0}; -static swig_lua_class _wrap_class_qtDatabase = { "qtDatabase", &SWIGTYPE_p_qtDatabase,_wrap_new_qtDatabase, swig_delete_qtDatabase, swig_qtDatabase_methods, swig_qtDatabase_attributes, { "qtDatabase", swig_qtDatabase_cls_methods, swig_qtDatabase_cls_attributes, swig_qtDatabase_cls_constants }, swig_qtDatabase_bases, swig_qtDatabase_base_names }; +static swig_lua_class _wrap_class_qtDatabase = { "qtDatabase", "qtDatabase", &SWIGTYPE_p_qtDatabase,_proxy__wrap_new_qtDatabase, swig_delete_qtDatabase, swig_qtDatabase_methods, swig_qtDatabase_attributes, &swig_qtDatabase_Sf_SwigStatic, swig_qtDatabase_meta, swig_qtDatabase_bases, swig_qtDatabase_base_names }; static int _wrap_getParam(lua_State* L) { int SWIG_arg = 0; @@ -29158,545 +30387,94 @@ static int _wrap_pvQImageScript(lua_State* L) { SWIG_fail_ptr("pvQImageScript",1,SWIGTYPE_p__PARAM_); } - arg2 = (int)lua_tonumber(L, 2); - arg3 = (int)lua_tonumber(L, 3); - arg4 = (char *)lua_tostring(L, 4); - result = (int)pvQImageScript(arg1,arg2,arg3,(char const *)arg4); - lua_pushnumber(L, (lua_Number) result); SWIG_arg++; - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_new_int(lua_State* L) { - int SWIG_arg = 0; - int arg1 ; - int *result = 0 ; - - SWIG_check_num_args("new_int",1,1) - if(!lua_isnumber(L,1)) SWIG_fail_arg("new_int",1,"int"); - arg1 = (int)lua_tonumber(L, 1); - result = (int *)new_int(arg1); - SWIG_NewPointerObj(L,result,SWIGTYPE_p_int,0); SWIG_arg++; - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_get_int(lua_State* L) { - int SWIG_arg = 0; - int *arg1 = (int *) 0 ; - int result; - - SWIG_check_num_args("get_int",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("get_int",1,"int *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_int,0))){ - SWIG_fail_ptr("get_int",1,SWIGTYPE_p_int); - } - - result = (int)get_int(arg1); - lua_pushnumber(L, (lua_Number) result); SWIG_arg++; - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_delete_int(lua_State* L) { - int SWIG_arg = 0; - int *arg1 = (int *) 0 ; - - SWIG_check_num_args("delete_int",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("delete_int",1,"int *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_int,0))){ - SWIG_fail_ptr("delete_int",1,SWIGTYPE_p_int); - } - - delete_int(arg1); - - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -#ifdef __cplusplus -} -#endif - -static const struct luaL_Reg swig_commands[] = { - { "glencode_set_param", _wrap_glencode_set_param}, - { "pvlock", _wrap_pvlock}, - { "pvunlock", _wrap_pvunlock}, - { "pvsystem", _wrap_pvsystem}, - { "pvGetLocalTime", _wrap_pvGetLocalTime}, - { "pvIsAccessAllowed", _wrap_pvIsAccessAllowed}, - { "pvSendVersion", _wrap_pvSendVersion}, - { "pvXYAllocate", _wrap_pvXYAllocate}, - { "getIntegers", _wrap_getIntegers}, - { "getFloats", _wrap_getFloats}, - { "getTextFromText", _wrap_getTextFromText}, - { "pvSetXY", _wrap_pvSetXY}, - { "pvGetSocketPointer", _wrap_pvGetSocketPointer}, - { "pvInitInternal", _wrap_pvInitInternal}, - { "pvInit", _wrap_pvInit}, - { "pvAccept", _wrap_pvAccept}, - { "pvCreateThread", _wrap_pvCreateThread}, - { "pvGetInitialMask", _wrap_pvGetInitialMask}, - { "pvMain", _wrap_pvMain}, - { "pvSetCleanup", _wrap_pvSetCleanup}, - { "pvGetEvent", _wrap_pvGetEvent}, - { "pvPollEvent", _wrap_pvPollEvent}, - { "pvWait", _wrap_pvWait}, - { "pvGlUpdate", _wrap_pvGlUpdate}, - { "pvSleep", _wrap_pvSleep}, - { "pvWarning", _wrap_pvWarning}, - { "pvMainFatal", _wrap_pvMainFatal}, - { "pvThreadFatal", _wrap_pvThreadFatal}, - { "pvScreenHint", _wrap_pvScreenHint}, - { "pvSetMouseShape", _wrap_pvSetMouseShape}, - { "pvSetWhatsThis", _wrap_pvSetWhatsThis}, - { "pvWhatsThisPrintf", _wrap_pvWhatsThisPrintf}, - { "pvClientCommand",_wrap_pvClientCommand}, - { "pvWriteTextToFileAtClient", _wrap_pvWriteTextToFileAtClient}, - { "pvZoomMask", _wrap_pvZoomMask}, - { "pvSetManualUrl", _wrap_pvSetManualUrl}, - { "pvSelectLanguage", _wrap_pvSelectLanguage}, - { "pvStartDefinition", _wrap_pvStartDefinition}, - { "pvQWidget", _wrap_pvQWidget}, - { "pvQLayoutVbox", _wrap_pvQLayoutVbox}, - { "pvQLayoutHbox", _wrap_pvQLayoutHbox}, - { "pvQLayoutGrid", _wrap_pvQLayoutGrid}, - { "pvQLabel", _wrap_pvQLabel}, - { "pvQComboBox", _wrap_pvQComboBox}, - { "pvQLineEdit", _wrap_pvQLineEdit}, - { "pvQPushButton", _wrap_pvQPushButton}, - { "pvQLCDNumber", _wrap_pvQLCDNumber}, - { "pvQSlider", _wrap_pvQSlider}, - { "pvQButtonGroup", _wrap_pvQButtonGroup}, - { "pvQRadioButton", _wrap_pvQRadioButton}, - { "pvQCheckBox", _wrap_pvQCheckBox}, - { "pvQFrame", _wrap_pvQFrame}, - { "pvQDraw", _wrap_pvQDraw}, - { "pvQImage",_wrap_pvQImage}, - { "pvQGL", _wrap_pvQGL}, - { "pvQTabWidget", _wrap_pvQTabWidget}, - { "pvQToolBox", _wrap_pvQToolBox}, - { "pvQGroupBox", _wrap_pvQGroupBox}, - { "pvQListBox", _wrap_pvQListBox}, - { "pvQTable", _wrap_pvQTable}, - { "pvQSpinBox", _wrap_pvQSpinBox}, - { "pvQDial", _wrap_pvQDial}, - { "pvQProgressBar",_wrap_pvQProgressBar}, - { "pvQMultiLineEdit", _wrap_pvQMultiLineEdit}, - { "pvQTextBrowser", _wrap_pvQTextBrowser}, - { "pvQListView", _wrap_pvQListView}, - { "pvQIconView", _wrap_pvQIconView}, - { "pvQVtkTclWidget", _wrap_pvQVtkTclWidget}, - { "pvQwtPlotWidget", _wrap_pvQwtPlotWidget}, - { "pvQwtScale", _wrap_pvQwtScale}, - { "pvQwtThermo", _wrap_pvQwtThermo}, - { "pvQwtKnob", _wrap_pvQwtKnob}, - { "pvQwtCounter", _wrap_pvQwtCounter}, - { "pvQwtWheel", _wrap_pvQwtWheel}, - { "pvQwtSlider", _wrap_pvQwtSlider}, - { "pvQwtDial", _wrap_pvQwtDial}, - { "pvQwtCompass", _wrap_pvQwtCompass}, - { "pvQwtAnalogClock", _wrap_pvQwtAnalogClock}, - { "pvQDateEdit", _wrap_pvQDateEdit}, - { "pvQTimeEdit", _wrap_pvQTimeEdit}, - { "pvQDateTimeEdit", _wrap_pvQDateTimeEdit}, - { "pvQCustomWidget",_wrap_pvQCustomWidget}, - { "pvEndDefinition", _wrap_pvEndDefinition}, - { "pvAddWidgetOrLayout", _wrap_pvAddWidgetOrLayout}, - { "pvAddStretch", _wrap_pvAddStretch}, - { "pvTabOrder", _wrap_pvTabOrder}, - { "pvDeleteWidget", _wrap_pvDeleteWidget}, - { "pvSetCaption", _wrap_pvSetCaption}, - { "pvPlaySound", _wrap_pvPlaySound}, - { "pvBeep", _wrap_pvBeep}, - { "pvStatusMessage", _wrap_pvStatusMessage}, - { "pvToolTip", _wrap_pvToolTip}, - { "pvSetTextEx", _wrap_pvSetTextEx}, - { "pvSetText", _wrap_pvSetText}, - { "pvPrintf", _wrap_pvPrintf}, - { "pvSetStyleSheet", _wrap_pvSetStyleSheet}, - { "pvPrintfStyleSheet", _wrap_pvPrintfStyleSheet}, - { "pvSetMinValue", _wrap_pvSetMinValue}, - { "pvSetMaxValue", _wrap_pvSetMaxValue}, - { "pvSetValue", _wrap_pvSetValue}, - { "pvClear", _wrap_pvClear}, - { "pvChangeItem",_wrap_pvChangeItem}, - { "pvInsertItem",_wrap_pvInsertItem}, - { "pvRemoveItem", _wrap_pvRemoveItem}, - { "pvRemoveItemByName", _wrap_pvRemoveItemByName}, - { "pvAddColumn", _wrap_pvAddColumn}, - { "pvRemoveAllColumns", _wrap_pvRemoveAllColumns}, - { "pvSetTableText", _wrap_pvSetTableText}, - { "pvSetTableButton", _wrap_pvSetTableButton}, - { "pvSetTableCheckBox", _wrap_pvSetTableCheckBox}, - { "pvSetTableComboBox", _wrap_pvSetTableComboBox}, - { "pvSetTableLabel", _wrap_pvSetTableLabel}, - { "pvTablePrintf", _wrap_pvTablePrintf}, - { "pvSetTableTextAlignment", _wrap_pvSetTableTextAlignment}, - { "pvMysqldump", _wrap_pvMysqldump}, - { "pvCSVdump",_wrap_pvCSVdump}, - { "pvCSVcreate", _wrap_pvCSVcreate}, - { "pvCSV",_wrap_pvCSV}, - { "pvSetListViewText", _wrap_pvSetListViewText}, - { "pvListViewPrintf", _wrap_pvListViewPrintf}, - { "pvListViewSetSelected", _wrap_pvListViewSetSelected}, - { "pvListBoxSetSelected", _wrap_pvListBoxSetSelected}, - { "pvSetColumnWidth", _wrap_pvSetColumnWidth}, - { "pvSetRowHeight", _wrap_pvSetRowHeight}, - { "pvSetWordWrap", _wrap_pvSetWordWrap}, - { "pvSetPixmap",_wrap_pvSetPixmap}, - { "pvSetTablePixmap",_wrap_pvSetTablePixmap}, - { "pvSetSource", _wrap_pvSetSource}, - { "pvSetImage",_wrap_pvSetImage}, - { "pvSetBufferedJpgImage",_wrap_pvSetBufferedJpgImage}, - { "pvSetBufferTransparency", _wrap_pvSetBufferTransparency}, - { "pvSetBackgroundColor", _wrap_pvSetBackgroundColor}, - { "pvSetPaletteBackgroundColor", _wrap_pvSetPaletteBackgroundColor}, - { "pvSetPaletteForegroundColor", _wrap_pvSetPaletteForegroundColor}, - { "pvSetFontColor", _wrap_pvSetFontColor}, - { "pvSetFont", _wrap_pvSetFont}, - { "pvDisplayNum", _wrap_pvDisplayNum}, - { "pvDisplayFloat", _wrap_pvDisplayFloat}, - { "pvDisplayStr", _wrap_pvDisplayStr}, - { "pvAddTab", _wrap_pvAddTab}, - { "pvSetListViewPixmap",_wrap_pvSetListViewPixmap}, - { "pvRemoveListViewItem", _wrap_pvRemoveListViewItem}, - { "pvRemoveIconViewItem", _wrap_pvRemoveIconViewItem}, - { "pvSetIconViewItem",_wrap_pvSetIconViewItem}, - { "pvSetDateOrder", _wrap_pvSetDateOrder}, - { "pvSetDate", _wrap_pvSetDate}, - { "pvSetMinDate", _wrap_pvSetMinDate}, - { "pvSetMaxDate", _wrap_pvSetMaxDate}, - { "pvSetTime",_wrap_pvSetTime}, - { "pvSetMinTime",_wrap_pvSetMinTime}, - { "pvSetMaxTime",_wrap_pvSetMaxTime}, - { "pvEnsureCellVisible",_wrap_pvEnsureCellVisible}, - { "pvMoveCursor", _wrap_pvMoveCursor}, - { "pvScrollToAnchor", _wrap_pvScrollToAnchor}, - { "pvSetZoomFactor", _wrap_pvSetZoomFactor}, - { "pvPrintHtmlOnPrinter", _wrap_pvPrintHtmlOnPrinter}, - { "pvSetWidgetProperty", _wrap_pvSetWidgetProperty}, - { "pvPassThroughOneJpegFrame",_wrap_pvPassThroughOneJpegFrame}, - { "pvSendJpegFrame",_wrap_pvSendJpegFrame}, - { "pvSendRGBA",_wrap_pvSendRGBA}, - { "pvSaveDrawBuffer", _wrap_pvSaveDrawBuffer}, - { "pvText", _wrap_pvText}, - { "pvRequestJpeg", _wrap_pvRequestJpeg}, - { "pvRequestGeometry", _wrap_pvRequestGeometry}, - { "pvRequestParentWidgetId", _wrap_pvRequestParentWidgetId}, - { "pvSelection", _wrap_pvSelection}, - { "pvRequestSvgBoundsOnElement", _wrap_pvRequestSvgBoundsOnElement}, - { "pvRequestSvgMatrixForElement", _wrap_pvRequestSvgMatrixForElement}, - { "pvMoveContent", _wrap_pvMoveContent}, - { "pvSetGeometry", _wrap_pvSetGeometry}, - { "pvSetMinSize", _wrap_pvSetMinSize}, - { "pvSetMaxSize", _wrap_pvSetMaxSize}, - { "pvSetAlignment", _wrap_pvSetAlignment}, - { "pvSetChecked", _wrap_pvSetChecked}, - { "pvMove", _wrap_pvMove}, - { "pvResize", _wrap_pvResize}, - { "pvHide", _wrap_pvHide}, - { "pvShow", _wrap_pvShow}, - { "pvSetParent", _wrap_pvSetParent}, - { "pvSetMultiSelection", _wrap_pvSetMultiSelection}, - { "pvSetEchoMode", _wrap_pvSetEchoMode}, - { "pvSetEditable", _wrap_pvSetEditable}, - { "pvSetEnabled", _wrap_pvSetEnabled}, - { "pvSetFocus", _wrap_pvSetFocus}, - { "pvTableSetEnabled", _wrap_pvTableSetEnabled}, - { "pvTableSetHeaderResizeEnabled", _wrap_pvTableSetHeaderResizeEnabled}, - { "pvSetSorting", _wrap_pvSetSorting}, - { "pvSetTabPosition", _wrap_pvSetTabPosition}, - { "pvEnableTabBar", _wrap_pvEnableTabBar}, - { "pvSetNumRows", _wrap_pvSetNumRows}, - { "pvSetNumCols", _wrap_pvSetNumCols}, - { "pvInsertRows",_wrap_pvInsertRows}, - { "pvInsertColumns",_wrap_pvInsertColumns}, - { "pvRemoveRow", _wrap_pvRemoveRow}, - { "pvRemoveColumn", _wrap_pvRemoveColumn}, - { "pvSetCurrentItem", _wrap_pvSetCurrentItem}, - { "pvSetTimeEditDisplay", _wrap_pvSetTimeEditDisplay}, - { "pvListViewEnsureVisible", _wrap_pvListViewEnsureVisible}, - { "pvListViewSetOpen", _wrap_pvListViewSetOpen}, - { "pvListViewSetHidden", _wrap_pvListViewSetHidden}, - { "pvListViewSetStandardPopupMenu", _wrap_pvListViewSetStandardPopupMenu}, - { "pvSetStyle", _wrap_pvSetStyle}, - { "pvSetMovie", _wrap_pvSetMovie}, - { "pvMovieControl", _wrap_pvMovieControl}, - { "pvMovieSpeed", _wrap_pvMovieSpeed}, - { "pvAddTabIcon",_wrap_pvAddTabIcon}, - { "pvSetCellWidget", _wrap_pvSetCellWidget}, - { "pvSetContentsMargins", _wrap_pvSetContentsMargins}, - { "pvSetSpacing", _wrap_pvSetSpacing}, - { "pvVtkTcl", _wrap_pvVtkTcl}, - { "pvVtkTclPrintf", _wrap_pvVtkTclPrintf}, - { "pvVtkTclScript", _wrap_pvVtkTclScript}, - { "pvHyperlink", _wrap_pvHyperlink}, - { "pvSendUserEvent", _wrap_pvSendUserEvent}, - { "pvWriteFile", _wrap_pvWriteFile}, - { "pvCloseFile", _wrap_pvCloseFile}, - { "pvGetTextParam", _wrap_pvGetTextParam}, - { "pvGetText", _wrap_pvGetText}, - { "pvParseEventStruct", _wrap_pvParseEventStruct}, - { "pvParseEvent", _wrap_pvParseEvent}, - { "pvCopyToClipboard", _wrap_pvCopyToClipboard}, - { "pvPrint", _wrap_pvPrint}, - { "pvSave",_wrap_pvSave}, - { "pvSaveAsBmp", _wrap_pvSaveAsBmp}, - { "pvHtmlOrSvgDump", _wrap_pvHtmlOrSvgDump}, - { "pvRenderTreeDump", _wrap_pvRenderTreeDump}, - { "pvSendFile", _wrap_pvSendFile}, - { "pvDownloadFileAs", _wrap_pvDownloadFileAs}, - { "pvDownloadFile", _wrap_pvDownloadFile}, - { "pvSetMaxClientsPerIpAdr", _wrap_pvSetMaxClientsPerIpAdr}, - { "pvMaxClientsPerIpAdr", _wrap_pvMaxClientsPerIpAdr}, - { "pvSetMaxClients", _wrap_pvSetMaxClients}, - { "pvMaxClients", _wrap_pvMaxClients}, - { "pvGetAdrTableItem", _wrap_pvGetAdrTableItem}, - { "pvClearMessageQueue", _wrap_pvClearMessageQueue}, - { "pvtcpsend", _wrap_pvtcpsend}, - { "pvtcpsendstring", _wrap_pvtcpsendstring}, - { "pvtcpsend_binary", _wrap_pvtcpsend_binary}, - { "pvtcpreceive", _wrap_pvtcpreceive}, - { "pvtcpreceive_binary", _wrap_pvtcpreceive_binary}, - { "pvSendHttpChunks", _wrap_pvSendHttpChunks}, - { "pvSendHttpContentLength", _wrap_pvSendHttpContentLength}, - { "pvSendHttpResponseFile",_wrap_pvSendHttpResponseFile}, - { "pvSendHttpResponse", _wrap_pvSendHttpResponse}, - { "pvGlBegin", _wrap_pvGlBegin}, - { "pvSendOpenGL",_wrap_pvSendOpenGL}, - { "pvGlEnd", _wrap_pvGlEnd}, - { "pvFileDialog", _wrap_pvFileDialog}, - { "pvPopupMenu", _wrap_pvPopupMenu}, - { "pvMessageBox", _wrap_pvMessageBox}, - { "pvInputDialog", _wrap_pvInputDialog}, - { "pvRunModalDialog", _wrap_pvRunModalDialog}, - { "pvRunModalDialogScript", _wrap_pvRunModalDialogScript}, - { "pvTerminateModalDialog", _wrap_pvTerminateModalDialog}, - { "pvUpdateBaseWindow", _wrap_pvUpdateBaseWindow}, - { "pvUpdateBaseWindowOnOff", _wrap_pvUpdateBaseWindowOnOff}, - { "pvAddDockWidget",_wrap_pvAddDockWidget}, - { "pvDeleteDockWidget",_wrap_pvDeleteDockWidget}, - { "qpwSetCurveData", _wrap_qpwSetCurveData}, - { "qpwSetBufferedCurveData", _wrap_qpwSetBufferedCurveData}, - { "qpwReplot", _wrap_qpwReplot}, - { "qpwSetTitle", _wrap_qpwSetTitle}, - { "qpwSetCanvasBackground", _wrap_qpwSetCanvasBackground}, - { "qpwEnableOutline", _wrap_qpwEnableOutline}, - { "qpwSetOutlinePen", _wrap_qpwSetOutlinePen}, - { "qpwSetAutoLegend", _wrap_qpwSetAutoLegend}, - { "qpwEnableLegend", _wrap_qpwEnableLegend}, - { "qpwSetLegendPos", _wrap_qpwSetLegendPos}, - { "qpwSetLegendFrameStyle", _wrap_qpwSetLegendFrameStyle}, - { "qpwEnableGridXMin", _wrap_qpwEnableGridXMin}, - { "qpwSetGridMajPen", _wrap_qpwSetGridMajPen}, - { "qpwSetGridMinPen", _wrap_qpwSetGridMinPen}, - { "qpwEnableAxis", _wrap_qpwEnableAxis}, - { "qpwSetAxisTitle", _wrap_qpwSetAxisTitle}, - { "qpwSetAxisOptions", _wrap_qpwSetAxisOptions}, - { "qpwSetAxisMaxMajor", _wrap_qpwSetAxisMaxMajor}, - { "qpwSetAxisMaxMinor", _wrap_qpwSetAxisMaxMinor}, - { "qpwInsertCurve", _wrap_qpwInsertCurve}, - { "qpwRemoveCurve", _wrap_qpwRemoveCurve}, - { "qpwSetCurvePen",_wrap_qpwSetCurvePen}, - { "qpwSetCurveSymbol", _wrap_qpwSetCurveSymbol}, - { "qpwSetCurveYAxis", _wrap_qpwSetCurveYAxis}, - { "qpwInsertMarker", _wrap_qpwInsertMarker}, - { "qpwSetMarkerLineStyle", _wrap_qpwSetMarkerLineStyle}, - { "qpwSetMarkerPos", _wrap_qpwSetMarkerPos}, - { "qpwSetMarkerLabelAlign", _wrap_qpwSetMarkerLabelAlign}, - { "qpwSetMarkerPen", _wrap_qpwSetMarkerPen}, - { "qpwSetMarkerLabel", _wrap_qpwSetMarkerLabel}, - { "qpwSetMarkerFont", _wrap_qpwSetMarkerFont}, - { "qpwSetMarkerSymbol", _wrap_qpwSetMarkerSymbol}, - { "qpwInsertLineMarker", _wrap_qpwInsertLineMarker}, - { "qpwSetAxisScaleDraw", _wrap_qpwSetAxisScaleDraw}, - { "qpwSetAxisScale", _wrap_qpwSetAxisScale}, - { "pvSetZoomX", _wrap_pvSetZoomX}, - { "pvSetZoomY", _wrap_pvSetZoomY}, - { "gWriteFile", _wrap_gWriteFile}, - { "gCloseFile", _wrap_gCloseFile}, - { "gBeginDraw", _wrap_gBeginDraw}, - { "gBox", _wrap_gBox}, - { "gRect", _wrap_gRect}, - { "gEndDraw", _wrap_gEndDraw}, - { "gLineTo", _wrap_gLineTo}, - { "gBufferedLine", _wrap_gBufferedLine}, - { "gLine", _wrap_gLine}, - { "gMoveTo", _wrap_gMoveTo}, - { "gRightYAxis", _wrap_gRightYAxis}, - { "gSetColor", _wrap_gSetColor}, - { "gSetWidth", _wrap_gSetWidth}, - { "gSetStyle", _wrap_gSetStyle}, - { "gDrawArc", _wrap_gDrawArc}, - { "gDrawPie", _wrap_gDrawPie}, - { "gDrawPolygon", _wrap_gDrawPolygon}, - { "gSetFont", _wrap_gSetFont}, - { "gSetLinestyle", _wrap_gSetLinestyle}, - { "gText", _wrap_gText}, - { "gTextInAxis", _wrap_gTextInAxis}, - { "gSetFloatFormat", _wrap_gSetFloatFormat}, - { "gXAxis", _wrap_gXAxis}, - { "gYAxis", _wrap_gYAxis}, - { "gXGrid", _wrap_gXGrid}, - { "gYGrid", _wrap_gYGrid}, - { "gBoxWithText", _wrap_gBoxWithText}, - { "gComment", _wrap_gComment}, - { "gPlaySVG", _wrap_gPlaySVG}, - { "gSocketPlaySVG", _wrap_gSocketPlaySVG}, - { "gTranslate", _wrap_gTranslate}, - { "gRotate", _wrap_gRotate}, - { "gScale", _wrap_gScale}, - { "pvSetSelector", _wrap_pvSetSelector}, - { "pvPrintSvgOnPrinter", _wrap_pvPrintSvgOnPrinter}, - { "qwtScaleSetTitle", _wrap_qwtScaleSetTitle}, - { "qwtScaleSetTitleColor", _wrap_qwtScaleSetTitleColor}, - { "qwtScaleSetTitleFont", _wrap_qwtScaleSetTitleFont}, - { "qwtScaleSetTitleAlignment", _wrap_qwtScaleSetTitleAlignment}, - { "qwtScaleSetBorderDist", _wrap_qwtScaleSetBorderDist}, - { "qwtScaleSetBaselineDist", _wrap_qwtScaleSetBaselineDist}, - { "qwtScaleSetScaleDiv", _wrap_qwtScaleSetScaleDiv}, - { "qwtScaleSetLabelFormat", _wrap_qwtScaleSetLabelFormat}, - { "qwtScaleSetLabelAlignment", _wrap_qwtScaleSetLabelAlignment}, - { "qwtScaleSetLabelRotation", _wrap_qwtScaleSetLabelRotation}, - { "qwtScaleSetPosition", _wrap_qwtScaleSetPosition}, - { "qwtThermoSetScale", _wrap_qwtThermoSetScale}, - { "qwtThermoSetOrientation", _wrap_qwtThermoSetOrientation}, - { "qwtThermoSetBorderWidth", _wrap_qwtThermoSetBorderWidth}, - { "qwtThermoSetFillColor", _wrap_qwtThermoSetFillColor}, - { "qwtThermoSetAlarmColor", _wrap_qwtThermoSetAlarmColor}, - { "qwtThermoSetAlarmLevel", _wrap_qwtThermoSetAlarmLevel}, - { "qwtThermoSetAlarmEnabled", _wrap_qwtThermoSetAlarmEnabled}, - { "qwtThermoSetPipeWidth", _wrap_qwtThermoSetPipeWidth}, - { "qwtThermoSetRange",_wrap_qwtThermoSetRange}, - { "qwtThermoSetMargin", _wrap_qwtThermoSetMargin}, - { "qwtThermoSetValue", _wrap_qwtThermoSetValue}, - { "qwtKnobSetScale", _wrap_qwtKnobSetScale}, - { "qwtKnobSetMass", _wrap_qwtKnobSetMass}, - { "qwtKnobSetOrientation", _wrap_qwtKnobSetOrientation}, - { "qwtKnobSetReadOnly", _wrap_qwtKnobSetReadOnly}, - { "qwtKnobSetKnobWidth", _wrap_qwtKnobSetKnobWidth}, - { "qwtKnobSetTotalAngle", _wrap_qwtKnobSetTotalAngle}, - { "qwtKnobSetBorderWidth", _wrap_qwtKnobSetBorderWidth}, - { "qwtKnobSetSymbol", _wrap_qwtKnobSetSymbol}, - { "qwtKnobSetValue", _wrap_qwtKnobSetValue}, - { "qwtCounterSetStep", _wrap_qwtCounterSetStep}, - { "qwtCounterSetMinValue", _wrap_qwtCounterSetMinValue}, - { "qwtCounterSetMaxValue", _wrap_qwtCounterSetMaxValue}, - { "qwtCounterSetStepButton1", _wrap_qwtCounterSetStepButton1}, - { "qwtCounterSetStepButton2", _wrap_qwtCounterSetStepButton2}, - { "qwtCounterSetStepButton3", _wrap_qwtCounterSetStepButton3}, - { "qwtCounterSetNumButtons", _wrap_qwtCounterSetNumButtons}, - { "qwtCounterSetIncSteps", _wrap_qwtCounterSetIncSteps}, - { "qwtCounterSetValue", _wrap_qwtCounterSetValue}, - { "qwtWheelSetMass", _wrap_qwtWheelSetMass}, - { "qwtWheelSetOrientation", _wrap_qwtWheelSetOrientation}, - { "qwtWheelSetReadOnly", _wrap_qwtWheelSetReadOnly}, - { "qwtWheelSetTotalAngle", _wrap_qwtWheelSetTotalAngle}, - { "qwtWheelSetTickCnt", _wrap_qwtWheelSetTickCnt}, - { "qwtWheelSetViewAngle", _wrap_qwtWheelSetViewAngle}, - { "qwtWheelSetInternalBorder", _wrap_qwtWheelSetInternalBorder}, - { "qwtWheelSetWheelWidth", _wrap_qwtWheelSetWheelWidth}, - { "qwtWheelSetValue", _wrap_qwtWheelSetValue}, - { "qwtSliderSetScale", _wrap_qwtSliderSetScale}, - { "qwtSliderSetMass", _wrap_qwtSliderSetMass}, - { "qwtSliderSetOrientation", _wrap_qwtSliderSetOrientation}, - { "qwtSliderSetReadOnly", _wrap_qwtSliderSetReadOnly}, - { "qwtSliderSetBgStyle", _wrap_qwtSliderSetBgStyle}, - { "qwtSliderSetScalePos", _wrap_qwtSliderSetScalePos}, - { "qwtSliderSetThumbLength", _wrap_qwtSliderSetThumbLength}, - { "qwtSliderSetThumbWidth", _wrap_qwtSliderSetThumbWidth}, - { "qwtSliderSetBorderWidth", _wrap_qwtSliderSetBorderWidth}, - { "qwtSliderSetMargins", _wrap_qwtSliderSetMargins}, - { "qwtSliderSetValue", _wrap_qwtSliderSetValue}, - { "qwtCompassSetSimpleCompassRose",_wrap_qwtCompassSetSimpleCompassRose}, - { "qwtCompassSetRange",_wrap_qwtCompassSetRange}, - { "qwtCompassSetMass", _wrap_qwtCompassSetMass}, - { "qwtCompassSetReadOnly", _wrap_qwtCompassSetReadOnly}, - { "qwtCompassSetFrameShadow", _wrap_qwtCompassSetFrameShadow}, - { "qwtCompassShowBackground", _wrap_qwtCompassShowBackground}, - { "qwtCompassSetLineWidth", _wrap_qwtCompassSetLineWidth}, - { "qwtCompassSetMode", _wrap_qwtCompassSetMode}, - { "qwtCompassSetWrapping", _wrap_qwtCompassSetWrapping}, - { "qwtCompassSetScale", _wrap_qwtCompassSetScale}, - { "qwtCompassSetScaleArc", _wrap_qwtCompassSetScaleArc}, - { "qwtCompassSetOrigin", _wrap_qwtCompassSetOrigin}, - { "qwtCompassSetNeedle",_wrap_qwtCompassSetNeedle}, - { "qwtCompassSetValue", _wrap_qwtCompassSetValue}, - { "qwtDialSetRange",_wrap_qwtDialSetRange}, - { "qwtDialSetMass", _wrap_qwtDialSetMass}, - { "qwtDialSetReadOnly", _wrap_qwtDialSetReadOnly}, - { "qwtDialSetFrameShadow", _wrap_qwtDialSetFrameShadow}, - { "qwtDialShowBackground", _wrap_qwtDialShowBackground}, - { "qwtDialSetLineWidth", _wrap_qwtDialSetLineWidth}, - { "qwtDialSetMode", _wrap_qwtDialSetMode}, - { "qwtDialSetWrapping", _wrap_qwtDialSetWrapping}, - { "qwtDialSetScale", _wrap_qwtDialSetScale}, - { "qwtDialSetScaleArc", _wrap_qwtDialSetScaleArc}, - { "qwtDialSetOrigin", _wrap_qwtDialSetOrigin}, - { "qwtDialSetNeedle",_wrap_qwtDialSetNeedle}, - { "qwtDialSetValue", _wrap_qwtDialSetValue}, - { "qwtAnalogClockSetTime", _wrap_qwtAnalogClockSetTime}, - { "qwtAnalogClockSetMass", _wrap_qwtAnalogClockSetMass}, - { "qwtAnalogClockSetReadOnly", _wrap_qwtAnalogClockSetReadOnly}, - { "qwtAnalogClockSetFrameShadow", _wrap_qwtAnalogClockSetFrameShadow}, - { "qwtAnalogClockShowBackground", _wrap_qwtAnalogClockShowBackground}, - { "qwtAnalogClockSetLineWidth", _wrap_qwtAnalogClockSetLineWidth}, - { "qwtAnalogClockSetMode", _wrap_qwtAnalogClockSetMode}, - { "qwtAnalogClockSetWrapping", _wrap_qwtAnalogClockSetWrapping}, - { "qwtAnalogClockSetScale", _wrap_qwtAnalogClockSetScale}, - { "qwtAnalogClockSetScaleArc", _wrap_qwtAnalogClockSetScaleArc}, - { "qwtAnalogClockSetOrigin", _wrap_qwtAnalogClockSetOrigin}, - { "qwtAnalogClockSetNeedle",_wrap_qwtAnalogClockSetNeedle}, - { "qwtAnalogClockSetValue", _wrap_qwtAnalogClockSetValue}, - { "unit", _wrap_unit}, - { "textEventType", _wrap_textEventType}, - { "svgObjectName", _wrap_svgObjectName}, - { "getSvgBoundsOnElement", _wrap_getSvgBoundsOnElement}, - { "getSvgMatrixForElement", _wrap_getSvgMatrixForElement}, - { "getGeometry", _wrap_getGeometry}, - { "getParentWidgetId", _wrap_getParentWidgetId}, - { "getParam", _wrap_getParam}, - { "pvQImageScript", _wrap_pvQImageScript}, - { "new_int", _wrap_new_int}, - { "get_int", _wrap_get_int}, - { "delete_int", _wrap_delete_int}, - {0,0} -}; + arg2 = (int)lua_tonumber(L, 2); + arg3 = (int)lua_tonumber(L, 3); + arg4 = (char *)lua_tostring(L, 4); + result = (int)pvQImageScript(arg1,arg2,arg3,(char const *)arg4); + lua_pushnumber(L, (lua_Number) result); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_new_int(lua_State* L) { + int SWIG_arg = 0; + int arg1 ; + int *result = 0 ; + + SWIG_check_num_args("new_int",1,1) + if(!lua_isnumber(L,1)) SWIG_fail_arg("new_int",1,"int"); + arg1 = (int)lua_tonumber(L, 1); + result = (int *)new_int(arg1); + SWIG_NewPointerObj(L,result,SWIGTYPE_p_int,0); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_get_int(lua_State* L) { + int SWIG_arg = 0; + int *arg1 = (int *) 0 ; + int result; + + SWIG_check_num_args("get_int",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("get_int",1,"int *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_int,0))){ + SWIG_fail_ptr("get_int",1,SWIGTYPE_p_int); + } + + result = (int)get_int(arg1); + lua_pushnumber(L, (lua_Number) result); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_delete_int(lua_State* L) { + int SWIG_arg = 0; + int *arg1 = (int *) 0 ; + + SWIG_check_num_args("delete_int",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("delete_int",1,"int *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_int,0))){ + SWIG_fail_ptr("delete_int",1,SWIGTYPE_p_int); + } + + delete_int(arg1); + + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} -static swig_lua_var_info swig_variables[] = { + +static swig_lua_attribute swig_SwigModule_attributes[] = { { "pvserver_version", _wrap_pvserver_version_get, SWIG_Lua_set_immutable }, { "null_string", _wrap_null_string_get, SWIG_Lua_set_immutable }, {0,0,0} }; - -static swig_lua_const_info swig_constants[] = { +static swig_lua_const_info swig_SwigModule_constants[]= { {SWIG_LUA_CONSTTAB_INT("pv_STDIN", 0)}, {SWIG_LUA_CONSTTAB_INT("pv_STDOUT", 1)}, {SWIG_LUA_CONSTTAB_INT("MAX_PRINTF_LENGTH", 1024)}, @@ -30099,6 +30877,480 @@ static swig_lua_const_info swig_constants[] = { {SWIG_LUA_CONSTTAB_STRING("RESIZE_GL", "resizeGL")}, {0,0,0,0,0,0} }; +static swig_lua_method swig_SwigModule_methods[]= { + { "glencode_set_param", _wrap_glencode_set_param}, + { "pvlock", _wrap_pvlock}, + { "pvunlock", _wrap_pvunlock}, + { "pvsystem", _wrap_pvsystem}, + { "pvGetLocalTime", _wrap_pvGetLocalTime}, + { "pvIsAccessAllowed", _wrap_pvIsAccessAllowed}, + { "pvSendVersion", _wrap_pvSendVersion}, + { "pvXYAllocate", _wrap_pvXYAllocate}, + { "getIntegers", _wrap_getIntegers}, + { "getFloats", _wrap_getFloats}, + { "getTextFromText", _wrap_getTextFromText}, + { "pvSetXY", _wrap_pvSetXY}, + { "pvGetSocketPointer", _wrap_pvGetSocketPointer}, + { "pvInitInternal", _wrap_pvInitInternal}, + { "pvInit", _wrap_pvInit}, + { "pvAccept", _wrap_pvAccept}, + { "pvCreateThread", _wrap_pvCreateThread}, + { "pvGetInitialMask", _wrap_pvGetInitialMask}, + { "pvMain", _wrap_pvMain}, + { "pvSetCleanup", _wrap_pvSetCleanup}, + { "pvGetEvent", _wrap_pvGetEvent}, + { "pvPollEvent", _wrap_pvPollEvent}, + { "pvWait", _wrap_pvWait}, + { "pvGlUpdate", _wrap_pvGlUpdate}, + { "pvSleep", _wrap_pvSleep}, + { "pvWarning", _wrap_pvWarning}, + { "pvMainFatal", _wrap_pvMainFatal}, + { "pvThreadFatal", _wrap_pvThreadFatal}, + { "pvScreenHint", _wrap_pvScreenHint}, + { "pvSetMouseShape", _wrap_pvSetMouseShape}, + { "pvSetWhatsThis", _wrap_pvSetWhatsThis}, + { "pvWhatsThisPrintf", _wrap_pvWhatsThisPrintf}, + { "pvClientCommand", _wrap_pvClientCommand}, + { "pvWriteTextToFileAtClient", _wrap_pvWriteTextToFileAtClient}, + { "pvZoomMask", _wrap_pvZoomMask}, + { "pvSetManualUrl", _wrap_pvSetManualUrl}, + { "pvSelectLanguage", _wrap_pvSelectLanguage}, + { "pvStartDefinition", _wrap_pvStartDefinition}, + { "pvQWidget", _wrap_pvQWidget}, + { "pvQLayoutVbox", _wrap_pvQLayoutVbox}, + { "pvQLayoutHbox", _wrap_pvQLayoutHbox}, + { "pvQLayoutGrid", _wrap_pvQLayoutGrid}, + { "pvQLabel", _wrap_pvQLabel}, + { "pvQComboBox", _wrap_pvQComboBox}, + { "pvQLineEdit", _wrap_pvQLineEdit}, + { "pvQPushButton", _wrap_pvQPushButton}, + { "pvQLCDNumber", _wrap_pvQLCDNumber}, + { "pvQSlider", _wrap_pvQSlider}, + { "pvQButtonGroup", _wrap_pvQButtonGroup}, + { "pvQRadioButton", _wrap_pvQRadioButton}, + { "pvQCheckBox", _wrap_pvQCheckBox}, + { "pvQFrame", _wrap_pvQFrame}, + { "pvQDraw", _wrap_pvQDraw}, + { "pvQImage", _wrap_pvQImage}, + { "pvQGL", _wrap_pvQGL}, + { "pvQTabWidget", _wrap_pvQTabWidget}, + { "pvQToolBox", _wrap_pvQToolBox}, + { "pvQGroupBox", _wrap_pvQGroupBox}, + { "pvQListBox", _wrap_pvQListBox}, + { "pvQTable", _wrap_pvQTable}, + { "pvQSpinBox", _wrap_pvQSpinBox}, + { "pvQDial", _wrap_pvQDial}, + { "pvQProgressBar", _wrap_pvQProgressBar}, + { "pvQMultiLineEdit", _wrap_pvQMultiLineEdit}, + { "pvQTextBrowser", _wrap_pvQTextBrowser}, + { "pvQListView", _wrap_pvQListView}, + { "pvQIconView", _wrap_pvQIconView}, + { "pvQVtkTclWidget", _wrap_pvQVtkTclWidget}, + { "pvQwtPlotWidget", _wrap_pvQwtPlotWidget}, + { "pvQwtScale", _wrap_pvQwtScale}, + { "pvQwtThermo", _wrap_pvQwtThermo}, + { "pvQwtKnob", _wrap_pvQwtKnob}, + { "pvQwtCounter", _wrap_pvQwtCounter}, + { "pvQwtWheel", _wrap_pvQwtWheel}, + { "pvQwtSlider", _wrap_pvQwtSlider}, + { "pvQwtDial", _wrap_pvQwtDial}, + { "pvQwtCompass", _wrap_pvQwtCompass}, + { "pvQwtAnalogClock", _wrap_pvQwtAnalogClock}, + { "pvQDateEdit", _wrap_pvQDateEdit}, + { "pvQTimeEdit", _wrap_pvQTimeEdit}, + { "pvQDateTimeEdit", _wrap_pvQDateTimeEdit}, + { "pvQCustomWidget", _wrap_pvQCustomWidget}, + { "pvEndDefinition", _wrap_pvEndDefinition}, + { "pvAddWidgetOrLayout", _wrap_pvAddWidgetOrLayout}, + { "pvAddStretch", _wrap_pvAddStretch}, + { "pvTabOrder", _wrap_pvTabOrder}, + { "pvDeleteWidget", _wrap_pvDeleteWidget}, + { "pvSetCaption", _wrap_pvSetCaption}, + { "pvPlaySound", _wrap_pvPlaySound}, + { "pvBeep", _wrap_pvBeep}, + { "pvStatusMessage", _wrap_pvStatusMessage}, + { "pvToolTip", _wrap_pvToolTip}, + { "pvSetTextEx", _wrap_pvSetTextEx}, + { "pvSetText", _wrap_pvSetText}, + { "pvPrintf", _wrap_pvPrintf}, + { "pvSetStyleSheet", _wrap_pvSetStyleSheet}, + { "pvPrintfStyleSheet", _wrap_pvPrintfStyleSheet}, + { "pvSetMinValue", _wrap_pvSetMinValue}, + { "pvSetMaxValue", _wrap_pvSetMaxValue}, + { "pvSetValue", _wrap_pvSetValue}, + { "pvClear", _wrap_pvClear}, + { "pvChangeItem", _wrap_pvChangeItem}, + { "pvInsertItem", _wrap_pvInsertItem}, + { "pvRemoveItem", _wrap_pvRemoveItem}, + { "pvRemoveItemByName", _wrap_pvRemoveItemByName}, + { "pvAddColumn", _wrap_pvAddColumn}, + { "pvRemoveAllColumns", _wrap_pvRemoveAllColumns}, + { "pvSetTableText", _wrap_pvSetTableText}, + { "pvSetTableButton", _wrap_pvSetTableButton}, + { "pvSetTableCheckBox", _wrap_pvSetTableCheckBox}, + { "pvSetTableComboBox", _wrap_pvSetTableComboBox}, + { "pvSetTableLabel", _wrap_pvSetTableLabel}, + { "pvTablePrintf", _wrap_pvTablePrintf}, + { "pvSetTableTextAlignment", _wrap_pvSetTableTextAlignment}, + { "pvMysqldump", _wrap_pvMysqldump}, + { "pvCSVdump", _wrap_pvCSVdump}, + { "pvCSVcreate", _wrap_pvCSVcreate}, + { "pvCSV", _wrap_pvCSV}, + { "pvSetListViewText", _wrap_pvSetListViewText}, + { "pvListViewPrintf", _wrap_pvListViewPrintf}, + { "pvListViewSetSelected", _wrap_pvListViewSetSelected}, + { "pvListBoxSetSelected", _wrap_pvListBoxSetSelected}, + { "pvSetColumnWidth", _wrap_pvSetColumnWidth}, + { "pvSetRowHeight", _wrap_pvSetRowHeight}, + { "pvSetWordWrap", _wrap_pvSetWordWrap}, + { "pvSetPixmap", _wrap_pvSetPixmap}, + { "pvSetTablePixmap", _wrap_pvSetTablePixmap}, + { "pvSetSource", _wrap_pvSetSource}, + { "pvSetImage", _wrap_pvSetImage}, + { "pvSetBufferedJpgImage", _wrap_pvSetBufferedJpgImage}, + { "pvSetBufferTransparency", _wrap_pvSetBufferTransparency}, + { "pvSetBackgroundColor", _wrap_pvSetBackgroundColor}, + { "pvSetPaletteBackgroundColor", _wrap_pvSetPaletteBackgroundColor}, + { "pvSetPaletteForegroundColor", _wrap_pvSetPaletteForegroundColor}, + { "pvSetFontColor", _wrap_pvSetFontColor}, + { "pvSetFont", _wrap_pvSetFont}, + { "pvDisplayNum", _wrap_pvDisplayNum}, + { "pvDisplayFloat", _wrap_pvDisplayFloat}, + { "pvDisplayStr", _wrap_pvDisplayStr}, + { "pvAddTab", _wrap_pvAddTab}, + { "pvSetListViewPixmap", _wrap_pvSetListViewPixmap}, + { "pvRemoveListViewItem", _wrap_pvRemoveListViewItem}, + { "pvRemoveIconViewItem", _wrap_pvRemoveIconViewItem}, + { "pvSetIconViewItem", _wrap_pvSetIconViewItem}, + { "pvSetDateOrder", _wrap_pvSetDateOrder}, + { "pvSetDate", _wrap_pvSetDate}, + { "pvSetMinDate", _wrap_pvSetMinDate}, + { "pvSetMaxDate", _wrap_pvSetMaxDate}, + { "pvSetTime", _wrap_pvSetTime}, + { "pvSetMinTime", _wrap_pvSetMinTime}, + { "pvSetMaxTime", _wrap_pvSetMaxTime}, + { "pvEnsureCellVisible", _wrap_pvEnsureCellVisible}, + { "pvMoveCursor", _wrap_pvMoveCursor}, + { "pvScrollToAnchor", _wrap_pvScrollToAnchor}, + { "pvSetZoomFactor", _wrap_pvSetZoomFactor}, + { "pvPrintHtmlOnPrinter", _wrap_pvPrintHtmlOnPrinter}, + { "pvSetWidgetProperty", _wrap_pvSetWidgetProperty}, + { "pvPassThroughOneJpegFrame", _wrap_pvPassThroughOneJpegFrame}, + { "pvSendJpegFrame", _wrap_pvSendJpegFrame}, + { "pvSendRGBA", _wrap_pvSendRGBA}, + { "pvSaveDrawBuffer", _wrap_pvSaveDrawBuffer}, + { "pvWaitpid", _wrap_pvWaitpid}, + { "pvText", _wrap_pvText}, + { "pvRequestJpeg", _wrap_pvRequestJpeg}, + { "pvRequestGeometry", _wrap_pvRequestGeometry}, + { "pvRequestParentWidgetId", _wrap_pvRequestParentWidgetId}, + { "pvSelection", _wrap_pvSelection}, + { "pvRequestSvgBoundsOnElement", _wrap_pvRequestSvgBoundsOnElement}, + { "pvRequestSvgMatrixForElement", _wrap_pvRequestSvgMatrixForElement}, + { "pvMoveContent", _wrap_pvMoveContent}, + { "pvSetGeometry", _wrap_pvSetGeometry}, + { "pvSetMinSize", _wrap_pvSetMinSize}, + { "pvSetMaxSize", _wrap_pvSetMaxSize}, + { "pvSetAlignment", _wrap_pvSetAlignment}, + { "pvSetChecked", _wrap_pvSetChecked}, + { "pvMove", _wrap_pvMove}, + { "pvResize", _wrap_pvResize}, + { "pvHide", _wrap_pvHide}, + { "pvShow", _wrap_pvShow}, + { "pvSetParent", _wrap_pvSetParent}, + { "pvSetMultiSelection", _wrap_pvSetMultiSelection}, + { "pvSetEchoMode", _wrap_pvSetEchoMode}, + { "pvSetEditable", _wrap_pvSetEditable}, + { "pvSetEnabled", _wrap_pvSetEnabled}, + { "pvSetFocus", _wrap_pvSetFocus}, + { "pvTableSetEnabled", _wrap_pvTableSetEnabled}, + { "pvTableSetHeaderResizeEnabled", _wrap_pvTableSetHeaderResizeEnabled}, + { "pvSetSorting", _wrap_pvSetSorting}, + { "pvSetTabPosition", _wrap_pvSetTabPosition}, + { "pvEnableTabBar", _wrap_pvEnableTabBar}, + { "pvSetNumRows", _wrap_pvSetNumRows}, + { "pvSetNumCols", _wrap_pvSetNumCols}, + { "pvInsertRows", _wrap_pvInsertRows}, + { "pvInsertColumns", _wrap_pvInsertColumns}, + { "pvRemoveRow", _wrap_pvRemoveRow}, + { "pvRemoveColumn", _wrap_pvRemoveColumn}, + { "pvSetCurrentItem", _wrap_pvSetCurrentItem}, + { "pvSetTimeEditDisplay", _wrap_pvSetTimeEditDisplay}, + { "pvListViewEnsureVisible", _wrap_pvListViewEnsureVisible}, + { "pvListViewSetOpen", _wrap_pvListViewSetOpen}, + { "pvListViewSetHidden", _wrap_pvListViewSetHidden}, + { "pvListViewSetStandardPopupMenu", _wrap_pvListViewSetStandardPopupMenu}, + { "pvSetStyle", _wrap_pvSetStyle}, + { "pvSetMovie", _wrap_pvSetMovie}, + { "pvMovieControl", _wrap_pvMovieControl}, + { "pvMovieSpeed", _wrap_pvMovieSpeed}, + { "pvAddTabIcon", _wrap_pvAddTabIcon}, + { "pvSetCellWidget", _wrap_pvSetCellWidget}, + { "pvSetContentsMargins", _wrap_pvSetContentsMargins}, + { "pvSetSpacing", _wrap_pvSetSpacing}, + { "pvVtkTcl", _wrap_pvVtkTcl}, + { "pvVtkTclPrintf", _wrap_pvVtkTclPrintf}, + { "pvVtkTclScript", _wrap_pvVtkTclScript}, + { "pvHyperlink", _wrap_pvHyperlink}, + { "pvSendUserEvent", _wrap_pvSendUserEvent}, + { "pvWriteFile", _wrap_pvWriteFile}, + { "pvCloseFile", _wrap_pvCloseFile}, + { "pvGetTextParam", _wrap_pvGetTextParam}, + { "pvGetText", _wrap_pvGetText}, + { "pvParseEventStruct", _wrap_pvParseEventStruct}, + { "pvParseEvent", _wrap_pvParseEvent}, + { "pvCopyToClipboard", _wrap_pvCopyToClipboard}, + { "pvPrint", _wrap_pvPrint}, + { "pvSave", _wrap_pvSave}, + { "pvSaveAsBmp", _wrap_pvSaveAsBmp}, + { "pvHtmlOrSvgDump", _wrap_pvHtmlOrSvgDump}, + { "pvRenderTreeDump", _wrap_pvRenderTreeDump}, + { "pvSendFile", _wrap_pvSendFile}, + { "pvDownloadFileAs", _wrap_pvDownloadFileAs}, + { "pvDownloadFile", _wrap_pvDownloadFile}, + { "pvSetMaxClientsPerIpAdr", _wrap_pvSetMaxClientsPerIpAdr}, + { "pvMaxClientsPerIpAdr", _wrap_pvMaxClientsPerIpAdr}, + { "pvSetMaxClients", _wrap_pvSetMaxClients}, + { "pvMaxClients", _wrap_pvMaxClients}, + { "pvGetAdrTableItem", _wrap_pvGetAdrTableItem}, + { "pvClearMessageQueue", _wrap_pvClearMessageQueue}, + { "pvtcpsend", _wrap_pvtcpsend}, + { "pvtcpsendstring", _wrap_pvtcpsendstring}, + { "pvtcpsend_binary", _wrap_pvtcpsend_binary}, + { "pvtcpreceive", _wrap_pvtcpreceive}, + { "pvtcpreceive_binary", _wrap_pvtcpreceive_binary}, + { "pvSendHttpChunks", _wrap_pvSendHttpChunks}, + { "pvSendHttpContentLength", _wrap_pvSendHttpContentLength}, + { "pvSendHttpResponseFile", _wrap_pvSendHttpResponseFile}, + { "pvSendHttpResponse", _wrap_pvSendHttpResponse}, + { "pvGlBegin", _wrap_pvGlBegin}, + { "pvSendOpenGL", _wrap_pvSendOpenGL}, + { "pvGlEnd", _wrap_pvGlEnd}, + { "pvFileDialog", _wrap_pvFileDialog}, + { "pvPopupMenu", _wrap_pvPopupMenu}, + { "pvMessageBox", _wrap_pvMessageBox}, + { "pvInputDialog", _wrap_pvInputDialog}, + { "pvRunModalDialog", _wrap_pvRunModalDialog}, + { "pvRunModalDialogScript", _wrap_pvRunModalDialogScript}, + { "pvTerminateModalDialog", _wrap_pvTerminateModalDialog}, + { "pvUpdateBaseWindow", _wrap_pvUpdateBaseWindow}, + { "pvUpdateBaseWindowOnOff", _wrap_pvUpdateBaseWindowOnOff}, + { "pvAddDockWidget", _wrap_pvAddDockWidget}, + { "pvDeleteDockWidget", _wrap_pvDeleteDockWidget}, + { "qpwSetCurveData", _wrap_qpwSetCurveData}, + { "qpwSetBufferedCurveData", _wrap_qpwSetBufferedCurveData}, + { "qpwReplot", _wrap_qpwReplot}, + { "qpwSetTitle", _wrap_qpwSetTitle}, + { "qpwSetCanvasBackground", _wrap_qpwSetCanvasBackground}, + { "qpwEnableOutline", _wrap_qpwEnableOutline}, + { "qpwSetOutlinePen", _wrap_qpwSetOutlinePen}, + { "qpwSetAutoLegend", _wrap_qpwSetAutoLegend}, + { "qpwEnableLegend", _wrap_qpwEnableLegend}, + { "qpwSetLegendPos", _wrap_qpwSetLegendPos}, + { "qpwSetLegendFrameStyle", _wrap_qpwSetLegendFrameStyle}, + { "qpwEnableGridXMin", _wrap_qpwEnableGridXMin}, + { "qpwSetGridMajPen", _wrap_qpwSetGridMajPen}, + { "qpwSetGridMinPen", _wrap_qpwSetGridMinPen}, + { "qpwEnableAxis", _wrap_qpwEnableAxis}, + { "qpwSetAxisTitle", _wrap_qpwSetAxisTitle}, + { "qpwSetAxisOptions", _wrap_qpwSetAxisOptions}, + { "qpwSetAxisMaxMajor", _wrap_qpwSetAxisMaxMajor}, + { "qpwSetAxisMaxMinor", _wrap_qpwSetAxisMaxMinor}, + { "qpwInsertCurve", _wrap_qpwInsertCurve}, + { "qpwRemoveCurve", _wrap_qpwRemoveCurve}, + { "qpwSetCurvePen", _wrap_qpwSetCurvePen}, + { "qpwSetCurveSymbol", _wrap_qpwSetCurveSymbol}, + { "qpwSetCurveYAxis", _wrap_qpwSetCurveYAxis}, + { "qpwInsertMarker", _wrap_qpwInsertMarker}, + { "qpwSetMarkerLineStyle", _wrap_qpwSetMarkerLineStyle}, + { "qpwSetMarkerPos", _wrap_qpwSetMarkerPos}, + { "qpwSetMarkerLabelAlign", _wrap_qpwSetMarkerLabelAlign}, + { "qpwSetMarkerPen", _wrap_qpwSetMarkerPen}, + { "qpwSetMarkerLabel", _wrap_qpwSetMarkerLabel}, + { "qpwSetMarkerFont", _wrap_qpwSetMarkerFont}, + { "qpwSetMarkerSymbol", _wrap_qpwSetMarkerSymbol}, + { "qpwInsertLineMarker", _wrap_qpwInsertLineMarker}, + { "qpwSetAxisScaleDraw", _wrap_qpwSetAxisScaleDraw}, + { "qpwSetAxisScale", _wrap_qpwSetAxisScale}, + { "pvSetZoomX", _wrap_pvSetZoomX}, + { "pvSetZoomY", _wrap_pvSetZoomY}, + { "gWriteFile", _wrap_gWriteFile}, + { "gCloseFile", _wrap_gCloseFile}, + { "gBeginDraw", _wrap_gBeginDraw}, + { "gBox", _wrap_gBox}, + { "gRect", _wrap_gRect}, + { "gEndDraw", _wrap_gEndDraw}, + { "gLineTo", _wrap_gLineTo}, + { "gBufferedLine", _wrap_gBufferedLine}, + { "gLine", _wrap_gLine}, + { "gMoveTo", _wrap_gMoveTo}, + { "gRightYAxis", _wrap_gRightYAxis}, + { "gSetColor", _wrap_gSetColor}, + { "gSetWidth", _wrap_gSetWidth}, + { "gSetStyle", _wrap_gSetStyle}, + { "gDrawArc", _wrap_gDrawArc}, + { "gDrawPie", _wrap_gDrawPie}, + { "gDrawPolygon", _wrap_gDrawPolygon}, + { "gSetFont", _wrap_gSetFont}, + { "gSetLinestyle", _wrap_gSetLinestyle}, + { "gText", _wrap_gText}, + { "gTextInAxis", _wrap_gTextInAxis}, + { "gSetFloatFormat", _wrap_gSetFloatFormat}, + { "gXAxis", _wrap_gXAxis}, + { "gYAxis", _wrap_gYAxis}, + { "gXGrid", _wrap_gXGrid}, + { "gYGrid", _wrap_gYGrid}, + { "gBoxWithText", _wrap_gBoxWithText}, + { "gComment", _wrap_gComment}, + { "gPlaySVG", _wrap_gPlaySVG}, + { "gSocketPlaySVG", _wrap_gSocketPlaySVG}, + { "gTranslate", _wrap_gTranslate}, + { "gRotate", _wrap_gRotate}, + { "gScale", _wrap_gScale}, + { "pvSetSelector", _wrap_pvSetSelector}, + { "pvPrintSvgOnPrinter", _wrap_pvPrintSvgOnPrinter}, + { "qwtScaleSetTitle", _wrap_qwtScaleSetTitle}, + { "qwtScaleSetTitleColor", _wrap_qwtScaleSetTitleColor}, + { "qwtScaleSetTitleFont", _wrap_qwtScaleSetTitleFont}, + { "qwtScaleSetTitleAlignment", _wrap_qwtScaleSetTitleAlignment}, + { "qwtScaleSetBorderDist", _wrap_qwtScaleSetBorderDist}, + { "qwtScaleSetBaselineDist", _wrap_qwtScaleSetBaselineDist}, + { "qwtScaleSetScaleDiv", _wrap_qwtScaleSetScaleDiv}, + { "qwtScaleSetLabelFormat", _wrap_qwtScaleSetLabelFormat}, + { "qwtScaleSetLabelAlignment", _wrap_qwtScaleSetLabelAlignment}, + { "qwtScaleSetLabelRotation", _wrap_qwtScaleSetLabelRotation}, + { "qwtScaleSetPosition", _wrap_qwtScaleSetPosition}, + { "qwtThermoSetScale", _wrap_qwtThermoSetScale}, + { "qwtThermoSetOrientation", _wrap_qwtThermoSetOrientation}, + { "qwtThermoSetBorderWidth", _wrap_qwtThermoSetBorderWidth}, + { "qwtThermoSetFillColor", _wrap_qwtThermoSetFillColor}, + { "qwtThermoSetAlarmColor", _wrap_qwtThermoSetAlarmColor}, + { "qwtThermoSetAlarmLevel", _wrap_qwtThermoSetAlarmLevel}, + { "qwtThermoSetAlarmEnabled", _wrap_qwtThermoSetAlarmEnabled}, + { "qwtThermoSetPipeWidth", _wrap_qwtThermoSetPipeWidth}, + { "qwtThermoSetRange", _wrap_qwtThermoSetRange}, + { "qwtThermoSetMargin", _wrap_qwtThermoSetMargin}, + { "qwtThermoSetValue", _wrap_qwtThermoSetValue}, + { "qwtKnobSetScale", _wrap_qwtKnobSetScale}, + { "qwtKnobSetMass", _wrap_qwtKnobSetMass}, + { "qwtKnobSetOrientation", _wrap_qwtKnobSetOrientation}, + { "qwtKnobSetReadOnly", _wrap_qwtKnobSetReadOnly}, + { "qwtKnobSetKnobWidth", _wrap_qwtKnobSetKnobWidth}, + { "qwtKnobSetTotalAngle", _wrap_qwtKnobSetTotalAngle}, + { "qwtKnobSetBorderWidth", _wrap_qwtKnobSetBorderWidth}, + { "qwtKnobSetSymbol", _wrap_qwtKnobSetSymbol}, + { "qwtKnobSetValue", _wrap_qwtKnobSetValue}, + { "qwtCounterSetStep", _wrap_qwtCounterSetStep}, + { "qwtCounterSetMinValue", _wrap_qwtCounterSetMinValue}, + { "qwtCounterSetMaxValue", _wrap_qwtCounterSetMaxValue}, + { "qwtCounterSetStepButton1", _wrap_qwtCounterSetStepButton1}, + { "qwtCounterSetStepButton2", _wrap_qwtCounterSetStepButton2}, + { "qwtCounterSetStepButton3", _wrap_qwtCounterSetStepButton3}, + { "qwtCounterSetNumButtons", _wrap_qwtCounterSetNumButtons}, + { "qwtCounterSetIncSteps", _wrap_qwtCounterSetIncSteps}, + { "qwtCounterSetValue", _wrap_qwtCounterSetValue}, + { "qwtWheelSetMass", _wrap_qwtWheelSetMass}, + { "qwtWheelSetOrientation", _wrap_qwtWheelSetOrientation}, + { "qwtWheelSetReadOnly", _wrap_qwtWheelSetReadOnly}, + { "qwtWheelSetTotalAngle", _wrap_qwtWheelSetTotalAngle}, + { "qwtWheelSetTickCnt", _wrap_qwtWheelSetTickCnt}, + { "qwtWheelSetViewAngle", _wrap_qwtWheelSetViewAngle}, + { "qwtWheelSetInternalBorder", _wrap_qwtWheelSetInternalBorder}, + { "qwtWheelSetWheelWidth", _wrap_qwtWheelSetWheelWidth}, + { "qwtWheelSetValue", _wrap_qwtWheelSetValue}, + { "qwtSliderSetScale", _wrap_qwtSliderSetScale}, + { "qwtSliderSetMass", _wrap_qwtSliderSetMass}, + { "qwtSliderSetOrientation", _wrap_qwtSliderSetOrientation}, + { "qwtSliderSetReadOnly", _wrap_qwtSliderSetReadOnly}, + { "qwtSliderSetBgStyle", _wrap_qwtSliderSetBgStyle}, + { "qwtSliderSetScalePos", _wrap_qwtSliderSetScalePos}, + { "qwtSliderSetThumbLength", _wrap_qwtSliderSetThumbLength}, + { "qwtSliderSetThumbWidth", _wrap_qwtSliderSetThumbWidth}, + { "qwtSliderSetBorderWidth", _wrap_qwtSliderSetBorderWidth}, + { "qwtSliderSetMargins", _wrap_qwtSliderSetMargins}, + { "qwtSliderSetValue", _wrap_qwtSliderSetValue}, + { "qwtCompassSetSimpleCompassRose", _wrap_qwtCompassSetSimpleCompassRose}, + { "qwtCompassSetRange", _wrap_qwtCompassSetRange}, + { "qwtCompassSetMass", _wrap_qwtCompassSetMass}, + { "qwtCompassSetReadOnly", _wrap_qwtCompassSetReadOnly}, + { "qwtCompassSetFrameShadow", _wrap_qwtCompassSetFrameShadow}, + { "qwtCompassShowBackground", _wrap_qwtCompassShowBackground}, + { "qwtCompassSetLineWidth", _wrap_qwtCompassSetLineWidth}, + { "qwtCompassSetMode", _wrap_qwtCompassSetMode}, + { "qwtCompassSetWrapping", _wrap_qwtCompassSetWrapping}, + { "qwtCompassSetScale", _wrap_qwtCompassSetScale}, + { "qwtCompassSetScaleArc", _wrap_qwtCompassSetScaleArc}, + { "qwtCompassSetOrigin", _wrap_qwtCompassSetOrigin}, + { "qwtCompassSetNeedle", _wrap_qwtCompassSetNeedle}, + { "qwtCompassSetValue", _wrap_qwtCompassSetValue}, + { "qwtDialSetRange", _wrap_qwtDialSetRange}, + { "qwtDialSetMass", _wrap_qwtDialSetMass}, + { "qwtDialSetReadOnly", _wrap_qwtDialSetReadOnly}, + { "qwtDialSetFrameShadow", _wrap_qwtDialSetFrameShadow}, + { "qwtDialShowBackground", _wrap_qwtDialShowBackground}, + { "qwtDialSetLineWidth", _wrap_qwtDialSetLineWidth}, + { "qwtDialSetMode", _wrap_qwtDialSetMode}, + { "qwtDialSetWrapping", _wrap_qwtDialSetWrapping}, + { "qwtDialSetScale", _wrap_qwtDialSetScale}, + { "qwtDialSetScaleArc", _wrap_qwtDialSetScaleArc}, + { "qwtDialSetOrigin", _wrap_qwtDialSetOrigin}, + { "qwtDialSetNeedle", _wrap_qwtDialSetNeedle}, + { "qwtDialSetValue", _wrap_qwtDialSetValue}, + { "qwtAnalogClockSetTime", _wrap_qwtAnalogClockSetTime}, + { "qwtAnalogClockSetMass", _wrap_qwtAnalogClockSetMass}, + { "qwtAnalogClockSetReadOnly", _wrap_qwtAnalogClockSetReadOnly}, + { "qwtAnalogClockSetFrameShadow", _wrap_qwtAnalogClockSetFrameShadow}, + { "qwtAnalogClockShowBackground", _wrap_qwtAnalogClockShowBackground}, + { "qwtAnalogClockSetLineWidth", _wrap_qwtAnalogClockSetLineWidth}, + { "qwtAnalogClockSetMode", _wrap_qwtAnalogClockSetMode}, + { "qwtAnalogClockSetWrapping", _wrap_qwtAnalogClockSetWrapping}, + { "qwtAnalogClockSetScale", _wrap_qwtAnalogClockSetScale}, + { "qwtAnalogClockSetScaleArc", _wrap_qwtAnalogClockSetScaleArc}, + { "qwtAnalogClockSetOrigin", _wrap_qwtAnalogClockSetOrigin}, + { "qwtAnalogClockSetNeedle", _wrap_qwtAnalogClockSetNeedle}, + { "qwtAnalogClockSetValue", _wrap_qwtAnalogClockSetValue}, + { "unit", _wrap_unit}, + { "textEventType", _wrap_textEventType}, + { "svgObjectName", _wrap_svgObjectName}, + { "getSvgBoundsOnElement", _wrap_getSvgBoundsOnElement}, + { "getSvgMatrixForElement", _wrap_getSvgMatrixForElement}, + { "getGeometry", _wrap_getGeometry}, + { "getParentWidgetId", _wrap_getParentWidgetId}, + { "getParam", _wrap_getParam}, + { "pvQImageScript", _wrap_pvQImageScript}, + { "new_int", _wrap_new_int}, + { "get_int", _wrap_get_int}, + { "delete_int", _wrap_delete_int}, + {0,0} +}; +static swig_lua_class* swig_SwigModule_classes[]= { +&_wrap_class_PARSE_EVENT_STRUCT, +&_wrap_class_PARAM, +&_wrap_class_IntegerArray, +&_wrap_class_FloatArray, +&_wrap_class_pvTime, +&_wrap_class_pvAddressTableItem, +&_wrap_class_pvAddressTable, +&_wrap_class_glFont, +&_wrap_class_pvWidgetIdManager, +&_wrap_class_qtDatabase, + 0 +}; +static swig_lua_namespace* swig_SwigModule_namespaces[] = { + 0 +}; + +static swig_lua_namespace swig_SwigModule = { + "pv", + swig_SwigModule_methods, + swig_SwigModule_attributes, + swig_SwigModule_constants, + swig_SwigModule_classes, + swig_SwigModule_namespaces +}; +#ifdef __cplusplus +} +#endif /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ @@ -30110,7 +31362,7 @@ static swig_type_info _swigt__p_PARSE_EVENT_STRUCT = {"_p_PARSE_EVENT_STRUCT", " static swig_type_info _swigt__p_QSqlDatabase = {"_p_QSqlDatabase", "QSqlDatabase *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_QSqlError = {"_p_QSqlError", "QSqlError *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_QSqlQuery = {"_p_QSqlQuery", "QSqlQuery *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p__PARAM_ = {"_p__PARAM_", "PARAM *|_PARAM_ *", 0, 0, (void*)&_wrap_class__PARAM_, 0}; +static swig_type_info _swigt__p__PARAM_ = {"_p__PARAM_", "PARAM *|_PARAM_ *", 0, 0, (void*)&_wrap_class_PARAM, 0}; static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p__PARAM___int = {"_p_f_p__PARAM___int", "int (*)(PARAM *)|int (*)(_PARAM_ *)", 0, 0, (void*)0, 0}; @@ -30226,7 +31478,7 @@ static swig_cast_info *swig_cast_initial[] = { * array with the correct data and linking the correct swig_cast_info * structures together. * - * The generated swig_type_info structures are assigned staticly to an initial + * The generated swig_type_info structures are assigned statically to an initial * array. We just loop through that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the @@ -30270,7 +31522,7 @@ SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; swig_module_info *module_head, *iter; - int found, init; + int init; /* check to see if the circular list has been setup, if not, set it up */ if (swig_module.next==0) { @@ -30289,22 +31541,18 @@ SWIG_InitializeModule(void *clientdata) { /* This is the first module loaded for this interpreter */ /* so set the swig module into the interpreter */ SWIG_SetModule(clientdata, &swig_module); - module_head = &swig_module; } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ - found=0; iter=module_head; do { if (iter==&swig_module) { - found=1; - break; + /* Our module is already in the list, so there's nothing more to do. */ + return; } iter=iter->next; } while (iter!= module_head); - /* if the is found in the list, then all is done and we may leave */ - if (found) return; - /* otherwise we must add out module into the list */ + /* otherwise we must add our module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; } @@ -30468,27 +31716,18 @@ SWIGEXPORT int SWIG_init(lua_State* L) /* default Lua action */ { #if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) /* valid for both Lua and eLua */ int i; + int globalRegister = 0; /* start with global table */ lua_pushglobaltable (L); - /* SWIG's internal initalisation */ + /* SWIG's internal initialisation */ SWIG_InitializeModule((void*)L); SWIG_PropagateClientData(); #endif -#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) +#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) || defined(SWIG_LUA_ELUA_EMULATE) /* add a global fn */ SWIG_Lua_add_function(L,"swig_type",SWIG_Lua_type); - SWIG_Lua_add_function(L,"swig_equals",SWIG_Lua_equal); - /* begin the module (its a table with the same name as the module) */ - SWIG_Lua_module_begin(L,SWIG_name); - /* add commands/functions */ - for (i = 0; swig_commands[i].name; i++){ - SWIG_Lua_module_add_function(L,swig_commands[i].name,swig_commands[i].func); - } - /* add variables */ - for (i = 0; swig_variables[i].name; i++){ - SWIG_Lua_module_add_variable(L,swig_variables[i].name,swig_variables[i].get,swig_variables[i].set); - } + SWIG_Lua_add_function(L,"swig_equals",SWIG_Lua_class_equal); #endif #if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) @@ -30498,17 +31737,34 @@ SWIGEXPORT int SWIG_init(lua_State* L) /* default Lua action */ SWIG_Lua_init_base_class(L,(swig_lua_class*)(swig_types[i]->clientdata)); } } - /* additional registration structs & classes in lua */ +#ifdef SWIG_LUA_MODULE_GLOBAL + globalRegister = 1; +#endif + + +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) + SWIG_Lua_namespace_register(L,&swig_SwigModule, globalRegister); +#endif + +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) for (i = 0; swig_types[i]; i++){ if (swig_types[i]->clientdata){ - SWIG_Lua_class_register(L,(swig_lua_class*)(swig_types[i]->clientdata)); + SWIG_Lua_elua_class_register_instance(L,(swig_lua_class*)(swig_types[i]->clientdata)); } } #endif -#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) - /* constants */ - SWIG_Lua_InstallConstants(L,swig_constants); +#if defined(SWIG_LUA_ELUA_EMULATE) + lua_newtable(L); + SWIG_Lua_elua_emulate_register(L,swig_SwigModule.ns_methods); + SWIG_Lua_elua_emulate_register_clear(L); + if(globalRegister) { + lua_pushstring(L,swig_SwigModule.name); + lua_pushvalue(L,-2); + lua_rawset(L,-4); + } +#endif + #endif #if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) diff --git a/language_bindings/lua/pvapplua/main.cpp b/language_bindings/lua/pvapplua/main.cpp index 1fd1c760..2e1872d9 100755 --- a/language_bindings/lua/pvapplua/main.cpp +++ b/language_bindings/lua/pvapplua/main.cpp @@ -12,12 +12,6 @@ int trace = 0; -const char *rltranslate(char const *txt, char const **def) // dummy -{ - if(def == NULL) return txt; - return txt; -} - // Include the Lua API header files #ifdef __cplusplus extern "C" { diff --git a/language_bindings/lua/pvslua/main.cpp b/language_bindings/lua/pvslua/main.cpp index 46baa623..09a84874 100755 --- a/language_bindings/lua/pvslua/main.cpp +++ b/language_bindings/lua/pvslua/main.cpp @@ -8,12 +8,6 @@ #include "pvapp.h" #include -const char *rltranslate(char const *txt, char const **def) // dummy -{ - if(def == NULL) return txt; - return txt; -} - // Include the Lua API header files #ifdef __cplusplus extern "C" { diff --git a/rllib/lib/rlinifile.h b/rllib/lib/rlinifile.h index ad66e55d..eea9f156 100644 --- a/rllib/lib/rlinifile.h +++ b/rllib/lib/rlinifile.h @@ -113,7 +113,7 @@ class rlIniFile int rlSetTranslator(const char *language, const char *inifile=NULL); #ifndef SWIGPYTHON -const char *rltranslate(const char *txt, const char **mytext=NULL); +const char *rltranslate(const char *txt, char **mytext=NULL); const char *rltranslate2(const char *section, const char *txt, char **mytext=NULL); #define rltr(txt) rltranslate(txt) From b1bd166deb4a2635803d1680172e18fba476b2fd Mon Sep 17 00:00:00 2001 From: Johannes Lode Date: Thu, 7 Feb 2019 09:19:45 +0100 Subject: [PATCH 06/16] Ignoring Eclispe project control files. --- .gitignore | 2 ++ .settings/.gitignore | 1 + 2 files changed, 3 insertions(+) create mode 100644 .settings/.gitignore diff --git a/.gitignore b/.gitignore index 8015f2f3..a50aa174 100644 --- a/.gitignore +++ b/.gitignore @@ -54,3 +54,5 @@ win-mingw/bin/fake_qmake.exe win-mingw/bin/rlsvgcat.exe language_bindings/lua/pvslua/pvslua language_bindings/lua/pvslua/pvapplua +/.cproject +/.project diff --git a/.settings/.gitignore b/.settings/.gitignore new file mode 100644 index 00000000..d81d4c41 --- /dev/null +++ b/.settings/.gitignore @@ -0,0 +1 @@ +/language.settings.xml From eb98b71f11a6c0e3979142c7be1da642be6e2181 Mon Sep 17 00:00:00 2001 From: Johannes Lode Date: Tue, 12 Feb 2019 12:37:10 +0100 Subject: [PATCH 07/16] Add Eclipse project files. --- .gitignore | 2 ++ .settings/.gitignore | 1 + 2 files changed, 3 insertions(+) create mode 100644 .settings/.gitignore diff --git a/.gitignore b/.gitignore index 8015f2f3..a50aa174 100644 --- a/.gitignore +++ b/.gitignore @@ -54,3 +54,5 @@ win-mingw/bin/fake_qmake.exe win-mingw/bin/rlsvgcat.exe language_bindings/lua/pvslua/pvslua language_bindings/lua/pvslua/pvapplua +/.cproject +/.project diff --git a/.settings/.gitignore b/.settings/.gitignore new file mode 100644 index 00000000..d81d4c41 --- /dev/null +++ b/.settings/.gitignore @@ -0,0 +1 @@ +/language.settings.xml From 3e03acc9773ba17d00532928b2bdb2ab160e2036 Mon Sep 17 00:00:00 2001 From: Johannes Lode Date: Tue, 12 Feb 2019 12:58:32 +0100 Subject: [PATCH 08/16] Reduced data loss on frequent logger restarts. By inspecting the logging files on logger start the data loss from deleted ring buffer files is reduced. This is achieved by avoiding the deletion of the oldest of the ring buffer files in case the youngest file is still in time window for further logging events. This way occurred a problem in Windows, where read and write pointer are not independent. So the inspection of the files and writing to the files is done from different file descriptors, opend for the special purpose. By the way reduced this problems with data logging, reopening the log files etc. after a server crash and restart. --- rllib/lib/rlhistorylogger.cpp | 57 +++++++++++++++++++++++++++++++---- 1 file changed, 51 insertions(+), 6 deletions(-) diff --git a/rllib/lib/rlhistorylogger.cpp b/rllib/lib/rlhistorylogger.cpp index 1ca50fa8..1a34b3a7 100644 --- a/rllib/lib/rlhistorylogger.cpp +++ b/rllib/lib/rlhistorylogger.cpp @@ -17,6 +17,8 @@ #include "rlcutil.h" #include +#define MAXBUF 256*256 + rlHistoryLogger::rlHistoryLogger(const char *csvName, int maxHoursPerFile, int maxLinesInMemory) { int val; @@ -145,20 +147,63 @@ int rlHistoryLogger::openFile() { // find oldest file and open it for writing int i_oldest = 0; - rlTime t,t_oldest; + int i_youngest = 0; + int file_count = 0; + rlTime t, t_oldest, t_youngest; t_oldest.getLocalTime(); // this must be newer that any file time for(int i=0; i<10; i++) { sprintf(csv_file_name,"%s%d.csv",csv_name,i); if(t.getFileModificationTime(csv_file_name) == 0) { - if(t < t_oldest) i_oldest = i; + if(t < t_oldest) + { + i_oldest = i; + t_oldest = t; + } + if (t > t_youngest) + { + i_youngest = i; + t_youngest = t; + } + ++file_count; + } + else // create missing file + { + FILE* f = fopen(csv_file_name, "w"); + if (f) + fclose(f); } } - current_file = i_oldest; - sprintf(csv_file_name,"%s%d.csv",csv_name,i_oldest); - fout = fopen(csv_file_name,"w"); - file_start_time.getLocalTime(); + + if ((t_youngest + time_diff) > time) // file is in our time slot, append; this reduces data loss in case of frequent restarts + { + current_file = i_youngest; + sprintf(csv_file_name, "%s%d.csv", csv_name, current_file); + + // "a+" does not work reliable, + // under Windows is the order of creation of read- and write-pointer unpredictable, + // they are not independent and the file IO layer has problems after + // system crashes or UID changes, + // this leads to unexplored problems, which prevent successful data write operations + fout = fopen(csv_file_name, "r"); + auto buf = new char[MAXBUF]; + if (fgets(buf, MAXBUF-1, fout) != NULL) + file_start_time.setTimeFromString(buf); + else + file_start_time = t_youngest; + delete[] buf; + fclose(fout); + fout = fopen(csv_file_name, "a"); + } + else + { + // oldest file is old enough for truncation + current_file = i_oldest; + sprintf(csv_file_name, "%s%d.csv", csv_name, current_file); + fout = fopen(csv_file_name,"w"); + file_start_time.getLocalTime(); + } } else { From 4cec10ac8046c5cf9b42b336b8b8bbebd4ad2e3f Mon Sep 17 00:00:00 2001 From: Johannes Lode Date: Tue, 12 Feb 2019 13:35:46 +0100 Subject: [PATCH 09/16] Configurable max. line length. For easier memory load the maximum reader line length can be set during construction of the reader object. --- rllib/lib/rlhistoryreader.cpp | 19 +++++++++---------- rllib/lib/rlhistoryreader.h | 3 ++- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/rllib/lib/rlhistoryreader.cpp b/rllib/lib/rlhistoryreader.cpp index 5ff6c006..2cac2df6 100644 --- a/rllib/lib/rlhistoryreader.cpp +++ b/rllib/lib/rlhistoryreader.cpp @@ -17,9 +17,8 @@ #include "rlcutil.h" #include -#define MAXBUF 256*256 - -rlHistoryReader::rlHistoryReader() +rlHistoryReader::rlHistoryReader(unsigned maxLineLength) +: maxLineLength(maxLineLength) { debug = 0; first_line = current_line = NULL; @@ -54,20 +53,20 @@ int rlHistoryReader::read(const char *csvName, rlTime *start, rlTime *end) strcpy(csv_name,csvName); csv_file_name = new char[strlen(csvName)+132]; - buf = new char[MAXBUF]; + buf = new char[maxLineLength]; for(int i=0; i<10; i++) { openFile(); if(debug) printf("reading=%s\n",csv_file_name); if(fin == NULL) break; - while(fgets(buf,MAXBUF-1,fin) != NULL) + while(fgets(buf,maxLineLength-1,fin) != NULL) { time.setTimeFromString(buf); - if(time < *start) + if(time <= *start) { if(debug) printf("too old=%s",buf); } - else if(time > *end) + else if(time >= *end) { if(debug) printf("too new=%s",buf); break; @@ -150,7 +149,7 @@ int rlHistoryReader::pushLineToMemory(const char *line) { rlHistoryReaderLine *history_line; - // put line at 1 position + // put line at 1st position if(first_line == NULL) { first_line = new rlHistoryReaderLine; @@ -200,12 +199,12 @@ int rlHistoryReader::cat(const char *csvName, FILE *fout) strcpy(csv_name,csvName); csv_file_name = new char[strlen(csvName)+132]; - buf = new char[MAXBUF]; + buf = new char[maxLineLength]; for(int i=0; i<10; i++) { openFile(); if(fin == NULL) break; - while(fgets(buf,MAXBUF-1,fin) != NULL) + while(fgets(buf,maxLineLength-1,fin) != NULL) { fprintf(fout,"%s",buf); } diff --git a/rllib/lib/rlhistoryreader.h b/rllib/lib/rlhistoryreader.h index b05dd376..83fbee29 100644 --- a/rllib/lib/rlhistoryreader.h +++ b/rllib/lib/rlhistoryreader.h @@ -86,7 +86,7 @@ static int slotButtonEvent(PARAM *p, int id, DATA *d) class rlHistoryReader { public: - rlHistoryReader(); + rlHistoryReader(unsigned maxLineLength = 256*256); virtual ~rlHistoryReader(); int read(const char *csvName, rlTime *start, rlTime *end); const char *firstLine(); @@ -102,5 +102,6 @@ class rlHistoryReader FILE *fin; int current_file; char *csv_name, *csv_file_name; + unsigned const maxLineLength; }; #endif From 1f041db4715b39de4ff6a989cb725a69e4b4f434 Mon Sep 17 00:00:00 2001 From: Johannes Lode Date: Tue, 12 Feb 2019 14:31:36 +0100 Subject: [PATCH 10/16] Checked Lua binding for semantic correctness. --- .../language_binding_rllib_wrap_lua.cxx | 5978 ++- .../language_binding_rllib_wrap_python.cxx | 39041 --------------- .../language_binding_wrap_id.cxx | 40616 ---------------- .../language_binding_wrap_lua.cxx | 3516 +- .../language_binding_wrap_mt.cxx | 40616 ---------------- language_bindings/lua/pvapplua/pvapplua | Bin 1498736 -> 1752568 bytes language_bindings/lua/pvslua/pvslua | Bin 1498776 -> 1752608 bytes 7 files changed, 6945 insertions(+), 122822 deletions(-) delete mode 100644 language_bindings/language_binding_rllib_wrap_python.cxx delete mode 100644 language_bindings/language_binding_wrap_id.cxx delete mode 100644 language_bindings/language_binding_wrap_mt.cxx diff --git a/language_bindings/language_binding_rllib_wrap_lua.cxx b/language_bindings/language_binding_rllib_wrap_lua.cxx index 7f0e01e7..028b7ecf 100644 --- a/language_bindings/language_binding_rllib_wrap_lua.cxx +++ b/language_bindings/language_binding_rllib_wrap_lua.cxx @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.12 + * Version 3.0.12 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make @@ -8,7 +8,11 @@ * interface file instead. * ----------------------------------------------------------------------------- */ + +#ifndef SWIGLUA #define SWIGLUA +#endif + #define SWIG_LUA_TARGET SWIG_LUA_FLAVOR_LUA #define SWIG_LUA_MODULE_GLOBAL @@ -103,9 +107,11 @@ template T SwigValueInit() { #endif /* exporting methods */ -#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) -# ifndef GCC_HASCLASSVISIBILITY -# define GCC_HASCLASSVISIBILITY +#if defined(__GNUC__) +# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) +# ifndef GCC_HASCLASSVISIBILITY +# define GCC_HASCLASSVISIBILITY +# endif # endif #endif @@ -144,6 +150,19 @@ template T SwigValueInit() { # define _SCL_SECURE_NO_DEPRECATE #endif +/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */ +#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) +# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 +#endif + +/* Intel's compiler complains if a variable which was never initialised is + * cast to void, which is a common idiom which we use to indicate that we + * are aware a variable isn't used. So we just silence that warning. + * See: https://github.com/swig/swig/issues/192 for more discussion. + */ +#ifdef __INTEL_COMPILER +# pragma warning disable 592 +#endif /* ----------------------------------------------------------------------------- * swigrun.swg @@ -551,14 +570,14 @@ SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *iter = start; do { if (iter->size) { - register size_t l = 0; - register size_t r = iter->size - 1; + size_t l = 0; + size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ - register size_t i = (l + r) >> 1; + size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { - register int compare = strcmp(name, iname); + int compare = strcmp(name, iname); if (compare == 0) { return iter->types[i]; } else if (compare < 0) { @@ -602,7 +621,7 @@ SWIG_TypeQueryModule(swig_module_info *start, of the str field (the human readable name) */ swig_module_info *iter = start; do { - register size_t i = 0; + size_t i = 0; for (; i < iter->size; ++i) { if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) return iter->types[i]; @@ -621,10 +640,10 @@ SWIG_TypeQueryModule(swig_module_info *start, SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz) { static const char hex[17] = "0123456789abcdef"; - register const unsigned char *u = (unsigned char *) ptr; - register const unsigned char *eu = u + sz; + const unsigned char *u = (unsigned char *) ptr; + const unsigned char *eu = u + sz; for (; u != eu; ++u) { - register unsigned char uu = *u; + unsigned char uu = *u; *(c++) = hex[(uu & 0xf0) >> 4]; *(c++) = hex[uu & 0xf]; } @@ -636,22 +655,22 @@ SWIG_PackData(char *c, void *ptr, size_t sz) { */ SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz) { - register unsigned char *u = (unsigned char *) ptr; - register const unsigned char *eu = u + sz; + unsigned char *u = (unsigned char *) ptr; + const unsigned char *eu = u + sz; for (; u != eu; ++u) { - register char d = *(c++); - register unsigned char uu; + char d = *(c++); + unsigned char uu; if ((d >= '0') && (d <= '9')) - uu = ((d - '0') << 4); + uu = (unsigned char)((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) - uu = ((d - ('a'-10)) << 4); + uu = (unsigned char)((d - ('a'-10)) << 4); else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) - uu |= (d - '0'); + uu |= (unsigned char)(d - '0'); else if ((d >= 'a') && (d <= 'f')) - uu |= (d - ('a'-10)); + uu |= (unsigned char)(d - ('a'-10)); else return (char *) 0; *u = uu; @@ -747,23 +766,110 @@ extern "C" { # error SWIG_LUA_TARGET not defined #endif +#if defined(SWIG_LUA_ELUA_EMULATE) + +struct swig_elua_entry; + +typedef struct swig_elua_key { + int type; + union { + const char* strkey; + lua_Number numkey; + } key; +} swig_elua_key; + +typedef struct swig_elua_val { + int type; + union { + lua_Number number; + const struct swig_elua_entry *table; + const char *string; + lua_CFunction function; + struct { + char member; + long lvalue; + void *pvalue; + swig_type_info **ptype; + } userdata; + } value; +} swig_elua_val; + +typedef struct swig_elua_entry { + swig_elua_key key; + swig_elua_val value; +} swig_elua_entry; + +#define LSTRKEY(x) {LUA_TSTRING, {.strkey = x} } +#define LNUMKEY(x) {LUA_TNUMBER, {.numkey = x} } +#define LNILKEY {LUA_TNIL, {.strkey = 0} } + +#define LNUMVAL(x) {LUA_TNUMBER, {.number = x} } +#define LFUNCVAL(x) {LUA_TFUNCTION, {.function = x} } +#define LROVAL(x) {LUA_TTABLE, {.table = x} } +#define LNILVAL {LUA_TNIL, {.string = 0} } +#define LSTRVAL(x) {LUA_TSTRING, {.string = x} } + +#define LUA_REG_TYPE swig_elua_entry + +#define SWIG_LUA_ELUA_EMUL_METATABLE_KEY "__metatable" + +#define lua_pushrotable(L,p)\ + lua_newtable(L);\ + assert(p);\ + SWIG_Lua_elua_emulate_register(L,(swig_elua_entry*)(p)); + +#define SWIG_LUA_CONSTTAB_POINTER(B,C,D)\ + LSTRKEY(B), {LUA_TUSERDATA, { .userdata={0,0,(void*)(C),&D} } } + +#define SWIG_LUA_CONSTTAB_BINARY(B,S,C,D)\ + LSTRKEY(B), {LUA_TUSERDATA, { .userdata={1,S,(void*)(C),&D} } } +#endif + #if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) # define SWIG_LUA_CONSTTAB_INT(B, C) LSTRKEY(B), LNUMVAL(C) # define SWIG_LUA_CONSTTAB_FLOAT(B, C) LSTRKEY(B), LNUMVAL(C) # define SWIG_LUA_CONSTTAB_STRING(B, C) LSTRKEY(B), LSTRVAL(C) # define SWIG_LUA_CONSTTAB_CHAR(B, C) LSTRKEY(B), LNUMVAL(C) + /* Those two types of constants are not supported in elua */ + +#ifndef SWIG_LUA_CONSTTAB_POINTER +#warning eLua does not support pointers as constants. By default, nil will be used as value +#define SWIG_LUA_CONSTTAB_POINTER(B,C,D) LSTRKEY(B), LNILVAL +#endif + +#ifndef SWIG_LUA_CONSTTAB_BINARY +#warning eLua does not support pointers to member as constants. By default, nil will be used as value +#define SWIG_LUA_CONSTTAB_BINARY(B, S, C, D) LSTRKEY(B), LNILVAL +#endif #else /* SWIG_LUA_FLAVOR_LUA */ # define SWIG_LUA_CONSTTAB_INT(B, C) SWIG_LUA_INT, (char *)B, (long)C, 0, 0, 0 # define SWIG_LUA_CONSTTAB_FLOAT(B, C) SWIG_LUA_FLOAT, (char *)B, 0, (double)C, 0, 0 # define SWIG_LUA_CONSTTAB_STRING(B, C) SWIG_LUA_STRING, (char *)B, 0, 0, (void *)C, 0 # define SWIG_LUA_CONSTTAB_CHAR(B, C) SWIG_LUA_CHAR, (char *)B, (long)C, 0, 0, 0 +# define SWIG_LUA_CONSTTAB_POINTER(B,C,D)\ + SWIG_LUA_POINTER, (char *)B, 0, 0, (void *)C, &D +# define SWIG_LUA_CONSTTAB_BINARY(B, S, C, D)\ + SWIG_LUA_BINARY, (char *)B, S, 0, (void *)C, &D #endif +#ifndef SWIG_LUA_ELUA_EMULATE #if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) # define LRO_STRVAL(v) {{.p = (char *) v}, LUA_TSTRING} # define LSTRVAL LRO_STRVAL #endif +#endif /* SWIG_LUA_ELUA_EMULATE*/ + +#ifndef SWIG_LUA_ELUA_EMULATE +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) + +#ifndef MIN_OPT_LEVEL +#define MIN_OPT_LEVEL 2 +#endif +#include "lrodefs.h" +#include "lrotable.h" +#endif +#endif /* SWIG_LUA_ELUA_EMULATE*/ /* ----------------------------------------------------------------------------- * compatibility defines * ----------------------------------------------------------------------------- */ @@ -790,6 +896,23 @@ extern "C" { # define lua_pushglobaltable(L) lua_pushvalue(L, LUA_GLOBALSINDEX) #endif +/* lua_absindex was introduced in Lua 5.2 */ +#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502 +# define lua_absindex(L,i) ((i)>0 || (i) <= LUA_REGISTRYINDEX ? (i) : lua_gettop(L) + (i) + 1) +#endif + +/* lua_rawsetp was introduced in Lua 5.2 */ +#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502 +#define lua_rawsetp(L,index,ptr)\ + lua_pushlightuserdata(L,(void*)(ptr));\ + lua_insert(L,-2);\ + lua_rawset(L,index); + +#define lua_rawgetp(L,index,ptr)\ + lua_pushlightuserdata(L,(void*)(ptr));\ + lua_rawget(L,index); + +#endif /* -------------------------------------------------------------------------- * Helper functions for error handling @@ -839,6 +962,12 @@ typedef struct { lua_CFunction set; } swig_lua_var_info; +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) +typedef const LUA_REG_TYPE swig_lua_method; +typedef const LUA_REG_TYPE swig_lua_const_info; +#else /* Normal lua */ +typedef luaL_Reg swig_lua_method; + /* Constant information structure */ typedef struct { int type; @@ -849,10 +978,7 @@ typedef struct { swig_type_info **ptype; } swig_lua_const_info; -typedef struct { - const char *name; - lua_CFunction method; -} swig_lua_method; +#endif typedef struct { const char *name; @@ -860,23 +986,28 @@ typedef struct { lua_CFunction setmethod; } swig_lua_attribute; -// Can be used to create namespaces. Currently used to -// wrap class static methods/variables/constants -typedef struct { + +struct swig_lua_class; +/* Can be used to create namespaces. Currently used to wrap class static methods/variables/constants */ +typedef struct swig_lua_namespace { const char *name; swig_lua_method *ns_methods; swig_lua_attribute *ns_attributes; swig_lua_const_info *ns_constants; + struct swig_lua_class **ns_classes; + struct swig_lua_namespace **ns_namespaces; } swig_lua_namespace; typedef struct swig_lua_class { - const char *name; + const char *name; /* Name that this class has in Lua */ + const char *fqname; /* Fully qualified name - Scope + class name */ swig_type_info **type; lua_CFunction constructor; void (*destructor)(void *); swig_lua_method *methods; swig_lua_attribute *attributes; - swig_lua_namespace cls_static; + swig_lua_namespace *cls_static; + swig_lua_method *metatable; /* 0 for -eluac */ struct swig_lua_class **bases; const char **base_names; } swig_lua_class; @@ -940,18 +1071,23 @@ typedef struct { lua_pushcfunction(L, f), \ lua_rawset(L,-3)) +#define SWIG_Lua_add_boolean(L,n,b) \ + (lua_pushstring(L, n), \ + lua_pushboolean(L, b), \ + lua_rawset(L,-3)) + /* special helper for allowing 'nil' for usertypes */ #define SWIG_isptrtype(L,I) (lua_isuserdata(L,I) || lua_isnil(L,I)) #ifdef __cplusplus /* Special helper for member function pointers it gets the address, casts it, then dereferences it */ -//#define SWIG_mem_fn_as_voidptr(a) (*((char**)&(a))) +/*#define SWIG_mem_fn_as_voidptr(a) (*((char**)&(a))) */ #endif /* storing/access of swig_module_info */ SWIGRUNTIME swig_module_info * -SWIG_Lua_GetModule(lua_State* L) { +SWIG_Lua_GetModule(lua_State *L) { swig_module_info *ret = 0; lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); lua_rawget(L,LUA_REGISTRYINDEX); @@ -962,7 +1098,7 @@ SWIG_Lua_GetModule(lua_State* L) { } SWIGRUNTIME void -SWIG_Lua_SetModule(lua_State* L, swig_module_info *module) { +SWIG_Lua_SetModule(lua_State *L, swig_module_info *module) { /* add this all into the Lua registry: */ lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); lua_pushlightuserdata(L,(void*)module); @@ -976,7 +1112,7 @@ SWIG_Lua_SetModule(lua_State* L, swig_module_info *module) { /* this function is called when trying to set an immutable. default action is to print an error. This can removed with a compile flag SWIGLUA_IGNORE_SET_IMMUTABLE */ -SWIGINTERN int SWIG_Lua_set_immutable(lua_State* L) +SWIGINTERN int SWIG_Lua_set_immutable(lua_State *L) { /* there should be 1 param passed in: the new value */ #ifndef SWIGLUA_IGNORE_SET_IMMUTABLE @@ -986,170 +1122,153 @@ SWIGINTERN int SWIG_Lua_set_immutable(lua_State* L) return 0; /* should not return anything */ } -/* the module.get method used for getting linked data */ -SWIGINTERN int SWIG_Lua_module_get(lua_State* L) -{ -/* there should be 2 params passed in - (1) table (not the meta table) - (2) string name of the attribute - printf("SWIG_Lua_module_get %p(%s) '%s'\n", - lua_topointer(L,1),lua_typename(L,lua_type(L,1)), - lua_tostring(L,2)); -*/ - /* get the metatable */ -#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) - assert(lua_isrotable(L,1)); /* just in case */ -#else - assert(lua_istable(L,1)); /* default Lua action */ -#endif - lua_getmetatable(L,1); /* get the metatable */ -#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) - assert(lua_isrotable(L,-1)); /* just in case */ -#else - assert(lua_istable(L,-1)); -#endif - SWIG_Lua_get_table(L,".get"); /* get the .get table */ - lua_remove(L,3); /* remove metatable */ -#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) - if (lua_isrotable(L,-1)) -#else - if (lua_istable(L,-1)) -#endif - { - /* look for the key in the .get table */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); - lua_remove(L,3); /* remove .get */ - if (lua_iscfunction(L,-1)) - { /* found it so call the fn & return its value */ - lua_call(L,0,1); - return 1; - } - lua_pop(L,1); /* remove the top */ - } - lua_pop(L,1); /* remove the .get */ - lua_pushnil(L); /* return a nil */ - return 1; -} +#ifdef SWIG_LUA_ELUA_EMULATE -/* the module.set method used for setting linked data */ -SWIGINTERN int SWIG_Lua_module_set(lua_State* L) +SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State *L,void *ptr,swig_type_info *type, int own); +SWIGRUNTIME void SWIG_Lua_NewPackedObj(lua_State *L,void *ptr,size_t size,swig_type_info *type); +static int swig_lua_elua_emulate_unique_key; + +/* This function emulates eLua rotables behaviour. It loads a rotable definition into the usual lua table. */ +SWIGINTERN void SWIG_Lua_elua_emulate_register(lua_State *L, const swig_elua_entry *table) { -/* there should be 3 params passed in - (1) table (not the meta table) - (2) string name of the attribute - (3) any for the new value -*/ - /* get the metatable */ -#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) - assert(lua_isrotable(L,1)); /* just in case */ -#else - assert(lua_istable(L,1)); /* default Lua action */ -#endif - lua_getmetatable(L,1); /* get the metatable */ -#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) - assert(lua_isrotable(L,-1)); /* just in case */ -#else + int i, table_parsed, parsed_tables_array, target_table; assert(lua_istable(L,-1)); -#endif - SWIG_Lua_get_table(L,".set"); /* get the .set table */ - lua_remove(L,4); /* remove metatable */ -#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) - if (lua_isrotable(L,-1)) -#else - if (lua_istable(L,-1)) -#endif + target_table = lua_gettop(L); + /* Get the registry where we put all parsed tables to avoid loops */ + lua_rawgetp(L, LUA_REGISTRYINDEX, &swig_lua_elua_emulate_unique_key); + if(lua_isnil(L,-1)) { + lua_pop(L,1); + lua_newtable(L); + lua_pushvalue(L,-1); + lua_rawsetp(L,LUA_REGISTRYINDEX,(void*)(&swig_lua_elua_emulate_unique_key)); + } + parsed_tables_array = lua_gettop(L); + lua_pushvalue(L,target_table); + lua_rawsetp(L, parsed_tables_array, table); + table_parsed = 0; + const int SWIGUNUSED pairs_start = lua_gettop(L); + for(i = 0;table[i].key.type != LUA_TNIL || table[i].value.type != LUA_TNIL;i++) { - /* look for the key in the .set table */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); - lua_remove(L,4); /* remove .set */ - if (lua_iscfunction(L,-1)) - { /* found it so call the fn & return its value */ - lua_pushvalue(L,3); /* value */ - lua_call(L,1,0); - return 0; + const swig_elua_entry *entry = table + i; + int is_metatable = 0; + switch(entry->key.type) { + case LUA_TSTRING: + lua_pushstring(L,entry->key.key.strkey); + if(strcmp(entry->key.key.strkey, SWIG_LUA_ELUA_EMUL_METATABLE_KEY) == 0) + is_metatable = 1; + break; + case LUA_TNUMBER: + lua_pushnumber(L,entry->key.key.numkey); + break; + case LUA_TNIL: + lua_pushnil(L); + break; + default: + assert(0); } -#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) - else { - return 0; // Exits stoically if an invalid key is initialized. + switch(entry->value.type) { + case LUA_TSTRING: + lua_pushstring(L,entry->value.value.string); + break; + case LUA_TNUMBER: + lua_pushnumber(L,entry->value.value.number); + break; + case LUA_TFUNCTION: + lua_pushcfunction(L,entry->value.value.function); + break; + case LUA_TTABLE: + lua_rawgetp(L,parsed_tables_array, entry->value.value.table); + table_parsed = !lua_isnil(L,-1); + if(!table_parsed) { + lua_pop(L,1); /*remove nil */ + lua_newtable(L); + SWIG_Lua_elua_emulate_register(L,entry->value.value.table); + } + if(is_metatable) { + assert(lua_istable(L,-1)); + lua_pushvalue(L,-1); + lua_setmetatable(L,target_table); + } + + break; + case LUA_TUSERDATA: + if(entry->value.value.userdata.member) + SWIG_NewMemberObj(L,entry->value.value.userdata.pvalue, + entry->value.value.userdata.lvalue, + *(entry->value.value.userdata.ptype)); + else + SWIG_NewPointerObj(L,entry->value.value.userdata.pvalue, + *(entry->value.value.userdata.ptype),0); + break; + case LUA_TNIL: + lua_pushnil(L); + break; + default: + assert(0); } -#endif + assert(lua_gettop(L) == pairs_start + 2); + lua_rawset(L,target_table); } - lua_settop(L,3); /* reset back to start */ - /* we now have the table, key & new value, so just set directly */ - lua_rawset(L,1); /* add direct */ - return 0; + lua_pop(L,1); /* Removing parsed tables storage */ + assert(lua_gettop(L) == target_table); } -#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) -/* registering a module in lua. Pushes the module table on the stack. */ -SWIGINTERN void SWIG_Lua_module_begin(lua_State* L,const char* name) +SWIGINTERN void SWIG_Lua_elua_emulate_register_clear(lua_State *L) { - assert(lua_istable(L,-1)); /* just in case */ - lua_pushstring(L,name); - lua_newtable(L); /* the table */ - /* add meta table */ - lua_newtable(L); /* the meta table */ - SWIG_Lua_add_function(L,"__index",SWIG_Lua_module_get); - SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_module_set); - lua_pushstring(L,".get"); - lua_newtable(L); /* the .get table */ - lua_rawset(L,-3); /* add .get into metatable */ - lua_pushstring(L,".set"); - lua_newtable(L); /* the .set table */ - lua_rawset(L,-3); /* add .set into metatable */ - lua_setmetatable(L,-2); /* sets meta table in module */ -#ifdef SWIG_LUA_MODULE_GLOBAL - /* If requested, install the module directly into the global namespace. */ - lua_rawset(L,-3); /* add module into parent */ - SWIG_Lua_get_table(L,name); /* get the table back out */ -#else - /* Do not install the module table as global name. The stack top has - the module table with the name below. We pop the top and replace - the name with it. */ - lua_replace(L,-2); -#endif + lua_pushnil(L); + lua_rawsetp(L, LUA_REGISTRYINDEX, &swig_lua_elua_emulate_unique_key); } -/* ending the register */ -SWIGINTERN void SWIG_Lua_module_end(lua_State* L) -{ - lua_pop(L,1); /* tidy stack (remove module) */ -} +SWIGINTERN void SWIG_Lua_get_class_registry(lua_State *L); -/* adding a linked variable to the module */ -SWIGINTERN void SWIG_Lua_module_add_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn) +SWIGINTERN int SWIG_Lua_emulate_elua_getmetatable(lua_State *L) { - assert(lua_istable(L,-1)); /* just in case */ - lua_getmetatable(L,-1); /* get the metatable */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".get"); /* find the .get table */ - assert(lua_istable(L,-1)); /* should be a table: */ - SWIG_Lua_add_function(L,name,getFn); - lua_pop(L,1); /* tidy stack (remove table) */ - if (setFn) /* if there is a set fn */ - { - SWIG_Lua_get_table(L,".set"); /* find the .set table */ - assert(lua_istable(L,-1)); /* should be a table: */ - SWIG_Lua_add_function(L,name,setFn); - lua_pop(L,1); /* tidy stack (remove table) */ + SWIG_check_num_args("getmetatable(SWIG eLua emulation)", 1, 1); + SWIG_Lua_get_class_registry(L); + lua_getfield(L,-1,"lua_getmetatable"); + lua_remove(L,-2); /* remove the registry*/ + assert(!lua_isnil(L,-1)); + lua_pushvalue(L,1); + assert(lua_gettop(L) == 3); /* object | function | object again */ + lua_call(L,1,1); + if(!lua_isnil(L,-1)) /*There is an ordinary metatable */ + return 1; + /*if it is a table, then emulate elua behaviour - check for __metatable attribute of a table*/ + assert(lua_gettop(L) == 2); + if(lua_istable(L,-2)) { + lua_pop(L,1); /*remove the nil*/ + lua_getfield(L,-1, SWIG_LUA_ELUA_EMUL_METATABLE_KEY); } - lua_pop(L,1); /* tidy stack (remove meta) */ + assert(lua_gettop(L) == 2); + return 1; + +fail: + lua_error(L); + return 0; } -#endif -/* adding a function module */ -SWIGINTERN void SWIG_Lua_module_add_function(lua_State* L,const char* name,lua_CFunction fn) +SWIGINTERN void SWIG_Lua_emulate_elua_swap_getmetatable(lua_State *L) { - SWIG_Lua_add_function(L,name,fn); + SWIG_Lua_get_class_registry(L); + lua_pushglobaltable(L); + lua_pushstring(L,"lua_getmetatable"); + lua_getfield(L,-2,"getmetatable"); + assert(!lua_isnil(L,-1)); + lua_rawset(L,-4); + lua_pushstring(L, "getmetatable"); + lua_pushcfunction(L, SWIG_Lua_emulate_elua_getmetatable); + lua_rawset(L,-3); + lua_pop(L,2); + } +/* END OF REMOVE */ +#endif /* ----------------------------------------------------------------------------- - * global variable support code: namespaces + * global variable support code: namespaces and modules (which are the same thing) * ----------------------------------------------------------------------------- */ -SWIGINTERN int SWIG_Lua_namespace_get(lua_State* L) +SWIGINTERN int SWIG_Lua_namespace_get(lua_State *L) { /* there should be 2 params passed in (1) table (not the meta table) @@ -1186,7 +1305,7 @@ SWIGINTERN int SWIG_Lua_namespace_get(lua_State* L) return 0; } -SWIGINTERN int SWIG_Lua_namespace_set(lua_State* L) +SWIGINTERN int SWIG_Lua_namespace_set(lua_State *L) { /* there should be 3 params passed in (1) table (not the meta table) @@ -1213,46 +1332,70 @@ SWIGINTERN int SWIG_Lua_namespace_set(lua_State* L) lua_pop(L,1); /* remove the value */ } lua_pop(L,1); /* remove the value .set table */ + lua_pop(L,1); /* remote metatable */ + lua_rawset(L,-3); return 0; } -SWIGINTERN void SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]); // forward declaration -SWIGINTERN void SWIG_Lua_add_class_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn); // forward declaration +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) /* In elua this is useless */ +SWIGINTERN void SWIG_Lua_InstallConstants(lua_State *L, swig_lua_const_info constants[]); /* forward declaration */ +SWIGINTERN void SWIG_Lua_add_variable(lua_State *L,const char *name,lua_CFunction getFn,lua_CFunction setFn); /* forward declaration */ +SWIGINTERN void SWIG_Lua_class_register(lua_State *L,swig_lua_class *clss); /* helper function - register namespace methods and attributes into namespace */ -SWIGINTERN int SWIG_Lua_add_namespace_details(lua_State* L, swig_lua_namespace* ns) +SWIGINTERN int SWIG_Lua_add_namespace_details(lua_State *L, swig_lua_namespace *ns) { - int i = 0; + int i; + /* There must be namespace table (not metatable) at the top of the stack */ assert(lua_istable(L,-1)); - /* There must be table at the top of the stack */ SWIG_Lua_InstallConstants(L, ns->ns_constants); + /* add methods to the namespace/module table */ + for(i=0;ns->ns_methods[i].name;i++){ + SWIG_Lua_add_function(L,ns->ns_methods[i].name,ns->ns_methods[i].func); + } lua_getmetatable(L,-1); /* add fns */ for(i=0;ns->ns_attributes[i].name;i++){ - SWIG_Lua_add_class_variable(L,ns->ns_attributes[i].name,ns->ns_attributes[i].getmethod,ns->ns_attributes[i].setmethod); - } - - /* add methods to the metatable */ - SWIG_Lua_get_table(L,".fn"); /* find the .fn table */ - assert(lua_istable(L,-1)); /* just in case */ - for(i=0;ns->ns_methods[i].name;i++){ - SWIG_Lua_add_function(L,ns->ns_methods[i].name,ns->ns_methods[i].method); + SWIG_Lua_add_variable(L,ns->ns_attributes[i].name,ns->ns_attributes[i].getmethod,ns->ns_attributes[i].setmethod); } - lua_pop(L,1); /* clear stack - remove metatble */ lua_pop(L,1); return 0; } -/* helper function. creates namespace table and add it to module table */ -SWIGINTERN int SWIG_Lua_namespace_register(lua_State* L, swig_lua_namespace* ns) +/* Register all classes in the namespace */ +SWIGINTERN void SWIG_Lua_add_namespace_classes(lua_State *L, swig_lua_namespace *ns) +{ + swig_lua_class **classes; + + /* There must be a module/namespace table at the top of the stack */ + assert(lua_istable(L,-1)); + + classes = ns->ns_classes; + + if( classes != 0 ) { + while(*classes != 0) { + SWIG_Lua_class_register(L, *classes); + classes++; + } + } +} + +/* Helper function. Creates namespace table and adds it to module table + if 'reg' is true, then will register namespace table to parent one (must be on top of the stack + when function is called). + Function always returns newly registered table on top of the stack. +*/ +SWIGINTERN void SWIG_Lua_namespace_register(lua_State *L, swig_lua_namespace *ns, int reg) { - assert(lua_istable(L,-1)); /* just in case. This is supposed to be module table */ + swig_lua_namespace **sub_namespace; + /* 1 argument - table on the top of the stack */ + const int SWIGUNUSED begin = lua_gettop(L); + assert(lua_istable(L,-1)); /* just in case. This is supposed to be module table or parent namespace table */ lua_checkstack(L,5); - lua_pushstring(L, ns->name); lua_newtable(L); /* namespace itself */ lua_newtable(L); /* metatable for namespace */ @@ -1274,117 +1417,348 @@ SWIGINTERN int SWIG_Lua_namespace_register(lua_State* L, swig_lua_namespace* ns) SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_namespace_set); lua_setmetatable(L,-2); /* set metatable */ - lua_rawset(L,-3); /* add namespace to module table */ - return 0; + + /* Register all functions, variables etc */ + SWIG_Lua_add_namespace_details(L,ns); + /* Register classes */ + SWIG_Lua_add_namespace_classes(L,ns); + + sub_namespace = ns->ns_namespaces; + if( sub_namespace != 0) { + while(*sub_namespace != 0) { + SWIG_Lua_namespace_register(L, *sub_namespace, 1); + lua_pop(L,1); /* removing sub-namespace table */ + sub_namespace++; + } + } + + if (reg) { + lua_pushstring(L,ns->name); + lua_pushvalue(L,-2); + lua_rawset(L,-4); /* add namespace to module table */ + } + assert(lua_gettop(L) == begin+1); } +#endif /* SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA */ + /* ----------------------------------------------------------------------------- * global variable support code: classes * ----------------------------------------------------------------------------- */ -/* the class.get method, performs the lookup of class attributes */ -SWIGINTERN int SWIG_Lua_class_get(lua_State* L) +SWIGINTERN void SWIG_Lua_get_class_metatable(lua_State *L,const char *cname); + +typedef int (*swig_lua_base_iterator_func)(lua_State*,swig_type_info*, int, int *ret); + +SWIGINTERN int SWIG_Lua_iterate_bases(lua_State *L, swig_type_info * SWIGUNUSED swig_type, + int first_arg, swig_lua_base_iterator_func func, int *const ret) +{ + /* first_arg - position of the object in stack. Everything that is above are arguments + * and is passed to every evocation of the func */ + int last_arg = lua_gettop(L);/* position of last argument */ + int original_metatable = last_arg + 1; + size_t bases_count; + int result = SWIG_ERROR; + int bases_table; + (void)swig_type; + lua_getmetatable(L,first_arg); + + /* initialise base search */ +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) + SWIG_Lua_get_table(L,".bases"); + assert(lua_istable(L,-1)); + bases_count = lua_rawlen(L,-1); + bases_table = lua_gettop(L); +#else + /* In elua .bases table doesn't exist. Use table from swig_lua_class */ + (void)bases_table; + assert(swig_type!=0); + swig_module_info *module=SWIG_GetModule(L); + swig_lua_class **bases= ((swig_lua_class*)(swig_type->clientdata))->bases; + const char **base_names= ((swig_lua_class*)(swig_type->clientdata))->base_names; + bases_count = 0; + for(;base_names[bases_count]; + bases_count++);/* get length of bases */ +#endif + + if(ret) + *ret = 0; + if(bases_count>0) + { + int to_remove; + size_t i; + int j; + int subcall_last_arg; + int subcall_first_arg = lua_gettop(L) + 1;/* Here a copy of first_arg and arguments begin */ + int valid = 1; + swig_type_info *base_swig_type = 0; + for(j=first_arg;j<=last_arg;j++) + lua_pushvalue(L,j); + subcall_last_arg = lua_gettop(L); + + /* Trick: temporarily replacing original metatable with metatable for base class and call getter */ + for(i=0;ifqname); + base_swig_type = SWIG_TypeQueryModule(module,module,base_names[i]); + assert(base_swig_type != 0); + } +#endif + + if(!valid) + continue; + assert(lua_isuserdata(L, subcall_first_arg)); + assert(lua_istable(L,-1)); + lua_setmetatable(L,subcall_first_arg); /* Set new metatable */ + assert(lua_gettop(L) == subcall_last_arg); + result = func(L, base_swig_type,subcall_first_arg, ret); /* Forward call */ + if(result != SWIG_ERROR) { + break; + } + } + /* Restore original metatable */ + lua_pushvalue(L,original_metatable); + lua_setmetatable(L,first_arg); + /* Clear - remove everything between last_arg and subcall_last_arg including */ + to_remove = subcall_last_arg - last_arg; + for(j=0;jtype; + result = SWIG_Lua_class_do_get(L,type,1,&ret); + if(result == SWIG_OK) + return ret; + + result = SWIG_Lua_class_do_get_item(L,type,1,&ret); + if(result == SWIG_OK) + return ret; + + return 0; } -/* the class.set method, performs the lookup of class attributes */ -SWIGINTERN int SWIG_Lua_class_set(lua_State* L) +/* helper for the class.set method, performs the lookup of class attributes + * It returns error code. Number of function return values is passed inside 'ret' + */ +SWIGINTERN int SWIG_Lua_class_do_set(lua_State *L, swig_type_info *type, int first_arg, int *ret) { /* there should be 3 params passed in (1) table (not the meta table) (2) string name of the attribute (3) any for the new value -printf("SWIG_Lua_class_set %p(%s) '%s' %p(%s)\n", - lua_topointer(L,1),lua_typename(L,lua_type(L,1)), - lua_tostring(L,2), - lua_topointer(L,3),lua_typename(L,lua_type(L,3)));*/ + */ - assert(lua_isuserdata(L,1)); /* just in case */ - lua_getmetatable(L,1); /* get the meta table */ + int bases_search_result; + int substack_start = lua_gettop(L) - 3; + lua_checkstack(L,5); + assert(lua_isuserdata(L,substack_start+1)); /* just in case */ + lua_getmetatable(L,substack_start+1); /* get the meta table */ assert(lua_istable(L,-1)); /* just in case */ + if(ret) + *ret = 0; /* it is setter - number of return values is always 0 */ SWIG_Lua_get_table(L,".set"); /* find the .set table */ if (lua_istable(L,-1)) { /* look for the key in the .set table */ - lua_pushvalue(L,2); /* key */ + lua_pushvalue(L,substack_start+2); /* key */ lua_rawget(L,-2); + lua_remove(L,-2); /* tidy stack, remove .set table */ if (lua_iscfunction(L,-1)) { /* found it so call the fn & return its value */ - lua_pushvalue(L,1); /* userdata */ - lua_pushvalue(L,3); /* value */ + lua_pushvalue(L,substack_start+1); /* userdata */ + lua_pushvalue(L,substack_start+3); /* value */ lua_call(L,2,0); - return 0; + lua_remove(L,substack_start+4); /*remove metatable*/ + return SWIG_OK; } lua_pop(L,1); /* remove the value */ + } else { + lua_pop(L,1); /* remove the answer for .set table request*/ } - lua_pop(L,1); /* remove the value .set table */ /* NEW: looks for the __setitem() fn this is a user provided set fn */ SWIG_Lua_get_table(L,"__setitem"); /* find the fn */ if (lua_iscfunction(L,-1)) /* if its there */ { /* found it so call the fn & return its value */ - lua_pushvalue(L,1); /* the userdata */ - lua_pushvalue(L,2); /* the parameter */ - lua_pushvalue(L,3); /* the value */ + lua_pushvalue(L,substack_start+1); /* the userdata */ + lua_pushvalue(L,substack_start+2); /* the parameter */ + lua_pushvalue(L,substack_start+3); /* the value */ lua_call(L,3,0); /* 3 values in ,0 out */ lua_remove(L,-2); /* stack tidy, remove metatable */ - return 1; + return SWIG_OK; + } + lua_pop(L,1); /* remove value */ + + lua_pop(L,1); /* remove metatable */ + /* Search among bases */ + bases_search_result = SWIG_Lua_iterate_bases(L,type,first_arg,SWIG_Lua_class_do_set,ret); + if(ret) + assert(*ret == 0); + assert(lua_gettop(L) == substack_start + 3); + return bases_search_result; +} + +/* This is the actual method exported to Lua. It calls SWIG_Lua_class_do_set and correctly + * handles return values. + */ +SWIGINTERN int SWIG_Lua_class_set(lua_State *L) +{ +/* There should be 3 params passed in + (1) table (not the meta table) + (2) string name of the attribute + (3) any for the new value + */ + int ret = 0; + int result; + swig_lua_userdata *usr; + swig_type_info *type; + assert(lua_isuserdata(L,1)); + usr=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ + type = usr->type; + result = SWIG_Lua_class_do_set(L,type,1,&ret); + if(result != SWIG_OK) { + SWIG_Lua_pushferrstring(L,"Assignment not possible. No setter/member with this name. For custom assignments implement __setitem method."); + lua_error(L); + } else { + assert(ret==0); } return 0; } /* the class.destruct method called by the interpreter */ -SWIGINTERN int SWIG_Lua_class_destruct(lua_State* L) +SWIGINTERN int SWIG_Lua_class_destruct(lua_State *L) { /* there should be 1 params passed in (1) userdata (not the meta table) */ - swig_lua_userdata* usr; - swig_lua_class* clss; + swig_lua_userdata *usr; + swig_lua_class *clss; assert(lua_isuserdata(L,-1)); /* just in case */ usr=(swig_lua_userdata*)lua_touserdata(L,-1); /* get it */ /* if must be destroyed & has a destructor */ @@ -1400,31 +1774,30 @@ SWIGINTERN int SWIG_Lua_class_destruct(lua_State* L) } /* the class.__tostring method called by the interpreter and print */ -SWIGINTERN int SWIG_Lua_class_tostring(lua_State* L) +SWIGINTERN int SWIG_Lua_class_tostring(lua_State *L) { /* there should be 1 param passed in (1) userdata (not the metatable) */ + const char *className; + void* userData; assert(lua_isuserdata(L,1)); /* just in case */ - unsigned long userData = (unsigned long)lua_touserdata(L,1); /* get the userdata address for later */ + userData = lua_touserdata(L,1); /* get the userdata address for later */ lua_getmetatable(L,1); /* get the meta table */ assert(lua_istable(L,-1)); /* just in case */ - + lua_getfield(L, -1, ".type"); - const char* className = lua_tostring(L, -1); - - char output[256]; - sprintf(output, "<%s userdata: %lX>", className, userData); - - lua_pushstring(L, (const char*)output); + className = lua_tostring(L, -1); + + lua_pushfstring(L, "<%s userdata: %p>", className, userData); return 1; } /* to manually disown some userdata */ -SWIGINTERN int SWIG_Lua_class_disown(lua_State* L) +SWIGINTERN int SWIG_Lua_class_disown(lua_State *L) { /* there should be 1 params passed in (1) userdata (not the meta table) */ - swig_lua_userdata* usr; + swig_lua_userdata *usr; assert(lua_isuserdata(L,-1)); /* just in case */ usr=(swig_lua_userdata*)lua_touserdata(L,-1); /* get it */ @@ -1432,25 +1805,69 @@ SWIGINTERN int SWIG_Lua_class_disown(lua_State* L) return 0; } -/* Constructor proxy. Used when class name entry in module is not class constructor, -but special table instead. */ -SWIGINTERN int SWIG_Lua_constructor_proxy(lua_State* L) +/* lua callable function to compare userdata's value +the issue is that two userdata may point to the same thing +but to lua, they are different objects */ +SWIGRUNTIME int SWIG_Lua_class_equal(lua_State *L) { - /* unlimited number of parameters - First one is our proxy table and we should remove it - Other we should pass to real constructor - */ - assert(lua_istable(L,1)); - lua_pushstring(L,".constructor"); - lua_rawget(L,1); - assert(!lua_isnil(L,-1)); - lua_replace(L,1); /* replace our table with real constructor */ - lua_call(L,lua_gettop(L)-1,1); - return 1; -} + int result; + swig_lua_userdata *usr1,*usr2; + if (!lua_isuserdata(L,1) || !lua_isuserdata(L,2)) /* just in case */ + return 0; /* nil reply */ + usr1=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ + usr2=(swig_lua_userdata*)lua_touserdata(L,2); /* get data */ + /*result=(usr1->ptr==usr2->ptr && usr1->type==usr2->type); only works if type is the same*/ + result=(usr1->ptr==usr2->ptr); + lua_pushboolean(L,result); + return 1; +} + +/* populate table at the top of the stack with metamethods that ought to be inherited */ +SWIGINTERN void SWIG_Lua_populate_inheritable_metamethods(lua_State *L) +{ + SWIG_Lua_add_boolean(L, "__add", 1); + SWIG_Lua_add_boolean(L, "__sub", 1); + SWIG_Lua_add_boolean(L, "__mul", 1); + SWIG_Lua_add_boolean(L, "__div", 1); + SWIG_Lua_add_boolean(L, "__mod", 1); + SWIG_Lua_add_boolean(L, "__pow", 1); + SWIG_Lua_add_boolean(L, "__unm", 1); + SWIG_Lua_add_boolean(L, "__len", 1 ); + SWIG_Lua_add_boolean(L, "__concat", 1 ); + SWIG_Lua_add_boolean(L, "__eq", 1); + SWIG_Lua_add_boolean(L, "__lt", 1); + SWIG_Lua_add_boolean(L, "__le", 1); + SWIG_Lua_add_boolean(L, "__call", 1); + SWIG_Lua_add_boolean(L, "__tostring", 1); + SWIG_Lua_add_boolean(L, "__gc", 0); +} + +/* creates the swig registry */ +SWIGINTERN void SWIG_Lua_create_class_registry(lua_State *L) +{ + /* create main SWIG registry table */ + lua_pushstring(L,"SWIG"); + lua_newtable(L); + /* populate it with some predefined data */ -/* gets the swig class registry (or creates it) */ -SWIGINTERN void SWIG_Lua_get_class_registry(lua_State* L) + /* .library table. Placeholder */ + lua_pushstring(L,".library"); + lua_newtable(L); + { + /* list of metamethods that class inherits from its bases */ + lua_pushstring(L,"inheritable_metamethods"); + lua_newtable(L); + /* populate with list of metamethods */ + SWIG_Lua_populate_inheritable_metamethods(L); + lua_rawset(L,-3); + } + lua_rawset(L,-3); + + lua_rawset(L,LUA_REGISTRYINDEX); +} + +/* gets the swig registry (or creates it) */ +SWIGINTERN void SWIG_Lua_get_class_registry(lua_State *L) { /* add this all into the swig registry: */ lua_pushstring(L,"SWIG"); @@ -1458,17 +1875,29 @@ SWIGINTERN void SWIG_Lua_get_class_registry(lua_State* L) if (!lua_istable(L,-1)) /* not there */ { /* must be first time, so add it */ lua_pop(L,1); /* remove the result */ - lua_pushstring(L,"SWIG"); - lua_newtable(L); - lua_rawset(L,LUA_REGISTRYINDEX); + SWIG_Lua_create_class_registry(L); /* then get it */ lua_pushstring(L,"SWIG"); lua_rawget(L,LUA_REGISTRYINDEX); } } -/* helper fn to get the classes metatable from the register */ -SWIGINTERN void SWIG_Lua_get_class_metatable(lua_State* L,const char* cname) +SWIGINTERN void SWIG_Lua_get_inheritable_metamethods(lua_State *L) +{ + SWIG_Lua_get_class_registry(L); + lua_pushstring(L, ".library"); + lua_rawget(L,-2); + assert( !lua_isnil(L,-1) ); + lua_pushstring(L, "inheritable_metamethods"); + lua_rawget(L,-2); + + /* Remove class registry and library table */ + lua_remove(L,-2); + lua_remove(L,-2); +} + +/* Helper function to get the classes metatable from the register */ +SWIGINTERN void SWIG_Lua_get_class_metatable(lua_State *L,const char *cname) { SWIG_Lua_get_class_registry(L); /* get the registry */ lua_pushstring(L,cname); /* get the name */ @@ -1476,8 +1905,96 @@ SWIGINTERN void SWIG_Lua_get_class_metatable(lua_State* L,const char* cname) lua_remove(L,-2); /* tidy up (remove registry) */ } +/* Set up the base classes pointers. +Each class structure has a list of pointers to the base class structures. +This function fills them. +It cannot be done at compile time, as this will not work with hireachies +spread over more than one swig file. +Therefore it must be done at runtime, querying the SWIG type system. +*/ +SWIGINTERN void SWIG_Lua_init_base_class(lua_State *L,swig_lua_class *clss) +{ + int i=0; + swig_module_info *module=SWIG_GetModule(L); + for(i=0;clss->base_names[i];i++) + { + if (clss->bases[i]==0) /* not found yet */ + { + /* lookup and cache the base class */ + swig_type_info *info = SWIG_TypeQueryModule(module,module,clss->base_names[i]); + if (info) clss->bases[i] = (swig_lua_class *) info->clientdata; + } + } +} + +#if defined(SWIG_LUA_SQUASH_BASES) && (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) +/* Merges two tables */ +SWIGINTERN void SWIG_Lua_merge_tables_by_index(lua_State *L, int target, int source) +{ + /* iterating */ + lua_pushnil(L); + while (lua_next(L,source) != 0) { + /* -1 - value, -2 - index */ + /* have to copy to assign */ + lua_pushvalue(L,-2); /* copy of index */ + lua_pushvalue(L,-2); /* copy of value */ + lua_rawset(L, target); + lua_pop(L,1); + /* only key is left */ + } +} + +/* Merges two tables with given name. original - index of target metatable, base - index of source metatable */ +SWIGINTERN void SWIG_Lua_merge_tables(lua_State *L, const char* name, int original, int base) +{ + /* push original[name], then base[name] */ + lua_pushstring(L,name); + lua_rawget(L,original); + int original_table = lua_gettop(L); + lua_pushstring(L,name); + lua_rawget(L,base); + int base_table = lua_gettop(L); + SWIG_Lua_merge_tables_by_index(L, original_table, base_table); + /* clearing stack */ + lua_pop(L,2); +} + +/* Function takes all symbols from base and adds it to derived class. It's just a helper. */ +SWIGINTERN void SWIG_Lua_class_squash_base(lua_State *L, swig_lua_class *base_cls) +{ + /* There is one parameter - original, i.e. 'derived' class metatable */ + assert(lua_istable(L,-1)); + int original = lua_gettop(L); + SWIG_Lua_get_class_metatable(L,base_cls->fqname); + int base = lua_gettop(L); + SWIG_Lua_merge_tables(L, ".fn", original, base ); + SWIG_Lua_merge_tables(L, ".set", original, base ); + SWIG_Lua_merge_tables(L, ".get", original, base ); + lua_pop(L,1); +} + +/* Function squashes all symbols from 'clss' bases into itself */ +SWIGINTERN void SWIG_Lua_class_squash_bases(lua_State *L, swig_lua_class *clss) +{ + int i; + SWIG_Lua_get_class_metatable(L,clss->fqname); + for(i=0;clss->base_names[i];i++) + { + if (clss->bases[i]==0) /* Somehow it's not found. Skip it */ + continue; + /* Thing is: all bases are already registered. Thus they have already executed + * this function. So we just need to squash them into us, because their bases + * are already squashed into them. No need for recursion here! + */ + SWIG_Lua_class_squash_base(L, clss->bases[i]); + } + lua_pop(L,1); /*tidy stack*/ +} +#endif + +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) /* In elua this is useless */ /* helper add a variable to a registered class */ -SWIGINTERN void SWIG_Lua_add_class_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn) +SWIGINTERN void SWIG_Lua_add_variable(lua_State *L,const char *name,lua_CFunction getFn,lua_CFunction setFn) { assert(lua_istable(L,-1)); /* just in case */ SWIG_Lua_get_table(L,".get"); /* find the .get table */ @@ -1494,7 +2011,7 @@ SWIGINTERN void SWIG_Lua_add_class_variable(lua_State* L,const char* name,lua_C } /* helper to recursively add class static details (static attributes, operations and constants) */ -SWIGINTERN void SWIG_Lua_add_class_static_details(lua_State* L, swig_lua_class* clss) +SWIGINTERN void SWIG_Lua_add_class_static_details(lua_State *L, swig_lua_class *clss) { int i = 0; /* The class namespace table must be on the top of the stack */ @@ -1505,72 +2022,269 @@ SWIGINTERN void SWIG_Lua_add_class_static_details(lua_State* L, swig_lua_class* SWIG_Lua_add_class_static_details(L,clss->bases[i]); } - SWIG_Lua_add_namespace_details(L, &clss->cls_static); + SWIG_Lua_add_namespace_details(L, clss->cls_static); } +SWIGINTERN void SWIG_Lua_add_class_user_metamethods(lua_State *L, swig_lua_class *clss); /* forward declaration */ + /* helper to recursively add class details (attributes & operations) */ -SWIGINTERN void SWIG_Lua_add_class_details(lua_State* L,swig_lua_class* clss) +SWIGINTERN void SWIG_Lua_add_class_instance_details(lua_State *L, swig_lua_class *clss) { int i; - /* call all the base classes first: we can then override these later: */ + size_t bases_count = 0; + /* Add bases to .bases table */ + SWIG_Lua_get_table(L,".bases"); + assert(lua_istable(L,-1)); /* just in case */ for(i=0;clss->bases[i];i++) { - SWIG_Lua_add_class_details(L,clss->bases[i]); - } - /* add fns */ + SWIG_Lua_get_class_metatable(L,clss->bases[i]->fqname); + /* Base class must be already registered */ + assert(lua_istable(L,-1)); + lua_rawseti(L,-2,i+1); /* In lua indexing starts from 1 */ + bases_count++; + } + assert(lua_rawlen(L,-1) == bases_count); + lua_pop(L,1); /* remove .bases table */ + /* add attributes */ for(i=0;clss->attributes[i].name;i++){ - SWIG_Lua_add_class_variable(L,clss->attributes[i].name,clss->attributes[i].getmethod,clss->attributes[i].setmethod); + SWIG_Lua_add_variable(L,clss->attributes[i].name,clss->attributes[i].getmethod,clss->attributes[i].setmethod); } /* add methods to the metatable */ SWIG_Lua_get_table(L,".fn"); /* find the .fn table */ assert(lua_istable(L,-1)); /* just in case */ for(i=0;clss->methods[i].name;i++){ - SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); + SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].func); } lua_pop(L,1); /* tidy stack (remove table) */ - /* add operator overloads - these look ANY method which start with "__" and assume they - are operator overloads & add them to the metatable - (this might mess up is someone defines a method __gc (the destructor)*/ - for(i=0;clss->methods[i].name;i++){ - if (clss->methods[i].name[0]=='_' && clss->methods[i].name[1]=='_'){ - SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); + /* add operator overloads + This adds methods from metatable array to metatable. Can mess up garbage + collectind if someone defines __gc method + */ + if(clss->metatable) { + for(i=0;clss->metatable[i].name;i++) { + SWIG_Lua_add_function(L,clss->metatable[i].name,clss->metatable[i].func); } } + +#if !defined(SWIG_LUA_SQUASH_BASES) + /* Adding metamethods that are defined in base classes. If bases were squashed + * then it is obviously unnecessary + */ + SWIG_Lua_add_class_user_metamethods(L, clss); +#endif } -/* set up the base classes pointers. -Each class structure has a list of pointers to the base class structures. -This function fills them. -It cannot be done at compile time, as this will not work with hireachies -spread over more than one swig file. -Therefore it must be done at runtime, querying the SWIG type system. +/* Helpers to add user defined class metamedhods - __add, __sub etc. The helpers are needed + for the following issue: Lua runtime checks for metamethod existence with rawget function + ignoring our SWIG-provided __index and __newindex functions. Thus our inheritance-aware method + search algorithm doesn't work in such case. (Not to say that Lua runtime queries metamethod directly + in metatable and not in object). + Current solution is this: if somewhere in hierarchy metamethod __x is defined, then all descendants + are automatically given a special proxy __x that calls the real __x method. + Obvious idea - to copy __x instead of creating __x-proxy is wrong because if someone changes __x in runtime, + those changes must be reflected in all descendants. */ -SWIGINTERN void SWIG_Lua_init_base_class(lua_State* L,swig_lua_class* clss) + +SWIGRUNTIME int SWIG_Lua_resolve_metamethod(lua_State *L); /*forward declaration*/ + +/* The real function that resolves a metamethod. + * Function searches given class and all it's bases(recursively) for first instance of something that is + * not equal to SWIG_Lua_resolve_metatmethod. (Almost always this 'something' is actual metamethod implementation + * and it is a SWIG-generated C function.). It returns value on the top of the L and there is no garbage below the + * answer. + * Returns 1 if found, 0 otherwise. + * clss is class which metatable we will search for method + * metamethod_name_idx is index in L where metamethod name (as string) lies + * skip_check allows to skip searching metamethod in givel clss and immideatelly go to searching in bases. skip_check + * is not caried to subsequent recursive calls - false is always passed. It is set to true only at first call from + * SWIG_Lua_resolve_metamethod + * */ +SWIGINTERN int SWIG_Lua_do_resolve_metamethod(lua_State *L, const swig_lua_class *clss, int metamethod_name_idx, + int skip_check) { - int i=0; - swig_module_info* module=SWIG_GetModule(L); - for(i=0;clss->base_names[i];i++) + /* This function is called recursively */ + int result = 0; + int i = 0; + + if (!skip_check) { + SWIG_Lua_get_class_metatable(L, clss->fqname); + lua_pushvalue(L, metamethod_name_idx); + lua_rawget(L,-2); + /* If this is cfunction and it is equal to SWIG_Lua_resolve_metamethod then + * this isn't the function we are looking for :) + * lua_tocfunction will return NULL if not cfunction + */ + if (!lua_isnil(L,-1) && lua_tocfunction(L,-1) != SWIG_Lua_resolve_metamethod ) { + lua_remove(L,-2); /* removing class metatable */ + return 1; + } + lua_pop(L,2); /* remove class metatable and query result */ + } + + /* Forwarding calls to bases */ + for(i=0;clss->bases[i];i++) { - if (clss->bases[i]==0) /* not found yet */ - { - /* lookup and cache the base class */ - swig_type_info *info = SWIG_TypeQueryModule(module,module,clss->base_names[i]); - if (info) clss->bases[i] = (swig_lua_class *) info->clientdata; + result = SWIG_Lua_do_resolve_metamethod(L, clss->bases[i], metamethod_name_idx, 0); + if (result) + break; + } + + return result; +} + +/* The proxy function for metamethod. All parameters are passed as cclosure. Searches for actual method + * and calls it */ +SWIGRUNTIME int SWIG_Lua_resolve_metamethod(lua_State *L) +{ + int numargs; + int metamethod_name_idx; + const swig_lua_class* clss; + int result; + + lua_checkstack(L,5); + numargs = lua_gettop(L); /* number of arguments to pass to actual metamethod */ + + /* Get upvalues from closure */ + lua_pushvalue(L, lua_upvalueindex(1)); /*Get function name*/ + metamethod_name_idx = lua_gettop(L); + + lua_pushvalue(L, lua_upvalueindex(2)); + clss = (const swig_lua_class*)(lua_touserdata(L,-1)); + lua_pop(L,1); /* remove lightuserdata with clss from stack */ + + /* Actual work */ + result = SWIG_Lua_do_resolve_metamethod(L, clss, metamethod_name_idx, 1); + if (!result) { + SWIG_Lua_pushferrstring(L,"The metamethod proxy is set, but it failed to find actual metamethod. Memory corruption is most likely explanation."); + lua_error(L); + return 0; + } + + lua_remove(L,-2); /* remove metamethod key */ + lua_insert(L,1); /* move function to correct position */ + lua_call(L, numargs, LUA_MULTRET); + return lua_gettop(L); /* return all results */ +} + + +/* If given metamethod must be present in given class, then creates appropriate proxy + * Returns 1 if successfully added, 0 if not added because no base class has it, -1 + * if method is defined in the class metatable itself + */ +SWIGINTERN int SWIG_Lua_add_class_user_metamethod(lua_State *L, swig_lua_class *clss, const int metatable_index) +{ + int key_index; + int success = 0; + int i = 0; + + /* metamethod name - on the top of the stack */ + assert(lua_isstring(L,-1)); + + key_index = lua_gettop(L); + + /* Check whether method is already defined in metatable */ + lua_pushvalue(L,key_index); /* copy of the key */ + lua_gettable(L,metatable_index); + if( !lua_isnil(L,-1) ) { + lua_pop(L,1); + return -1; + } + lua_pop(L,1); + + /* Iterating over immediate bases */ + for(i=0;clss->bases[i];i++) + { + const swig_lua_class *base = clss->bases[i]; + SWIG_Lua_get_class_metatable(L, base->fqname); + lua_pushvalue(L, key_index); + lua_rawget(L, -2); + if( !lua_isnil(L,-1) ) { + lua_pushvalue(L, key_index); + + /* Add proxy function */ + lua_pushvalue(L, key_index); /* first closure value is function name */ + lua_pushlightuserdata(L, clss); /* second closure value is swig_lua_class structure */ + lua_pushcclosure(L, SWIG_Lua_resolve_metamethod, 2); + + lua_rawset(L, metatable_index); + success = 1; + } + lua_pop(L,1); /* remove function or nil */ + lua_pop(L,1); /* remove base class metatable */ + + if( success ) + break; + } + + return success; +} + +SWIGINTERN void SWIG_Lua_add_class_user_metamethods(lua_State *L, swig_lua_class *clss) +{ + int metatable_index; + int metamethods_info_index; + int tostring_undefined; + int eq_undefined = 0; + + SWIG_Lua_get_class_metatable(L, clss->fqname); + metatable_index = lua_gettop(L); + SWIG_Lua_get_inheritable_metamethods(L); + assert(lua_istable(L,-1)); + metamethods_info_index = lua_gettop(L); + lua_pushnil(L); /* first key */ + while(lua_next(L, metamethods_info_index) != 0 ) { + /* key at index -2, value at index -1 */ + const int is_inheritable = lua_toboolean(L,-2); + lua_pop(L,1); /* remove value - we don't need it anymore */ + + if(is_inheritable) { /* if metamethod is inheritable */ + SWIG_Lua_add_class_user_metamethod(L,clss,metatable_index); } } + + lua_pop(L,1); /* remove inheritable metatmethods table */ + + /* Special handling for __tostring method */ + lua_pushstring(L, "__tostring"); + lua_pushvalue(L,-1); + lua_rawget(L,metatable_index); + tostring_undefined = lua_isnil(L,-1); + lua_pop(L,1); + if( tostring_undefined ) { + lua_pushcfunction(L, SWIG_Lua_class_tostring); + lua_rawset(L, metatable_index); + } else { + lua_pop(L,1); /* remove copy of the key */ + } + + /* Special handling for __eq method */ + lua_pushstring(L, "__eq"); + lua_pushvalue(L,-1); + lua_rawget(L,metatable_index); + eq_undefined = lua_isnil(L,-1); + lua_pop(L,1); + if( eq_undefined ) { + lua_pushcfunction(L, SWIG_Lua_class_equal); + lua_rawset(L, metatable_index); + } else { + lua_pop(L,1); /* remove copy of the key */ + } + /* Warning: __index and __newindex are SWIG-defined. For user-defined operator[] + * a __getitem/__setitem method should be defined + */ + lua_pop(L,1); /* pop class metatable */ } /* Register class static methods,attributes etc as well as constructor proxy */ -SWIGINTERN void SWIG_Lua_class_register_static(lua_State* L, swig_lua_class* clss) +SWIGINTERN void SWIG_Lua_class_register_static(lua_State *L, swig_lua_class *clss) { + const int SWIGUNUSED begin = lua_gettop(L); lua_checkstack(L,5); /* just in case */ assert(lua_istable(L,-1)); /* just in case */ - assert(strcmp(clss->name, clss->cls_static.name) == 0); /* in class those 2 must be equal */ + assert(strcmp(clss->name, clss->cls_static->name) == 0); /* in class those 2 must be equal */ - SWIG_Lua_namespace_register(L,&clss->cls_static); + SWIG_Lua_namespace_register(L,clss->cls_static, 1); - SWIG_Lua_get_table(L,clss->name); // Get namespace table back assert(lua_istable(L,-1)); /* just in case */ /* add its constructor to module with the name of the class @@ -1579,10 +2293,9 @@ SWIGINTERN void SWIG_Lua_class_register_static(lua_State* L, swig_lua_class* cls (this overcomes the problem of pure virtual classes without constructors)*/ if (clss->constructor) { - SWIG_Lua_add_function(L,".constructor", clss->constructor); lua_getmetatable(L,-1); assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_add_function(L,"__call", SWIG_Lua_constructor_proxy); + SWIG_Lua_add_function(L,"__call", clss->constructor); lua_pop(L,1); } @@ -1591,19 +2304,60 @@ SWIGINTERN void SWIG_Lua_class_register_static(lua_State* L, swig_lua_class* cls /* clear stack */ lua_pop(L,1); + assert( lua_gettop(L) == begin ); } -/* performs the entire class registration process */ -SWIGINTERN void SWIG_Lua_class_register(lua_State* L,swig_lua_class* clss) +/* Performs the instance (non-static) class registration process. Metatable for class is created + * and added to the class registry. + */ +SWIGINTERN void SWIG_Lua_class_register_instance(lua_State *L,swig_lua_class *clss) { - SWIG_Lua_class_register_static(L,clss); - + const int SWIGUNUSED begin = lua_gettop(L); + int i; + /* if name already there (class is already registered) then do nothing */ + SWIG_Lua_get_class_registry(L); /* get the registry */ + lua_pushstring(L,clss->fqname); /* get the name */ + lua_rawget(L,-2); + if(!lua_isnil(L,-1)) { + lua_pop(L,2); + assert(lua_gettop(L)==begin); + return; + } + lua_pop(L,2); /* tidy stack */ + /* Recursively initialize all bases */ + for(i=0;clss->bases[i];i++) + { + SWIG_Lua_class_register_instance(L,clss->bases[i]); + } + /* Again, get registry and push name */ SWIG_Lua_get_class_registry(L); /* get the registry */ - lua_pushstring(L,clss->name); /* get the name */ + lua_pushstring(L,clss->fqname); /* get the name */ lua_newtable(L); /* create the metatable */ +#if defined(SWIG_LUA_SQUASH_BASES) && (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) + /* If squashing is requested, then merges all bases metatable into this one. + * It would get us all special methods: __getitem, __add etc. + * This would set .fn, .type, and other .xxx incorrectly, but we will overwrite it right away + */ + { + int new_metatable_index = lua_absindex(L,-1); + for(i=0;clss->bases[i];i++) + { + int base_metatable; + SWIG_Lua_get_class_metatable(L,clss->bases[i]->fqname); + base_metatable = lua_absindex(L,-1); + SWIG_Lua_merge_tables_by_index(L,new_metatable_index, base_metatable); + lua_pop(L,1); + } + } + /* And now we will overwrite all incorrectly set data */ +#endif /* add string of class name called ".type" */ lua_pushstring(L,".type"); - lua_pushstring(L,clss->name); + lua_pushstring(L,clss->fqname); + lua_rawset(L,-3); + /* add a table called bases */ + lua_pushstring(L,".bases"); + lua_newtable(L); lua_rawset(L,-3); /* add a table called ".get" */ lua_pushstring(L,".get"); @@ -1623,27 +2377,99 @@ SWIGINTERN void SWIG_Lua_class_register(lua_State* L,swig_lua_class* clss) SWIG_Lua_add_function(L,"__index",SWIG_Lua_class_get); SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_class_set); SWIG_Lua_add_function(L,"__gc",SWIG_Lua_class_destruct); - /* add tostring method for better output */ - SWIG_Lua_add_function(L,"__tostring",SWIG_Lua_class_tostring); /* add it */ lua_rawset(L,-3); /* metatable into registry */ lua_pop(L,1); /* tidy stack (remove registry) */ + assert(lua_gettop(L) == begin); - SWIG_Lua_get_class_metatable(L,clss->name); - SWIG_Lua_add_class_details(L,clss); /* recursive adding of details (atts & ops) */ +#if defined(SWIG_LUA_SQUASH_BASES) && (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) + /* Now merge all symbols from .fn, .set, .get etc from bases to our tables */ + SWIG_Lua_class_squash_bases(L,clss); +#endif + SWIG_Lua_get_class_metatable(L,clss->fqname); + SWIG_Lua_add_class_instance_details(L,clss); /* recursive adding of details (atts & ops) */ lua_pop(L,1); /* tidy stack (remove class metatable) */ + assert( lua_gettop(L) == begin ); +} + +SWIGINTERN void SWIG_Lua_class_register(lua_State *L,swig_lua_class *clss) +{ + int SWIGUNUSED begin; + assert(lua_istable(L,-1)); /* This is a table (module or namespace) where classes will be added */ + SWIG_Lua_class_register_instance(L,clss); + SWIG_Lua_class_register_static(L,clss); + + /* Add links from static part to instance part and vice versa */ + /* [SWIG registry] [Module] + * "MyClass" ----> [MyClass metatable] <===== "MyClass" -+> [static part] + * ".get" ----> ... | | getmetatable()----| + * ".set" ----> ... | | | + * ".static" --------------)----------------/ [static part metatable] + * | ".get" --> ... + * | ".set" --> .... + * |=============================== ".instance" + */ + begin = lua_gettop(L); + lua_pushstring(L,clss->cls_static->name); + lua_rawget(L,-2); /* get class static table */ + assert(lua_istable(L,-1)); + lua_getmetatable(L,-1); + assert(lua_istable(L,-1)); /* get class static metatable */ + lua_pushstring(L,".instance"); /* prepare key */ + + SWIG_Lua_get_class_metatable(L,clss->fqname); /* get class metatable */ + assert(lua_istable(L,-1)); + lua_pushstring(L,".static"); /* prepare key */ + lua_pushvalue(L, -4); /* push static class TABLE */ + assert(lua_istable(L,-1)); + lua_rawset(L,-3); /* assign static class table(!NOT metatable) as ".static" member of class metatable */ + lua_rawset(L,-3); /* assign class metatable as ".instance" member of class static METATABLE */ + lua_pop(L,2); + assert(lua_gettop(L) == begin); +} +#endif /* SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA */ + +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) +SWIGINTERN void SWIG_Lua_elua_class_register_instance(lua_State *L, swig_lua_class *clss) +{ + const int SWIGUNUSED begin = lua_gettop(L); + int i; + /* if name already there (class is already registered) then do nothing */ + SWIG_Lua_get_class_registry(L); /* get the registry */ + lua_pushstring(L,clss->fqname); /* get the name */ + lua_rawget(L,-2); + if(!lua_isnil(L,-1)) { + lua_pop(L,2); + assert(lua_gettop(L)==begin); + return; + } + lua_pop(L,2); /* tidy stack */ + /* Recursively initialize all bases */ + for(i=0;clss->bases[i];i++) + { + SWIG_Lua_elua_class_register_instance(L,clss->bases[i]); + } + /* Again, get registry and push name */ + SWIG_Lua_get_class_registry(L); /* get the registry */ + lua_pushstring(L,clss->fqname); /* get the name */ + assert(clss->metatable); + lua_pushrotable(L, (void*)(clss->metatable)); /* create the metatable */ + lua_rawset(L,-3); + lua_pop(L,1); + assert(lua_gettop(L) == begin); } +#endif /* elua && eluac */ /* ----------------------------------------------------------------------------- * Class/structure conversion fns * ----------------------------------------------------------------------------- */ /* helper to add metatable to new lua object */ -SWIGINTERN void _SWIG_Lua_AddMetatable(lua_State* L,swig_type_info *type) +SWIGINTERN void SWIG_Lua_AddMetatable(lua_State *L,swig_type_info *type) { if (type->clientdata) /* there is clientdata: so add the metatable */ { - SWIG_Lua_get_class_metatable(L,((swig_lua_class*)(type->clientdata))->name); + SWIG_Lua_get_class_metatable(L,((swig_lua_class*)(type->clientdata))->fqname); if (lua_istable(L,-1)) { lua_setmetatable(L,-2); @@ -1656,9 +2482,9 @@ SWIGINTERN void _SWIG_Lua_AddMetatable(lua_State* L,swig_type_info *type) } /* pushes a new object into the lua stack */ -SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State* L,void* ptr,swig_type_info *type, int own) +SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State *L,void *ptr,swig_type_info *type, int own) { - swig_lua_userdata* usr; + swig_lua_userdata *usr; if (!ptr){ lua_pushnil(L); return; @@ -1668,15 +2494,15 @@ SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State* L,void* ptr,swig_type_info *t usr->type=type; usr->own=own; #if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) - _SWIG_Lua_AddMetatable(L,type); /* add metatable */ + SWIG_Lua_AddMetatable(L,type); /* add metatable */ #endif } /* takes a object from the lua stack & converts it into an object of the correct type (if possible) */ -SWIGRUNTIME int SWIG_Lua_ConvertPtr(lua_State* L,int index,void** ptr,swig_type_info *type,int flags) +SWIGRUNTIME int SWIG_Lua_ConvertPtr(lua_State *L,int index,void **ptr,swig_type_info *type,int flags) { - swig_lua_userdata* usr; + swig_lua_userdata *usr; swig_cast_info *cast; if (lua_isnil(L,index)){*ptr=0; return SWIG_OK;} /* special case: lua nil => NULL pointer */ usr=(swig_lua_userdata*)lua_touserdata(L,index); /* get data */ @@ -1703,9 +2529,9 @@ SWIGRUNTIME int SWIG_Lua_ConvertPtr(lua_State* L,int index,void** ptr,swig_type return SWIG_ERROR; /* error */ } -SWIGRUNTIME void* SWIG_Lua_MustGetPtr(lua_State* L,int index,swig_type_info *type,int flags, - int argnum,const char* func_name){ - void* result; +SWIGRUNTIME void* SWIG_Lua_MustGetPtr(lua_State *L,int index,swig_type_info *type,int flags, + int argnum,const char *func_name){ + void *result; if (!SWIG_IsOK(SWIG_ConvertPtr(L,index,&result,type,flags))){ luaL_error (L,"Error in %s, expected a %s at argument number %d\n", func_name,(type && type->str)?type->str:"void*",argnum); @@ -1714,21 +2540,21 @@ SWIGRUNTIME void* SWIG_Lua_MustGetPtr(lua_State* L,int index,swig_type_info *typ } /* pushes a packed userdata. user for member fn pointers only */ -SWIGRUNTIME void SWIG_Lua_NewPackedObj(lua_State* L,void* ptr,size_t size,swig_type_info *type) +SWIGRUNTIME void SWIG_Lua_NewPackedObj(lua_State *L,void *ptr,size_t size,swig_type_info *type) { - swig_lua_rawdata* raw; + swig_lua_rawdata *raw; assert(ptr); /* not acceptable to pass in a NULL value */ raw=(swig_lua_rawdata*)lua_newuserdata(L,sizeof(swig_lua_rawdata)-1+size); /* alloc data */ raw->type=type; raw->own=0; memcpy(raw->data,ptr,size); /* copy the data */ - _SWIG_Lua_AddMetatable(L,type); /* add metatable */ + SWIG_Lua_AddMetatable(L,type); /* add metatable */ } /* converts a packed userdata. user for member fn pointers only */ -SWIGRUNTIME int SWIG_Lua_ConvertPacked(lua_State* L,int index,void* ptr,size_t size,swig_type_info *type) +SWIGRUNTIME int SWIG_Lua_ConvertPacked(lua_State *L,int index,void *ptr,size_t size,swig_type_info *type) { - swig_lua_rawdata* raw; + swig_lua_rawdata *raw; raw=(swig_lua_rawdata*)lua_touserdata(L,index); /* get data */ if (!raw) return SWIG_ERROR; /* error */ if (type==0 || type==raw->type) /* void* or identical type */ @@ -1742,7 +2568,7 @@ SWIGRUNTIME int SWIG_Lua_ConvertPacked(lua_State* L,int index,void* ptr,size_t /* a function to get the typestring of a piece of data */ SWIGRUNTIME const char *SWIG_Lua_typename(lua_State *L, int tp) { - swig_lua_userdata* usr; + swig_lua_userdata *usr; if (lua_isuserdata(L,tp)) { usr=(swig_lua_userdata*)lua_touserdata(L,tp); /* get data */ @@ -1754,29 +2580,12 @@ SWIGRUNTIME const char *SWIG_Lua_typename(lua_State *L, int tp) } /* lua callable function to get the userdata's type */ -SWIGRUNTIME int SWIG_Lua_type(lua_State* L) +SWIGRUNTIME int SWIG_Lua_type(lua_State *L) { lua_pushstring(L,SWIG_Lua_typename(L,1)); return 1; } -/* lua callable function to compare userdata's value -the issue is that two userdata may point to the same thing -but to lua, they are different objects */ -SWIGRUNTIME int SWIG_Lua_equal(lua_State* L) -{ - int result; - swig_lua_userdata *usr1,*usr2; - if (!lua_isuserdata(L,1) || !lua_isuserdata(L,2)) /* just in case */ - return 0; /* nil reply */ - usr1=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ - usr2=(swig_lua_userdata*)lua_touserdata(L,2); /* get data */ - /*result=(usr1->ptr==usr2->ptr && usr1->type==usr2->type); only works if type is the same*/ - result=(usr1->ptr==usr2->ptr); - lua_pushboolean(L,result); - return 1; -} - /* ----------------------------------------------------------------------------- * global variable support code: class/struct typemap functions * ----------------------------------------------------------------------------- */ @@ -1784,13 +2593,13 @@ SWIGRUNTIME int SWIG_Lua_equal(lua_State* L) #if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) /* Install Constants */ SWIGINTERN void -SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) { +SWIG_Lua_InstallConstants(lua_State *L, swig_lua_const_info constants[]) { int i; for (i = 0; constants[i].type; i++) { switch(constants[i].type) { case SWIG_LUA_INT: lua_pushstring(L,constants[i].name); - lua_pushnumber(L,(lua_Number)constants[i].lvalue); + lua_pushinteger(L,(lua_Number)constants[i].lvalue); lua_rawset(L,-3); break; case SWIG_LUA_FLOAT: @@ -1800,7 +2609,10 @@ SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) { break; case SWIG_LUA_CHAR: lua_pushstring(L,constants[i].name); - lua_pushfstring(L,"%c",(char)constants[i].lvalue); + { + char c = constants[i].lvalue; + lua_pushlstring(L,&c,1); + } lua_rawset(L,-3); break; case SWIG_LUA_STRING: @@ -1834,11 +2646,11 @@ SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) { #endif /* Executes a C string in Lua which is a really simple way of calling lua from C Unfortunately lua keeps changing its APIs, so we need a conditional compile -In lua 5.0.X its lua_dostring() -In lua 5.1.X its luaL_dostring() +In lua 5.0.X it's lua_dostring() +In lua 5.1.X it's luaL_dostring() */ SWIGINTERN int -SWIG_Lua_dostring(lua_State *L, const char* str) { +SWIG_Lua_dostring(lua_State *L, const char *str) { int ok,top; if (str==0 || str[0]==0) return 0; /* nothing to do */ top=lua_gettop(L); /* save stack */ @@ -1928,12 +2740,16 @@ SWIG_Lua_dostring(lua_State *L, const char* str) { #define SWIGTYPE_p_rlWebcam swig_types[62] #define SWIGTYPE_p_short swig_types[63] #define SWIGTYPE_p_sockaddr_in swig_types[64] -#define SWIGTYPE_p_unsigned_char swig_types[65] -#define SWIGTYPE_p_unsigned_int swig_types[66] -#define SWIGTYPE_p_unsigned_short swig_types[67] -#define SWIGTYPE_p_void swig_types[68] -static swig_type_info *swig_types[70]; -static swig_module_info swig_module = {swig_types, 69, 0, 0, 0, 0}; +#define SWIGTYPE_p_std__shared_ptrT_rlSharedMemory__LockUserAddr_t swig_types[65] +#define SWIGTYPE_p_std__string swig_types[66] +#define SWIGTYPE_p_time_t swig_types[67] +#define SWIGTYPE_p_tm swig_types[68] +#define SWIGTYPE_p_unsigned_char swig_types[69] +#define SWIGTYPE_p_unsigned_int swig_types[70] +#define SWIGTYPE_p_unsigned_short swig_types[71] +#define SWIGTYPE_p_void swig_types[72] +static swig_type_info *swig_types[74]; +static swig_module_info swig_module = {swig_types, 73, 0, 0, 0, 0}; #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) @@ -2179,27 +2995,51 @@ static void swig_delete_THREAD_PARAM(void *obj) { THREAD_PARAM *arg1 = (THREAD_PARAM *) obj; delete arg1; } -static swig_lua_method swig_THREAD_PARAM_methods[] = { - {0,0} -}; +static int _proxy__wrap_new_THREAD_PARAM(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_THREAD_PARAM); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_THREAD_PARAM_attributes[] = { - { "thread", _wrap_THREAD_PARAM_thread_get, _wrap_THREAD_PARAM_thread_set}, - { "user", _wrap_THREAD_PARAM_user_get, _wrap_THREAD_PARAM_user_set}, - { "running", _wrap_THREAD_PARAM_running_get, _wrap_THREAD_PARAM_running_set}, + { "thread", _wrap_THREAD_PARAM_thread_get, _wrap_THREAD_PARAM_thread_set }, + { "user", _wrap_THREAD_PARAM_user_get, _wrap_THREAD_PARAM_user_set }, + { "running", _wrap_THREAD_PARAM_running_get, _wrap_THREAD_PARAM_running_set }, {0,0,0} }; -static swig_lua_attribute swig_THREAD_PARAM_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_THREAD_PARAM_methods[]= { + {0,0} }; -static swig_lua_method swig_THREAD_PARAM_cls_methods[] = { +static swig_lua_method swig_THREAD_PARAM_meta[] = { {0,0} }; -static swig_lua_const_info swig_THREAD_PARAM_cls_constants[] = { + +static swig_lua_attribute swig_THREAD_PARAM_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_THREAD_PARAM_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_THREAD_PARAM_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_THREAD_PARAM_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_THREAD_PARAM_Sf_SwigStatic = { + "THREAD_PARAM", + swig_THREAD_PARAM_Sf_SwigStatic_methods, + swig_THREAD_PARAM_Sf_SwigStatic_attributes, + swig_THREAD_PARAM_Sf_SwigStatic_constants, + swig_THREAD_PARAM_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_THREAD_PARAM_bases[] = {0}; static const char *swig_THREAD_PARAM_base_names[] = {0}; -static swig_lua_class _wrap_class_THREAD_PARAM = { "THREAD_PARAM", &SWIGTYPE_p_THREAD_PARAM,_wrap_new_THREAD_PARAM, swig_delete_THREAD_PARAM, swig_THREAD_PARAM_methods, swig_THREAD_PARAM_attributes, { "THREAD_PARAM", swig_THREAD_PARAM_cls_methods, swig_THREAD_PARAM_cls_attributes, swig_THREAD_PARAM_cls_constants }, swig_THREAD_PARAM_bases, swig_THREAD_PARAM_base_names }; +static swig_lua_class _wrap_class_THREAD_PARAM = { "THREAD_PARAM", "THREAD_PARAM", &SWIGTYPE_p_THREAD_PARAM,_proxy__wrap_new_THREAD_PARAM, swig_delete_THREAD_PARAM, swig_THREAD_PARAM_methods, swig_THREAD_PARAM_attributes, &swig_THREAD_PARAM_Sf_SwigStatic, swig_THREAD_PARAM_meta, swig_THREAD_PARAM_bases, swig_THREAD_PARAM_base_names }; static int _wrap_new_rlThread__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -2741,37 +3581,61 @@ static void swig_delete_rlThread(void *obj) { rlThread *arg1 = (rlThread *) obj; delete arg1; } -static swig_lua_method swig_rlThread_methods[] = { - {"create", _wrap_rlThread_create}, - {"trylock", _wrap_rlThread_trylock}, - {"lock", _wrap_rlThread_lock}, - {"unlock", _wrap_rlThread_unlock}, - {"waitSemaphore", _wrap_rlThread_waitSemaphore}, - {"incrementSemaphore", _wrap_rlThread_incrementSemaphore}, - {"join", _wrap_rlThread_join}, - {"cancel", _wrap_rlThread_cancel}, - {"threadExit", _wrap_rlThread_threadExit}, - {0,0} -}; +static int _proxy__wrap_new_rlThread(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlThread); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlThread_attributes[] = { - { "tid", _wrap_rlThread_tid_get, _wrap_rlThread_tid_set}, - { "attr", _wrap_rlThread_attr_get, _wrap_rlThread_attr_set}, - { "mutex", _wrap_rlThread_mutex_get, _wrap_rlThread_mutex_set}, - { "semaphore", _wrap_rlThread_semaphore_get, _wrap_rlThread_semaphore_set}, + { "tid", _wrap_rlThread_tid_get, _wrap_rlThread_tid_set }, + { "attr", _wrap_rlThread_attr_get, _wrap_rlThread_attr_set }, + { "mutex", _wrap_rlThread_mutex_get, _wrap_rlThread_mutex_set }, + { "semaphore", _wrap_rlThread_semaphore_get, _wrap_rlThread_semaphore_set }, {0,0,0} }; -static swig_lua_attribute swig_rlThread_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlThread_methods[]= { + { "create", _wrap_rlThread_create}, + { "trylock", _wrap_rlThread_trylock}, + { "lock", _wrap_rlThread_lock}, + { "unlock", _wrap_rlThread_unlock}, + { "waitSemaphore", _wrap_rlThread_waitSemaphore}, + { "incrementSemaphore", _wrap_rlThread_incrementSemaphore}, + { "join", _wrap_rlThread_join}, + { "cancel", _wrap_rlThread_cancel}, + { "threadExit", _wrap_rlThread_threadExit}, + {0,0} }; -static swig_lua_method swig_rlThread_cls_methods[] = { +static swig_lua_method swig_rlThread_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlThread_cls_constants[] = { + +static swig_lua_attribute swig_rlThread_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlThread_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlThread_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlThread_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlThread_Sf_SwigStatic = { + "rlThread", + swig_rlThread_Sf_SwigStatic_methods, + swig_rlThread_Sf_SwigStatic_attributes, + swig_rlThread_Sf_SwigStatic_constants, + swig_rlThread_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlThread_bases[] = {0}; static const char *swig_rlThread_base_names[] = {0}; -static swig_lua_class _wrap_class_rlThread = { "rlThread", &SWIGTYPE_p_rlThread,_wrap_new_rlThread, swig_delete_rlThread, swig_rlThread_methods, swig_rlThread_attributes, { "rlThread", swig_rlThread_cls_methods, swig_rlThread_cls_attributes, swig_rlThread_cls_constants }, swig_rlThread_bases, swig_rlThread_base_names }; +static swig_lua_class _wrap_class_rlThread = { "rlThread", "rlThread", &SWIGTYPE_p_rlThread,_proxy__wrap_new_rlThread, swig_delete_rlThread, swig_rlThread_methods, swig_rlThread_attributes, &swig_rlThread_Sf_SwigStatic, swig_rlThread_meta, swig_rlThread_bases, swig_rlThread_base_names }; static int _wrap_new_rlMutex__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -2978,30 +3842,54 @@ static void swig_delete_rlMutex(void *obj) { rlMutex *arg1 = (rlMutex *) obj; delete arg1; } -static swig_lua_method swig_rlMutex_methods[] = { - {"trylock", _wrap_rlMutex_trylock}, - {"lock", _wrap_rlMutex_lock}, - {"unlock", _wrap_rlMutex_unlock}, - {0,0} -}; +static int _proxy__wrap_new_rlMutex(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlMutex); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlMutex_attributes[] = { - { "mutex", _wrap_rlMutex_mutex_get, _wrap_rlMutex_mutex_set}, + { "mutex", _wrap_rlMutex_mutex_get, _wrap_rlMutex_mutex_set }, {0,0,0} }; -static swig_lua_attribute swig_rlMutex_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlMutex_methods[]= { + { "trylock", _wrap_rlMutex_trylock}, + { "lock", _wrap_rlMutex_lock}, + { "unlock", _wrap_rlMutex_unlock}, + {0,0} }; -static swig_lua_method swig_rlMutex_cls_methods[] = { +static swig_lua_method swig_rlMutex_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlMutex_cls_constants[] = { + +static swig_lua_attribute swig_rlMutex_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlMutex_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; -static swig_lua_class *swig_rlMutex_bases[] = {0}; -static const char *swig_rlMutex_base_names[] = {0}; -static swig_lua_class _wrap_class_rlMutex = { "rlMutex", &SWIGTYPE_p_rlMutex,_wrap_new_rlMutex, swig_delete_rlMutex, swig_rlMutex_methods, swig_rlMutex_attributes, { "rlMutex", swig_rlMutex_cls_methods, swig_rlMutex_cls_attributes, swig_rlMutex_cls_constants }, swig_rlMutex_bases, swig_rlMutex_base_names }; - -static int _wrap_new_rlSemaphore__SWIG_0(lua_State* L) { +static swig_lua_method swig_rlMutex_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlMutex_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlMutex_Sf_SwigStatic = { + "rlMutex", + swig_rlMutex_Sf_SwigStatic_methods, + swig_rlMutex_Sf_SwigStatic_attributes, + swig_rlMutex_Sf_SwigStatic_constants, + swig_rlMutex_Sf_SwigStatic_classes, + 0 +}; +static swig_lua_class *swig_rlMutex_bases[] = {0}; +static const char *swig_rlMutex_base_names[] = {0}; +static swig_lua_class _wrap_class_rlMutex = { "rlMutex", "rlMutex", &SWIGTYPE_p_rlMutex,_proxy__wrap_new_rlMutex, swig_delete_rlMutex, swig_rlMutex_methods, swig_rlMutex_attributes, &swig_rlMutex_Sf_SwigStatic, swig_rlMutex_meta, swig_rlMutex_bases, swig_rlMutex_base_names }; + +static int _wrap_new_rlSemaphore__SWIG_0(lua_State* L) { int SWIG_arg = 0; int arg1 ; rlSemaphore *result = 0 ; @@ -3177,27 +4065,51 @@ static void swig_delete_rlSemaphore(void *obj) { rlSemaphore *arg1 = (rlSemaphore *) obj; delete arg1; } -static swig_lua_method swig_rlSemaphore_methods[] = { - {"waitSemaphore", _wrap_rlSemaphore_waitSemaphore}, - {"incrementSemaphore", _wrap_rlSemaphore_incrementSemaphore}, - {0,0} -}; +static int _proxy__wrap_new_rlSemaphore(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSemaphore); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlSemaphore_attributes[] = { - { "semaphore", _wrap_rlSemaphore_semaphore_get, _wrap_rlSemaphore_semaphore_set}, + { "semaphore", _wrap_rlSemaphore_semaphore_get, _wrap_rlSemaphore_semaphore_set }, {0,0,0} }; -static swig_lua_attribute swig_rlSemaphore_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlSemaphore_methods[]= { + { "waitSemaphore", _wrap_rlSemaphore_waitSemaphore}, + { "incrementSemaphore", _wrap_rlSemaphore_incrementSemaphore}, + {0,0} }; -static swig_lua_method swig_rlSemaphore_cls_methods[] = { +static swig_lua_method swig_rlSemaphore_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlSemaphore_cls_constants[] = { + +static swig_lua_attribute swig_rlSemaphore_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlSemaphore_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlSemaphore_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlSemaphore_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSemaphore_Sf_SwigStatic = { + "rlSemaphore", + swig_rlSemaphore_Sf_SwigStatic_methods, + swig_rlSemaphore_Sf_SwigStatic_attributes, + swig_rlSemaphore_Sf_SwigStatic_constants, + swig_rlSemaphore_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlSemaphore_bases[] = {0}; static const char *swig_rlSemaphore_base_names[] = {0}; -static swig_lua_class _wrap_class_rlSemaphore = { "rlSemaphore", &SWIGTYPE_p_rlSemaphore,_wrap_new_rlSemaphore, swig_delete_rlSemaphore, swig_rlSemaphore_methods, swig_rlSemaphore_attributes, { "rlSemaphore", swig_rlSemaphore_cls_methods, swig_rlSemaphore_cls_attributes, swig_rlSemaphore_cls_constants }, swig_rlSemaphore_bases, swig_rlSemaphore_base_names }; +static swig_lua_class _wrap_class_rlSemaphore = { "rlSemaphore", "rlSemaphore", &SWIGTYPE_p_rlSemaphore,_proxy__wrap_new_rlSemaphore, swig_delete_rlSemaphore, swig_rlSemaphore_methods, swig_rlSemaphore_attributes, &swig_rlSemaphore_Sf_SwigStatic, swig_rlSemaphore_meta, swig_rlSemaphore_bases, swig_rlSemaphore_base_names }; static int _wrap_new_rlSharedMemory__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -3676,6 +4588,33 @@ static int _wrap_rlSharedMemory_getUserAdr(lua_State* L) { } +static int _wrap_rlSharedMemory_getLock(lua_State* L) { + int SWIG_arg = 0; + rlSharedMemory *arg1 = (rlSharedMemory *) 0 ; + SwigValueWrapper< std::shared_ptr< rlSharedMemory::LockUserAddr > > result; + + SWIG_check_num_args("rlSharedMemory::getLock",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlSharedMemory::getLock",1,"rlSharedMemory *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlSharedMemory,0))){ + SWIG_fail_ptr("rlSharedMemory_getLock",1,SWIGTYPE_p_rlSharedMemory); + } + + result = (arg1)->getLock(); + { + std::shared_ptr< rlSharedMemory::LockUserAddr > * resultptr = new std::shared_ptr< rlSharedMemory::LockUserAddr >((const std::shared_ptr< rlSharedMemory::LockUserAddr > &) result); + SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_std__shared_ptrT_rlSharedMemory__LockUserAddr_t,1); SWIG_arg++; + } + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + static int _wrap_rlSharedMemory_shmKey(lua_State* L) { int SWIG_arg = 0; rlSharedMemory *arg1 = (rlSharedMemory *) 0 ; @@ -3860,36 +4799,46 @@ static void swig_delete_rlSharedMemory(void *obj) { rlSharedMemory *arg1 = (rlSharedMemory *) obj; delete arg1; } -static swig_lua_method swig_rlSharedMemory_methods[] = { - {"deleteSharedMemory", _wrap_rlSharedMemory_deleteSharedMemory}, - {"write", _wrap_rlSharedMemory_write}, - {"read", _wrap_rlSharedMemory_read}, - {"readInt", _wrap_rlSharedMemory_readInt}, - {"readShort", _wrap_rlSharedMemory_readShort}, - {"readByte", _wrap_rlSharedMemory_readByte}, - {"readFloat", _wrap_rlSharedMemory_readFloat}, - {"writeInt", _wrap_rlSharedMemory_writeInt}, - {"writeShort", _wrap_rlSharedMemory_writeShort}, - {"writeByte", _wrap_rlSharedMemory_writeByte}, - {"writeFloat", _wrap_rlSharedMemory_writeFloat}, - {"getUserAdr", _wrap_rlSharedMemory_getUserAdr}, - {"shmKey", _wrap_rlSharedMemory_shmKey}, - {"shmId", _wrap_rlSharedMemory_shmId}, - {"size", _wrap_rlSharedMemory_size}, - {0,0} -}; +static int _proxy__wrap_new_rlSharedMemory(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSharedMemory); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlSharedMemory_attributes[] = { - { "status", _wrap_rlSharedMemory_status_get, _wrap_rlSharedMemory_status_set}, - { "name", _wrap_rlSharedMemory_name_get, _wrap_rlSharedMemory_name_set}, + { "status", _wrap_rlSharedMemory_status_get, _wrap_rlSharedMemory_status_set }, + { "name", _wrap_rlSharedMemory_name_get, _wrap_rlSharedMemory_name_set }, {0,0,0} }; -static swig_lua_attribute swig_rlSharedMemory_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlSharedMemory_methods[]= { + { "deleteSharedMemory", _wrap_rlSharedMemory_deleteSharedMemory}, + { "write", _wrap_rlSharedMemory_write}, + { "read", _wrap_rlSharedMemory_read}, + { "readInt", _wrap_rlSharedMemory_readInt}, + { "readShort", _wrap_rlSharedMemory_readShort}, + { "readByte", _wrap_rlSharedMemory_readByte}, + { "readFloat", _wrap_rlSharedMemory_readFloat}, + { "writeInt", _wrap_rlSharedMemory_writeInt}, + { "writeShort", _wrap_rlSharedMemory_writeShort}, + { "writeByte", _wrap_rlSharedMemory_writeByte}, + { "writeFloat", _wrap_rlSharedMemory_writeFloat}, + { "getUserAdr", _wrap_rlSharedMemory_getUserAdr}, + { "getLock", _wrap_rlSharedMemory_getLock}, + { "shmKey", _wrap_rlSharedMemory_shmKey}, + { "shmId", _wrap_rlSharedMemory_shmId}, + { "size", _wrap_rlSharedMemory_size}, + {0,0} }; -static swig_lua_method swig_rlSharedMemory_cls_methods[] = { +static swig_lua_method swig_rlSharedMemory_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlSharedMemory_cls_constants[] = { + +static swig_lua_attribute swig_rlSharedMemory_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlSharedMemory_Sf_SwigStatic_constants[]= { {SWIG_LUA_CONSTTAB_INT("OK", rlSharedMemory::OK)}, {SWIG_LUA_CONSTTAB_INT("ERROR_FILE", rlSharedMemory::ERROR_FILE)}, {SWIG_LUA_CONSTTAB_INT("ERROR_SHMGET", rlSharedMemory::ERROR_SHMGET)}, @@ -3897,9 +4846,24 @@ static swig_lua_const_info swig_rlSharedMemory_cls_constants[] = { {SWIG_LUA_CONSTTAB_INT("ERROR_SHMCTL", rlSharedMemory::ERROR_SHMCTL)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_rlSharedMemory_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlSharedMemory_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSharedMemory_Sf_SwigStatic = { + "rlSharedMemory", + swig_rlSharedMemory_Sf_SwigStatic_methods, + swig_rlSharedMemory_Sf_SwigStatic_attributes, + swig_rlSharedMemory_Sf_SwigStatic_constants, + swig_rlSharedMemory_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlSharedMemory_bases[] = {0}; static const char *swig_rlSharedMemory_base_names[] = {0}; -static swig_lua_class _wrap_class_rlSharedMemory = { "rlSharedMemory", &SWIGTYPE_p_rlSharedMemory,_wrap_new_rlSharedMemory, swig_delete_rlSharedMemory, swig_rlSharedMemory_methods, swig_rlSharedMemory_attributes, { "rlSharedMemory", swig_rlSharedMemory_cls_methods, swig_rlSharedMemory_cls_attributes, swig_rlSharedMemory_cls_constants }, swig_rlSharedMemory_bases, swig_rlSharedMemory_base_names }; +static swig_lua_class _wrap_class_rlSharedMemory = { "rlSharedMemory", "rlSharedMemory", &SWIGTYPE_p_rlSharedMemory,_proxy__wrap_new_rlSharedMemory, swig_delete_rlSharedMemory, swig_rlSharedMemory_methods, swig_rlSharedMemory_attributes, &swig_rlSharedMemory_Sf_SwigStatic, swig_rlSharedMemory_meta, swig_rlSharedMemory_bases, swig_rlSharedMemory_base_names }; static int _wrap_new_rlIpAdr(lua_State* L) { int SWIG_arg = 0; @@ -4042,27 +5006,52 @@ static void swig_delete_rlIpAdr(void *obj) { rlIpAdr *arg1 = (rlIpAdr *) obj; delete arg1; } -static swig_lua_method swig_rlIpAdr_methods[] = { - {"setAdr", _wrap_rlIpAdr_setAdr}, - {"__eq", _wrap_rlIpAdr___eq}, - {0,0} -}; +static int _proxy__wrap_new_rlIpAdr(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlIpAdr); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlIpAdr_attributes[] = { - { "address", _wrap_rlIpAdr_address_get, _wrap_rlIpAdr_address_set}, + { "address", _wrap_rlIpAdr_address_get, _wrap_rlIpAdr_address_set }, {0,0,0} }; -static swig_lua_attribute swig_rlIpAdr_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlIpAdr_methods[]= { + { "setAdr", _wrap_rlIpAdr_setAdr}, + { "__eq", _wrap_rlIpAdr___eq}, + {0,0} }; -static swig_lua_method swig_rlIpAdr_cls_methods[] = { +static swig_lua_method swig_rlIpAdr_meta[] = { + { "__eq", _wrap_rlIpAdr___eq}, {0,0} }; -static swig_lua_const_info swig_rlIpAdr_cls_constants[] = { + +static swig_lua_attribute swig_rlIpAdr_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlIpAdr_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlIpAdr_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlIpAdr_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlIpAdr_Sf_SwigStatic = { + "rlIpAdr", + swig_rlIpAdr_Sf_SwigStatic_methods, + swig_rlIpAdr_Sf_SwigStatic_attributes, + swig_rlIpAdr_Sf_SwigStatic_constants, + swig_rlIpAdr_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlIpAdr_bases[] = {0}; static const char *swig_rlIpAdr_base_names[] = {0}; -static swig_lua_class _wrap_class_rlIpAdr = { "rlIpAdr", &SWIGTYPE_p_rlIpAdr,_wrap_new_rlIpAdr, swig_delete_rlIpAdr, swig_rlIpAdr_methods, swig_rlIpAdr_attributes, { "rlIpAdr", swig_rlIpAdr_cls_methods, swig_rlIpAdr_cls_attributes, swig_rlIpAdr_cls_constants }, swig_rlIpAdr_bases, swig_rlIpAdr_base_names }; +static swig_lua_class _wrap_class_rlIpAdr = { "rlIpAdr", "rlIpAdr", &SWIGTYPE_p_rlIpAdr,_proxy__wrap_new_rlIpAdr, swig_delete_rlIpAdr, swig_rlIpAdr_methods, swig_rlIpAdr_attributes, &swig_rlIpAdr_Sf_SwigStatic, swig_rlIpAdr_meta, swig_rlIpAdr_bases, swig_rlIpAdr_base_names }; static int _wrap_new_rlUdpSocket__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -4722,33 +5711,57 @@ static void swig_delete_rlUdpSocket(void *obj) { rlUdpSocket *arg1 = (rlUdpSocket *) obj; delete arg1; } -static swig_lua_method swig_rlUdpSocket_methods[] = { - {"setSockopt", _wrap_rlUdpSocket_setSockopt}, - {"bind", _wrap_rlUdpSocket_bind}, - {"select", _wrap_rlUdpSocket_select}, - {"recvfrom", _wrap_rlUdpSocket_recvfrom}, - {"sendto", _wrap_rlUdpSocket_sendto}, - {"printf", _wrap_rlUdpSocket_printf}, - {0,0} -}; +static int _proxy__wrap_new_rlUdpSocket(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlUdpSocket); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlUdpSocket_attributes[] = { - { "debug", _wrap_rlUdpSocket_debug_get, _wrap_rlUdpSocket_debug_set}, - { "readflag", _wrap_rlUdpSocket_readflag_get, _wrap_rlUdpSocket_readflag_set}, - { "writeflag", _wrap_rlUdpSocket_writeflag_get, _wrap_rlUdpSocket_writeflag_set}, + { "debug", _wrap_rlUdpSocket_debug_get, _wrap_rlUdpSocket_debug_set }, + { "readflag", _wrap_rlUdpSocket_readflag_get, _wrap_rlUdpSocket_readflag_set }, + { "writeflag", _wrap_rlUdpSocket_writeflag_get, _wrap_rlUdpSocket_writeflag_set }, {0,0,0} }; -static swig_lua_attribute swig_rlUdpSocket_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlUdpSocket_methods[]= { + { "setSockopt", _wrap_rlUdpSocket_setSockopt}, + { "bind", _wrap_rlUdpSocket_bind}, + { "select", _wrap_rlUdpSocket_select}, + { "recvfrom", _wrap_rlUdpSocket_recvfrom}, + { "sendto", _wrap_rlUdpSocket_sendto}, + { "printf", _wrap_rlUdpSocket_printf}, + {0,0} }; -static swig_lua_method swig_rlUdpSocket_cls_methods[] = { +static swig_lua_method swig_rlUdpSocket_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlUdpSocket_cls_constants[] = { + +static swig_lua_attribute swig_rlUdpSocket_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlUdpSocket_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlUdpSocket_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlUdpSocket_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlUdpSocket_Sf_SwigStatic = { + "rlUdpSocket", + swig_rlUdpSocket_Sf_SwigStatic_methods, + swig_rlUdpSocket_Sf_SwigStatic_attributes, + swig_rlUdpSocket_Sf_SwigStatic_constants, + swig_rlUdpSocket_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlUdpSocket_bases[] = {0}; static const char *swig_rlUdpSocket_base_names[] = {0}; -static swig_lua_class _wrap_class_rlUdpSocket = { "rlUdpSocket", &SWIGTYPE_p_rlUdpSocket,_wrap_new_rlUdpSocket, swig_delete_rlUdpSocket, swig_rlUdpSocket_methods, swig_rlUdpSocket_attributes, { "rlUdpSocket", swig_rlUdpSocket_cls_methods, swig_rlUdpSocket_cls_attributes, swig_rlUdpSocket_cls_constants }, swig_rlUdpSocket_bases, swig_rlUdpSocket_base_names }; +static swig_lua_class _wrap_class_rlUdpSocket = { "rlUdpSocket", "rlUdpSocket", &SWIGTYPE_p_rlUdpSocket,_proxy__wrap_new_rlUdpSocket, swig_delete_rlUdpSocket, swig_rlUdpSocket_methods, swig_rlUdpSocket_attributes, &swig_rlUdpSocket_Sf_SwigStatic, swig_rlUdpSocket_meta, swig_rlUdpSocket_bases, swig_rlUdpSocket_base_names }; static int _wrap_rlwsa(lua_State* L) { int SWIG_arg = 0; @@ -6125,40 +7138,49 @@ static void swig_delete_rlSocket(void *obj) { rlSocket *arg1 = (rlSocket *) obj; delete arg1; } -static swig_lua_method swig_rlSocket_methods[] = { - {"setAdr", _wrap_rlSocket_setAdr}, - {"setPort", _wrap_rlSocket_setPort}, - {"getPort", _wrap_rlSocket_getPort}, - {"setActive", _wrap_rlSocket_setActive}, - {"read", _wrap_rlSocket_read}, - {"readStr", _wrap_rlSocket_readStr}, - {"readHttpHeader", _wrap_rlSocket_readHttpHeader}, - {"write", _wrap_rlSocket_write}, - {"printf", _wrap_rlSocket_printf}, - {"connect", _wrap_rlSocket_connect}, - {"disconnect", _wrap_rlSocket_disconnect}, - {"select", _wrap_rlSocket_select}, - {"isConnected", _wrap_rlSocket_isConnected}, - {"setIPVersion", _wrap_rlSocket_setIPVersion}, - {"getIPVersion", _wrap_rlSocket_getIPVersion}, - {"sendProcessViewBrowserButtonEvent", _wrap_rlSocket_sendProcessViewBrowserButtonEvent}, - {"rlGetsockopt", _wrap_rlSocket_rlGetsockopt}, - {"rlSetsockopt", _wrap_rlSocket_rlSetsockopt}, - {"readHttpContentLength", _wrap_rlSocket_readHttpContentLength}, - {0,0} -}; +static int _proxy__wrap_new_rlSocket(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSocket); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlSocket_attributes[] = { - { "s", _wrap_rlSocket_s_get, _wrap_rlSocket_s_set}, - { "sockaddr", _wrap_rlSocket_sockaddr_get, _wrap_rlSocket_sockaddr_set}, + { "s", _wrap_rlSocket_s_get, _wrap_rlSocket_s_set }, + { "sockaddr", _wrap_rlSocket_sockaddr_get, _wrap_rlSocket_sockaddr_set }, {0,0,0} }; -static swig_lua_attribute swig_rlSocket_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlSocket_methods[]= { + { "setAdr", _wrap_rlSocket_setAdr}, + { "setPort", _wrap_rlSocket_setPort}, + { "getPort", _wrap_rlSocket_getPort}, + { "setActive", _wrap_rlSocket_setActive}, + { "read", _wrap_rlSocket_read}, + { "readStr", _wrap_rlSocket_readStr}, + { "readHttpHeader", _wrap_rlSocket_readHttpHeader}, + { "write", _wrap_rlSocket_write}, + { "printf", _wrap_rlSocket_printf}, + { "connect", _wrap_rlSocket_connect}, + { "disconnect", _wrap_rlSocket_disconnect}, + { "select", _wrap_rlSocket_select}, + { "isConnected", _wrap_rlSocket_isConnected}, + { "setIPVersion", _wrap_rlSocket_setIPVersion}, + { "getIPVersion", _wrap_rlSocket_getIPVersion}, + { "sendProcessViewBrowserButtonEvent", _wrap_rlSocket_sendProcessViewBrowserButtonEvent}, + { "rlGetsockopt", _wrap_rlSocket_rlGetsockopt}, + { "rlSetsockopt", _wrap_rlSocket_rlSetsockopt}, + { "readHttpContentLength", _wrap_rlSocket_readHttpContentLength}, + {0,0} }; -static swig_lua_method swig_rlSocket_cls_methods[] = { +static swig_lua_method swig_rlSocket_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlSocket_cls_constants[] = { + +static swig_lua_attribute swig_rlSocket_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlSocket_Sf_SwigStatic_constants[]= { {SWIG_LUA_CONSTTAB_INT("SOCKET_ERR", rlSocket::SOCKET_ERR)}, {SWIG_LUA_CONSTTAB_INT("SETSOCKOPT_ERR", rlSocket::SETSOCKOPT_ERR)}, {SWIG_LUA_CONSTTAB_INT("LISTEN_ERR", rlSocket::LISTEN_ERR)}, @@ -6168,9 +7190,24 @@ static swig_lua_const_info swig_rlSocket_cls_constants[] = { {SWIG_LUA_CONSTTAB_INT("PORT_ERR", rlSocket::PORT_ERR)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_rlSocket_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlSocket_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSocket_Sf_SwigStatic = { + "rlSocket", + swig_rlSocket_Sf_SwigStatic_methods, + swig_rlSocket_Sf_SwigStatic_attributes, + swig_rlSocket_Sf_SwigStatic_constants, + swig_rlSocket_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlSocket_bases[] = {0}; static const char *swig_rlSocket_base_names[] = {0}; -static swig_lua_class _wrap_class_rlSocket = { "rlSocket", &SWIGTYPE_p_rlSocket,_wrap_new_rlSocket, swig_delete_rlSocket, swig_rlSocket_methods, swig_rlSocket_attributes, { "rlSocket", swig_rlSocket_cls_methods, swig_rlSocket_cls_attributes, swig_rlSocket_cls_constants }, swig_rlSocket_bases, swig_rlSocket_base_names }; +static swig_lua_class _wrap_class_rlSocket = { "rlSocket", "rlSocket", &SWIGTYPE_p_rlSocket,_proxy__wrap_new_rlSocket, swig_delete_rlSocket, swig_rlSocket_methods, swig_rlSocket_attributes, &swig_rlSocket_Sf_SwigStatic, swig_rlSocket_meta, swig_rlSocket_bases, swig_rlSocket_base_names }; static int _wrap_new_rl3964R__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -6830,39 +7867,63 @@ static void swig_delete_rl3964R(void *obj) { rl3964R *arg1 = (rl3964R *) obj; delete arg1; } -static swig_lua_method swig_rl3964R_methods[] = { - {"open", _wrap_rl3964R_open}, - {"close", _wrap_rl3964R_close}, - {"setReadCallback", _wrap_rl3964R_setReadCallback}, - {"write", _wrap_rl3964R_write}, - {"send", _wrap_rl3964R_send}, - {"receive", _wrap_rl3964R_receive}, - {"dprintf", _wrap_rl3964R_dprintf}, - {0,0} -}; +static int _proxy__wrap_new_rl3964R(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rl3964R); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rl3964R_attributes[] = { - { "receiver", _wrap_rl3964R_receiver_get, _wrap_rl3964R_receiver_set}, - { "tty", _wrap_rl3964R_tty_get, _wrap_rl3964R_tty_set}, - { "state", _wrap_rl3964R_state_get, _wrap_rl3964R_state_set}, - { "priority", _wrap_rl3964R_priority_get, _wrap_rl3964R_priority_set}, - { "run", _wrap_rl3964R_run_get, _wrap_rl3964R_run_set}, - { "debug", _wrap_rl3964R_debug_get, _wrap_rl3964R_debug_set}, + { "receiver", _wrap_rl3964R_receiver_get, _wrap_rl3964R_receiver_set }, + { "tty", _wrap_rl3964R_tty_get, _wrap_rl3964R_tty_set }, + { "state", _wrap_rl3964R_state_get, _wrap_rl3964R_state_set }, + { "priority", _wrap_rl3964R_priority_get, _wrap_rl3964R_priority_set }, + { "run", _wrap_rl3964R_run_get, _wrap_rl3964R_run_set }, + { "debug", _wrap_rl3964R_debug_get, _wrap_rl3964R_debug_set }, {0,0,0} }; -static swig_lua_attribute swig_rl3964R_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rl3964R_methods[]= { + { "open", _wrap_rl3964R_open}, + { "close", _wrap_rl3964R_close}, + { "setReadCallback", _wrap_rl3964R_setReadCallback}, + { "write", _wrap_rl3964R_write}, + { "send", _wrap_rl3964R_send}, + { "receive", _wrap_rl3964R_receive}, + { "dprintf", _wrap_rl3964R_dprintf}, + {0,0} }; -static swig_lua_method swig_rl3964R_cls_methods[] = { +static swig_lua_method swig_rl3964R_meta[] = { {0,0} }; -static swig_lua_const_info swig_rl3964R_cls_constants[] = { + +static swig_lua_attribute swig_rl3964R_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rl3964R_Sf_SwigStatic_constants[]= { {SWIG_LUA_CONSTTAB_INT("highPriority", rl3964R::highPriority)}, {SWIG_LUA_CONSTTAB_INT("lowPriority", rl3964R::lowPriority)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_rl3964R_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rl3964R_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rl3964R_Sf_SwigStatic = { + "rl3964R", + swig_rl3964R_Sf_SwigStatic_methods, + swig_rl3964R_Sf_SwigStatic_attributes, + swig_rl3964R_Sf_SwigStatic_constants, + swig_rl3964R_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rl3964R_bases[] = {0}; static const char *swig_rl3964R_base_names[] = {0}; -static swig_lua_class _wrap_class_rl3964R = { "rl3964R", &SWIGTYPE_p_rl3964R,_wrap_new_rl3964R, swig_delete_rl3964R, swig_rl3964R_methods, swig_rl3964R_attributes, { "rl3964R", swig_rl3964R_cls_methods, swig_rl3964R_cls_attributes, swig_rl3964R_cls_constants }, swig_rl3964R_bases, swig_rl3964R_base_names }; +static swig_lua_class _wrap_class_rl3964R = { "rl3964R", "rl3964R", &SWIGTYPE_p_rl3964R,_proxy__wrap_new_rl3964R, swig_delete_rl3964R, swig_rl3964R_methods, swig_rl3964R_attributes, &swig_rl3964R_Sf_SwigStatic, swig_rl3964R_meta, swig_rl3964R_bases, swig_rl3964R_base_names }; static int _wrap_new_rlCommandlineInterface(lua_State* L) { int SWIG_arg = 0; @@ -7357,29 +8418,53 @@ static void swig_delete_rlCommandlineInterface(void *obj) { rlCommandlineInterface *arg1 = (rlCommandlineInterface *) obj; delete arg1; } -static swig_lua_method swig_rlCommandlineInterface_methods[] = { - {"start", _wrap_rlCommandlineInterface_start}, - {"readLine", _wrap_rlCommandlineInterface_readLine}, - {"readBlock", _wrap_rlCommandlineInterface_readBlock}, - {"printf", _wrap_rlCommandlineInterface_printf}, - {"writeBlock", _wrap_rlCommandlineInterface_writeBlock}, - {0,0} -}; +static int _proxy__wrap_new_rlCommandlineInterface(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlCommandlineInterface); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlCommandlineInterface_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlCommandlineInterface_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlCommandlineInterface_methods[]= { + { "start", _wrap_rlCommandlineInterface_start}, + { "readLine", _wrap_rlCommandlineInterface_readLine}, + { "readBlock", _wrap_rlCommandlineInterface_readBlock}, + { "printf", _wrap_rlCommandlineInterface_printf}, + { "writeBlock", _wrap_rlCommandlineInterface_writeBlock}, + {0,0} }; -static swig_lua_method swig_rlCommandlineInterface_cls_methods[] = { +static swig_lua_method swig_rlCommandlineInterface_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlCommandlineInterface_cls_constants[] = { + +static swig_lua_attribute swig_rlCommandlineInterface_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlCommandlineInterface_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlCommandlineInterface_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlCommandlineInterface_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlCommandlineInterface_Sf_SwigStatic = { + "rlCommandlineInterface", + swig_rlCommandlineInterface_Sf_SwigStatic_methods, + swig_rlCommandlineInterface_Sf_SwigStatic_attributes, + swig_rlCommandlineInterface_Sf_SwigStatic_constants, + swig_rlCommandlineInterface_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlCommandlineInterface_bases[] = {0}; static const char *swig_rlCommandlineInterface_base_names[] = {0}; -static swig_lua_class _wrap_class_rlCommandlineInterface = { "rlCommandlineInterface", &SWIGTYPE_p_rlCommandlineInterface,_wrap_new_rlCommandlineInterface, swig_delete_rlCommandlineInterface, swig_rlCommandlineInterface_methods, swig_rlCommandlineInterface_attributes, { "rlCommandlineInterface", swig_rlCommandlineInterface_cls_methods, swig_rlCommandlineInterface_cls_attributes, swig_rlCommandlineInterface_cls_constants }, swig_rlCommandlineInterface_bases, swig_rlCommandlineInterface_base_names }; +static swig_lua_class _wrap_class_rlCommandlineInterface = { "rlCommandlineInterface", "rlCommandlineInterface", &SWIGTYPE_p_rlCommandlineInterface,_proxy__wrap_new_rlCommandlineInterface, swig_delete_rlCommandlineInterface, swig_rlCommandlineInterface_methods, swig_rlCommandlineInterface_attributes, &swig_rlCommandlineInterface_Sf_SwigStatic, swig_rlCommandlineInterface_meta, swig_rlCommandlineInterface_bases, swig_rlCommandlineInterface_base_names }; static int _wrap_rlSetDebugPrintf(lua_State* L) { int SWIG_arg = 0; @@ -9049,39 +10134,63 @@ static void swig_delete_rlDataAcquisition(void *obj) { rlDataAcquisition *arg1 = (rlDataAcquisition *) obj; delete arg1; } -static swig_lua_method swig_rlDataAcquisition_methods[] = { - {"stringValue", _wrap_rlDataAcquisition_stringValue}, - {"intValue", _wrap_rlDataAcquisition_intValue}, - {"floatValue", _wrap_rlDataAcquisition_floatValue}, - {"writeStringValue", _wrap_rlDataAcquisition_writeStringValue}, - {"writeIntValue", _wrap_rlDataAcquisition_writeIntValue}, - {"writeFloatValue", _wrap_rlDataAcquisition_writeFloatValue}, - {"readErrorCount", _wrap_rlDataAcquisition_readErrorCount}, - {"writeErrorCount", _wrap_rlDataAcquisition_writeErrorCount}, - {"lifeCounter", _wrap_rlDataAcquisition_lifeCounter}, - {"firstVariable", _wrap_rlDataAcquisition_firstVariable}, - {"nextVariable", _wrap_rlDataAcquisition_nextVariable}, - {"shmStatus", _wrap_rlDataAcquisition_shmStatus}, - {"shmKey", _wrap_rlDataAcquisition_shmKey}, - {"shmId", _wrap_rlDataAcquisition_shmId}, - {0,0} -}; +static int _proxy__wrap_new_rlDataAcquisition(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlDataAcquisition); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlDataAcquisition_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlDataAcquisition_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlDataAcquisition_methods[]= { + { "stringValue", _wrap_rlDataAcquisition_stringValue}, + { "intValue", _wrap_rlDataAcquisition_intValue}, + { "floatValue", _wrap_rlDataAcquisition_floatValue}, + { "writeStringValue", _wrap_rlDataAcquisition_writeStringValue}, + { "writeIntValue", _wrap_rlDataAcquisition_writeIntValue}, + { "writeFloatValue", _wrap_rlDataAcquisition_writeFloatValue}, + { "readErrorCount", _wrap_rlDataAcquisition_readErrorCount}, + { "writeErrorCount", _wrap_rlDataAcquisition_writeErrorCount}, + { "lifeCounter", _wrap_rlDataAcquisition_lifeCounter}, + { "firstVariable", _wrap_rlDataAcquisition_firstVariable}, + { "nextVariable", _wrap_rlDataAcquisition_nextVariable}, + { "shmStatus", _wrap_rlDataAcquisition_shmStatus}, + { "shmKey", _wrap_rlDataAcquisition_shmKey}, + { "shmId", _wrap_rlDataAcquisition_shmId}, + {0,0} }; -static swig_lua_method swig_rlDataAcquisition_cls_methods[] = { +static swig_lua_method swig_rlDataAcquisition_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlDataAcquisition_cls_constants[] = { + +static swig_lua_attribute swig_rlDataAcquisition_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlDataAcquisition_Sf_SwigStatic_constants[]= { {SWIG_LUA_CONSTTAB_INT("DAQ_ERROR", rlDataAcquisition::DAQ_ERROR)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_rlDataAcquisition_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlDataAcquisition_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlDataAcquisition_Sf_SwigStatic = { + "rlDataAcquisition", + swig_rlDataAcquisition_Sf_SwigStatic_methods, + swig_rlDataAcquisition_Sf_SwigStatic_attributes, + swig_rlDataAcquisition_Sf_SwigStatic_constants, + swig_rlDataAcquisition_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlDataAcquisition_bases[] = {0}; static const char *swig_rlDataAcquisition_base_names[] = {0}; -static swig_lua_class _wrap_class_rlDataAcquisition = { "rlDataAcquisition", &SWIGTYPE_p_rlDataAcquisition,_wrap_new_rlDataAcquisition, swig_delete_rlDataAcquisition, swig_rlDataAcquisition_methods, swig_rlDataAcquisition_attributes, { "rlDataAcquisition", swig_rlDataAcquisition_cls_methods, swig_rlDataAcquisition_cls_attributes, swig_rlDataAcquisition_cls_constants }, swig_rlDataAcquisition_bases, swig_rlDataAcquisition_base_names }; +static swig_lua_class _wrap_class_rlDataAcquisition = { "rlDataAcquisition", "rlDataAcquisition", &SWIGTYPE_p_rlDataAcquisition,_proxy__wrap_new_rlDataAcquisition, swig_delete_rlDataAcquisition, swig_rlDataAcquisition_methods, swig_rlDataAcquisition_attributes, &swig_rlDataAcquisition_Sf_SwigStatic, swig_rlDataAcquisition_meta, swig_rlDataAcquisition_bases, swig_rlDataAcquisition_base_names }; static int _wrap_new_rlDataAcquisitionProvider__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -9689,42 +10798,66 @@ static void swig_delete_rlDataAcquisitionProvider(void *obj) { rlDataAcquisitionProvider *arg1 = (rlDataAcquisitionProvider *) obj; delete arg1; } -static swig_lua_method swig_rlDataAcquisitionProvider_methods[] = { - {"readItemList", _wrap_rlDataAcquisitionProvider_readItemList}, - {"firstItem", _wrap_rlDataAcquisitionProvider_firstItem}, - {"nextItem", _wrap_rlDataAcquisitionProvider_nextItem}, - {"stringValue", _wrap_rlDataAcquisitionProvider_stringValue}, - {"intValue", _wrap_rlDataAcquisitionProvider_intValue}, - {"floatValue", _wrap_rlDataAcquisitionProvider_floatValue}, - {"setStringValue", _wrap_rlDataAcquisitionProvider_setStringValue}, - {"setIntValue", _wrap_rlDataAcquisitionProvider_setIntValue}, - {"setFloatValue", _wrap_rlDataAcquisitionProvider_setFloatValue}, - {"readErrorCount", _wrap_rlDataAcquisitionProvider_readErrorCount}, - {"writeErrorCount", _wrap_rlDataAcquisitionProvider_writeErrorCount}, - {"lifeCounter", _wrap_rlDataAcquisitionProvider_lifeCounter}, - {"setReadErrorCount", _wrap_rlDataAcquisitionProvider_setReadErrorCount}, - {"setWriteErrorCount", _wrap_rlDataAcquisitionProvider_setWriteErrorCount}, - {"setLifeCounter", _wrap_rlDataAcquisitionProvider_setLifeCounter}, - {"shmStatus", _wrap_rlDataAcquisitionProvider_shmStatus}, - {"setAllowAddValues", _wrap_rlDataAcquisitionProvider_setAllowAddValues}, - {0,0} -}; +static int _proxy__wrap_new_rlDataAcquisitionProvider(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlDataAcquisitionProvider); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlDataAcquisitionProvider_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlDataAcquisitionProvider_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlDataAcquisitionProvider_methods[]= { + { "readItemList", _wrap_rlDataAcquisitionProvider_readItemList}, + { "firstItem", _wrap_rlDataAcquisitionProvider_firstItem}, + { "nextItem", _wrap_rlDataAcquisitionProvider_nextItem}, + { "stringValue", _wrap_rlDataAcquisitionProvider_stringValue}, + { "intValue", _wrap_rlDataAcquisitionProvider_intValue}, + { "floatValue", _wrap_rlDataAcquisitionProvider_floatValue}, + { "setStringValue", _wrap_rlDataAcquisitionProvider_setStringValue}, + { "setIntValue", _wrap_rlDataAcquisitionProvider_setIntValue}, + { "setFloatValue", _wrap_rlDataAcquisitionProvider_setFloatValue}, + { "readErrorCount", _wrap_rlDataAcquisitionProvider_readErrorCount}, + { "writeErrorCount", _wrap_rlDataAcquisitionProvider_writeErrorCount}, + { "lifeCounter", _wrap_rlDataAcquisitionProvider_lifeCounter}, + { "setReadErrorCount", _wrap_rlDataAcquisitionProvider_setReadErrorCount}, + { "setWriteErrorCount", _wrap_rlDataAcquisitionProvider_setWriteErrorCount}, + { "setLifeCounter", _wrap_rlDataAcquisitionProvider_setLifeCounter}, + { "shmStatus", _wrap_rlDataAcquisitionProvider_shmStatus}, + { "setAllowAddValues", _wrap_rlDataAcquisitionProvider_setAllowAddValues}, + {0,0} }; -static swig_lua_method swig_rlDataAcquisitionProvider_cls_methods[] = { +static swig_lua_method swig_rlDataAcquisitionProvider_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlDataAcquisitionProvider_cls_constants[] = { + +static swig_lua_attribute swig_rlDataAcquisitionProvider_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlDataAcquisitionProvider_Sf_SwigStatic_constants[]= { {SWIG_LUA_CONSTTAB_INT("DAQ_PROVIDER_ERROR", rlDataAcquisitionProvider::DAQ_PROVIDER_ERROR)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_rlDataAcquisitionProvider_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlDataAcquisitionProvider_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlDataAcquisitionProvider_Sf_SwigStatic = { + "rlDataAcquisitionProvider", + swig_rlDataAcquisitionProvider_Sf_SwigStatic_methods, + swig_rlDataAcquisitionProvider_Sf_SwigStatic_attributes, + swig_rlDataAcquisitionProvider_Sf_SwigStatic_constants, + swig_rlDataAcquisitionProvider_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlDataAcquisitionProvider_bases[] = {0}; static const char *swig_rlDataAcquisitionProvider_base_names[] = {0}; -static swig_lua_class _wrap_class_rlDataAcquisitionProvider = { "rlDataAcquisitionProvider", &SWIGTYPE_p_rlDataAcquisitionProvider,_wrap_new_rlDataAcquisitionProvider, swig_delete_rlDataAcquisitionProvider, swig_rlDataAcquisitionProvider_methods, swig_rlDataAcquisitionProvider_attributes, { "rlDataAcquisitionProvider", swig_rlDataAcquisitionProvider_cls_methods, swig_rlDataAcquisitionProvider_cls_attributes, swig_rlDataAcquisitionProvider_cls_constants }, swig_rlDataAcquisitionProvider_bases, swig_rlDataAcquisitionProvider_base_names }; +static swig_lua_class _wrap_class_rlDataAcquisitionProvider = { "rlDataAcquisitionProvider", "rlDataAcquisitionProvider", &SWIGTYPE_p_rlDataAcquisitionProvider,_proxy__wrap_new_rlDataAcquisitionProvider, swig_delete_rlDataAcquisitionProvider, swig_rlDataAcquisitionProvider_methods, swig_rlDataAcquisitionProvider_attributes, &swig_rlDataAcquisitionProvider_Sf_SwigStatic, swig_rlDataAcquisitionProvider_meta, swig_rlDataAcquisitionProvider_bases, swig_rlDataAcquisitionProvider_base_names }; static int _wrap_new_rlDataProvider__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -10316,39 +11449,63 @@ static void swig_delete_rlDataProvider(void *obj) { rlDataProvider *arg1 = (rlDataProvider *) obj; delete arg1; } -static swig_lua_method swig_rlDataProvider_methods[] = { - {"getInt", _wrap_rlDataProvider_getInt}, - {"getFloat", _wrap_rlDataProvider_getFloat}, - {"getIntArray", _wrap_rlDataProvider_getIntArray}, - {"getFloatArray", _wrap_rlDataProvider_getFloatArray}, - {"getString", _wrap_rlDataProvider_getString}, - {"setInt", _wrap_rlDataProvider_setInt}, - {"setFloat", _wrap_rlDataProvider_setFloat}, - {"setIntArray", _wrap_rlDataProvider_setIntArray}, - {"setFloatArray", _wrap_rlDataProvider_setFloatArray}, - {"setString", _wrap_rlDataProvider_setString}, - {"getIntAndReset", _wrap_rlDataProvider_getIntAndReset}, - {"setIntAndWaitForReset", _wrap_rlDataProvider_setIntAndWaitForReset}, - {"setInt0Semaphore", _wrap_rlDataProvider_setInt0Semaphore}, - {"getInt0Semaphore", _wrap_rlDataProvider_getInt0Semaphore}, - {"run", _wrap_rlDataProvider_run}, - {0,0} -}; +static int _proxy__wrap_new_rlDataProvider(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlDataProvider); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlDataProvider_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlDataProvider_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlDataProvider_methods[]= { + { "getInt", _wrap_rlDataProvider_getInt}, + { "getFloat", _wrap_rlDataProvider_getFloat}, + { "getIntArray", _wrap_rlDataProvider_getIntArray}, + { "getFloatArray", _wrap_rlDataProvider_getFloatArray}, + { "getString", _wrap_rlDataProvider_getString}, + { "setInt", _wrap_rlDataProvider_setInt}, + { "setFloat", _wrap_rlDataProvider_setFloat}, + { "setIntArray", _wrap_rlDataProvider_setIntArray}, + { "setFloatArray", _wrap_rlDataProvider_setFloatArray}, + { "setString", _wrap_rlDataProvider_setString}, + { "getIntAndReset", _wrap_rlDataProvider_getIntAndReset}, + { "setIntAndWaitForReset", _wrap_rlDataProvider_setIntAndWaitForReset}, + { "setInt0Semaphore", _wrap_rlDataProvider_setInt0Semaphore}, + { "getInt0Semaphore", _wrap_rlDataProvider_getInt0Semaphore}, + { "run", _wrap_rlDataProvider_run}, + {0,0} }; -static swig_lua_method swig_rlDataProvider_cls_methods[] = { +static swig_lua_method swig_rlDataProvider_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlDataProvider_cls_constants[] = { + +static swig_lua_attribute swig_rlDataProvider_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlDataProvider_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlDataProvider_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlDataProvider_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlDataProvider_Sf_SwigStatic = { + "rlDataProvider", + swig_rlDataProvider_Sf_SwigStatic_methods, + swig_rlDataProvider_Sf_SwigStatic_attributes, + swig_rlDataProvider_Sf_SwigStatic_constants, + swig_rlDataProvider_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlDataProvider_bases[] = {0}; static const char *swig_rlDataProvider_base_names[] = {0}; -static swig_lua_class _wrap_class_rlDataProvider = { "rlDataProvider", &SWIGTYPE_p_rlDataProvider,_wrap_new_rlDataProvider, swig_delete_rlDataProvider, swig_rlDataProvider_methods, swig_rlDataProvider_attributes, { "rlDataProvider", swig_rlDataProvider_cls_methods, swig_rlDataProvider_cls_attributes, swig_rlDataProvider_cls_constants }, swig_rlDataProvider_bases, swig_rlDataProvider_base_names }; +static swig_lua_class _wrap_class_rlDataProvider = { "rlDataProvider", "rlDataProvider", &SWIGTYPE_p_rlDataProvider,_proxy__wrap_new_rlDataProvider, swig_delete_rlDataProvider, swig_rlDataProvider_methods, swig_rlDataProvider_attributes, &swig_rlDataProvider_Sf_SwigStatic, swig_rlDataProvider_meta, swig_rlDataProvider_bases, swig_rlDataProvider_base_names }; static int _wrap_new_rlDataProviderClient(lua_State* L) { int SWIG_arg = 0; @@ -10897,37 +12054,61 @@ static void swig_delete_rlDataProviderClient(void *obj) { rlDataProviderClient *arg1 = (rlDataProviderClient *) obj; delete arg1; } -static swig_lua_method swig_rlDataProviderClient_methods[] = { - {"getInt", _wrap_rlDataProviderClient_getInt}, - {"getFloat", _wrap_rlDataProviderClient_getFloat}, - {"getIntArray", _wrap_rlDataProviderClient_getIntArray}, - {"getFloatArray", _wrap_rlDataProviderClient_getFloatArray}, - {"getString", _wrap_rlDataProviderClient_getString}, - {"setInt", _wrap_rlDataProviderClient_setInt}, - {"setFloat", _wrap_rlDataProviderClient_setFloat}, - {"setIntArray", _wrap_rlDataProviderClient_setIntArray}, - {"setFloatArray", _wrap_rlDataProviderClient_setFloatArray}, - {"setString", _wrap_rlDataProviderClient_setString}, - {"getIntAndReset", _wrap_rlDataProviderClient_getIntAndReset}, - {"setIntAndWaitForReset", _wrap_rlDataProviderClient_setIntAndWaitForReset}, - {"getInt0Semaphore", _wrap_rlDataProviderClient_getInt0Semaphore}, - {0,0} -}; +static int _proxy__wrap_new_rlDataProviderClient(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlDataProviderClient); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlDataProviderClient_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlDataProviderClient_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlDataProviderClient_methods[]= { + { "getInt", _wrap_rlDataProviderClient_getInt}, + { "getFloat", _wrap_rlDataProviderClient_getFloat}, + { "getIntArray", _wrap_rlDataProviderClient_getIntArray}, + { "getFloatArray", _wrap_rlDataProviderClient_getFloatArray}, + { "getString", _wrap_rlDataProviderClient_getString}, + { "setInt", _wrap_rlDataProviderClient_setInt}, + { "setFloat", _wrap_rlDataProviderClient_setFloat}, + { "setIntArray", _wrap_rlDataProviderClient_setIntArray}, + { "setFloatArray", _wrap_rlDataProviderClient_setFloatArray}, + { "setString", _wrap_rlDataProviderClient_setString}, + { "getIntAndReset", _wrap_rlDataProviderClient_getIntAndReset}, + { "setIntAndWaitForReset", _wrap_rlDataProviderClient_setIntAndWaitForReset}, + { "getInt0Semaphore", _wrap_rlDataProviderClient_getInt0Semaphore}, + {0,0} }; -static swig_lua_method swig_rlDataProviderClient_cls_methods[] = { +static swig_lua_method swig_rlDataProviderClient_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlDataProviderClient_cls_constants[] = { + +static swig_lua_attribute swig_rlDataProviderClient_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlDataProviderClient_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlDataProviderClient_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlDataProviderClient_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlDataProviderClient_Sf_SwigStatic = { + "rlDataProviderClient", + swig_rlDataProviderClient_Sf_SwigStatic_methods, + swig_rlDataProviderClient_Sf_SwigStatic_attributes, + swig_rlDataProviderClient_Sf_SwigStatic_constants, + swig_rlDataProviderClient_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlDataProviderClient_bases[] = {0}; static const char *swig_rlDataProviderClient_base_names[] = {0}; -static swig_lua_class _wrap_class_rlDataProviderClient = { "rlDataProviderClient", &SWIGTYPE_p_rlDataProviderClient,_wrap_new_rlDataProviderClient, swig_delete_rlDataProviderClient, swig_rlDataProviderClient_methods, swig_rlDataProviderClient_attributes, { "rlDataProviderClient", swig_rlDataProviderClient_cls_methods, swig_rlDataProviderClient_cls_attributes, swig_rlDataProviderClient_cls_constants }, swig_rlDataProviderClient_bases, swig_rlDataProviderClient_base_names }; +static swig_lua_class _wrap_class_rlDataProviderClient = { "rlDataProviderClient", "rlDataProviderClient", &SWIGTYPE_p_rlDataProviderClient,_proxy__wrap_new_rlDataProviderClient, swig_delete_rlDataProviderClient, swig_rlDataProviderClient_methods, swig_rlDataProviderClient_attributes, &swig_rlDataProviderClient_Sf_SwigStatic, swig_rlDataProviderClient_meta, swig_rlDataProviderClient_bases, swig_rlDataProviderClient_base_names }; static int _wrap_new_rlDataProviderThreads(lua_State* L) { int SWIG_arg = 0; @@ -11141,28 +12322,52 @@ static void swig_delete_rlDataProviderThreads(void *obj) { rlDataProviderThreads *arg1 = (rlDataProviderThreads *) obj; delete arg1; } -static swig_lua_method swig_rlDataProviderThreads_methods[] = { - {"start", _wrap_rlDataProviderThreads_start}, - {0,0} -}; +static int _proxy__wrap_new_rlDataProviderThreads(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlDataProviderThreads); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlDataProviderThreads_attributes[] = { - { "provider", _wrap_rlDataProviderThreads_provider_get, _wrap_rlDataProviderThreads_provider_set}, - { "thread", _wrap_rlDataProviderThreads_thread_get, _wrap_rlDataProviderThreads_thread_set}, - { "port", _wrap_rlDataProviderThreads_port_get, _wrap_rlDataProviderThreads_port_set}, + { "provider", _wrap_rlDataProviderThreads_provider_get, _wrap_rlDataProviderThreads_provider_set }, + { "thread", _wrap_rlDataProviderThreads_thread_get, _wrap_rlDataProviderThreads_thread_set }, + { "port", _wrap_rlDataProviderThreads_port_get, _wrap_rlDataProviderThreads_port_set }, {0,0,0} }; -static swig_lua_attribute swig_rlDataProviderThreads_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlDataProviderThreads_methods[]= { + { "start", _wrap_rlDataProviderThreads_start}, + {0,0} }; -static swig_lua_method swig_rlDataProviderThreads_cls_methods[] = { +static swig_lua_method swig_rlDataProviderThreads_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlDataProviderThreads_cls_constants[] = { + +static swig_lua_attribute swig_rlDataProviderThreads_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlDataProviderThreads_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlDataProviderThreads_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlDataProviderThreads_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlDataProviderThreads_Sf_SwigStatic = { + "rlDataProviderThreads", + swig_rlDataProviderThreads_Sf_SwigStatic_methods, + swig_rlDataProviderThreads_Sf_SwigStatic_attributes, + swig_rlDataProviderThreads_Sf_SwigStatic_constants, + swig_rlDataProviderThreads_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlDataProviderThreads_bases[] = {0}; static const char *swig_rlDataProviderThreads_base_names[] = {0}; -static swig_lua_class _wrap_class_rlDataProviderThreads = { "rlDataProviderThreads", &SWIGTYPE_p_rlDataProviderThreads,_wrap_new_rlDataProviderThreads, swig_delete_rlDataProviderThreads, swig_rlDataProviderThreads_methods, swig_rlDataProviderThreads_attributes, { "rlDataProviderThreads", swig_rlDataProviderThreads_cls_methods, swig_rlDataProviderThreads_cls_attributes, swig_rlDataProviderThreads_cls_constants }, swig_rlDataProviderThreads_bases, swig_rlDataProviderThreads_base_names }; +static swig_lua_class _wrap_class_rlDataProviderThreads = { "rlDataProviderThreads", "rlDataProviderThreads", &SWIGTYPE_p_rlDataProviderThreads,_proxy__wrap_new_rlDataProviderThreads, swig_delete_rlDataProviderThreads, swig_rlDataProviderThreads_methods, swig_rlDataProviderThreads_attributes, &swig_rlDataProviderThreads_Sf_SwigStatic, swig_rlDataProviderThreads_meta, swig_rlDataProviderThreads_bases, swig_rlDataProviderThreads_base_names }; static int _wrap_rlevent_name_get(lua_State* L) { int SWIG_arg = 0; @@ -11422,26 +12627,50 @@ static void swig_delete_rlEventLogServer(void *obj) { rlEventLogServer *arg1 = (rlEventLogServer *) obj; delete arg1; } -static swig_lua_method swig_rlEventLogServer_methods[] = { - {"getEvent", _wrap_rlEventLogServer_getEvent}, - {"putEvent", _wrap_rlEventLogServer_putEvent}, - {0,0} -}; +static int _proxy__wrap_new_rlEventLogServer(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlEventLogServer); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlEventLogServer_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlEventLogServer_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlEventLogServer_methods[]= { + { "getEvent", _wrap_rlEventLogServer_getEvent}, + { "putEvent", _wrap_rlEventLogServer_putEvent}, + {0,0} }; -static swig_lua_method swig_rlEventLogServer_cls_methods[] = { +static swig_lua_method swig_rlEventLogServer_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlEventLogServer_cls_constants[] = { + +static swig_lua_attribute swig_rlEventLogServer_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlEventLogServer_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlEventLogServer_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlEventLogServer_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlEventLogServer_Sf_SwigStatic = { + "rlEventLogServer", + swig_rlEventLogServer_Sf_SwigStatic_methods, + swig_rlEventLogServer_Sf_SwigStatic_attributes, + swig_rlEventLogServer_Sf_SwigStatic_constants, + swig_rlEventLogServer_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlEventLogServer_bases[] = {0}; static const char *swig_rlEventLogServer_base_names[] = {0}; -static swig_lua_class _wrap_class_rlEventLogServer = { "rlEventLogServer", &SWIGTYPE_p_rlEventLogServer,_wrap_new_rlEventLogServer, swig_delete_rlEventLogServer, swig_rlEventLogServer_methods, swig_rlEventLogServer_attributes, { "rlEventLogServer", swig_rlEventLogServer_cls_methods, swig_rlEventLogServer_cls_attributes, swig_rlEventLogServer_cls_constants }, swig_rlEventLogServer_bases, swig_rlEventLogServer_base_names }; +static swig_lua_class _wrap_class_rlEventLogServer = { "rlEventLogServer", "rlEventLogServer", &SWIGTYPE_p_rlEventLogServer,_proxy__wrap_new_rlEventLogServer, swig_delete_rlEventLogServer, swig_rlEventLogServer_methods, swig_rlEventLogServer_attributes, &swig_rlEventLogServer_Sf_SwigStatic, swig_rlEventLogServer_meta, swig_rlEventLogServer_bases, swig_rlEventLogServer_base_names }; static int _wrap_new_rlEventLogServerThreads(lua_State* L) { int SWIG_arg = 0; @@ -11575,27 +12804,51 @@ static void swig_delete_rlEventLogServerThreads(void *obj) { rlEventLogServerThreads *arg1 = (rlEventLogServerThreads *) obj; delete arg1; } -static swig_lua_method swig_rlEventLogServerThreads_methods[] = { - {"start", _wrap_rlEventLogServerThreads_start}, - {"getPort", _wrap_rlEventLogServerThreads_getPort}, - {0,0} -}; +static int _proxy__wrap_new_rlEventLogServerThreads(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlEventLogServerThreads); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlEventLogServerThreads_attributes[] = { - { "event_log_server", _wrap_rlEventLogServerThreads_event_log_server_get, _wrap_rlEventLogServerThreads_event_log_server_set}, + { "event_log_server", _wrap_rlEventLogServerThreads_event_log_server_get, _wrap_rlEventLogServerThreads_event_log_server_set }, {0,0,0} }; -static swig_lua_attribute swig_rlEventLogServerThreads_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlEventLogServerThreads_methods[]= { + { "start", _wrap_rlEventLogServerThreads_start}, + { "getPort", _wrap_rlEventLogServerThreads_getPort}, + {0,0} }; -static swig_lua_method swig_rlEventLogServerThreads_cls_methods[] = { +static swig_lua_method swig_rlEventLogServerThreads_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlEventLogServerThreads_cls_constants[] = { + +static swig_lua_attribute swig_rlEventLogServerThreads_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlEventLogServerThreads_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlEventLogServerThreads_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlEventLogServerThreads_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlEventLogServerThreads_Sf_SwigStatic = { + "rlEventLogServerThreads", + swig_rlEventLogServerThreads_Sf_SwigStatic_methods, + swig_rlEventLogServerThreads_Sf_SwigStatic_attributes, + swig_rlEventLogServerThreads_Sf_SwigStatic_constants, + swig_rlEventLogServerThreads_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlEventLogServerThreads_bases[] = {0}; static const char *swig_rlEventLogServerThreads_base_names[] = {0}; -static swig_lua_class _wrap_class_rlEventLogServerThreads = { "rlEventLogServerThreads", &SWIGTYPE_p_rlEventLogServerThreads,_wrap_new_rlEventLogServerThreads, swig_delete_rlEventLogServerThreads, swig_rlEventLogServerThreads_methods, swig_rlEventLogServerThreads_attributes, { "rlEventLogServerThreads", swig_rlEventLogServerThreads_cls_methods, swig_rlEventLogServerThreads_cls_attributes, swig_rlEventLogServerThreads_cls_constants }, swig_rlEventLogServerThreads_bases, swig_rlEventLogServerThreads_base_names }; +static swig_lua_class _wrap_class_rlEventLogServerThreads = { "rlEventLogServerThreads", "rlEventLogServerThreads", &SWIGTYPE_p_rlEventLogServerThreads,_proxy__wrap_new_rlEventLogServerThreads, swig_delete_rlEventLogServerThreads, swig_rlEventLogServerThreads_methods, swig_rlEventLogServerThreads_attributes, &swig_rlEventLogServerThreads_Sf_SwigStatic, swig_rlEventLogServerThreads_meta, swig_rlEventLogServerThreads_bases, swig_rlEventLogServerThreads_base_names }; static int _wrap_new_rlFifo__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -11802,33 +13055,57 @@ static void swig_delete_rlFifo(void *obj) { rlFifo *arg1 = (rlFifo *) obj; delete arg1; } -static swig_lua_method swig_rlFifo_methods[] = { - {"read", _wrap_rlFifo_read}, - {"poll", _wrap_rlFifo_poll}, - {"nmesAvailable", _wrap_rlFifo_nmesAvailable}, - {"write", _wrap_rlFifo_write}, - {"printf", _wrap_rlFifo_printf}, - {0,0} -}; +static int _proxy__wrap_new_rlFifo(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlFifo); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlFifo_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlFifo_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlFifo_methods[]= { + { "read", _wrap_rlFifo_read}, + { "poll", _wrap_rlFifo_poll}, + { "nmesAvailable", _wrap_rlFifo_nmesAvailable}, + { "write", _wrap_rlFifo_write}, + { "printf", _wrap_rlFifo_printf}, + {0,0} }; -static swig_lua_method swig_rlFifo_cls_methods[] = { +static swig_lua_method swig_rlFifo_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlFifo_cls_constants[] = { + +static swig_lua_attribute swig_rlFifo_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlFifo_Sf_SwigStatic_constants[]= { {SWIG_LUA_CONSTTAB_INT("DATA_AVAILABLE", rlFifo::DATA_AVAILABLE)}, {SWIG_LUA_CONSTTAB_INT("NO_DATA_AVAILABLE", rlFifo::NO_DATA_AVAILABLE)}, {SWIG_LUA_CONSTTAB_INT("MESSAGE_TO_BIG", rlFifo::MESSAGE_TO_BIG)}, {SWIG_LUA_CONSTTAB_INT("FIFO_FULL", rlFifo::FIFO_FULL)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_rlFifo_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlFifo_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlFifo_Sf_SwigStatic = { + "rlFifo", + swig_rlFifo_Sf_SwigStatic_methods, + swig_rlFifo_Sf_SwigStatic_attributes, + swig_rlFifo_Sf_SwigStatic_constants, + swig_rlFifo_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlFifo_bases[] = {0}; static const char *swig_rlFifo_base_names[] = {0}; -static swig_lua_class _wrap_class_rlFifo = { "rlFifo", &SWIGTYPE_p_rlFifo,_wrap_new_rlFifo, swig_delete_rlFifo, swig_rlFifo_methods, swig_rlFifo_attributes, { "rlFifo", swig_rlFifo_cls_methods, swig_rlFifo_cls_attributes, swig_rlFifo_cls_constants }, swig_rlFifo_bases, swig_rlFifo_base_names }; +static swig_lua_class _wrap_class_rlFifo = { "rlFifo", "rlFifo", &SWIGTYPE_p_rlFifo,_proxy__wrap_new_rlFifo, swig_delete_rlFifo, swig_rlFifo_methods, swig_rlFifo_attributes, &swig_rlFifo_Sf_SwigStatic, swig_rlFifo_meta, swig_rlFifo_bases, swig_rlFifo_base_names }; static int _wrap_rlFileLines_line_set(lua_State* L) { int SWIG_arg = 0; @@ -11963,26 +13240,50 @@ static void swig_delete_rlFileLines(void *obj) { _rlFileLines_ *arg1 = (_rlFileLines_ *) obj; delete arg1; } -static swig_lua_method swig__rlFileLines__methods[] = { +static int _proxy__wrap_new_rlFileLines(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlFileLines); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} +static swig_lua_attribute swig_rlFileLines_attributes[] = { + { "line", _wrap_rlFileLines_line_get, _wrap_rlFileLines_line_set }, + { "next", _wrap_rlFileLines_next_get, _wrap_rlFileLines_next_set }, + {0,0,0} +}; +static swig_lua_method swig_rlFileLines_methods[]= { {0,0} }; -static swig_lua_attribute swig__rlFileLines__attributes[] = { - { "line", _wrap_rlFileLines_line_get, _wrap_rlFileLines_line_set}, - { "next", _wrap_rlFileLines_next_get, _wrap_rlFileLines_next_set}, - {0,0,0} +static swig_lua_method swig_rlFileLines_meta[] = { + {0,0} }; -static swig_lua_attribute swig__rlFileLines__cls_attributes[] = { + +static swig_lua_attribute swig_rlFileLines_Sf_SwigStatic_attributes[] = { {0,0,0} }; -static swig_lua_method swig__rlFileLines__cls_methods[] = { +static swig_lua_const_info swig_rlFileLines_Sf_SwigStatic_constants[]= { + {0,0,0,0,0,0} +}; +static swig_lua_method swig_rlFileLines_Sf_SwigStatic_methods[]= { {0,0} }; -static swig_lua_const_info swig__rlFileLines__cls_constants[] = { - {0,0,0,0,0,0} +static swig_lua_class* swig_rlFileLines_Sf_SwigStatic_classes[]= { + 0 }; -static swig_lua_class *swig__rlFileLines__bases[] = {0}; -static const char *swig__rlFileLines__base_names[] = {0}; -static swig_lua_class _wrap_class__rlFileLines_ = { "rlFileLines", &SWIGTYPE_p__rlFileLines_,_wrap_new_rlFileLines, swig_delete_rlFileLines, swig__rlFileLines__methods, swig__rlFileLines__attributes, { "rlFileLines", swig__rlFileLines__cls_methods, swig__rlFileLines__cls_attributes, swig__rlFileLines__cls_constants }, swig__rlFileLines__bases, swig__rlFileLines__base_names }; + +static swig_lua_namespace swig_rlFileLines_Sf_SwigStatic = { + "rlFileLines", + swig_rlFileLines_Sf_SwigStatic_methods, + swig_rlFileLines_Sf_SwigStatic_attributes, + swig_rlFileLines_Sf_SwigStatic_constants, + swig_rlFileLines_Sf_SwigStatic_classes, + 0 +}; +static swig_lua_class *swig_rlFileLines_bases[] = {0}; +static const char *swig_rlFileLines_base_names[] = {0}; +static swig_lua_class _wrap_class_rlFileLines = { "rlFileLines", "rlFileLines", &SWIGTYPE_p__rlFileLines_,_proxy__wrap_new_rlFileLines, swig_delete_rlFileLines, swig_rlFileLines_methods, swig_rlFileLines_attributes, &swig_rlFileLines_Sf_SwigStatic, swig_rlFileLines_meta, swig_rlFileLines_bases, swig_rlFileLines_base_names }; static int _wrap_new_rlFileLoad(lua_State* L) { int SWIG_arg = 0; @@ -12160,30 +13461,54 @@ static void swig_delete_rlFileLoad(void *obj) { rlFileLoad *arg1 = (rlFileLoad *) obj; delete arg1; } -static swig_lua_method swig_rlFileLoad_methods[] = { - {"load", _wrap_rlFileLoad_load}, - {"unload", _wrap_rlFileLoad_unload}, - {"firstLine", _wrap_rlFileLoad_firstLine}, - {"nextLine", _wrap_rlFileLoad_nextLine}, - {"setDebug", _wrap_rlFileLoad_setDebug}, - {"text2rlstring", _wrap_rlFileLoad_text2rlstring}, - {0,0} -}; +static int _proxy__wrap_new_rlFileLoad(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlFileLoad); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlFileLoad_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlFileLoad_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlFileLoad_methods[]= { + { "load", _wrap_rlFileLoad_load}, + { "unload", _wrap_rlFileLoad_unload}, + { "firstLine", _wrap_rlFileLoad_firstLine}, + { "nextLine", _wrap_rlFileLoad_nextLine}, + { "setDebug", _wrap_rlFileLoad_setDebug}, + { "text2rlstring", _wrap_rlFileLoad_text2rlstring}, + {0,0} }; -static swig_lua_method swig_rlFileLoad_cls_methods[] = { +static swig_lua_method swig_rlFileLoad_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlFileLoad_cls_constants[] = { + +static swig_lua_attribute swig_rlFileLoad_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlFileLoad_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlFileLoad_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlFileLoad_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlFileLoad_Sf_SwigStatic = { + "rlFileLoad", + swig_rlFileLoad_Sf_SwigStatic_methods, + swig_rlFileLoad_Sf_SwigStatic_attributes, + swig_rlFileLoad_Sf_SwigStatic_constants, + swig_rlFileLoad_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlFileLoad_bases[] = {0}; static const char *swig_rlFileLoad_base_names[] = {0}; -static swig_lua_class _wrap_class_rlFileLoad = { "rlFileLoad", &SWIGTYPE_p_rlFileLoad,_wrap_new_rlFileLoad, swig_delete_rlFileLoad, swig_rlFileLoad_methods, swig_rlFileLoad_attributes, { "rlFileLoad", swig_rlFileLoad_cls_methods, swig_rlFileLoad_cls_attributes, swig_rlFileLoad_cls_constants }, swig_rlFileLoad_bases, swig_rlFileLoad_base_names }; +static swig_lua_class _wrap_class_rlFileLoad = { "rlFileLoad", "rlFileLoad", &SWIGTYPE_p_rlFileLoad,_proxy__wrap_new_rlFileLoad, swig_delete_rlFileLoad, swig_rlFileLoad_methods, swig_rlFileLoad_attributes, &swig_rlFileLoad_Sf_SwigStatic, swig_rlFileLoad_meta, swig_rlFileLoad_bases, swig_rlFileLoad_base_names }; static int _wrap_rlHistoryLogLine_next_set(lua_State* L) { int SWIG_arg = 0; @@ -12318,26 +13643,50 @@ static void swig_delete_rlHistoryLogLine(void *obj) { _rlHistoryLogLine_ *arg1 = (_rlHistoryLogLine_ *) obj; delete arg1; } -static swig_lua_method swig__rlHistoryLogLine__methods[] = { +static int _proxy__wrap_new_rlHistoryLogLine(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlHistoryLogLine); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} +static swig_lua_attribute swig_rlHistoryLogLine_attributes[] = { + { "next", _wrap_rlHistoryLogLine_next_get, _wrap_rlHistoryLogLine_next_set }, + { "line", _wrap_rlHistoryLogLine_line_get, _wrap_rlHistoryLogLine_line_set }, + {0,0,0} +}; +static swig_lua_method swig_rlHistoryLogLine_methods[]= { {0,0} }; -static swig_lua_attribute swig__rlHistoryLogLine__attributes[] = { - { "next", _wrap_rlHistoryLogLine_next_get, _wrap_rlHistoryLogLine_next_set}, - { "line", _wrap_rlHistoryLogLine_line_get, _wrap_rlHistoryLogLine_line_set}, - {0,0,0} +static swig_lua_method swig_rlHistoryLogLine_meta[] = { + {0,0} }; -static swig_lua_attribute swig__rlHistoryLogLine__cls_attributes[] = { + +static swig_lua_attribute swig_rlHistoryLogLine_Sf_SwigStatic_attributes[] = { {0,0,0} }; -static swig_lua_method swig__rlHistoryLogLine__cls_methods[] = { +static swig_lua_const_info swig_rlHistoryLogLine_Sf_SwigStatic_constants[]= { + {0,0,0,0,0,0} +}; +static swig_lua_method swig_rlHistoryLogLine_Sf_SwigStatic_methods[]= { {0,0} }; -static swig_lua_const_info swig__rlHistoryLogLine__cls_constants[] = { - {0,0,0,0,0,0} +static swig_lua_class* swig_rlHistoryLogLine_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlHistoryLogLine_Sf_SwigStatic = { + "rlHistoryLogLine", + swig_rlHistoryLogLine_Sf_SwigStatic_methods, + swig_rlHistoryLogLine_Sf_SwigStatic_attributes, + swig_rlHistoryLogLine_Sf_SwigStatic_constants, + swig_rlHistoryLogLine_Sf_SwigStatic_classes, + 0 }; -static swig_lua_class *swig__rlHistoryLogLine__bases[] = {0}; -static const char *swig__rlHistoryLogLine__base_names[] = {0}; -static swig_lua_class _wrap_class__rlHistoryLogLine_ = { "rlHistoryLogLine", &SWIGTYPE_p__rlHistoryLogLine_,_wrap_new_rlHistoryLogLine, swig_delete_rlHistoryLogLine, swig__rlHistoryLogLine__methods, swig__rlHistoryLogLine__attributes, { "rlHistoryLogLine", swig__rlHistoryLogLine__cls_methods, swig__rlHistoryLogLine__cls_attributes, swig__rlHistoryLogLine__cls_constants }, swig__rlHistoryLogLine__bases, swig__rlHistoryLogLine__base_names }; +static swig_lua_class *swig_rlHistoryLogLine_bases[] = {0}; +static const char *swig_rlHistoryLogLine_base_names[] = {0}; +static swig_lua_class _wrap_class_rlHistoryLogLine = { "rlHistoryLogLine", "rlHistoryLogLine", &SWIGTYPE_p__rlHistoryLogLine_,_proxy__wrap_new_rlHistoryLogLine, swig_delete_rlHistoryLogLine, swig_rlHistoryLogLine_methods, swig_rlHistoryLogLine_attributes, &swig_rlHistoryLogLine_Sf_SwigStatic, swig_rlHistoryLogLine_meta, swig_rlHistoryLogLine_bases, swig_rlHistoryLogLine_base_names }; static int _wrap_new_rlHistoryLogger__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -12620,29 +13969,53 @@ static void swig_delete_rlHistoryLogger(void *obj) { rlHistoryLogger *arg1 = (rlHistoryLogger *) obj; delete arg1; } -static swig_lua_method swig_rlHistoryLogger_methods[] = { - {"pushLine", _wrap_rlHistoryLogger_pushLine}, - {"firstLine", _wrap_rlHistoryLogger_firstLine}, - {"nextLine", _wrap_rlHistoryLogger_nextLine}, - {0,0} -}; +static int _proxy__wrap_new_rlHistoryLogger(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlHistoryLogger); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlHistoryLogger_attributes[] = { - { "mutex", _wrap_rlHistoryLogger_mutex_get, _wrap_rlHistoryLogger_mutex_set}, - { "debug", _wrap_rlHistoryLogger_debug_get, _wrap_rlHistoryLogger_debug_set}, + { "mutex", _wrap_rlHistoryLogger_mutex_get, _wrap_rlHistoryLogger_mutex_set }, + { "debug", _wrap_rlHistoryLogger_debug_get, _wrap_rlHistoryLogger_debug_set }, {0,0,0} }; -static swig_lua_attribute swig_rlHistoryLogger_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlHistoryLogger_methods[]= { + { "pushLine", _wrap_rlHistoryLogger_pushLine}, + { "firstLine", _wrap_rlHistoryLogger_firstLine}, + { "nextLine", _wrap_rlHistoryLogger_nextLine}, + {0,0} }; -static swig_lua_method swig_rlHistoryLogger_cls_methods[] = { +static swig_lua_method swig_rlHistoryLogger_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlHistoryLogger_cls_constants[] = { + +static swig_lua_attribute swig_rlHistoryLogger_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlHistoryLogger_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlHistoryLogger_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlHistoryLogger_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlHistoryLogger_Sf_SwigStatic = { + "rlHistoryLogger", + swig_rlHistoryLogger_Sf_SwigStatic_methods, + swig_rlHistoryLogger_Sf_SwigStatic_attributes, + swig_rlHistoryLogger_Sf_SwigStatic_constants, + swig_rlHistoryLogger_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlHistoryLogger_bases[] = {0}; static const char *swig_rlHistoryLogger_base_names[] = {0}; -static swig_lua_class _wrap_class_rlHistoryLogger = { "rlHistoryLogger", &SWIGTYPE_p_rlHistoryLogger,_wrap_new_rlHistoryLogger, swig_delete_rlHistoryLogger, swig_rlHistoryLogger_methods, swig_rlHistoryLogger_attributes, { "rlHistoryLogger", swig_rlHistoryLogger_cls_methods, swig_rlHistoryLogger_cls_attributes, swig_rlHistoryLogger_cls_constants }, swig_rlHistoryLogger_bases, swig_rlHistoryLogger_base_names }; +static swig_lua_class _wrap_class_rlHistoryLogger = { "rlHistoryLogger", "rlHistoryLogger", &SWIGTYPE_p_rlHistoryLogger,_proxy__wrap_new_rlHistoryLogger, swig_delete_rlHistoryLogger, swig_rlHistoryLogger_methods, swig_rlHistoryLogger_attributes, &swig_rlHistoryLogger_Sf_SwigStatic, swig_rlHistoryLogger_meta, swig_rlHistoryLogger_bases, swig_rlHistoryLogger_base_names }; static int _wrap_rlHistoryReaderLine_next_set(lua_State* L) { int SWIG_arg = 0; @@ -12777,28 +14150,73 @@ static void swig_delete_rlHistoryReaderLine(void *obj) { _rlHistoryReaderLine_ *arg1 = (_rlHistoryReaderLine_ *) obj; delete arg1; } -static swig_lua_method swig__rlHistoryReaderLine__methods[] = { +static int _proxy__wrap_new_rlHistoryReaderLine(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlHistoryReaderLine); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} +static swig_lua_attribute swig_rlHistoryReaderLine_attributes[] = { + { "next", _wrap_rlHistoryReaderLine_next_get, _wrap_rlHistoryReaderLine_next_set }, + { "line", _wrap_rlHistoryReaderLine_line_get, _wrap_rlHistoryReaderLine_line_set }, + {0,0,0} +}; +static swig_lua_method swig_rlHistoryReaderLine_methods[]= { {0,0} }; -static swig_lua_attribute swig__rlHistoryReaderLine__attributes[] = { - { "next", _wrap_rlHistoryReaderLine_next_get, _wrap_rlHistoryReaderLine_next_set}, - { "line", _wrap_rlHistoryReaderLine_line_get, _wrap_rlHistoryReaderLine_line_set}, - {0,0,0} +static swig_lua_method swig_rlHistoryReaderLine_meta[] = { + {0,0} }; -static swig_lua_attribute swig__rlHistoryReaderLine__cls_attributes[] = { + +static swig_lua_attribute swig_rlHistoryReaderLine_Sf_SwigStatic_attributes[] = { {0,0,0} }; -static swig_lua_method swig__rlHistoryReaderLine__cls_methods[] = { +static swig_lua_const_info swig_rlHistoryReaderLine_Sf_SwigStatic_constants[]= { + {0,0,0,0,0,0} +}; +static swig_lua_method swig_rlHistoryReaderLine_Sf_SwigStatic_methods[]= { {0,0} }; -static swig_lua_const_info swig__rlHistoryReaderLine__cls_constants[] = { - {0,0,0,0,0,0} +static swig_lua_class* swig_rlHistoryReaderLine_Sf_SwigStatic_classes[]= { + 0 }; -static swig_lua_class *swig__rlHistoryReaderLine__bases[] = {0}; -static const char *swig__rlHistoryReaderLine__base_names[] = {0}; -static swig_lua_class _wrap_class__rlHistoryReaderLine_ = { "rlHistoryReaderLine", &SWIGTYPE_p__rlHistoryReaderLine_,_wrap_new_rlHistoryReaderLine, swig_delete_rlHistoryReaderLine, swig__rlHistoryReaderLine__methods, swig__rlHistoryReaderLine__attributes, { "rlHistoryReaderLine", swig__rlHistoryReaderLine__cls_methods, swig__rlHistoryReaderLine__cls_attributes, swig__rlHistoryReaderLine__cls_constants }, swig__rlHistoryReaderLine__bases, swig__rlHistoryReaderLine__base_names }; -static int _wrap_new_rlHistoryReader(lua_State* L) { +static swig_lua_namespace swig_rlHistoryReaderLine_Sf_SwigStatic = { + "rlHistoryReaderLine", + swig_rlHistoryReaderLine_Sf_SwigStatic_methods, + swig_rlHistoryReaderLine_Sf_SwigStatic_attributes, + swig_rlHistoryReaderLine_Sf_SwigStatic_constants, + swig_rlHistoryReaderLine_Sf_SwigStatic_classes, + 0 +}; +static swig_lua_class *swig_rlHistoryReaderLine_bases[] = {0}; +static const char *swig_rlHistoryReaderLine_base_names[] = {0}; +static swig_lua_class _wrap_class_rlHistoryReaderLine = { "rlHistoryReaderLine", "rlHistoryReaderLine", &SWIGTYPE_p__rlHistoryReaderLine_,_proxy__wrap_new_rlHistoryReaderLine, swig_delete_rlHistoryReaderLine, swig_rlHistoryReaderLine_methods, swig_rlHistoryReaderLine_attributes, &swig_rlHistoryReaderLine_Sf_SwigStatic, swig_rlHistoryReaderLine_meta, swig_rlHistoryReaderLine_bases, swig_rlHistoryReaderLine_base_names }; + +static int _wrap_new_rlHistoryReader__SWIG_0(lua_State* L) { + int SWIG_arg = 0; + unsigned int arg1 ; + rlHistoryReader *result = 0 ; + + SWIG_check_num_args("rlHistoryReader::rlHistoryReader",1,1) + if(!lua_isnumber(L,1)) SWIG_fail_arg("rlHistoryReader::rlHistoryReader",1,"unsigned int"); + SWIG_contract_assert((lua_tonumber(L,1)>=0),"number must not be negative") + arg1 = (unsigned int)lua_tonumber(L, 1); + result = (rlHistoryReader *)new rlHistoryReader(arg1); + SWIG_NewPointerObj(L,result,SWIGTYPE_p_rlHistoryReader,1); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_new_rlHistoryReader__SWIG_1(lua_State* L) { int SWIG_arg = 0; rlHistoryReader *result = 0 ; @@ -12815,6 +14233,34 @@ static int _wrap_new_rlHistoryReader(lua_State* L) { } +static int _wrap_new_rlHistoryReader(lua_State* L) { + int argc; + int argv[2]={ + 1,2 + }; + + argc = lua_gettop(L); + if (argc == 0) { + return _wrap_new_rlHistoryReader__SWIG_1(L); + } + if (argc == 1) { + int _v; + { + _v = lua_isnumber(L,argv[0]); + } + if (_v) { + return _wrap_new_rlHistoryReader__SWIG_0(L); + } + } + + SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'new_rlHistoryReader'\n" + " Possible C/C++ prototypes are:\n" + " rlHistoryReader::rlHistoryReader(unsigned int)\n" + " rlHistoryReader::rlHistoryReader()\n"); + lua_error(L);return 0; +} + + static int _wrap_rlHistoryReader_read(lua_State* L) { int SWIG_arg = 0; rlHistoryReader *arg1 = (rlHistoryReader *) 0 ; @@ -13016,30 +14462,54 @@ static void swig_delete_rlHistoryReader(void *obj) { rlHistoryReader *arg1 = (rlHistoryReader *) obj; delete arg1; } -static swig_lua_method swig_rlHistoryReader_methods[] = { - {"read", _wrap_rlHistoryReader_read}, - {"firstLine", _wrap_rlHistoryReader_firstLine}, - {"nextLine", _wrap_rlHistoryReader_nextLine}, - {"clean", _wrap_rlHistoryReader_clean}, - {"cat", _wrap_rlHistoryReader_cat}, - {0,0} -}; +static int _proxy__wrap_new_rlHistoryReader(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlHistoryReader); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlHistoryReader_attributes[] = { - { "debug", _wrap_rlHistoryReader_debug_get, _wrap_rlHistoryReader_debug_set}, + { "debug", _wrap_rlHistoryReader_debug_get, _wrap_rlHistoryReader_debug_set }, {0,0,0} }; -static swig_lua_attribute swig_rlHistoryReader_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlHistoryReader_methods[]= { + { "read", _wrap_rlHistoryReader_read}, + { "firstLine", _wrap_rlHistoryReader_firstLine}, + { "nextLine", _wrap_rlHistoryReader_nextLine}, + { "clean", _wrap_rlHistoryReader_clean}, + { "cat", _wrap_rlHistoryReader_cat}, + {0,0} }; -static swig_lua_method swig_rlHistoryReader_cls_methods[] = { +static swig_lua_method swig_rlHistoryReader_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlHistoryReader_cls_constants[] = { + +static swig_lua_attribute swig_rlHistoryReader_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlHistoryReader_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlHistoryReader_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlHistoryReader_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlHistoryReader_Sf_SwigStatic = { + "rlHistoryReader", + swig_rlHistoryReader_Sf_SwigStatic_methods, + swig_rlHistoryReader_Sf_SwigStatic_attributes, + swig_rlHistoryReader_Sf_SwigStatic_constants, + swig_rlHistoryReader_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlHistoryReader_bases[] = {0}; static const char *swig_rlHistoryReader_base_names[] = {0}; -static swig_lua_class _wrap_class_rlHistoryReader = { "rlHistoryReader", &SWIGTYPE_p_rlHistoryReader,_wrap_new_rlHistoryReader, swig_delete_rlHistoryReader, swig_rlHistoryReader_methods, swig_rlHistoryReader_attributes, { "rlHistoryReader", swig_rlHistoryReader_cls_methods, swig_rlHistoryReader_cls_attributes, swig_rlHistoryReader_cls_constants }, swig_rlHistoryReader_bases, swig_rlHistoryReader_base_names }; +static swig_lua_class _wrap_class_rlHistoryReader = { "rlHistoryReader", "rlHistoryReader", &SWIGTYPE_p_rlHistoryReader,_proxy__wrap_new_rlHistoryReader, swig_delete_rlHistoryReader, swig_rlHistoryReader_methods, swig_rlHistoryReader_attributes, &swig_rlHistoryReader_Sf_SwigStatic, swig_rlHistoryReader_meta, swig_rlHistoryReader_bases, swig_rlHistoryReader_base_names }; static int _wrap_new_rlIniFile(lua_State* L) { int SWIG_arg = 0; @@ -13645,39 +15115,63 @@ static void swig_delete_rlIniFile(void *obj) { rlIniFile *arg1 = (rlIniFile *) obj; delete arg1; } -static swig_lua_method swig_rlIniFile_methods[] = { - {"read", _wrap_rlIniFile_read}, - {"write", _wrap_rlIniFile_write}, - {"filename", _wrap_rlIniFile_filename}, - {"text", _wrap_rlIniFile_text}, - {"setText", _wrap_rlIniFile_setText}, - {"printf", _wrap_rlIniFile_printf}, - {"remove", _wrap_rlIniFile_remove}, - {"firstSection", _wrap_rlIniFile_firstSection}, - {"nextSection", _wrap_rlIniFile_nextSection}, - {"firstName", _wrap_rlIniFile_firstName}, - {"nextName", _wrap_rlIniFile_nextName}, - {"setDefaultSection", _wrap_rlIniFile_setDefaultSection}, - {"defaultSection", _wrap_rlIniFile_defaultSection}, - {"i18n", _wrap_rlIniFile_i18n}, - {"tr", _wrap_rlIniFile_tr}, - {0,0} -}; +static int _proxy__wrap_new_rlIniFile(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlIniFile); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlIniFile_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlIniFile_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlIniFile_methods[]= { + { "read", _wrap_rlIniFile_read}, + { "write", _wrap_rlIniFile_write}, + { "filename", _wrap_rlIniFile_filename}, + { "text", _wrap_rlIniFile_text}, + { "setText", _wrap_rlIniFile_setText}, + { "printf", _wrap_rlIniFile_printf}, + { "remove", _wrap_rlIniFile_remove}, + { "firstSection", _wrap_rlIniFile_firstSection}, + { "nextSection", _wrap_rlIniFile_nextSection}, + { "firstName", _wrap_rlIniFile_firstName}, + { "nextName", _wrap_rlIniFile_nextName}, + { "setDefaultSection", _wrap_rlIniFile_setDefaultSection}, + { "defaultSection", _wrap_rlIniFile_defaultSection}, + { "i18n", _wrap_rlIniFile_i18n}, + { "tr", _wrap_rlIniFile_tr}, + {0,0} }; -static swig_lua_method swig_rlIniFile_cls_methods[] = { +static swig_lua_method swig_rlIniFile_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlIniFile_cls_constants[] = { + +static swig_lua_attribute swig_rlIniFile_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlIniFile_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlIniFile_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlIniFile_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlIniFile_Sf_SwigStatic = { + "rlIniFile", + swig_rlIniFile_Sf_SwigStatic_methods, + swig_rlIniFile_Sf_SwigStatic_attributes, + swig_rlIniFile_Sf_SwigStatic_constants, + swig_rlIniFile_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlIniFile_bases[] = {0}; static const char *swig_rlIniFile_base_names[] = {0}; -static swig_lua_class _wrap_class_rlIniFile = { "rlIniFile", &SWIGTYPE_p_rlIniFile,_wrap_new_rlIniFile, swig_delete_rlIniFile, swig_rlIniFile_methods, swig_rlIniFile_attributes, { "rlIniFile", swig_rlIniFile_cls_methods, swig_rlIniFile_cls_attributes, swig_rlIniFile_cls_constants }, swig_rlIniFile_bases, swig_rlIniFile_base_names }; +static swig_lua_class _wrap_class_rlIniFile = { "rlIniFile", "rlIniFile", &SWIGTYPE_p_rlIniFile,_proxy__wrap_new_rlIniFile, swig_delete_rlIniFile, swig_rlIniFile_methods, swig_rlIniFile_attributes, &swig_rlIniFile_Sf_SwigStatic, swig_rlIniFile_meta, swig_rlIniFile_bases, swig_rlIniFile_base_names }; static int _wrap_rlSetTranslator__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -13769,14 +15263,14 @@ static int _wrap_rltranslate__SWIG_0(lua_State* L) { SWIG_check_num_args("rltranslate",2,2) if(!SWIG_lua_isnilstring(L,1)) SWIG_fail_arg("rltranslate",1,"char const *"); - if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("rltranslate",2,"char const **"); + if(!SWIG_isptrtype(L,2)) SWIG_fail_arg("rltranslate",2,"char **"); arg1 = (char *)lua_tostring(L, 1); if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_p_char,0))){ SWIG_fail_ptr("rltranslate",2,SWIGTYPE_p_p_char); } - result = (char *)rltranslate((char const *)arg1,(char const **)arg2); + result = (char *)rltranslate((char const *)arg1,arg2); lua_pushstring(L,(const char *)result); SWIG_arg++; return SWIG_arg; @@ -13846,7 +15340,7 @@ static int _wrap_rltranslate(lua_State* L) { SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'rltranslate'\n" " Possible C/C++ prototypes are:\n" - " rltranslate(char const *,char const **)\n" + " rltranslate(char const *,char **)\n" " rltranslate(char const *)\n"); lua_error(L);return 0; } @@ -14166,28 +15660,52 @@ static void swig_delete_rlInterpreter(void *obj) { rlInterpreter *arg1 = (rlInterpreter *) obj; delete arg1; } -static swig_lua_method swig_rlInterpreter_methods[] = { - {"isCommand", _wrap_rlInterpreter_isCommand}, - {"copyStringParam", _wrap_rlInterpreter_copyStringParam}, - {"maxchar", _wrap_rlInterpreter_maxchar}, - {0,0} -}; +static int _proxy__wrap_new_rlInterpreter(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlInterpreter); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlInterpreter_attributes[] = { - { "line", _wrap_rlInterpreter_line_get, _wrap_rlInterpreter_line_set}, + { "line", _wrap_rlInterpreter_line_get, _wrap_rlInterpreter_line_set }, {0,0,0} }; -static swig_lua_attribute swig_rlInterpreter_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlInterpreter_methods[]= { + { "isCommand", _wrap_rlInterpreter_isCommand}, + { "copyStringParam", _wrap_rlInterpreter_copyStringParam}, + { "maxchar", _wrap_rlInterpreter_maxchar}, + {0,0} }; -static swig_lua_method swig_rlInterpreter_cls_methods[] = { +static swig_lua_method swig_rlInterpreter_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlInterpreter_cls_constants[] = { + +static swig_lua_attribute swig_rlInterpreter_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlInterpreter_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlInterpreter_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlInterpreter_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlInterpreter_Sf_SwigStatic = { + "rlInterpreter", + swig_rlInterpreter_Sf_SwigStatic_methods, + swig_rlInterpreter_Sf_SwigStatic_attributes, + swig_rlInterpreter_Sf_SwigStatic_constants, + swig_rlInterpreter_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlInterpreter_bases[] = {0}; static const char *swig_rlInterpreter_base_names[] = {0}; -static swig_lua_class _wrap_class_rlInterpreter = { "rlInterpreter", &SWIGTYPE_p_rlInterpreter,_wrap_new_rlInterpreter, swig_delete_rlInterpreter, swig_rlInterpreter_methods, swig_rlInterpreter_attributes, { "rlInterpreter", swig_rlInterpreter_cls_methods, swig_rlInterpreter_cls_attributes, swig_rlInterpreter_cls_constants }, swig_rlInterpreter_bases, swig_rlInterpreter_base_names }; +static swig_lua_class _wrap_class_rlInterpreter = { "rlInterpreter", "rlInterpreter", &SWIGTYPE_p_rlInterpreter,_proxy__wrap_new_rlInterpreter, swig_delete_rlInterpreter, swig_rlInterpreter_methods, swig_rlInterpreter_attributes, &swig_rlInterpreter_Sf_SwigStatic, swig_rlInterpreter_meta, swig_rlInterpreter_bases, swig_rlInterpreter_base_names }; static int _wrap_new_rlMailbox(lua_State* L) { int SWIG_arg = 0; @@ -14748,26 +16266,35 @@ static void swig_delete_rlMailbox(void *obj) { rlMailbox *arg1 = (rlMailbox *) obj; delete arg1; } -static swig_lua_method swig_rlMailbox_methods[] = { - {"printf", _wrap_rlMailbox_printf}, - {"setReadBufferSize", _wrap_rlMailbox_setReadBufferSize}, - {"read", _wrap_rlMailbox_read}, - {"write", _wrap_rlMailbox_write}, - {"clear", _wrap_rlMailbox_clear}, - {0,0} -}; +static int _proxy__wrap_new_rlMailbox(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlMailbox); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlMailbox_attributes[] = { - { "status", _wrap_rlMailbox_status_get, _wrap_rlMailbox_status_set}, - { "name", _wrap_rlMailbox_name_get, _wrap_rlMailbox_name_set}, + { "status", _wrap_rlMailbox_status_get, _wrap_rlMailbox_status_set }, + { "name", _wrap_rlMailbox_name_get, _wrap_rlMailbox_name_set }, {0,0,0} }; -static swig_lua_attribute swig_rlMailbox_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlMailbox_methods[]= { + { "printf", _wrap_rlMailbox_printf}, + { "setReadBufferSize", _wrap_rlMailbox_setReadBufferSize}, + { "read", _wrap_rlMailbox_read}, + { "write", _wrap_rlMailbox_write}, + { "clear", _wrap_rlMailbox_clear}, + {0,0} }; -static swig_lua_method swig_rlMailbox_cls_methods[] = { +static swig_lua_method swig_rlMailbox_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlMailbox_cls_constants[] = { + +static swig_lua_attribute swig_rlMailbox_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlMailbox_Sf_SwigStatic_constants[]= { {SWIG_LUA_CONSTTAB_INT("MAILBOX_ERROR", rlMailbox::MAILBOX_ERROR)}, {SWIG_LUA_CONSTTAB_INT("MAILBOX_FULL", rlMailbox::MAILBOX_FULL)}, {SWIG_LUA_CONSTTAB_INT("WAIT", rlMailbox::WAIT)}, @@ -14779,9 +16306,24 @@ static swig_lua_const_info swig_rlMailbox_cls_constants[] = { {SWIG_LUA_CONSTTAB_INT("COULD_NOT_GET_CHAN_ID", rlMailbox::COULD_NOT_GET_CHAN_ID)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_rlMailbox_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlMailbox_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlMailbox_Sf_SwigStatic = { + "rlMailbox", + swig_rlMailbox_Sf_SwigStatic_methods, + swig_rlMailbox_Sf_SwigStatic_attributes, + swig_rlMailbox_Sf_SwigStatic_constants, + swig_rlMailbox_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlMailbox_bases[] = {0}; static const char *swig_rlMailbox_base_names[] = {0}; -static swig_lua_class _wrap_class_rlMailbox = { "rlMailbox", &SWIGTYPE_p_rlMailbox,_wrap_new_rlMailbox, swig_delete_rlMailbox, swig_rlMailbox_methods, swig_rlMailbox_attributes, { "rlMailbox", swig_rlMailbox_cls_methods, swig_rlMailbox_cls_attributes, swig_rlMailbox_cls_constants }, swig_rlMailbox_bases, swig_rlMailbox_base_names }; +static swig_lua_class _wrap_class_rlMailbox = { "rlMailbox", "rlMailbox", &SWIGTYPE_p_rlMailbox,_proxy__wrap_new_rlMailbox, swig_delete_rlMailbox, swig_rlMailbox_methods, swig_rlMailbox_attributes, &swig_rlMailbox_Sf_SwigStatic, swig_rlMailbox_meta, swig_rlMailbox_bases, swig_rlMailbox_base_names }; static int _wrap_new_rlModbusClient(lua_State* L) { int SWIG_arg = 0; @@ -15089,32 +16631,56 @@ static void swig_delete_rlModbusClient(void *obj) { rlModbusClient *arg1 = (rlModbusClient *) obj; delete arg1; } -static swig_lua_method swig_rlModbusClient_methods[] = { - {"write", _wrap_rlModbusClient_write}, - {"writeSingleCoil", _wrap_rlModbusClient_writeSingleCoil}, - {"writeMultipleCoils", _wrap_rlModbusClient_writeMultipleCoils}, - {"writePresetSingleRegister", _wrap_rlModbusClient_writePresetSingleRegister}, - {"writePresetMultipleRegisters", _wrap_rlModbusClient_writePresetMultipleRegisters}, - {"readBit", _wrap_rlModbusClient_readBit}, - {"readByte", _wrap_rlModbusClient_readByte}, - {"readShort", _wrap_rlModbusClient_readShort}, - {0,0} -}; +static int _proxy__wrap_new_rlModbusClient(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlModbusClient); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlModbusClient_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlModbusClient_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlModbusClient_methods[]= { + { "write", _wrap_rlModbusClient_write}, + { "writeSingleCoil", _wrap_rlModbusClient_writeSingleCoil}, + { "writeMultipleCoils", _wrap_rlModbusClient_writeMultipleCoils}, + { "writePresetSingleRegister", _wrap_rlModbusClient_writePresetSingleRegister}, + { "writePresetMultipleRegisters", _wrap_rlModbusClient_writePresetMultipleRegisters}, + { "readBit", _wrap_rlModbusClient_readBit}, + { "readByte", _wrap_rlModbusClient_readByte}, + { "readShort", _wrap_rlModbusClient_readShort}, + {0,0} }; -static swig_lua_method swig_rlModbusClient_cls_methods[] = { +static swig_lua_method swig_rlModbusClient_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlModbusClient_cls_constants[] = { + +static swig_lua_attribute swig_rlModbusClient_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlModbusClient_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlModbusClient_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlModbusClient_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlModbusClient_Sf_SwigStatic = { + "rlModbusClient", + swig_rlModbusClient_Sf_SwigStatic_methods, + swig_rlModbusClient_Sf_SwigStatic_attributes, + swig_rlModbusClient_Sf_SwigStatic_constants, + swig_rlModbusClient_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlModbusClient_bases[] = {0,0,0}; static const char *swig_rlModbusClient_base_names[] = {"rlMailbox *","rlSharedMemory *",0}; -static swig_lua_class _wrap_class_rlModbusClient = { "rlModbusClient", &SWIGTYPE_p_rlModbusClient,_wrap_new_rlModbusClient, swig_delete_rlModbusClient, swig_rlModbusClient_methods, swig_rlModbusClient_attributes, { "rlModbusClient", swig_rlModbusClient_cls_methods, swig_rlModbusClient_cls_attributes, swig_rlModbusClient_cls_constants }, swig_rlModbusClient_bases, swig_rlModbusClient_base_names }; +static swig_lua_class _wrap_class_rlModbusClient = { "rlModbusClient", "rlModbusClient", &SWIGTYPE_p_rlModbusClient,_proxy__wrap_new_rlModbusClient, swig_delete_rlModbusClient, swig_rlModbusClient_methods, swig_rlModbusClient_attributes, &swig_rlModbusClient_Sf_SwigStatic, swig_rlModbusClient_meta, swig_rlModbusClient_bases, swig_rlModbusClient_base_names }; static int _wrap_new_rlModbus__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -17602,37 +19168,46 @@ static void swig_delete_rlModbus(void *obj) { rlModbus *arg1 = (rlModbus *) obj; delete arg1; } -static swig_lua_method swig_rlModbus_methods[] = { - {"write", _wrap_rlModbus_write}, - {"request", _wrap_rlModbus_request}, - {"response", _wrap_rlModbus_response}, - {"readRequest", _wrap_rlModbus_readRequest}, - {"registerSocket", _wrap_rlModbus_registerSocket}, - {"registerSerial", _wrap_rlModbus_registerSerial}, - {"data2int", _wrap_rlModbus_data2int}, - {"int2data", _wrap_rlModbus_int2data}, - {"intsize", _wrap_rlModbus_intsize}, - {"readCoilStatus", _wrap_rlModbus_readCoilStatus}, - {"readInputStatus", _wrap_rlModbus_readInputStatus}, - {"readHoldingRegisters", _wrap_rlModbus_readHoldingRegisters}, - {"readInputRegisters", _wrap_rlModbus_readInputRegisters}, - {"forceSingleCoil", _wrap_rlModbus_forceSingleCoil}, - {"presetSingleRegister", _wrap_rlModbus_presetSingleRegister}, - {"forceMultipleCoils", _wrap_rlModbus_forceMultipleCoils}, - {"presetMultipleRegisters", _wrap_rlModbus_presetMultipleRegisters}, - {0,0} -}; +static int _proxy__wrap_new_rlModbus(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlModbus); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlModbus_attributes[] = { - { "autoreconnectSocket", _wrap_rlModbus_autoreconnectSocket_get, _wrap_rlModbus_autoreconnectSocket_set}, + { "autoreconnectSocket", _wrap_rlModbus_autoreconnectSocket_get, _wrap_rlModbus_autoreconnectSocket_set }, {0,0,0} }; -static swig_lua_attribute swig_rlModbus_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlModbus_methods[]= { + { "write", _wrap_rlModbus_write}, + { "request", _wrap_rlModbus_request}, + { "response", _wrap_rlModbus_response}, + { "readRequest", _wrap_rlModbus_readRequest}, + { "registerSocket", _wrap_rlModbus_registerSocket}, + { "registerSerial", _wrap_rlModbus_registerSerial}, + { "data2int", _wrap_rlModbus_data2int}, + { "int2data", _wrap_rlModbus_int2data}, + { "intsize", _wrap_rlModbus_intsize}, + { "readCoilStatus", _wrap_rlModbus_readCoilStatus}, + { "readInputStatus", _wrap_rlModbus_readInputStatus}, + { "readHoldingRegisters", _wrap_rlModbus_readHoldingRegisters}, + { "readInputRegisters", _wrap_rlModbus_readInputRegisters}, + { "forceSingleCoil", _wrap_rlModbus_forceSingleCoil}, + { "presetSingleRegister", _wrap_rlModbus_presetSingleRegister}, + { "forceMultipleCoils", _wrap_rlModbus_forceMultipleCoils}, + { "presetMultipleRegisters", _wrap_rlModbus_presetMultipleRegisters}, + {0,0} }; -static swig_lua_method swig_rlModbus_cls_methods[] = { +static swig_lua_method swig_rlModbus_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlModbus_cls_constants[] = { + +static swig_lua_attribute swig_rlModbus_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlModbus_Sf_SwigStatic_constants[]= { {SWIG_LUA_CONSTTAB_INT("MODBUS_CHECKSUM_ERROR", rlModbus::MODBUS_CHECKSUM_ERROR)}, {SWIG_LUA_CONSTTAB_INT("MODBUS_ERROR", rlModbus::MODBUS_ERROR)}, {SWIG_LUA_CONSTTAB_INT("MODBUS_SUCCESS", rlModbus::MODBUS_SUCCESS)}, @@ -17657,9 +19232,24 @@ static swig_lua_const_info swig_rlModbus_cls_constants[] = { {SWIG_LUA_CONSTTAB_INT("ReadFifoQueue", rlModbus::ReadFifoQueue)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_rlModbus_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlModbus_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlModbus_Sf_SwigStatic = { + "rlModbus", + swig_rlModbus_Sf_SwigStatic_methods, + swig_rlModbus_Sf_SwigStatic_attributes, + swig_rlModbus_Sf_SwigStatic_constants, + swig_rlModbus_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlModbus_bases[] = {0}; static const char *swig_rlModbus_base_names[] = {0}; -static swig_lua_class _wrap_class_rlModbus = { "rlModbus", &SWIGTYPE_p_rlModbus,_wrap_new_rlModbus, swig_delete_rlModbus, swig_rlModbus_methods, swig_rlModbus_attributes, { "rlModbus", swig_rlModbus_cls_methods, swig_rlModbus_cls_attributes, swig_rlModbus_cls_constants }, swig_rlModbus_bases, swig_rlModbus_base_names }; +static swig_lua_class _wrap_class_rlModbus = { "rlModbus", "rlModbus", &SWIGTYPE_p_rlModbus,_proxy__wrap_new_rlModbus, swig_delete_rlModbus, swig_rlModbus_methods, swig_rlModbus_attributes, &swig_rlModbus_Sf_SwigStatic, swig_rlModbus_meta, swig_rlModbus_bases, swig_rlModbus_base_names }; static int _wrap_new_rlOpcXmlDa__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -18057,34 +19647,58 @@ static void swig_delete_rlOpcXmlDa(void *obj) { rlOpcXmlDa *arg1 = (rlOpcXmlDa *) obj; delete arg1; } -static swig_lua_method swig_rlOpcXmlDa_methods[] = { - {"stringValue", _wrap_rlOpcXmlDa_stringValue}, - {"intValue", _wrap_rlOpcXmlDa_intValue}, - {"floatValue", _wrap_rlOpcXmlDa_floatValue}, - {"writeStringValue", _wrap_rlOpcXmlDa_writeStringValue}, - {"writeIntValue", _wrap_rlOpcXmlDa_writeIntValue}, - {"writeFloatValue", _wrap_rlOpcXmlDa_writeFloatValue}, - {"readErrorCount", _wrap_rlOpcXmlDa_readErrorCount}, - {"writeErrorCount", _wrap_rlOpcXmlDa_writeErrorCount}, - {"shmStatus", _wrap_rlOpcXmlDa_shmStatus}, - {0,0} -}; +static int _proxy__wrap_new_rlOpcXmlDa(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlOpcXmlDa); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlOpcXmlDa_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlOpcXmlDa_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlOpcXmlDa_methods[]= { + { "stringValue", _wrap_rlOpcXmlDa_stringValue}, + { "intValue", _wrap_rlOpcXmlDa_intValue}, + { "floatValue", _wrap_rlOpcXmlDa_floatValue}, + { "writeStringValue", _wrap_rlOpcXmlDa_writeStringValue}, + { "writeIntValue", _wrap_rlOpcXmlDa_writeIntValue}, + { "writeFloatValue", _wrap_rlOpcXmlDa_writeFloatValue}, + { "readErrorCount", _wrap_rlOpcXmlDa_readErrorCount}, + { "writeErrorCount", _wrap_rlOpcXmlDa_writeErrorCount}, + { "shmStatus", _wrap_rlOpcXmlDa_shmStatus}, + {0,0} }; -static swig_lua_method swig_rlOpcXmlDa_cls_methods[] = { +static swig_lua_method swig_rlOpcXmlDa_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlOpcXmlDa_cls_constants[] = { + +static swig_lua_attribute swig_rlOpcXmlDa_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlOpcXmlDa_Sf_SwigStatic_constants[]= { {SWIG_LUA_CONSTTAB_INT("OPCXMLDA_ERROR", rlOpcXmlDa::OPCXMLDA_ERROR)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_rlOpcXmlDa_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlOpcXmlDa_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlOpcXmlDa_Sf_SwigStatic = { + "rlOpcXmlDa", + swig_rlOpcXmlDa_Sf_SwigStatic_methods, + swig_rlOpcXmlDa_Sf_SwigStatic_attributes, + swig_rlOpcXmlDa_Sf_SwigStatic_constants, + swig_rlOpcXmlDa_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlOpcXmlDa_bases[] = {0}; static const char *swig_rlOpcXmlDa_base_names[] = {0}; -static swig_lua_class _wrap_class_rlOpcXmlDa = { "rlOpcXmlDa", &SWIGTYPE_p_rlOpcXmlDa,_wrap_new_rlOpcXmlDa, swig_delete_rlOpcXmlDa, swig_rlOpcXmlDa_methods, swig_rlOpcXmlDa_attributes, { "rlOpcXmlDa", swig_rlOpcXmlDa_cls_methods, swig_rlOpcXmlDa_cls_attributes, swig_rlOpcXmlDa_cls_constants }, swig_rlOpcXmlDa_bases, swig_rlOpcXmlDa_base_names }; +static swig_lua_class _wrap_class_rlOpcXmlDa = { "rlOpcXmlDa", "rlOpcXmlDa", &SWIGTYPE_p_rlOpcXmlDa,_proxy__wrap_new_rlOpcXmlDa, swig_delete_rlOpcXmlDa, swig_rlOpcXmlDa_methods, swig_rlOpcXmlDa_attributes, &swig_rlOpcXmlDa_Sf_SwigStatic, swig_rlOpcXmlDa_meta, swig_rlOpcXmlDa_bases, swig_rlOpcXmlDa_base_names }; static int _wrap_new_rlPcontrol(lua_State* L) { int SWIG_arg = 0; @@ -18452,38 +20066,62 @@ static void swig_delete_rlPcontrol(void *obj) { rlPcontrol *arg1 = (rlPcontrol *) obj; delete arg1; } -static swig_lua_method swig_rlPcontrol_methods[] = { - {"setStartupCommand", _wrap_rlPcontrol_setStartupCommand}, - {"start", _wrap_rlPcontrol_start}, - {"sigterm", _wrap_rlPcontrol_sigterm}, - {"sigkill", _wrap_rlPcontrol_sigkill}, - {"isAlive", _wrap_rlPcontrol_isAlive}, - {"startupCommand", _wrap_rlPcontrol_startupCommand}, - {"processName", _wrap_rlPcontrol_processName}, - {"processTime", _wrap_rlPcontrol_processTime}, - {"setPID", _wrap_rlPcontrol_setPID}, - {"pid", _wrap_rlPcontrol_pid}, - {"getNext", _wrap_rlPcontrol_getNext}, - {"addNew", _wrap_rlPcontrol_addNew}, - {"setPriority", _wrap_rlPcontrol_setPriority}, - {"priority", _wrap_rlPcontrol_priority}, - {0,0} -}; +static int _proxy__wrap_new_rlPcontrol(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlPcontrol); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlPcontrol_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlPcontrol_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlPcontrol_methods[]= { + { "setStartupCommand", _wrap_rlPcontrol_setStartupCommand}, + { "start", _wrap_rlPcontrol_start}, + { "sigterm", _wrap_rlPcontrol_sigterm}, + { "sigkill", _wrap_rlPcontrol_sigkill}, + { "isAlive", _wrap_rlPcontrol_isAlive}, + { "startupCommand", _wrap_rlPcontrol_startupCommand}, + { "processName", _wrap_rlPcontrol_processName}, + { "processTime", _wrap_rlPcontrol_processTime}, + { "setPID", _wrap_rlPcontrol_setPID}, + { "pid", _wrap_rlPcontrol_pid}, + { "getNext", _wrap_rlPcontrol_getNext}, + { "addNew", _wrap_rlPcontrol_addNew}, + { "setPriority", _wrap_rlPcontrol_setPriority}, + { "priority", _wrap_rlPcontrol_priority}, + {0,0} }; -static swig_lua_method swig_rlPcontrol_cls_methods[] = { +static swig_lua_method swig_rlPcontrol_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlPcontrol_cls_constants[] = { + +static swig_lua_attribute swig_rlPcontrol_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlPcontrol_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlPcontrol_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlPcontrol_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlPcontrol_Sf_SwigStatic = { + "rlPcontrol", + swig_rlPcontrol_Sf_SwigStatic_methods, + swig_rlPcontrol_Sf_SwigStatic_attributes, + swig_rlPcontrol_Sf_SwigStatic_constants, + swig_rlPcontrol_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlPcontrol_bases[] = {0}; static const char *swig_rlPcontrol_base_names[] = {0}; -static swig_lua_class _wrap_class_rlPcontrol = { "rlPcontrol", &SWIGTYPE_p_rlPcontrol,_wrap_new_rlPcontrol, swig_delete_rlPcontrol, swig_rlPcontrol_methods, swig_rlPcontrol_attributes, { "rlPcontrol", swig_rlPcontrol_cls_methods, swig_rlPcontrol_cls_attributes, swig_rlPcontrol_cls_constants }, swig_rlPcontrol_bases, swig_rlPcontrol_base_names }; +static swig_lua_class _wrap_class_rlPcontrol = { "rlPcontrol", "rlPcontrol", &SWIGTYPE_p_rlPcontrol,_proxy__wrap_new_rlPcontrol, swig_delete_rlPcontrol, swig_rlPcontrol_methods, swig_rlPcontrol_attributes, &swig_rlPcontrol_Sf_SwigStatic, swig_rlPcontrol_meta, swig_rlPcontrol_bases, swig_rlPcontrol_base_names }; static int _wrap_new_rlPlcState__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -19906,59 +21544,83 @@ static void swig_delete_rlPlcState(void *obj) { rlPlcState *arg1 = (rlPlcState *) obj; delete arg1; } -static swig_lua_method swig_rlPlcState_methods[] = { - {"rememberState", _wrap_rlPlcState_rememberState}, - {"intChanged", _wrap_rlPlcState_intChanged}, - {"floatChanged", _wrap_rlPlcState_floatChanged}, - {"doubleChanged", _wrap_rlPlcState_doubleChanged}, - {"intHasIncreased", _wrap_rlPlcState_intHasIncreased}, - {"floatHasIncreased", _wrap_rlPlcState_floatHasIncreased}, - {"doubleHasIncreased", _wrap_rlPlcState_doubleHasIncreased}, - {"intHasDecreased", _wrap_rlPlcState_intHasDecreased}, - {"floatHasDecreased", _wrap_rlPlcState_floatHasDecreased}, - {"doubleHasDecreased", _wrap_rlPlcState_doubleHasDecreased}, - {"deltaInt", _wrap_rlPlcState_deltaInt}, - {"deltaFloat", _wrap_rlPlcState_deltaFloat}, - {"deltaDouble", _wrap_rlPlcState_deltaDouble}, - {"set", _wrap_rlPlcState_set}, - {"clear", _wrap_rlPlcState_clear}, - {"isSet", _wrap_rlPlcState_isSet}, - {"isClear", _wrap_rlPlcState_isClear}, - {"hasBeenSet", _wrap_rlPlcState_hasBeenSet}, - {"hasBeenCleared", _wrap_rlPlcState_hasBeenCleared}, - {"maxInt", _wrap_rlPlcState_maxInt}, - {"maxFloat", _wrap_rlPlcState_maxFloat}, - {"maxDouble", _wrap_rlPlcState_maxDouble}, - {"getInt", _wrap_rlPlcState_getInt}, - {"getFloat", _wrap_rlPlcState_getFloat}, - {"getDouble", _wrap_rlPlcState_getDouble}, - {"getOldInt", _wrap_rlPlcState_getOldInt}, - {"getOldFloat", _wrap_rlPlcState_getOldFloat}, - {"getOldDouble", _wrap_rlPlcState_getOldDouble}, - {0,0} -}; +static int _proxy__wrap_new_rlPlcState(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlPlcState); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlPlcState_attributes[] = { - { "i", _wrap_rlPlcState_i_get, _wrap_rlPlcState_i_set}, - { "i_old", _wrap_rlPlcState_i_old_get, _wrap_rlPlcState_i_old_set}, - { "f", _wrap_rlPlcState_f_get, _wrap_rlPlcState_f_set}, - { "f_old", _wrap_rlPlcState_f_old_get, _wrap_rlPlcState_f_old_set}, - { "d", _wrap_rlPlcState_d_get, _wrap_rlPlcState_d_set}, - { "d_old", _wrap_rlPlcState_d_old_get, _wrap_rlPlcState_d_old_set}, - { "shm", _wrap_rlPlcState_shm_get, _wrap_rlPlcState_shm_set}, + { "i", _wrap_rlPlcState_i_get, _wrap_rlPlcState_i_set }, + { "i_old", _wrap_rlPlcState_i_old_get, _wrap_rlPlcState_i_old_set }, + { "f", _wrap_rlPlcState_f_get, _wrap_rlPlcState_f_set }, + { "f_old", _wrap_rlPlcState_f_old_get, _wrap_rlPlcState_f_old_set }, + { "d", _wrap_rlPlcState_d_get, _wrap_rlPlcState_d_set }, + { "d_old", _wrap_rlPlcState_d_old_get, _wrap_rlPlcState_d_old_set }, + { "shm", _wrap_rlPlcState_shm_get, _wrap_rlPlcState_shm_set }, {0,0,0} }; -static swig_lua_attribute swig_rlPlcState_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlPlcState_methods[]= { + { "rememberState", _wrap_rlPlcState_rememberState}, + { "intChanged", _wrap_rlPlcState_intChanged}, + { "floatChanged", _wrap_rlPlcState_floatChanged}, + { "doubleChanged", _wrap_rlPlcState_doubleChanged}, + { "intHasIncreased", _wrap_rlPlcState_intHasIncreased}, + { "floatHasIncreased", _wrap_rlPlcState_floatHasIncreased}, + { "doubleHasIncreased", _wrap_rlPlcState_doubleHasIncreased}, + { "intHasDecreased", _wrap_rlPlcState_intHasDecreased}, + { "floatHasDecreased", _wrap_rlPlcState_floatHasDecreased}, + { "doubleHasDecreased", _wrap_rlPlcState_doubleHasDecreased}, + { "deltaInt", _wrap_rlPlcState_deltaInt}, + { "deltaFloat", _wrap_rlPlcState_deltaFloat}, + { "deltaDouble", _wrap_rlPlcState_deltaDouble}, + { "set", _wrap_rlPlcState_set}, + { "clear", _wrap_rlPlcState_clear}, + { "isSet", _wrap_rlPlcState_isSet}, + { "isClear", _wrap_rlPlcState_isClear}, + { "hasBeenSet", _wrap_rlPlcState_hasBeenSet}, + { "hasBeenCleared", _wrap_rlPlcState_hasBeenCleared}, + { "maxInt", _wrap_rlPlcState_maxInt}, + { "maxFloat", _wrap_rlPlcState_maxFloat}, + { "maxDouble", _wrap_rlPlcState_maxDouble}, + { "getInt", _wrap_rlPlcState_getInt}, + { "getFloat", _wrap_rlPlcState_getFloat}, + { "getDouble", _wrap_rlPlcState_getDouble}, + { "getOldInt", _wrap_rlPlcState_getOldInt}, + { "getOldFloat", _wrap_rlPlcState_getOldFloat}, + { "getOldDouble", _wrap_rlPlcState_getOldDouble}, + {0,0} }; -static swig_lua_method swig_rlPlcState_cls_methods[] = { +static swig_lua_method swig_rlPlcState_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlPlcState_cls_constants[] = { + +static swig_lua_attribute swig_rlPlcState_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlPlcState_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlPlcState_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlPlcState_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlPlcState_Sf_SwigStatic = { + "rlPlcState", + swig_rlPlcState_Sf_SwigStatic_methods, + swig_rlPlcState_Sf_SwigStatic_attributes, + swig_rlPlcState_Sf_SwigStatic_constants, + swig_rlPlcState_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlPlcState_bases[] = {0}; static const char *swig_rlPlcState_base_names[] = {0}; -static swig_lua_class _wrap_class_rlPlcState = { "rlPlcState", &SWIGTYPE_p_rlPlcState,_wrap_new_rlPlcState, swig_delete_rlPlcState, swig_rlPlcState_methods, swig_rlPlcState_attributes, { "rlPlcState", swig_rlPlcState_cls_methods, swig_rlPlcState_cls_attributes, swig_rlPlcState_cls_constants }, swig_rlPlcState_bases, swig_rlPlcState_base_names }; +static swig_lua_class _wrap_class_rlPlcState = { "rlPlcState", "rlPlcState", &SWIGTYPE_p_rlPlcState,_proxy__wrap_new_rlPlcState, swig_delete_rlPlcState, swig_rlPlcState_methods, swig_rlPlcState_attributes, &swig_rlPlcState_Sf_SwigStatic, swig_rlPlcState_meta, swig_rlPlcState_bases, swig_rlPlcState_base_names }; static int _wrap_new_rlPlcMem(lua_State* L) { int SWIG_arg = 0; @@ -20752,49 +22414,73 @@ static void swig_delete_rlPlcMem(void *obj) { rlPlcMem *arg1 = (rlPlcMem *) obj; delete arg1; } -static swig_lua_method swig_rlPlcMem_methods[] = { - {"rememberState", _wrap_rlPlcMem_rememberState}, - {"intChanged", _wrap_rlPlcMem_intChanged}, - {"floatChanged", _wrap_rlPlcMem_floatChanged}, - {"doubleChanged", _wrap_rlPlcMem_doubleChanged}, - {"intHasIncreased", _wrap_rlPlcMem_intHasIncreased}, - {"floatHasIncreased", _wrap_rlPlcMem_floatHasIncreased}, - {"doubleHasIncreased", _wrap_rlPlcMem_doubleHasIncreased}, - {"intHasDecreased", _wrap_rlPlcMem_intHasDecreased}, - {"floatHasDecreased", _wrap_rlPlcMem_floatHasDecreased}, - {"doubleHasDecreased", _wrap_rlPlcMem_doubleHasDecreased}, - {"deltaInt", _wrap_rlPlcMem_deltaInt}, - {"deltaFloat", _wrap_rlPlcMem_deltaFloat}, - {"deltaDouble", _wrap_rlPlcMem_deltaDouble}, - {"set", _wrap_rlPlcMem_set}, - {"clear", _wrap_rlPlcMem_clear}, - {"isSet", _wrap_rlPlcMem_isSet}, - {"isClear", _wrap_rlPlcMem_isClear}, - {"hasBeenSet", _wrap_rlPlcMem_hasBeenSet}, - {"hasBeenCleared", _wrap_rlPlcMem_hasBeenCleared}, - {0,0} -}; +static int _proxy__wrap_new_rlPlcMem(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlPlcMem); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlPlcMem_attributes[] = { - { "i", _wrap_rlPlcMem_i_get, _wrap_rlPlcMem_i_set}, - { "i_old", _wrap_rlPlcMem_i_old_get, _wrap_rlPlcMem_i_old_set}, - { "f", _wrap_rlPlcMem_f_get, _wrap_rlPlcMem_f_set}, - { "f_old", _wrap_rlPlcMem_f_old_get, _wrap_rlPlcMem_f_old_set}, - { "d", _wrap_rlPlcMem_d_get, _wrap_rlPlcMem_d_set}, - { "d_old", _wrap_rlPlcMem_d_old_get, _wrap_rlPlcMem_d_old_set}, + { "i", _wrap_rlPlcMem_i_get, _wrap_rlPlcMem_i_set }, + { "i_old", _wrap_rlPlcMem_i_old_get, _wrap_rlPlcMem_i_old_set }, + { "f", _wrap_rlPlcMem_f_get, _wrap_rlPlcMem_f_set }, + { "f_old", _wrap_rlPlcMem_f_old_get, _wrap_rlPlcMem_f_old_set }, + { "d", _wrap_rlPlcMem_d_get, _wrap_rlPlcMem_d_set }, + { "d_old", _wrap_rlPlcMem_d_old_get, _wrap_rlPlcMem_d_old_set }, {0,0,0} }; -static swig_lua_attribute swig_rlPlcMem_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlPlcMem_methods[]= { + { "rememberState", _wrap_rlPlcMem_rememberState}, + { "intChanged", _wrap_rlPlcMem_intChanged}, + { "floatChanged", _wrap_rlPlcMem_floatChanged}, + { "doubleChanged", _wrap_rlPlcMem_doubleChanged}, + { "intHasIncreased", _wrap_rlPlcMem_intHasIncreased}, + { "floatHasIncreased", _wrap_rlPlcMem_floatHasIncreased}, + { "doubleHasIncreased", _wrap_rlPlcMem_doubleHasIncreased}, + { "intHasDecreased", _wrap_rlPlcMem_intHasDecreased}, + { "floatHasDecreased", _wrap_rlPlcMem_floatHasDecreased}, + { "doubleHasDecreased", _wrap_rlPlcMem_doubleHasDecreased}, + { "deltaInt", _wrap_rlPlcMem_deltaInt}, + { "deltaFloat", _wrap_rlPlcMem_deltaFloat}, + { "deltaDouble", _wrap_rlPlcMem_deltaDouble}, + { "set", _wrap_rlPlcMem_set}, + { "clear", _wrap_rlPlcMem_clear}, + { "isSet", _wrap_rlPlcMem_isSet}, + { "isClear", _wrap_rlPlcMem_isClear}, + { "hasBeenSet", _wrap_rlPlcMem_hasBeenSet}, + { "hasBeenCleared", _wrap_rlPlcMem_hasBeenCleared}, + {0,0} }; -static swig_lua_method swig_rlPlcMem_cls_methods[] = { +static swig_lua_method swig_rlPlcMem_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlPlcMem_cls_constants[] = { + +static swig_lua_attribute swig_rlPlcMem_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlPlcMem_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlPlcMem_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlPlcMem_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlPlcMem_Sf_SwigStatic = { + "rlPlcMem", + swig_rlPlcMem_Sf_SwigStatic_methods, + swig_rlPlcMem_Sf_SwigStatic_attributes, + swig_rlPlcMem_Sf_SwigStatic_constants, + swig_rlPlcMem_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlPlcMem_bases[] = {0}; static const char *swig_rlPlcMem_base_names[] = {0}; -static swig_lua_class _wrap_class_rlPlcMem = { "rlPlcMem", &SWIGTYPE_p_rlPlcMem,_wrap_new_rlPlcMem, swig_delete_rlPlcMem, swig_rlPlcMem_methods, swig_rlPlcMem_attributes, { "rlPlcMem", swig_rlPlcMem_cls_methods, swig_rlPlcMem_cls_attributes, swig_rlPlcMem_cls_constants }, swig_rlPlcMem_bases, swig_rlPlcMem_base_names }; +static swig_lua_class _wrap_class_rlPlcMem = { "rlPlcMem", "rlPlcMem", &SWIGTYPE_p_rlPlcMem,_proxy__wrap_new_rlPlcMem, swig_delete_rlPlcMem, swig_rlPlcMem_methods, swig_rlPlcMem_attributes, &swig_rlPlcMem_Sf_SwigStatic, swig_rlPlcMem_meta, swig_rlPlcMem_bases, swig_rlPlcMem_base_names }; static int _wrap_new_rlPPIClient__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -21413,32 +23099,41 @@ static void swig_delete_rlPPIClient(void *obj) { rlPPIClient *arg1 = (rlPPIClient *) obj; delete arg1; } -static swig_lua_method swig_rlPPIClient_methods[] = { - {"write", _wrap_rlPPIClient_write}, - {"writeFloat", _wrap_rlPPIClient_writeFloat}, - {"writeDword", _wrap_rlPPIClient_writeDword}, - {"writeShort", _wrap_rlPPIClient_writeShort}, - {"writeUDword", _wrap_rlPPIClient_writeUDword}, - {"writeUShort", _wrap_rlPPIClient_writeUShort}, - {"read", _wrap_rlPPIClient_read}, - {"Float", _wrap_rlPPIClient_Float}, - {"Dword", _wrap_rlPPIClient_Dword}, - {"Short", _wrap_rlPPIClient_Short}, - {"UDword", _wrap_rlPPIClient_UDword}, - {"UShort", _wrap_rlPPIClient_UShort}, - {0,0} -}; +static int _proxy__wrap_new_rlPPIClient(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlPPIClient); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlPPIClient_attributes[] = { - { "buf", _wrap_rlPPIClient_buf_get, _wrap_rlPPIClient_buf_set}, + { "buf", _wrap_rlPPIClient_buf_get, _wrap_rlPPIClient_buf_set }, {0,0,0} }; -static swig_lua_attribute swig_rlPPIClient_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlPPIClient_methods[]= { + { "write", _wrap_rlPPIClient_write}, + { "writeFloat", _wrap_rlPPIClient_writeFloat}, + { "writeDword", _wrap_rlPPIClient_writeDword}, + { "writeShort", _wrap_rlPPIClient_writeShort}, + { "writeUDword", _wrap_rlPPIClient_writeUDword}, + { "writeUShort", _wrap_rlPPIClient_writeUShort}, + { "read", _wrap_rlPPIClient_read}, + { "Float", _wrap_rlPPIClient_Float}, + { "Dword", _wrap_rlPPIClient_Dword}, + { "Short", _wrap_rlPPIClient_Short}, + { "UDword", _wrap_rlPPIClient_UDword}, + { "UShort", _wrap_rlPPIClient_UShort}, + {0,0} }; -static swig_lua_method swig_rlPPIClient_cls_methods[] = { +static swig_lua_method swig_rlPPIClient_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlPPIClient_cls_constants[] = { + +static swig_lua_attribute swig_rlPPIClient_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlPPIClient_Sf_SwigStatic_constants[]= { {SWIG_LUA_CONSTTAB_INT("daveSD", rlPPIClient::daveSD)}, {SWIG_LUA_CONSTTAB_INT("daveInputs", rlPPIClient::daveInputs)}, {SWIG_LUA_CONSTTAB_INT("daveOutputs", rlPPIClient::daveOutputs)}, @@ -21451,9 +23146,24 @@ static swig_lua_const_info swig_rlPPIClient_cls_constants[] = { {SWIG_LUA_CONSTTAB_INT("daveTimer", rlPPIClient::daveTimer)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_rlPPIClient_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlPPIClient_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlPPIClient_Sf_SwigStatic = { + "rlPPIClient", + swig_rlPPIClient_Sf_SwigStatic_methods, + swig_rlPPIClient_Sf_SwigStatic_attributes, + swig_rlPPIClient_Sf_SwigStatic_constants, + swig_rlPPIClient_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlPPIClient_bases[] = {0,0}; static const char *swig_rlPPIClient_base_names[] = {"rlMailbox *",0}; -static swig_lua_class _wrap_class_rlPPIClient = { "rlPPIClient", &SWIGTYPE_p_rlPPIClient,_wrap_new_rlPPIClient, swig_delete_rlPPIClient, swig_rlPPIClient_methods, swig_rlPPIClient_attributes, { "rlPPIClient", swig_rlPPIClient_cls_methods, swig_rlPPIClient_cls_attributes, swig_rlPPIClient_cls_constants }, swig_rlPPIClient_bases, swig_rlPPIClient_base_names }; +static swig_lua_class _wrap_class_rlPPIClient = { "rlPPIClient", "rlPPIClient", &SWIGTYPE_p_rlPPIClient,_proxy__wrap_new_rlPPIClient, swig_delete_rlPPIClient, swig_rlPPIClient_methods, swig_rlPPIClient_attributes, &swig_rlPPIClient_Sf_SwigStatic, swig_rlPPIClient_meta, swig_rlPPIClient_bases, swig_rlPPIClient_base_names }; static int _wrap_new_rlSerial(lua_State* L) { int SWIG_arg = 0; @@ -22523,36 +24233,60 @@ static void swig_delete_rlSerial(void *obj) { rlSerial *arg1 = (rlSerial *) obj; delete arg1; } -static swig_lua_method swig_rlSerial_methods[] = { - {"openDevice", _wrap_rlSerial_openDevice}, - {"select", _wrap_rlSerial_select}, - {"readChar", _wrap_rlSerial_readChar}, - {"writeChar", _wrap_rlSerial_writeChar}, - {"readBlock", _wrap_rlSerial_readBlock}, - {"writeBlock", _wrap_rlSerial_writeBlock}, - {"readLine", _wrap_rlSerial_readLine}, - {"closeDevice", _wrap_rlSerial_closeDevice}, - {"setTrace", _wrap_rlSerial_setTrace}, - {0,0} -}; +static int _proxy__wrap_new_rlSerial(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSerial); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlSerial_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlSerial_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlSerial_methods[]= { + { "openDevice", _wrap_rlSerial_openDevice}, + { "select", _wrap_rlSerial_select}, + { "readChar", _wrap_rlSerial_readChar}, + { "writeChar", _wrap_rlSerial_writeChar}, + { "readBlock", _wrap_rlSerial_readBlock}, + { "writeBlock", _wrap_rlSerial_writeBlock}, + { "readLine", _wrap_rlSerial_readLine}, + { "closeDevice", _wrap_rlSerial_closeDevice}, + { "setTrace", _wrap_rlSerial_setTrace}, + {0,0} }; -static swig_lua_method swig_rlSerial_cls_methods[] = { +static swig_lua_method swig_rlSerial_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlSerial_cls_constants[] = { + +static swig_lua_attribute swig_rlSerial_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlSerial_Sf_SwigStatic_constants[]= { {SWIG_LUA_CONSTTAB_INT("NONE", rlSerial::NONE)}, {SWIG_LUA_CONSTTAB_INT("ODD", rlSerial::ODD)}, {SWIG_LUA_CONSTTAB_INT("EVEN", rlSerial::EVEN)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_rlSerial_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlSerial_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSerial_Sf_SwigStatic = { + "rlSerial", + swig_rlSerial_Sf_SwigStatic_methods, + swig_rlSerial_Sf_SwigStatic_attributes, + swig_rlSerial_Sf_SwigStatic_constants, + swig_rlSerial_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlSerial_bases[] = {0}; static const char *swig_rlSerial_base_names[] = {0}; -static swig_lua_class _wrap_class_rlSerial = { "rlSerial", &SWIGTYPE_p_rlSerial,_wrap_new_rlSerial, swig_delete_rlSerial, swig_rlSerial_methods, swig_rlSerial_attributes, { "rlSerial", swig_rlSerial_cls_methods, swig_rlSerial_cls_attributes, swig_rlSerial_cls_constants }, swig_rlSerial_bases, swig_rlSerial_base_names }; +static swig_lua_class _wrap_class_rlSerial = { "rlSerial", "rlSerial", &SWIGTYPE_p_rlSerial,_proxy__wrap_new_rlSerial, swig_delete_rlSerial, swig_rlSerial_methods, swig_rlSerial_attributes, &swig_rlSerial_Sf_SwigStatic, swig_rlSerial_meta, swig_rlSerial_bases, swig_rlSerial_base_names }; static int _wrap_new_rlSiemensTCPClient__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -23269,34 +25003,43 @@ static void swig_delete_rlSiemensTCPClient(void *obj) { rlSiemensTCPClient *arg1 = (rlSiemensTCPClient *) obj; delete arg1; } -static swig_lua_method swig_rlSiemensTCPClient_methods[] = { - {"write", _wrap_rlSiemensTCPClient_write}, - {"writeBit", _wrap_rlSiemensTCPClient_writeBit}, - {"writeByte", _wrap_rlSiemensTCPClient_writeByte}, - {"writeFloat", _wrap_rlSiemensTCPClient_writeFloat}, - {"writeDword", _wrap_rlSiemensTCPClient_writeDword}, - {"writeShort", _wrap_rlSiemensTCPClient_writeShort}, - {"writeUDword", _wrap_rlSiemensTCPClient_writeUDword}, - {"writeUShort", _wrap_rlSiemensTCPClient_writeUShort}, - {"read", _wrap_rlSiemensTCPClient_read}, - {"Float", _wrap_rlSiemensTCPClient_Float}, - {"Dword", _wrap_rlSiemensTCPClient_Dword}, - {"Short", _wrap_rlSiemensTCPClient_Short}, - {"UDword", _wrap_rlSiemensTCPClient_UDword}, - {"UShort", _wrap_rlSiemensTCPClient_UShort}, - {0,0} -}; +static int _proxy__wrap_new_rlSiemensTCPClient(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSiemensTCPClient); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlSiemensTCPClient_attributes[] = { - { "buf", _wrap_rlSiemensTCPClient_buf_get, _wrap_rlSiemensTCPClient_buf_set}, + { "buf", _wrap_rlSiemensTCPClient_buf_get, _wrap_rlSiemensTCPClient_buf_set }, {0,0,0} }; -static swig_lua_attribute swig_rlSiemensTCPClient_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlSiemensTCPClient_methods[]= { + { "write", _wrap_rlSiemensTCPClient_write}, + { "writeBit", _wrap_rlSiemensTCPClient_writeBit}, + { "writeByte", _wrap_rlSiemensTCPClient_writeByte}, + { "writeFloat", _wrap_rlSiemensTCPClient_writeFloat}, + { "writeDword", _wrap_rlSiemensTCPClient_writeDword}, + { "writeShort", _wrap_rlSiemensTCPClient_writeShort}, + { "writeUDword", _wrap_rlSiemensTCPClient_writeUDword}, + { "writeUShort", _wrap_rlSiemensTCPClient_writeUShort}, + { "read", _wrap_rlSiemensTCPClient_read}, + { "Float", _wrap_rlSiemensTCPClient_Float}, + { "Dword", _wrap_rlSiemensTCPClient_Dword}, + { "Short", _wrap_rlSiemensTCPClient_Short}, + { "UDword", _wrap_rlSiemensTCPClient_UDword}, + { "UShort", _wrap_rlSiemensTCPClient_UShort}, + {0,0} }; -static swig_lua_method swig_rlSiemensTCPClient_cls_methods[] = { +static swig_lua_method swig_rlSiemensTCPClient_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlSiemensTCPClient_cls_constants[] = { + +static swig_lua_attribute swig_rlSiemensTCPClient_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlSiemensTCPClient_Sf_SwigStatic_constants[]= { {SWIG_LUA_CONSTTAB_INT("ORG_DB", rlSiemensTCPClient::ORG_DB)}, {SWIG_LUA_CONSTTAB_INT("ORG_M", rlSiemensTCPClient::ORG_M)}, {SWIG_LUA_CONSTTAB_INT("ORG_E", rlSiemensTCPClient::ORG_E)}, @@ -23306,9 +25049,24 @@ static swig_lua_const_info swig_rlSiemensTCPClient_cls_constants[] = { {SWIG_LUA_CONSTTAB_INT("ORG_T", rlSiemensTCPClient::ORG_T)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_rlSiemensTCPClient_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlSiemensTCPClient_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSiemensTCPClient_Sf_SwigStatic = { + "rlSiemensTCPClient", + swig_rlSiemensTCPClient_Sf_SwigStatic_methods, + swig_rlSiemensTCPClient_Sf_SwigStatic_attributes, + swig_rlSiemensTCPClient_Sf_SwigStatic_constants, + swig_rlSiemensTCPClient_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlSiemensTCPClient_bases[] = {0,0}; static const char *swig_rlSiemensTCPClient_base_names[] = {"rlMailbox *",0}; -static swig_lua_class _wrap_class_rlSiemensTCPClient = { "rlSiemensTCPClient", &SWIGTYPE_p_rlSiemensTCPClient,_wrap_new_rlSiemensTCPClient, swig_delete_rlSiemensTCPClient, swig_rlSiemensTCPClient_methods, swig_rlSiemensTCPClient_attributes, { "rlSiemensTCPClient", swig_rlSiemensTCPClient_cls_methods, swig_rlSiemensTCPClient_cls_attributes, swig_rlSiemensTCPClient_cls_constants }, swig_rlSiemensTCPClient_bases, swig_rlSiemensTCPClient_base_names }; +static swig_lua_class _wrap_class_rlSiemensTCPClient = { "rlSiemensTCPClient", "rlSiemensTCPClient", &SWIGTYPE_p_rlSiemensTCPClient,_proxy__wrap_new_rlSiemensTCPClient, swig_delete_rlSiemensTCPClient, swig_rlSiemensTCPClient_methods, swig_rlSiemensTCPClient_attributes, &swig_rlSiemensTCPClient_Sf_SwigStatic, swig_rlSiemensTCPClient_meta, swig_rlSiemensTCPClient_bases, swig_rlSiemensTCPClient_base_names }; static int _wrap_new_rlSiemensTCP__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -23892,24 +25650,33 @@ static void swig_delete_rlSiemensTCP(void *obj) { rlSiemensTCP *arg1 = (rlSiemensTCP *) obj; delete arg1; } -static swig_lua_method swig_rlSiemensTCP_methods[] = { - {"getDefaultConnectBlock", _wrap_rlSiemensTCP_getDefaultConnectBlock}, - {"setConnectBlock", _wrap_rlSiemensTCP_setConnectBlock}, - {"getConnectBlock", _wrap_rlSiemensTCP_getConnectBlock}, - {"write", _wrap_rlSiemensTCP_write}, - {"fetch", _wrap_rlSiemensTCP_fetch}, - {0,0} -}; +static int _proxy__wrap_new_rlSiemensTCP(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSiemensTCP); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlSiemensTCP_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlSiemensTCP_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlSiemensTCP_methods[]= { + { "getDefaultConnectBlock", _wrap_rlSiemensTCP_getDefaultConnectBlock}, + { "setConnectBlock", _wrap_rlSiemensTCP_setConnectBlock}, + { "getConnectBlock", _wrap_rlSiemensTCP_getConnectBlock}, + { "write", _wrap_rlSiemensTCP_write}, + { "fetch", _wrap_rlSiemensTCP_fetch}, + {0,0} }; -static swig_lua_method swig_rlSiemensTCP_cls_methods[] = { +static swig_lua_method swig_rlSiemensTCP_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlSiemensTCP_cls_constants[] = { + +static swig_lua_attribute swig_rlSiemensTCP_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlSiemensTCP_Sf_SwigStatic_constants[]= { {SWIG_LUA_CONSTTAB_INT("ORG_DB", rlSiemensTCP::ORG_DB)}, {SWIG_LUA_CONSTTAB_INT("ORG_M", rlSiemensTCP::ORG_M)}, {SWIG_LUA_CONSTTAB_INT("ORG_E", rlSiemensTCP::ORG_E)}, @@ -23929,9 +25696,24 @@ static swig_lua_const_info swig_rlSiemensTCP_cls_constants[] = { {SWIG_LUA_CONSTTAB_INT("WriteByte", rlSiemensTCP::WriteByte)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_rlSiemensTCP_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlSiemensTCP_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSiemensTCP_Sf_SwigStatic = { + "rlSiemensTCP", + swig_rlSiemensTCP_Sf_SwigStatic_methods, + swig_rlSiemensTCP_Sf_SwigStatic_attributes, + swig_rlSiemensTCP_Sf_SwigStatic_constants, + swig_rlSiemensTCP_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlSiemensTCP_bases[] = {0,0}; static const char *swig_rlSiemensTCP_base_names[] = {"rlSocket *",0}; -static swig_lua_class _wrap_class_rlSiemensTCP = { "rlSiemensTCP", &SWIGTYPE_p_rlSiemensTCP,_wrap_new_rlSiemensTCP, swig_delete_rlSiemensTCP, swig_rlSiemensTCP_methods, swig_rlSiemensTCP_attributes, { "rlSiemensTCP", swig_rlSiemensTCP_cls_methods, swig_rlSiemensTCP_cls_attributes, swig_rlSiemensTCP_cls_constants }, swig_rlSiemensTCP_bases, swig_rlSiemensTCP_base_names }; +static swig_lua_class _wrap_class_rlSiemensTCP = { "rlSiemensTCP", "rlSiemensTCP", &SWIGTYPE_p_rlSiemensTCP,_proxy__wrap_new_rlSiemensTCP, swig_delete_rlSiemensTCP, swig_rlSiemensTCP_methods, swig_rlSiemensTCP_attributes, &swig_rlSiemensTCP_Sf_SwigStatic, swig_rlSiemensTCP_meta, swig_rlSiemensTCP_bases, swig_rlSiemensTCP_base_names }; static int _wrap_new_rlSpawn(lua_State* L) { int SWIG_arg = 0; @@ -24369,36 +26151,60 @@ static void swig_delete_rlSpawn(void *obj) { rlSpawn *arg1 = (rlSpawn *) obj; delete arg1; } -static swig_lua_method swig_rlSpawn_methods[] = { - {"spawn", _wrap_rlSpawn_spawn}, - {"readLine", _wrap_rlSpawn_readLine}, - {"getchar", _wrap_rlSpawn_getchar}, - {"select", _wrap_rlSpawn_select}, - {"writeString", _wrap_rlSpawn_writeString}, - {"write", _wrap_rlSpawn_write}, - {"printf", _wrap_rlSpawn_printf}, - {"printAll", _wrap_rlSpawn_printAll}, - {"getFilepointer", _wrap_rlSpawn_getFilepointer}, - {"sigkill", _wrap_rlSpawn_sigkill}, - {"readJpegBuffer", _wrap_rlSpawn_readJpegBuffer}, - {0,0} -}; +static int _proxy__wrap_new_rlSpawn(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSpawn); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlSpawn_attributes[] = { - { "pid", _wrap_rlSpawn_pid_get, _wrap_rlSpawn_pid_set}, + { "pid", _wrap_rlSpawn_pid_get, _wrap_rlSpawn_pid_set }, {0,0,0} }; -static swig_lua_attribute swig_rlSpawn_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlSpawn_methods[]= { + { "spawn", _wrap_rlSpawn_spawn}, + { "readLine", _wrap_rlSpawn_readLine}, + { "getchar", _wrap_rlSpawn_getchar}, + { "select", _wrap_rlSpawn_select}, + { "writeString", _wrap_rlSpawn_writeString}, + { "write", _wrap_rlSpawn_write}, + { "printf", _wrap_rlSpawn_printf}, + { "printAll", _wrap_rlSpawn_printAll}, + { "getFilepointer", _wrap_rlSpawn_getFilepointer}, + { "sigkill", _wrap_rlSpawn_sigkill}, + { "readJpegBuffer", _wrap_rlSpawn_readJpegBuffer}, + {0,0} }; -static swig_lua_method swig_rlSpawn_cls_methods[] = { +static swig_lua_method swig_rlSpawn_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlSpawn_cls_constants[] = { + +static swig_lua_attribute swig_rlSpawn_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlSpawn_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlSpawn_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlSpawn_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSpawn_Sf_SwigStatic = { + "rlSpawn", + swig_rlSpawn_Sf_SwigStatic_methods, + swig_rlSpawn_Sf_SwigStatic_attributes, + swig_rlSpawn_Sf_SwigStatic_constants, + swig_rlSpawn_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlSpawn_bases[] = {0}; static const char *swig_rlSpawn_base_names[] = {0}; -static swig_lua_class _wrap_class_rlSpawn = { "rlSpawn", &SWIGTYPE_p_rlSpawn,_wrap_new_rlSpawn, swig_delete_rlSpawn, swig_rlSpawn_methods, swig_rlSpawn_attributes, { "rlSpawn", swig_rlSpawn_cls_methods, swig_rlSpawn_cls_attributes, swig_rlSpawn_cls_constants }, swig_rlSpawn_bases, swig_rlSpawn_base_names }; +static swig_lua_class _wrap_class_rlSpawn = { "rlSpawn", "rlSpawn", &SWIGTYPE_p_rlSpawn,_proxy__wrap_new_rlSpawn, swig_delete_rlSpawn, swig_rlSpawn_methods, swig_rlSpawn_attributes, &swig_rlSpawn_Sf_SwigStatic, swig_rlSpawn_meta, swig_rlSpawn_bases, swig_rlSpawn_base_names }; static int _wrap_new_rlSpreadsheetCell__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -24648,31 +26454,55 @@ static void swig_delete_rlSpreadsheetCell(void *obj) { rlSpreadsheetCell *arg1 = (rlSpreadsheetCell *) obj; delete arg1; } -static swig_lua_method swig_rlSpreadsheetCell_methods[] = { - {"text", _wrap_rlSpreadsheetCell_text}, - {"setText", _wrap_rlSpreadsheetCell_setText}, - {"printf", _wrap_rlSpreadsheetCell_printf}, - {"clear", _wrap_rlSpreadsheetCell_clear}, - {"setNextCell", _wrap_rlSpreadsheetCell_setNextCell}, - {"getNextCell", _wrap_rlSpreadsheetCell_getNextCell}, - {"exists", _wrap_rlSpreadsheetCell_exists}, - {0,0} -}; +static int _proxy__wrap_new_rlSpreadsheetCell(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSpreadsheetCell); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlSpreadsheetCell_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlSpreadsheetCell_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlSpreadsheetCell_methods[]= { + { "text", _wrap_rlSpreadsheetCell_text}, + { "setText", _wrap_rlSpreadsheetCell_setText}, + { "printf", _wrap_rlSpreadsheetCell_printf}, + { "clear", _wrap_rlSpreadsheetCell_clear}, + { "setNextCell", _wrap_rlSpreadsheetCell_setNextCell}, + { "getNextCell", _wrap_rlSpreadsheetCell_getNextCell}, + { "exists", _wrap_rlSpreadsheetCell_exists}, + {0,0} }; -static swig_lua_method swig_rlSpreadsheetCell_cls_methods[] = { +static swig_lua_method swig_rlSpreadsheetCell_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlSpreadsheetCell_cls_constants[] = { + +static swig_lua_attribute swig_rlSpreadsheetCell_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlSpreadsheetCell_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlSpreadsheetCell_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlSpreadsheetCell_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSpreadsheetCell_Sf_SwigStatic = { + "rlSpreadsheetCell", + swig_rlSpreadsheetCell_Sf_SwigStatic_methods, + swig_rlSpreadsheetCell_Sf_SwigStatic_attributes, + swig_rlSpreadsheetCell_Sf_SwigStatic_constants, + swig_rlSpreadsheetCell_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlSpreadsheetCell_bases[] = {0}; static const char *swig_rlSpreadsheetCell_base_names[] = {0}; -static swig_lua_class _wrap_class_rlSpreadsheetCell = { "rlSpreadsheetCell", &SWIGTYPE_p_rlSpreadsheetCell,_wrap_new_rlSpreadsheetCell, swig_delete_rlSpreadsheetCell, swig_rlSpreadsheetCell_methods, swig_rlSpreadsheetCell_attributes, { "rlSpreadsheetCell", swig_rlSpreadsheetCell_cls_methods, swig_rlSpreadsheetCell_cls_attributes, swig_rlSpreadsheetCell_cls_constants }, swig_rlSpreadsheetCell_bases, swig_rlSpreadsheetCell_base_names }; +static swig_lua_class _wrap_class_rlSpreadsheetCell = { "rlSpreadsheetCell", "rlSpreadsheetCell", &SWIGTYPE_p_rlSpreadsheetCell,_proxy__wrap_new_rlSpreadsheetCell, swig_delete_rlSpreadsheetCell, swig_rlSpreadsheetCell_methods, swig_rlSpreadsheetCell_attributes, &swig_rlSpreadsheetCell_Sf_SwigStatic, swig_rlSpreadsheetCell_meta, swig_rlSpreadsheetCell_bases, swig_rlSpreadsheetCell_base_names }; static int _wrap_new_rlSpreadsheetRow(lua_State* L) { int SWIG_arg = 0; @@ -25166,34 +26996,58 @@ static void swig_delete_rlSpreadsheetRow(void *obj) { rlSpreadsheetRow *arg1 = (rlSpreadsheetRow *) obj; delete arg1; } -static swig_lua_method swig_rlSpreadsheetRow_methods[] = { - {"text", _wrap_rlSpreadsheetRow_text}, - {"setText", _wrap_rlSpreadsheetRow_setText}, - {"printf", _wrap_rlSpreadsheetRow_printf}, - {"clear", _wrap_rlSpreadsheetRow_clear}, - {"setNextRow", _wrap_rlSpreadsheetRow_setNextRow}, - {"getNextRow", _wrap_rlSpreadsheetRow_getNextRow}, - {"getFirstCell", _wrap_rlSpreadsheetRow_getFirstCell}, - {"readRow", _wrap_rlSpreadsheetRow_readRow}, - {"writeRow", _wrap_rlSpreadsheetRow_writeRow}, - {"exists", _wrap_rlSpreadsheetRow_exists}, - {0,0} -}; +static int _proxy__wrap_new_rlSpreadsheetRow(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSpreadsheetRow); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlSpreadsheetRow_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlSpreadsheetRow_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlSpreadsheetRow_methods[]= { + { "text", _wrap_rlSpreadsheetRow_text}, + { "setText", _wrap_rlSpreadsheetRow_setText}, + { "printf", _wrap_rlSpreadsheetRow_printf}, + { "clear", _wrap_rlSpreadsheetRow_clear}, + { "setNextRow", _wrap_rlSpreadsheetRow_setNextRow}, + { "getNextRow", _wrap_rlSpreadsheetRow_getNextRow}, + { "getFirstCell", _wrap_rlSpreadsheetRow_getFirstCell}, + { "readRow", _wrap_rlSpreadsheetRow_readRow}, + { "writeRow", _wrap_rlSpreadsheetRow_writeRow}, + { "exists", _wrap_rlSpreadsheetRow_exists}, + {0,0} }; -static swig_lua_method swig_rlSpreadsheetRow_cls_methods[] = { +static swig_lua_method swig_rlSpreadsheetRow_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlSpreadsheetRow_cls_constants[] = { + +static swig_lua_attribute swig_rlSpreadsheetRow_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlSpreadsheetRow_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlSpreadsheetRow_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlSpreadsheetRow_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSpreadsheetRow_Sf_SwigStatic = { + "rlSpreadsheetRow", + swig_rlSpreadsheetRow_Sf_SwigStatic_methods, + swig_rlSpreadsheetRow_Sf_SwigStatic_attributes, + swig_rlSpreadsheetRow_Sf_SwigStatic_constants, + swig_rlSpreadsheetRow_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlSpreadsheetRow_bases[] = {0}; static const char *swig_rlSpreadsheetRow_base_names[] = {0}; -static swig_lua_class _wrap_class_rlSpreadsheetRow = { "rlSpreadsheetRow", &SWIGTYPE_p_rlSpreadsheetRow,_wrap_new_rlSpreadsheetRow, swig_delete_rlSpreadsheetRow, swig_rlSpreadsheetRow_methods, swig_rlSpreadsheetRow_attributes, { "rlSpreadsheetRow", swig_rlSpreadsheetRow_cls_methods, swig_rlSpreadsheetRow_cls_attributes, swig_rlSpreadsheetRow_cls_constants }, swig_rlSpreadsheetRow_bases, swig_rlSpreadsheetRow_base_names }; +static swig_lua_class _wrap_class_rlSpreadsheetRow = { "rlSpreadsheetRow", "rlSpreadsheetRow", &SWIGTYPE_p_rlSpreadsheetRow,_proxy__wrap_new_rlSpreadsheetRow, swig_delete_rlSpreadsheetRow, swig_rlSpreadsheetRow_methods, swig_rlSpreadsheetRow_attributes, &swig_rlSpreadsheetRow_Sf_SwigStatic, swig_rlSpreadsheetRow_meta, swig_rlSpreadsheetRow_bases, swig_rlSpreadsheetRow_base_names }; static int _wrap_new_rlSpreadsheetTable__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -25571,35 +27425,59 @@ static void swig_delete_rlSpreadsheetTable(void *obj) { rlSpreadsheetTable *arg1 = (rlSpreadsheetTable *) obj; delete arg1; } -static swig_lua_method swig_rlSpreadsheetTable_methods[] = { - {"text", _wrap_rlSpreadsheetTable_text}, - {"setText", _wrap_rlSpreadsheetTable_setText}, - {"printf", _wrap_rlSpreadsheetTable_printf}, - {"clear", _wrap_rlSpreadsheetTable_clear}, - {"read", _wrap_rlSpreadsheetTable_read}, - {"write", _wrap_rlSpreadsheetTable_write}, - {"setNextTable", _wrap_rlSpreadsheetTable_setNextTable}, - {"getNextTable", _wrap_rlSpreadsheetTable_getNextTable}, - {"getFirstRow", _wrap_rlSpreadsheetTable_getFirstRow}, - {"exists", _wrap_rlSpreadsheetTable_exists}, - {"setDelimitor", _wrap_rlSpreadsheetTable_setDelimitor}, - {0,0} -}; +static int _proxy__wrap_new_rlSpreadsheetTable(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSpreadsheetTable); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlSpreadsheetTable_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlSpreadsheetTable_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlSpreadsheetTable_methods[]= { + { "text", _wrap_rlSpreadsheetTable_text}, + { "setText", _wrap_rlSpreadsheetTable_setText}, + { "printf", _wrap_rlSpreadsheetTable_printf}, + { "clear", _wrap_rlSpreadsheetTable_clear}, + { "read", _wrap_rlSpreadsheetTable_read}, + { "write", _wrap_rlSpreadsheetTable_write}, + { "setNextTable", _wrap_rlSpreadsheetTable_setNextTable}, + { "getNextTable", _wrap_rlSpreadsheetTable_getNextTable}, + { "getFirstRow", _wrap_rlSpreadsheetTable_getFirstRow}, + { "exists", _wrap_rlSpreadsheetTable_exists}, + { "setDelimitor", _wrap_rlSpreadsheetTable_setDelimitor}, + {0,0} }; -static swig_lua_method swig_rlSpreadsheetTable_cls_methods[] = { +static swig_lua_method swig_rlSpreadsheetTable_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlSpreadsheetTable_cls_constants[] = { + +static swig_lua_attribute swig_rlSpreadsheetTable_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlSpreadsheetTable_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlSpreadsheetTable_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlSpreadsheetTable_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSpreadsheetTable_Sf_SwigStatic = { + "rlSpreadsheetTable", + swig_rlSpreadsheetTable_Sf_SwigStatic_methods, + swig_rlSpreadsheetTable_Sf_SwigStatic_attributes, + swig_rlSpreadsheetTable_Sf_SwigStatic_constants, + swig_rlSpreadsheetTable_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlSpreadsheetTable_bases[] = {0}; static const char *swig_rlSpreadsheetTable_base_names[] = {0}; -static swig_lua_class _wrap_class_rlSpreadsheetTable = { "rlSpreadsheetTable", &SWIGTYPE_p_rlSpreadsheetTable,_wrap_new_rlSpreadsheetTable, swig_delete_rlSpreadsheetTable, swig_rlSpreadsheetTable_methods, swig_rlSpreadsheetTable_attributes, { "rlSpreadsheetTable", swig_rlSpreadsheetTable_cls_methods, swig_rlSpreadsheetTable_cls_attributes, swig_rlSpreadsheetTable_cls_constants }, swig_rlSpreadsheetTable_bases, swig_rlSpreadsheetTable_base_names }; +static swig_lua_class _wrap_class_rlSpreadsheetTable = { "rlSpreadsheetTable", "rlSpreadsheetTable", &SWIGTYPE_p_rlSpreadsheetTable,_proxy__wrap_new_rlSpreadsheetTable, swig_delete_rlSpreadsheetTable, swig_rlSpreadsheetTable_methods, swig_rlSpreadsheetTable_attributes, &swig_rlSpreadsheetTable_Sf_SwigStatic, swig_rlSpreadsheetTable_meta, swig_rlSpreadsheetTable_bases, swig_rlSpreadsheetTable_base_names }; static int _wrap_new_rlSpreadsheetWorkbook__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -25935,33 +27813,57 @@ static void swig_delete_rlSpreadsheetWorkbook(void *obj) { rlSpreadsheetWorkbook *arg1 = (rlSpreadsheetWorkbook *) obj; delete arg1; } -static swig_lua_method swig_rlSpreadsheetWorkbook_methods[] = { - {"text", _wrap_rlSpreadsheetWorkbook_text}, - {"setText", _wrap_rlSpreadsheetWorkbook_setText}, - {"printf", _wrap_rlSpreadsheetWorkbook_printf}, - {"clear", _wrap_rlSpreadsheetWorkbook_clear}, - {"read", _wrap_rlSpreadsheetWorkbook_read}, - {"write", _wrap_rlSpreadsheetWorkbook_write}, - {"exists", _wrap_rlSpreadsheetWorkbook_exists}, - {"getFirstTable", _wrap_rlSpreadsheetWorkbook_getFirstTable}, - {"setDelimitor", _wrap_rlSpreadsheetWorkbook_setDelimitor}, - {0,0} -}; +static int _proxy__wrap_new_rlSpreadsheetWorkbook(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSpreadsheetWorkbook); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlSpreadsheetWorkbook_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlSpreadsheetWorkbook_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlSpreadsheetWorkbook_methods[]= { + { "text", _wrap_rlSpreadsheetWorkbook_text}, + { "setText", _wrap_rlSpreadsheetWorkbook_setText}, + { "printf", _wrap_rlSpreadsheetWorkbook_printf}, + { "clear", _wrap_rlSpreadsheetWorkbook_clear}, + { "read", _wrap_rlSpreadsheetWorkbook_read}, + { "write", _wrap_rlSpreadsheetWorkbook_write}, + { "exists", _wrap_rlSpreadsheetWorkbook_exists}, + { "getFirstTable", _wrap_rlSpreadsheetWorkbook_getFirstTable}, + { "setDelimitor", _wrap_rlSpreadsheetWorkbook_setDelimitor}, + {0,0} }; -static swig_lua_method swig_rlSpreadsheetWorkbook_cls_methods[] = { +static swig_lua_method swig_rlSpreadsheetWorkbook_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlSpreadsheetWorkbook_cls_constants[] = { + +static swig_lua_attribute swig_rlSpreadsheetWorkbook_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlSpreadsheetWorkbook_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlSpreadsheetWorkbook_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlSpreadsheetWorkbook_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSpreadsheetWorkbook_Sf_SwigStatic = { + "rlSpreadsheetWorkbook", + swig_rlSpreadsheetWorkbook_Sf_SwigStatic_methods, + swig_rlSpreadsheetWorkbook_Sf_SwigStatic_attributes, + swig_rlSpreadsheetWorkbook_Sf_SwigStatic_constants, + swig_rlSpreadsheetWorkbook_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlSpreadsheetWorkbook_bases[] = {0}; static const char *swig_rlSpreadsheetWorkbook_base_names[] = {0}; -static swig_lua_class _wrap_class_rlSpreadsheetWorkbook = { "rlSpreadsheetWorkbook", &SWIGTYPE_p_rlSpreadsheetWorkbook,_wrap_new_rlSpreadsheetWorkbook, swig_delete_rlSpreadsheetWorkbook, swig_rlSpreadsheetWorkbook_methods, swig_rlSpreadsheetWorkbook_attributes, { "rlSpreadsheetWorkbook", swig_rlSpreadsheetWorkbook_cls_methods, swig_rlSpreadsheetWorkbook_cls_attributes, swig_rlSpreadsheetWorkbook_cls_constants }, swig_rlSpreadsheetWorkbook_bases, swig_rlSpreadsheetWorkbook_base_names }; +static swig_lua_class _wrap_class_rlSpreadsheetWorkbook = { "rlSpreadsheetWorkbook", "rlSpreadsheetWorkbook", &SWIGTYPE_p_rlSpreadsheetWorkbook,_proxy__wrap_new_rlSpreadsheetWorkbook, swig_delete_rlSpreadsheetWorkbook, swig_rlSpreadsheetWorkbook_methods, swig_rlSpreadsheetWorkbook_attributes, &swig_rlSpreadsheetWorkbook_Sf_SwigStatic, swig_rlSpreadsheetWorkbook_meta, swig_rlSpreadsheetWorkbook_bases, swig_rlSpreadsheetWorkbook_base_names }; static int _wrap_rlCRLF_get(lua_State* L) { int SWIG_arg = 0; @@ -26065,6 +27967,30 @@ static int _wrap_new_rlString__SWIG_3(lua_State* L) { } +static int _wrap_new_rlString__SWIG_4(lua_State* L) { + int SWIG_arg = 0; + rlString *arg1 = 0 ; + rlString *result = 0 ; + + SWIG_check_num_args("rlString::rlString",1,1) + if(!lua_isuserdata(L,1)) SWIG_fail_arg("rlString::rlString",1,"rlString const &"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlString,0))){ + SWIG_fail_ptr("new_rlString",1,SWIGTYPE_p_rlString); + } + + result = (rlString *)new rlString((rlString const &)*arg1); + SWIG_NewPointerObj(L,result,SWIGTYPE_p_rlString,1); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + static int _wrap_new_rlString(lua_State* L) { int argc; int argv[2]={ @@ -26103,6 +28029,20 @@ static int _wrap_new_rlString(lua_State* L) { return _wrap_new_rlString__SWIG_3(L); } } + if (argc == 1) { + int _v; + { + void *ptr; + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_rlString, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + return _wrap_new_rlString__SWIG_4(L); + } + } if (argc == 1) { int _v; { @@ -26118,7 +28058,8 @@ static int _wrap_new_rlString(lua_State* L) { " rlString::rlString(char const *)\n" " rlString::rlString()\n" " rlString::rlString(rlString &)\n" - " rlString::rlString(rlString *)\n"); + " rlString::rlString(rlString *)\n" + " rlString::rlString(rlString const &)\n"); lua_error(L);return 0; } @@ -26298,6 +28239,37 @@ static int _wrap_rlString___eq__SWIG_1(lua_State* L) { } +static int _wrap_rlString___eq__SWIG_2(lua_State* L) { + int SWIG_arg = 0; + rlString *arg1 = (rlString *) 0 ; + rlString *arg2 = 0 ; + int result; + + SWIG_check_num_args("rlString::operator ==",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlString::operator ==",1,"rlString *"); + if(!lua_isuserdata(L,2)) SWIG_fail_arg("rlString::operator ==",2,"rlString const &"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlString,0))){ + SWIG_fail_ptr("rlString___eq",1,SWIGTYPE_p_rlString); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_rlString,0))){ + SWIG_fail_ptr("rlString___eq",2,SWIGTYPE_p_rlString); + } + + result = (int)(arg1)->operator ==((rlString const &)*arg2); + lua_pushnumber(L, (lua_Number) result); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + static int _wrap_rlString___eq(lua_State* L) { int argc; int argv[3]={ @@ -26329,6 +28301,30 @@ static int _wrap_rlString___eq(lua_State* L) { } } } + if (argc == 2) { + int _v; + { + void *ptr; + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_rlString, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + { + void *ptr; + if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_rlString, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + return _wrap_rlString___eq__SWIG_2(L); + } + } + } if (argc == 2) { int _v; { @@ -26352,12 +28348,13 @@ static int _wrap_rlString___eq(lua_State* L) { SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'rlString___eq'\n" " Possible C/C++ prototypes are:\n" " rlString::operator ==(char const *)\n" - " rlString::operator ==(rlString &)\n"); + " rlString::operator ==(rlString &)\n" + " rlString::operator ==(rlString const &)\n"); lua_error(L);return 0; } -static int _wrap_rlString_text(lua_State* L) { +static int _wrap_rlString_text__SWIG_0(lua_State* L) { int SWIG_arg = 0; rlString *arg1 = (rlString *) 0 ; char *result = 0 ; @@ -26381,6 +28378,74 @@ static int _wrap_rlString_text(lua_State* L) { } +static int _wrap_rlString_text__SWIG_1(lua_State* L) { + int SWIG_arg = 0; + rlString *arg1 = (rlString *) 0 ; + char *result = 0 ; + + SWIG_check_num_args("rlString::text",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlString::text",1,"rlString const *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlString,0))){ + SWIG_fail_ptr("rlString_text",1,SWIGTYPE_p_rlString); + } + + result = (char *)((rlString const *)arg1)->text(); + lua_pushstring(L,(const char *)result); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_rlString_text(lua_State* L) { + int argc; + int argv[2]={ + 1,2 + }; + + argc = lua_gettop(L); + if (argc == 1) { + int _v; + { + void *ptr; + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_rlString, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + return _wrap_rlString_text__SWIG_0(L); + } + } + if (argc == 1) { + int _v; + { + void *ptr; + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_rlString, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + return _wrap_rlString_text__SWIG_1(L); + } + } + + SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'rlString_text'\n" + " Possible C/C++ prototypes are:\n" + " rlString::text()\n" + " rlString::text() const\n"); + lua_error(L);return 0; +} + + static int _wrap_rlString_setText(lua_State* L) { int SWIG_arg = 0; rlString *arg1 = (rlString *) 0 ; @@ -26933,45 +28998,71 @@ static void swig_delete_rlString(void *obj) { rlString *arg1 = (rlString *) obj; delete arg1; } -static swig_lua_method swig_rlString_methods[] = { - {"__add", _wrap_rlString___add}, - {"__eq", _wrap_rlString___eq}, - {"text", _wrap_rlString_text}, - {"setText", _wrap_rlString_setText}, - {"printf", _wrap_rlString_printf}, - {"strcpy", _wrap_rlString_strcpy}, - {"cat", _wrap_rlString_cat}, - {"upper", _wrap_rlString_upper}, - {"lower", _wrap_rlString_lower}, - {"startsWith", _wrap_rlString_startsWith}, - {"strnocasecmp", _wrap_rlString_strnocasecmp}, - {"strnnocasecmp", _wrap_rlString_strnnocasecmp}, - {"strstr", _wrap_rlString_strstr}, - {"strchr", _wrap_rlString_strchr}, - {"strrchr", _wrap_rlString_strrchr}, - {"removeQuotas", _wrap_rlString_removeQuotas}, - {"removeNewline", _wrap_rlString_removeNewline}, - {"read", _wrap_rlString_read}, - {"write", _wrap_rlString_write}, - {"toFilename", _wrap_rlString_toFilename}, - {"toDirname", _wrap_rlString_toDirname}, - {0,0} -}; +static int _proxy__wrap_new_rlString(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlString); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlString_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlString_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlString_methods[]= { + { "__add", _wrap_rlString___add}, + { "__eq", _wrap_rlString___eq}, + { "text", _wrap_rlString_text}, + { "setText", _wrap_rlString_setText}, + { "printf", _wrap_rlString_printf}, + { "strcpy", _wrap_rlString_strcpy}, + { "cat", _wrap_rlString_cat}, + { "upper", _wrap_rlString_upper}, + { "lower", _wrap_rlString_lower}, + { "startsWith", _wrap_rlString_startsWith}, + { "strnocasecmp", _wrap_rlString_strnocasecmp}, + { "strnnocasecmp", _wrap_rlString_strnnocasecmp}, + { "strstr", _wrap_rlString_strstr}, + { "strchr", _wrap_rlString_strchr}, + { "strrchr", _wrap_rlString_strrchr}, + { "removeQuotas", _wrap_rlString_removeQuotas}, + { "removeNewline", _wrap_rlString_removeNewline}, + { "read", _wrap_rlString_read}, + { "write", _wrap_rlString_write}, + { "toFilename", _wrap_rlString_toFilename}, + { "toDirname", _wrap_rlString_toDirname}, + {0,0} }; -static swig_lua_method swig_rlString_cls_methods[] = { +static swig_lua_method swig_rlString_meta[] = { + { "__add", _wrap_rlString___add}, + { "__eq", _wrap_rlString___eq}, {0,0} }; -static swig_lua_const_info swig_rlString_cls_constants[] = { + +static swig_lua_attribute swig_rlString_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlString_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlString_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlString_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlString_Sf_SwigStatic = { + "rlString", + swig_rlString_Sf_SwigStatic_methods, + swig_rlString_Sf_SwigStatic_attributes, + swig_rlString_Sf_SwigStatic_constants, + swig_rlString_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlString_bases[] = {0}; static const char *swig_rlString_base_names[] = {0}; -static swig_lua_class _wrap_class_rlString = { "rlString", &SWIGTYPE_p_rlString,_wrap_new_rlString, swig_delete_rlString, swig_rlString_methods, swig_rlString_attributes, { "rlString", swig_rlString_cls_methods, swig_rlString_cls_attributes, swig_rlString_cls_constants }, swig_rlString_bases, swig_rlString_base_names }; +static swig_lua_class _wrap_class_rlString = { "rlString", "rlString", &SWIGTYPE_p_rlString,_proxy__wrap_new_rlString, swig_delete_rlString, swig_rlString_methods, swig_rlString_attributes, &swig_rlString_Sf_SwigStatic, swig_rlString_meta, swig_rlString_bases, swig_rlString_base_names }; static int _wrap_new_rlSvgPosition__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -27613,37 +29704,61 @@ static void swig_delete_rlSvgPosition(void *obj) { rlSvgPosition *arg1 = (rlSvgPosition *) obj; delete arg1; } -static swig_lua_method swig_rlSvgPosition_methods[] = { - {"setInit", _wrap_rlSvgPosition_setInit}, - {"move", _wrap_rlSvgPosition_move}, - {"moveRelative", _wrap_rlSvgPosition_moveRelative}, - {"scale", _wrap_rlSvgPosition_scale}, - {"scaleRelative", _wrap_rlSvgPosition_scaleRelative}, - {"rotate", _wrap_rlSvgPosition_rotate}, - {0,0} -}; +static int _proxy__wrap_new_rlSvgPosition(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSvgPosition); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlSvgPosition_attributes[] = { - { "sx", _wrap_rlSvgPosition_sx_get, _wrap_rlSvgPosition_sx_set}, - { "alpha", _wrap_rlSvgPosition_alpha_get, _wrap_rlSvgPosition_alpha_set}, - { "x0", _wrap_rlSvgPosition_x0_get, _wrap_rlSvgPosition_x0_set}, - { "y0", _wrap_rlSvgPosition_y0_get, _wrap_rlSvgPosition_y0_set}, - { "cx", _wrap_rlSvgPosition_cx_get, _wrap_rlSvgPosition_cx_set}, - { "cy", _wrap_rlSvgPosition_cy_get, _wrap_rlSvgPosition_cy_set}, - { "init", _wrap_rlSvgPosition_init_get, _wrap_rlSvgPosition_init_set}, + { "sx", _wrap_rlSvgPosition_sx_get, _wrap_rlSvgPosition_sx_set }, + { "alpha", _wrap_rlSvgPosition_alpha_get, _wrap_rlSvgPosition_alpha_set }, + { "x0", _wrap_rlSvgPosition_x0_get, _wrap_rlSvgPosition_x0_set }, + { "y0", _wrap_rlSvgPosition_y0_get, _wrap_rlSvgPosition_y0_set }, + { "cx", _wrap_rlSvgPosition_cx_get, _wrap_rlSvgPosition_cx_set }, + { "cy", _wrap_rlSvgPosition_cy_get, _wrap_rlSvgPosition_cy_set }, + { "init", _wrap_rlSvgPosition_init_get, _wrap_rlSvgPosition_init_set }, {0,0,0} }; -static swig_lua_attribute swig_rlSvgPosition_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlSvgPosition_methods[]= { + { "setInit", _wrap_rlSvgPosition_setInit}, + { "move", _wrap_rlSvgPosition_move}, + { "moveRelative", _wrap_rlSvgPosition_moveRelative}, + { "scale", _wrap_rlSvgPosition_scale}, + { "scaleRelative", _wrap_rlSvgPosition_scaleRelative}, + { "rotate", _wrap_rlSvgPosition_rotate}, + {0,0} }; -static swig_lua_method swig_rlSvgPosition_cls_methods[] = { +static swig_lua_method swig_rlSvgPosition_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlSvgPosition_cls_constants[] = { + +static swig_lua_attribute swig_rlSvgPosition_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlSvgPosition_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlSvgPosition_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlSvgPosition_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSvgPosition_Sf_SwigStatic = { + "rlSvgPosition", + swig_rlSvgPosition_Sf_SwigStatic_methods, + swig_rlSvgPosition_Sf_SwigStatic_attributes, + swig_rlSvgPosition_Sf_SwigStatic_constants, + swig_rlSvgPosition_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlSvgPosition_bases[] = {0}; static const char *swig_rlSvgPosition_base_names[] = {0}; -static swig_lua_class _wrap_class_rlSvgPosition = { "rlSvgPosition", &SWIGTYPE_p_rlSvgPosition,_wrap_new_rlSvgPosition, swig_delete_rlSvgPosition, swig_rlSvgPosition_methods, swig_rlSvgPosition_attributes, { "rlSvgPosition", swig_rlSvgPosition_cls_methods, swig_rlSvgPosition_cls_attributes, swig_rlSvgPosition_cls_constants }, swig_rlSvgPosition_bases, swig_rlSvgPosition_base_names }; +static swig_lua_class _wrap_class_rlSvgPosition = { "rlSvgPosition", "rlSvgPosition", &SWIGTYPE_p_rlSvgPosition,_proxy__wrap_new_rlSvgPosition, swig_delete_rlSvgPosition, swig_rlSvgPosition_methods, swig_rlSvgPosition_attributes, &swig_rlSvgPosition_Sf_SwigStatic, swig_rlSvgPosition_meta, swig_rlSvgPosition_bases, swig_rlSvgPosition_base_names }; static int _wrap_new_rlSvgAnimator(lua_State* L) { int SWIG_arg = 0; @@ -29002,62 +31117,86 @@ static void swig_delete_rlSvgAnimator(void *obj) { rlSvgAnimator *arg1 = (rlSvgAnimator *) obj; delete arg1; } -static swig_lua_method swig_rlSvgAnimator_methods[] = { - {"setSocket", _wrap_rlSvgAnimator_setSocket}, - {"setId", _wrap_rlSvgAnimator_setId}, - {"read", _wrap_rlSvgAnimator_read}, - {"writeSocket", _wrap_rlSvgAnimator_writeSocket}, - {"svgPrintf", _wrap_rlSvgAnimator_svgPrintf}, - {"svgRecursivePrintf", _wrap_rlSvgAnimator_svgRecursivePrintf}, - {"svgSearchAndReplace", _wrap_rlSvgAnimator_svgSearchAndReplace}, - {"svgRecursiveSearchAndReplace", _wrap_rlSvgAnimator_svgRecursiveSearchAndReplace}, - {"svgTextPrintf", _wrap_rlSvgAnimator_svgTextPrintf}, - {"svgRemoveStyleOption", _wrap_rlSvgAnimator_svgRemoveStyleOption}, - {"svgRecursiveRemoveStyleOption", _wrap_rlSvgAnimator_svgRecursiveRemoveStyleOption}, - {"svgChangeStyleOption", _wrap_rlSvgAnimator_svgChangeStyleOption}, - {"svgRecursiveChangeStyleOption", _wrap_rlSvgAnimator_svgRecursiveChangeStyleOption}, - {"svgSetStyleOption", _wrap_rlSvgAnimator_svgSetStyleOption}, - {"svgRecursiveSetStyleOption", _wrap_rlSvgAnimator_svgRecursiveSetStyleOption}, - {"show", _wrap_rlSvgAnimator_show}, - {"setMatrix", _wrap_rlSvgAnimator_setMatrix}, - {"setMainObject", _wrap_rlSvgAnimator_setMainObject}, - {"mainObject", _wrap_rlSvgAnimator_mainObject}, - {"setXY0", _wrap_rlSvgAnimator_setXY0}, - {"x0", _wrap_rlSvgAnimator_x0}, - {"y0", _wrap_rlSvgAnimator_y0}, - {"setMouseXY0", _wrap_rlSvgAnimator_setMouseXY0}, - {"mouseX0", _wrap_rlSvgAnimator_mouseX0}, - {"mouseY0", _wrap_rlSvgAnimator_mouseY0}, - {"setMouseXY1", _wrap_rlSvgAnimator_setMouseXY1}, - {"mouseX1", _wrap_rlSvgAnimator_mouseX1}, - {"mouseY1", _wrap_rlSvgAnimator_mouseY1}, - {"setScale", _wrap_rlSvgAnimator_setScale}, - {"scale", _wrap_rlSvgAnimator_scale}, - {"zoomCenter", _wrap_rlSvgAnimator_zoomCenter}, - {"zoomRect", _wrap_rlSvgAnimator_zoomRect}, - {"setMainObjectMatrix", _wrap_rlSvgAnimator_setMainObjectMatrix}, - {"setWindowSize", _wrap_rlSvgAnimator_setWindowSize}, - {"windowWidth", _wrap_rlSvgAnimator_windowWidth}, - {"windowHeight", _wrap_rlSvgAnimator_windowHeight}, - {"moveMainObject", _wrap_rlSvgAnimator_moveMainObject}, - {0,0} -}; +static int _proxy__wrap_new_rlSvgAnimator(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSvgAnimator); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlSvgAnimator_attributes[] = { - { "isModified", _wrap_rlSvgAnimator_isModified_get, _wrap_rlSvgAnimator_isModified_set}, + { "isModified", _wrap_rlSvgAnimator_isModified_get, _wrap_rlSvgAnimator_isModified_set }, {0,0,0} }; -static swig_lua_attribute swig_rlSvgAnimator_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlSvgAnimator_methods[]= { + { "setSocket", _wrap_rlSvgAnimator_setSocket}, + { "setId", _wrap_rlSvgAnimator_setId}, + { "read", _wrap_rlSvgAnimator_read}, + { "writeSocket", _wrap_rlSvgAnimator_writeSocket}, + { "svgPrintf", _wrap_rlSvgAnimator_svgPrintf}, + { "svgRecursivePrintf", _wrap_rlSvgAnimator_svgRecursivePrintf}, + { "svgSearchAndReplace", _wrap_rlSvgAnimator_svgSearchAndReplace}, + { "svgRecursiveSearchAndReplace", _wrap_rlSvgAnimator_svgRecursiveSearchAndReplace}, + { "svgTextPrintf", _wrap_rlSvgAnimator_svgTextPrintf}, + { "svgRemoveStyleOption", _wrap_rlSvgAnimator_svgRemoveStyleOption}, + { "svgRecursiveRemoveStyleOption", _wrap_rlSvgAnimator_svgRecursiveRemoveStyleOption}, + { "svgChangeStyleOption", _wrap_rlSvgAnimator_svgChangeStyleOption}, + { "svgRecursiveChangeStyleOption", _wrap_rlSvgAnimator_svgRecursiveChangeStyleOption}, + { "svgSetStyleOption", _wrap_rlSvgAnimator_svgSetStyleOption}, + { "svgRecursiveSetStyleOption", _wrap_rlSvgAnimator_svgRecursiveSetStyleOption}, + { "show", _wrap_rlSvgAnimator_show}, + { "setMatrix", _wrap_rlSvgAnimator_setMatrix}, + { "setMainObject", _wrap_rlSvgAnimator_setMainObject}, + { "mainObject", _wrap_rlSvgAnimator_mainObject}, + { "setXY0", _wrap_rlSvgAnimator_setXY0}, + { "x0", _wrap_rlSvgAnimator_x0}, + { "y0", _wrap_rlSvgAnimator_y0}, + { "setMouseXY0", _wrap_rlSvgAnimator_setMouseXY0}, + { "mouseX0", _wrap_rlSvgAnimator_mouseX0}, + { "mouseY0", _wrap_rlSvgAnimator_mouseY0}, + { "setMouseXY1", _wrap_rlSvgAnimator_setMouseXY1}, + { "mouseX1", _wrap_rlSvgAnimator_mouseX1}, + { "mouseY1", _wrap_rlSvgAnimator_mouseY1}, + { "setScale", _wrap_rlSvgAnimator_setScale}, + { "scale", _wrap_rlSvgAnimator_scale}, + { "zoomCenter", _wrap_rlSvgAnimator_zoomCenter}, + { "zoomRect", _wrap_rlSvgAnimator_zoomRect}, + { "setMainObjectMatrix", _wrap_rlSvgAnimator_setMainObjectMatrix}, + { "setWindowSize", _wrap_rlSvgAnimator_setWindowSize}, + { "windowWidth", _wrap_rlSvgAnimator_windowWidth}, + { "windowHeight", _wrap_rlSvgAnimator_windowHeight}, + { "moveMainObject", _wrap_rlSvgAnimator_moveMainObject}, + {0,0} }; -static swig_lua_method swig_rlSvgAnimator_cls_methods[] = { +static swig_lua_method swig_rlSvgAnimator_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlSvgAnimator_cls_constants[] = { + +static swig_lua_attribute swig_rlSvgAnimator_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlSvgAnimator_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlSvgAnimator_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlSvgAnimator_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSvgAnimator_Sf_SwigStatic = { + "rlSvgAnimator", + swig_rlSvgAnimator_Sf_SwigStatic_methods, + swig_rlSvgAnimator_Sf_SwigStatic_attributes, + swig_rlSvgAnimator_Sf_SwigStatic_constants, + swig_rlSvgAnimator_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlSvgAnimator_bases[] = {0}; static const char *swig_rlSvgAnimator_base_names[] = {0}; -static swig_lua_class _wrap_class_rlSvgAnimator = { "rlSvgAnimator", &SWIGTYPE_p_rlSvgAnimator,_wrap_new_rlSvgAnimator, swig_delete_rlSvgAnimator, swig_rlSvgAnimator_methods, swig_rlSvgAnimator_attributes, { "rlSvgAnimator", swig_rlSvgAnimator_cls_methods, swig_rlSvgAnimator_cls_attributes, swig_rlSvgAnimator_cls_constants }, swig_rlSvgAnimator_bases, swig_rlSvgAnimator_base_names }; +static swig_lua_class _wrap_class_rlSvgAnimator = { "rlSvgAnimator", "rlSvgAnimator", &SWIGTYPE_p_rlSvgAnimator,_proxy__wrap_new_rlSvgAnimator, swig_delete_rlSvgAnimator, swig_rlSvgAnimator_methods, swig_rlSvgAnimator_attributes, &swig_rlSvgAnimator_Sf_SwigStatic, swig_rlSvgAnimator_meta, swig_rlSvgAnimator_bases, swig_rlSvgAnimator_base_names }; static int _wrap_new_rlSvgCat(lua_State* L) { int SWIG_arg = 0; @@ -29272,28 +31411,52 @@ static void swig_delete_rlSvgCat(void *obj) { rlSvgCat *arg1 = (rlSvgCat *) obj; delete arg1; } -static swig_lua_method swig_rlSvgCat_methods[] = { - {"open", _wrap_rlSvgCat_open}, - {"reopenSocket", _wrap_rlSvgCat_reopenSocket}, - {"cat", _wrap_rlSvgCat_cat}, - {"close", _wrap_rlSvgCat_close}, - {0,0} -}; +static int _proxy__wrap_new_rlSvgCat(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlSvgCat); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlSvgCat_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_rlSvgCat_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlSvgCat_methods[]= { + { "open", _wrap_rlSvgCat_open}, + { "reopenSocket", _wrap_rlSvgCat_reopenSocket}, + { "cat", _wrap_rlSvgCat_cat}, + { "close", _wrap_rlSvgCat_close}, + {0,0} }; -static swig_lua_method swig_rlSvgCat_cls_methods[] = { +static swig_lua_method swig_rlSvgCat_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlSvgCat_cls_constants[] = { + +static swig_lua_attribute swig_rlSvgCat_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlSvgCat_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlSvgCat_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlSvgCat_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlSvgCat_Sf_SwigStatic = { + "rlSvgCat", + swig_rlSvgCat_Sf_SwigStatic_methods, + swig_rlSvgCat_Sf_SwigStatic_attributes, + swig_rlSvgCat_Sf_SwigStatic_constants, + swig_rlSvgCat_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlSvgCat_bases[] = {0}; static const char *swig_rlSvgCat_base_names[] = {0}; -static swig_lua_class _wrap_class_rlSvgCat = { "rlSvgCat", &SWIGTYPE_p_rlSvgCat,_wrap_new_rlSvgCat, swig_delete_rlSvgCat, swig_rlSvgCat_methods, swig_rlSvgCat_attributes, { "rlSvgCat", swig_rlSvgCat_cls_methods, swig_rlSvgCat_cls_attributes, swig_rlSvgCat_cls_constants }, swig_rlSvgCat_bases, swig_rlSvgCat_base_names }; +static swig_lua_class _wrap_class_rlSvgCat = { "rlSvgCat", "rlSvgCat", &SWIGTYPE_p_rlSvgCat,_proxy__wrap_new_rlSvgCat, swig_delete_rlSvgCat, swig_rlSvgCat_methods, swig_rlSvgCat_attributes, &swig_rlSvgCat_Sf_SwigStatic, swig_rlSvgCat_meta, swig_rlSvgCat_bases, swig_rlSvgCat_base_names }; static int _wrap_new_rlTime__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -29887,13 +32050,13 @@ static int _wrap_rlTime_secondsSinceEpoche(lua_State* L) { double result; SWIG_check_num_args("rlTime::secondsSinceEpoche",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::secondsSinceEpoche",1,"rlTime *"); + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::secondsSinceEpoche",1,"rlTime const *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ SWIG_fail_ptr("rlTime_secondsSinceEpoche",1,SWIGTYPE_p_rlTime); } - result = (double)(arg1)->secondsSinceEpoche(); + result = (double)((rlTime const *)arg1)->secondsSinceEpoche(); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; @@ -29908,23 +32071,25 @@ static int _wrap_rlTime_secondsSinceEpoche(lua_State* L) { static int _wrap_rlTime___add(lua_State* L) { int SWIG_arg = 0; rlTime *arg1 = (rlTime *) 0 ; - rlTime *arg2 = 0 ; + time_t arg2 ; + time_t *argp2 ; rlTime result; SWIG_check_num_args("rlTime::operator +",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::operator +",1,"rlTime *"); - if(!lua_isuserdata(L,2)) SWIG_fail_arg("rlTime::operator +",2,"rlTime &"); + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::operator +",1,"rlTime const *"); + if(!lua_isuserdata(L,2)) SWIG_fail_arg("rlTime::operator +",2,"time_t"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ SWIG_fail_ptr("rlTime___add",1,SWIGTYPE_p_rlTime); } - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime___add",2,SWIGTYPE_p_rlTime); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_time_t,0))){ + SWIG_fail_ptr("rlTime___add",2,SWIGTYPE_p_time_t); } + arg2 = *argp2; - result = (arg1)->operator +(*arg2); + result = ((rlTime const *)arg1)->operator +(arg2); { rlTime * resultptr = new rlTime((const rlTime &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_rlTime,1); SWIG_arg++; @@ -29939,26 +32104,28 @@ static int _wrap_rlTime___add(lua_State* L) { } -static int _wrap_rlTime___sub(lua_State* L) { +static int _wrap_rlTime___sub__SWIG_0(lua_State* L) { int SWIG_arg = 0; rlTime *arg1 = (rlTime *) 0 ; - rlTime *arg2 = 0 ; + time_t arg2 ; + time_t *argp2 ; rlTime result; SWIG_check_num_args("rlTime::operator -",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::operator -",1,"rlTime *"); - if(!lua_isuserdata(L,2)) SWIG_fail_arg("rlTime::operator -",2,"rlTime &"); + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::operator -",1,"rlTime const *"); + if(!lua_isuserdata(L,2)) SWIG_fail_arg("rlTime::operator -",2,"time_t"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ SWIG_fail_ptr("rlTime___sub",1,SWIGTYPE_p_rlTime); } - if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime___sub",2,SWIGTYPE_p_rlTime); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&argp2,SWIGTYPE_p_time_t,0))){ + SWIG_fail_ptr("rlTime___sub",2,SWIGTYPE_p_time_t); } + arg2 = *argp2; - result = (arg1)->operator -(*arg2); + result = ((rlTime const *)arg1)->operator -(arg2); { rlTime * resultptr = new rlTime((const rlTime &) result); SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_rlTime,1); SWIG_arg++; @@ -29973,6 +32140,101 @@ static int _wrap_rlTime___sub(lua_State* L) { } +static int _wrap_rlTime___sub__SWIG_1(lua_State* L) { + int SWIG_arg = 0; + rlTime *arg1 = (rlTime *) 0 ; + rlTime *arg2 = 0 ; + double result; + + SWIG_check_num_args("rlTime::operator -",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::operator -",1,"rlTime const *"); + if(!lua_isuserdata(L,2)) SWIG_fail_arg("rlTime::operator -",2,"rlTime const &"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ + SWIG_fail_ptr("rlTime___sub",1,SWIGTYPE_p_rlTime); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_rlTime,0))){ + SWIG_fail_ptr("rlTime___sub",2,SWIGTYPE_p_rlTime); + } + + result = (double)((rlTime const *)arg1)->operator -((rlTime const &)*arg2); + lua_pushnumber(L, (lua_Number) result); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_rlTime___sub(lua_State* L) { + int argc; + int argv[3]={ + 1,2,3 + }; + + argc = lua_gettop(L); + if (argc == 2) { + int _v; + { + void *ptr; + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_rlTime, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + { + void *ptr; + if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_time_t, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + return _wrap_rlTime___sub__SWIG_0(L); + } + } + } + if (argc == 2) { + int _v; + { + void *ptr; + if (SWIG_isptrtype(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_rlTime, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + { + void *ptr; + if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_rlTime, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + return _wrap_rlTime___sub__SWIG_1(L); + } + } + } + + SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'rlTime___sub'\n" + " Possible C/C++ prototypes are:\n" + " rlTime::operator -(time_t) const\n" + " rlTime::operator -(rlTime const &) const\n"); + lua_error(L);return 0; +} + + static int _wrap_rlTime___eq(lua_State* L) { int SWIG_arg = 0; rlTime *arg1 = (rlTime *) 0 ; @@ -29980,8 +32242,8 @@ static int _wrap_rlTime___eq(lua_State* L) { int result; SWIG_check_num_args("rlTime::operator ==",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::operator ==",1,"rlTime *"); - if(!lua_isuserdata(L,2)) SWIG_fail_arg("rlTime::operator ==",2,"rlTime &"); + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::operator ==",1,"rlTime const *"); + if(!lua_isuserdata(L,2)) SWIG_fail_arg("rlTime::operator ==",2,"rlTime const &"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ SWIG_fail_ptr("rlTime___eq",1,SWIGTYPE_p_rlTime); @@ -29992,7 +32254,7 @@ static int _wrap_rlTime___eq(lua_State* L) { SWIG_fail_ptr("rlTime___eq",2,SWIGTYPE_p_rlTime); } - result = (int)(arg1)->operator ==(*arg2); + result = (int)((rlTime const *)arg1)->operator ==((rlTime const &)*arg2); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; @@ -30011,8 +32273,8 @@ static int _wrap_rlTime___lt(lua_State* L) { int result; SWIG_check_num_args("rlTime::operator <",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::operator <",1,"rlTime *"); - if(!lua_isuserdata(L,2)) SWIG_fail_arg("rlTime::operator <",2,"rlTime &"); + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::operator <",1,"rlTime const *"); + if(!lua_isuserdata(L,2)) SWIG_fail_arg("rlTime::operator <",2,"rlTime const &"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ SWIG_fail_ptr("rlTime___lt",1,SWIGTYPE_p_rlTime); @@ -30023,7 +32285,7 @@ static int _wrap_rlTime___lt(lua_State* L) { SWIG_fail_ptr("rlTime___lt",2,SWIGTYPE_p_rlTime); } - result = (int)(arg1)->operator <(*arg2); + result = (int)((rlTime const *)arg1)->operator <((rlTime const &)*arg2); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; @@ -30042,8 +32304,8 @@ static int _wrap_rlTime___le(lua_State* L) { int result; SWIG_check_num_args("rlTime::operator <=",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::operator <=",1,"rlTime *"); - if(!lua_isuserdata(L,2)) SWIG_fail_arg("rlTime::operator <=",2,"rlTime &"); + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::operator <=",1,"rlTime const *"); + if(!lua_isuserdata(L,2)) SWIG_fail_arg("rlTime::operator <=",2,"rlTime const &"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ SWIG_fail_ptr("rlTime___le",1,SWIGTYPE_p_rlTime); @@ -30054,7 +32316,7 @@ static int _wrap_rlTime___le(lua_State* L) { SWIG_fail_ptr("rlTime___le",2,SWIGTYPE_p_rlTime); } - result = (int)(arg1)->operator <=(*arg2); + result = (int)((rlTime const *)arg1)->operator <=((rlTime const &)*arg2); lua_pushnumber(L, (lua_Number) result); SWIG_arg++; return SWIG_arg; @@ -30366,22 +32628,745 @@ static int _wrap_rlTime_second_get(lua_State* L) { } -static int _wrap_rlTime_millisecond_set(lua_State* L) { +static int _wrap_rlTime_millisecond_set(lua_State* L) { + int SWIG_arg = 0; + rlTime *arg1 = (rlTime *) 0 ; + int arg2 ; + + SWIG_check_num_args("rlTime::millisecond",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::millisecond",1,"rlTime *"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("rlTime::millisecond",2,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ + SWIG_fail_ptr("rlTime_millisecond_set",1,SWIGTYPE_p_rlTime); + } + + arg2 = (int)lua_tonumber(L, 2); + if (arg1) (arg1)->millisecond = arg2; + + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_rlTime_millisecond_get(lua_State* L) { + int SWIG_arg = 0; + rlTime *arg1 = (rlTime *) 0 ; + int result; + + SWIG_check_num_args("rlTime::millisecond",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::millisecond",1,"rlTime *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ + SWIG_fail_ptr("rlTime_millisecond_get",1,SWIGTYPE_p_rlTime); + } + + result = (int) ((arg1)->millisecond); + lua_pushnumber(L, (lua_Number) result); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_rlTime_formatTimeDiff__SWIG_0(lua_State* L) { + int SWIG_arg = 0; + double arg1 ; + enum rlTime::FormatLargestUnit arg2 ; + unsigned int arg3 ; + char *arg4 = (char *) 0 ; + char *result = 0 ; + + SWIG_check_num_args("rlTime::formatTimeDiff",4,4) + if(!lua_isnumber(L,1)) SWIG_fail_arg("rlTime::formatTimeDiff",1,"double"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("rlTime::formatTimeDiff",2,"enum rlTime::FormatLargestUnit"); + if(!lua_isnumber(L,3)) SWIG_fail_arg("rlTime::formatTimeDiff",3,"unsigned int"); + if(!SWIG_lua_isnilstring(L,4)) SWIG_fail_arg("rlTime::formatTimeDiff",4,"char *"); + arg1 = (double)lua_tonumber(L, 1); + arg2 = (enum rlTime::FormatLargestUnit)(int)lua_tonumber(L, 2); + SWIG_contract_assert((lua_tonumber(L,3)>=0),"number must not be negative") + arg3 = (unsigned int)lua_tonumber(L, 3); + arg4 = (char *)lua_tostring(L, 4); + result = (char *)rlTime::formatTimeDiff(arg1,arg2,arg3,arg4); + lua_pushstring(L,(const char *)result); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_rlTime_formatTimeDiff__SWIG_1(lua_State* L) { + int SWIG_arg = 0; + double arg1 ; + enum rlTime::FormatLargestUnit arg2 ; + unsigned int arg3 ; + char *result = 0 ; + + SWIG_check_num_args("rlTime::formatTimeDiff",3,3) + if(!lua_isnumber(L,1)) SWIG_fail_arg("rlTime::formatTimeDiff",1,"double"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("rlTime::formatTimeDiff",2,"enum rlTime::FormatLargestUnit"); + if(!lua_isnumber(L,3)) SWIG_fail_arg("rlTime::formatTimeDiff",3,"unsigned int"); + arg1 = (double)lua_tonumber(L, 1); + arg2 = (enum rlTime::FormatLargestUnit)(int)lua_tonumber(L, 2); + SWIG_contract_assert((lua_tonumber(L,3)>=0),"number must not be negative") + arg3 = (unsigned int)lua_tonumber(L, 3); + result = (char *)rlTime::formatTimeDiff(arg1,arg2,arg3); + lua_pushstring(L,(const char *)result); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_rlTime_formatTimeDiff__SWIG_2(lua_State* L) { + int SWIG_arg = 0; + double arg1 ; + enum rlTime::FormatLargestUnit arg2 ; + char *result = 0 ; + + SWIG_check_num_args("rlTime::formatTimeDiff",2,2) + if(!lua_isnumber(L,1)) SWIG_fail_arg("rlTime::formatTimeDiff",1,"double"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("rlTime::formatTimeDiff",2,"enum rlTime::FormatLargestUnit"); + arg1 = (double)lua_tonumber(L, 1); + arg2 = (enum rlTime::FormatLargestUnit)(int)lua_tonumber(L, 2); + result = (char *)rlTime::formatTimeDiff(arg1,arg2); + lua_pushstring(L,(const char *)result); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_rlTime_formatTimeDiff__SWIG_3(lua_State* L) { + int SWIG_arg = 0; + double arg1 ; + char *result = 0 ; + + SWIG_check_num_args("rlTime::formatTimeDiff",1,1) + if(!lua_isnumber(L,1)) SWIG_fail_arg("rlTime::formatTimeDiff",1,"double"); + arg1 = (double)lua_tonumber(L, 1); + result = (char *)rlTime::formatTimeDiff(arg1); + lua_pushstring(L,(const char *)result); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_rlTime_formatTimeDiff__SWIG_4(lua_State* L) { + int SWIG_arg = 0; + rlTime *arg1 = 0 ; + rlTime *arg2 = 0 ; + enum rlTime::FormatLargestUnit arg3 ; + unsigned int arg4 ; + char *arg5 = (char *) 0 ; + char *result = 0 ; + + SWIG_check_num_args("rlTime::formatTimeDiff",5,5) + if(!lua_isuserdata(L,1)) SWIG_fail_arg("rlTime::formatTimeDiff",1,"rlTime const &"); + if(!lua_isuserdata(L,2)) SWIG_fail_arg("rlTime::formatTimeDiff",2,"rlTime const &"); + if(!lua_isnumber(L,3)) SWIG_fail_arg("rlTime::formatTimeDiff",3,"enum rlTime::FormatLargestUnit"); + if(!lua_isnumber(L,4)) SWIG_fail_arg("rlTime::formatTimeDiff",4,"unsigned int"); + if(!SWIG_lua_isnilstring(L,5)) SWIG_fail_arg("rlTime::formatTimeDiff",5,"char *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ + SWIG_fail_ptr("rlTime_formatTimeDiff",1,SWIGTYPE_p_rlTime); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_rlTime,0))){ + SWIG_fail_ptr("rlTime_formatTimeDiff",2,SWIGTYPE_p_rlTime); + } + + arg3 = (enum rlTime::FormatLargestUnit)(int)lua_tonumber(L, 3); + SWIG_contract_assert((lua_tonumber(L,4)>=0),"number must not be negative") + arg4 = (unsigned int)lua_tonumber(L, 4); + arg5 = (char *)lua_tostring(L, 5); + result = (char *)rlTime::formatTimeDiff((rlTime const &)*arg1,(rlTime const &)*arg2,arg3,arg4,arg5); + lua_pushstring(L,(const char *)result); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_rlTime_formatTimeDiff__SWIG_5(lua_State* L) { + int SWIG_arg = 0; + rlTime *arg1 = 0 ; + rlTime *arg2 = 0 ; + enum rlTime::FormatLargestUnit arg3 ; + unsigned int arg4 ; + char *result = 0 ; + + SWIG_check_num_args("rlTime::formatTimeDiff",4,4) + if(!lua_isuserdata(L,1)) SWIG_fail_arg("rlTime::formatTimeDiff",1,"rlTime const &"); + if(!lua_isuserdata(L,2)) SWIG_fail_arg("rlTime::formatTimeDiff",2,"rlTime const &"); + if(!lua_isnumber(L,3)) SWIG_fail_arg("rlTime::formatTimeDiff",3,"enum rlTime::FormatLargestUnit"); + if(!lua_isnumber(L,4)) SWIG_fail_arg("rlTime::formatTimeDiff",4,"unsigned int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ + SWIG_fail_ptr("rlTime_formatTimeDiff",1,SWIGTYPE_p_rlTime); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_rlTime,0))){ + SWIG_fail_ptr("rlTime_formatTimeDiff",2,SWIGTYPE_p_rlTime); + } + + arg3 = (enum rlTime::FormatLargestUnit)(int)lua_tonumber(L, 3); + SWIG_contract_assert((lua_tonumber(L,4)>=0),"number must not be negative") + arg4 = (unsigned int)lua_tonumber(L, 4); + result = (char *)rlTime::formatTimeDiff((rlTime const &)*arg1,(rlTime const &)*arg2,arg3,arg4); + lua_pushstring(L,(const char *)result); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_rlTime_formatTimeDiff__SWIG_6(lua_State* L) { + int SWIG_arg = 0; + rlTime *arg1 = 0 ; + rlTime *arg2 = 0 ; + enum rlTime::FormatLargestUnit arg3 ; + char *result = 0 ; + + SWIG_check_num_args("rlTime::formatTimeDiff",3,3) + if(!lua_isuserdata(L,1)) SWIG_fail_arg("rlTime::formatTimeDiff",1,"rlTime const &"); + if(!lua_isuserdata(L,2)) SWIG_fail_arg("rlTime::formatTimeDiff",2,"rlTime const &"); + if(!lua_isnumber(L,3)) SWIG_fail_arg("rlTime::formatTimeDiff",3,"enum rlTime::FormatLargestUnit"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ + SWIG_fail_ptr("rlTime_formatTimeDiff",1,SWIGTYPE_p_rlTime); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_rlTime,0))){ + SWIG_fail_ptr("rlTime_formatTimeDiff",2,SWIGTYPE_p_rlTime); + } + + arg3 = (enum rlTime::FormatLargestUnit)(int)lua_tonumber(L, 3); + result = (char *)rlTime::formatTimeDiff((rlTime const &)*arg1,(rlTime const &)*arg2,arg3); + lua_pushstring(L,(const char *)result); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_rlTime_formatTimeDiff__SWIG_7(lua_State* L) { + int SWIG_arg = 0; + rlTime *arg1 = 0 ; + rlTime *arg2 = 0 ; + char *result = 0 ; + + SWIG_check_num_args("rlTime::formatTimeDiff",2,2) + if(!lua_isuserdata(L,1)) SWIG_fail_arg("rlTime::formatTimeDiff",1,"rlTime const &"); + if(!lua_isuserdata(L,2)) SWIG_fail_arg("rlTime::formatTimeDiff",2,"rlTime const &"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ + SWIG_fail_ptr("rlTime_formatTimeDiff",1,SWIGTYPE_p_rlTime); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_rlTime,0))){ + SWIG_fail_ptr("rlTime_formatTimeDiff",2,SWIGTYPE_p_rlTime); + } + + result = (char *)rlTime::formatTimeDiff((rlTime const &)*arg1,(rlTime const &)*arg2); + lua_pushstring(L,(const char *)result); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_rlTime_formatTimeDiff(lua_State* L) { + int argc; + int argv[6]={ + 1,2,3,4,5,6 + }; + + argc = lua_gettop(L); + if (argc == 1) { + int _v; + { + _v = lua_isnumber(L,argv[0]); + } + if (_v) { + return _wrap_rlTime_formatTimeDiff__SWIG_3(L); + } + } + if (argc == 2) { + int _v; + { + void *ptr; + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_rlTime, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + { + void *ptr; + if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_rlTime, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + return _wrap_rlTime_formatTimeDiff__SWIG_7(L); + } + } + } + if (argc == 2) { + int _v; + { + _v = lua_isnumber(L,argv[0]); + } + if (_v) { + { + _v = lua_isnumber(L,argv[1]); + } + if (_v) { + return _wrap_rlTime_formatTimeDiff__SWIG_2(L); + } + } + } + if (argc == 3) { + int _v; + { + void *ptr; + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_rlTime, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + { + void *ptr; + if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_rlTime, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + { + _v = lua_isnumber(L,argv[2]); + } + if (_v) { + return _wrap_rlTime_formatTimeDiff__SWIG_6(L); + } + } + } + } + if (argc == 3) { + int _v; + { + _v = lua_isnumber(L,argv[0]); + } + if (_v) { + { + _v = lua_isnumber(L,argv[1]); + } + if (_v) { + { + _v = lua_isnumber(L,argv[2]); + } + if (_v) { + return _wrap_rlTime_formatTimeDiff__SWIG_1(L); + } + } + } + } + if (argc == 4) { + int _v; + { + void *ptr; + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_rlTime, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + { + void *ptr; + if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_rlTime, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + { + _v = lua_isnumber(L,argv[2]); + } + if (_v) { + { + _v = lua_isnumber(L,argv[3]); + } + if (_v) { + return _wrap_rlTime_formatTimeDiff__SWIG_5(L); + } + } + } + } + } + if (argc == 4) { + int _v; + { + _v = lua_isnumber(L,argv[0]); + } + if (_v) { + { + _v = lua_isnumber(L,argv[1]); + } + if (_v) { + { + _v = lua_isnumber(L,argv[2]); + } + if (_v) { + { + _v = SWIG_lua_isnilstring(L,argv[3]); + } + if (_v) { + return _wrap_rlTime_formatTimeDiff__SWIG_0(L); + } + } + } + } + } + if (argc == 5) { + int _v; + { + void *ptr; + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_rlTime, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + { + void *ptr; + if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_rlTime, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + { + _v = lua_isnumber(L,argv[2]); + } + if (_v) { + { + _v = lua_isnumber(L,argv[3]); + } + if (_v) { + { + _v = SWIG_lua_isnilstring(L,argv[4]); + } + if (_v) { + return _wrap_rlTime_formatTimeDiff__SWIG_4(L); + } + } + } + } + } + } + + SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'rlTime_formatTimeDiff'\n" + " Possible C/C++ prototypes are:\n" + " rlTime::formatTimeDiff(double,enum rlTime::FormatLargestUnit,unsigned int,char *)\n" + " rlTime::formatTimeDiff(double,enum rlTime::FormatLargestUnit,unsigned int)\n" + " rlTime::formatTimeDiff(double,enum rlTime::FormatLargestUnit)\n" + " rlTime::formatTimeDiff(double)\n" + " rlTime::formatTimeDiff(rlTime const &,rlTime const &,enum rlTime::FormatLargestUnit,unsigned int,char *)\n" + " rlTime::formatTimeDiff(rlTime const &,rlTime const &,enum rlTime::FormatLargestUnit,unsigned int)\n" + " rlTime::formatTimeDiff(rlTime const &,rlTime const &,enum rlTime::FormatLargestUnit)\n" + " rlTime::formatTimeDiff(rlTime const &,rlTime const &)\n"); + lua_error(L);return 0; +} + + +static int _wrap_rlTime_formatTimeDiffString__SWIG_0(lua_State* L) { + int SWIG_arg = 0; + double arg1 ; + enum rlTime::FormatLargestUnit arg2 ; + std::string result; + + SWIG_check_num_args("rlTime::formatTimeDiffString",2,2) + if(!lua_isnumber(L,1)) SWIG_fail_arg("rlTime::formatTimeDiffString",1,"double"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("rlTime::formatTimeDiffString",2,"enum rlTime::FormatLargestUnit"); + arg1 = (double)lua_tonumber(L, 1); + arg2 = (enum rlTime::FormatLargestUnit)(int)lua_tonumber(L, 2); + result = rlTime::formatTimeDiffString(arg1,arg2); + { + std::string * resultptr = new std::string((const std::string &) result); + SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_std__string,1); SWIG_arg++; + } + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_rlTime_formatTimeDiffString__SWIG_1(lua_State* L) { + int SWIG_arg = 0; + double arg1 ; + std::string result; + + SWIG_check_num_args("rlTime::formatTimeDiffString",1,1) + if(!lua_isnumber(L,1)) SWIG_fail_arg("rlTime::formatTimeDiffString",1,"double"); + arg1 = (double)lua_tonumber(L, 1); + result = rlTime::formatTimeDiffString(arg1); + { + std::string * resultptr = new std::string((const std::string &) result); + SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_std__string,1); SWIG_arg++; + } + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_rlTime_formatTimeDiffString__SWIG_2(lua_State* L) { + int SWIG_arg = 0; + rlTime *arg1 = 0 ; + rlTime *arg2 = 0 ; + enum rlTime::FormatLargestUnit arg3 ; + std::string result; + + SWIG_check_num_args("rlTime::formatTimeDiffString",3,3) + if(!lua_isuserdata(L,1)) SWIG_fail_arg("rlTime::formatTimeDiffString",1,"rlTime const &"); + if(!lua_isuserdata(L,2)) SWIG_fail_arg("rlTime::formatTimeDiffString",2,"rlTime const &"); + if(!lua_isnumber(L,3)) SWIG_fail_arg("rlTime::formatTimeDiffString",3,"enum rlTime::FormatLargestUnit"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ + SWIG_fail_ptr("rlTime_formatTimeDiffString",1,SWIGTYPE_p_rlTime); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_rlTime,0))){ + SWIG_fail_ptr("rlTime_formatTimeDiffString",2,SWIGTYPE_p_rlTime); + } + + arg3 = (enum rlTime::FormatLargestUnit)(int)lua_tonumber(L, 3); + result = rlTime::formatTimeDiffString((rlTime const &)*arg1,(rlTime const &)*arg2,arg3); + { + std::string * resultptr = new std::string((const std::string &) result); + SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_std__string,1); SWIG_arg++; + } + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_rlTime_formatTimeDiffString__SWIG_3(lua_State* L) { + int SWIG_arg = 0; + rlTime *arg1 = 0 ; + rlTime *arg2 = 0 ; + std::string result; + + SWIG_check_num_args("rlTime::formatTimeDiffString",2,2) + if(!lua_isuserdata(L,1)) SWIG_fail_arg("rlTime::formatTimeDiffString",1,"rlTime const &"); + if(!lua_isuserdata(L,2)) SWIG_fail_arg("rlTime::formatTimeDiffString",2,"rlTime const &"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ + SWIG_fail_ptr("rlTime_formatTimeDiffString",1,SWIGTYPE_p_rlTime); + } + + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,2,(void**)&arg2,SWIGTYPE_p_rlTime,0))){ + SWIG_fail_ptr("rlTime_formatTimeDiffString",2,SWIGTYPE_p_rlTime); + } + + result = rlTime::formatTimeDiffString((rlTime const &)*arg1,(rlTime const &)*arg2); + { + std::string * resultptr = new std::string((const std::string &) result); + SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_std__string,1); SWIG_arg++; + } + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_rlTime_formatTimeDiffString(lua_State* L) { + int argc; + int argv[4]={ + 1,2,3,4 + }; + + argc = lua_gettop(L); + if (argc == 1) { + int _v; + { + _v = lua_isnumber(L,argv[0]); + } + if (_v) { + return _wrap_rlTime_formatTimeDiffString__SWIG_1(L); + } + } + if (argc == 2) { + int _v; + { + void *ptr; + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_rlTime, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + { + void *ptr; + if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_rlTime, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + return _wrap_rlTime_formatTimeDiffString__SWIG_3(L); + } + } + } + if (argc == 2) { + int _v; + { + _v = lua_isnumber(L,argv[0]); + } + if (_v) { + { + _v = lua_isnumber(L,argv[1]); + } + if (_v) { + return _wrap_rlTime_formatTimeDiffString__SWIG_0(L); + } + } + } + if (argc == 3) { + int _v; + { + void *ptr; + if (lua_isuserdata(L,argv[0])==0 || SWIG_ConvertPtr(L,argv[0], (void **) &ptr, SWIGTYPE_p_rlTime, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + { + void *ptr; + if (lua_isuserdata(L,argv[1])==0 || SWIG_ConvertPtr(L,argv[1], (void **) &ptr, SWIGTYPE_p_rlTime, 0)) { + _v = 0; + } else { + _v = 1; + } + } + if (_v) { + { + _v = lua_isnumber(L,argv[2]); + } + if (_v) { + return _wrap_rlTime_formatTimeDiffString__SWIG_2(L); + } + } + } + } + + SWIG_Lua_pusherrstring(L,"Wrong arguments for overloaded function 'rlTime_formatTimeDiffString'\n" + " Possible C/C++ prototypes are:\n" + " rlTime::formatTimeDiffString(double,enum rlTime::FormatLargestUnit)\n" + " rlTime::formatTimeDiffString(double)\n" + " rlTime::formatTimeDiffString(rlTime const &,rlTime const &,enum rlTime::FormatLargestUnit)\n" + " rlTime::formatTimeDiffString(rlTime const &,rlTime const &)\n"); + lua_error(L);return 0; +} + + +static int _wrap_rlTime_timegm(lua_State* L) { int SWIG_arg = 0; - rlTime *arg1 = (rlTime *) 0 ; - int arg2 ; + tm *arg1 = (tm *) 0 ; + time_t result; - SWIG_check_num_args("rlTime::millisecond",2,2) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::millisecond",1,"rlTime *"); - if(!lua_isnumber(L,2)) SWIG_fail_arg("rlTime::millisecond",2,"int"); + SWIG_check_num_args("rlTime::timegm",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::timegm",1,"tm *"); - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime_millisecond_set",1,SWIGTYPE_p_rlTime); + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_tm,0))){ + SWIG_fail_ptr("rlTime_timegm",1,SWIGTYPE_p_tm); } - arg2 = (int)lua_tonumber(L, 2); - if (arg1) (arg1)->millisecond = arg2; - + result = rlTime::timegm(arg1); + { + time_t * resultptr = new time_t((const time_t &) result); + SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_time_t,1); SWIG_arg++; + } return SWIG_arg; if(0) SWIG_fail; @@ -30392,20 +33377,19 @@ static int _wrap_rlTime_millisecond_set(lua_State* L) { } -static int _wrap_rlTime_millisecond_get(lua_State* L) { +static int _wrap_rlTime_normalizeAsDate(lua_State* L) { int SWIG_arg = 0; rlTime *arg1 = (rlTime *) 0 ; - int result; - SWIG_check_num_args("rlTime::millisecond",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::millisecond",1,"rlTime *"); + SWIG_check_num_args("rlTime::normalizeAsDate",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("rlTime::normalizeAsDate",1,"rlTime *"); if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_rlTime,0))){ - SWIG_fail_ptr("rlTime_millisecond_get",1,SWIGTYPE_p_rlTime); + SWIG_fail_ptr("rlTime_normalizeAsDate",1,SWIGTYPE_p_rlTime); } - result = (int) ((arg1)->millisecond); - lua_pushnumber(L, (lua_Number) result); SWIG_arg++; + (arg1)->normalizeAsDate(); + return SWIG_arg; if(0) SWIG_fail; @@ -30420,44 +33404,85 @@ static void swig_delete_rlTime(void *obj) { rlTime *arg1 = (rlTime *) obj; delete arg1; } -static swig_lua_method swig_rlTime_methods[] = { - {"getTimeString", _wrap_rlTime_getTimeString}, - {"getIsoTimeString", _wrap_rlTime_getIsoTimeString}, - {"getLocalTime", _wrap_rlTime_getLocalTime}, - {"getFileModificationTime", _wrap_rlTime_getFileModificationTime}, - {"setTimeFromString", _wrap_rlTime_setTimeFromString}, - {"setTimeFromIsoString", _wrap_rlTime_setTimeFromIsoString}, - {"setLocalTime", _wrap_rlTime_setLocalTime}, - {"secondsSinceEpoche", _wrap_rlTime_secondsSinceEpoche}, - {"__add", _wrap_rlTime___add}, - {"__sub", _wrap_rlTime___sub}, - {"__eq", _wrap_rlTime___eq}, - {"__lt", _wrap_rlTime___lt}, - {"__le", _wrap_rlTime___le}, - {0,0} -}; +static int _proxy__wrap_new_rlTime(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlTime); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlTime_attributes[] = { - { "year", _wrap_rlTime_year_get, _wrap_rlTime_year_set}, - { "month", _wrap_rlTime_month_get, _wrap_rlTime_month_set}, - { "day", _wrap_rlTime_day_get, _wrap_rlTime_day_set}, - { "hour", _wrap_rlTime_hour_get, _wrap_rlTime_hour_set}, - { "minute", _wrap_rlTime_minute_get, _wrap_rlTime_minute_set}, - { "second", _wrap_rlTime_second_get, _wrap_rlTime_second_set}, - { "millisecond", _wrap_rlTime_millisecond_get, _wrap_rlTime_millisecond_set}, + { "year", _wrap_rlTime_year_get, _wrap_rlTime_year_set }, + { "month", _wrap_rlTime_month_get, _wrap_rlTime_month_set }, + { "day", _wrap_rlTime_day_get, _wrap_rlTime_day_set }, + { "hour", _wrap_rlTime_hour_get, _wrap_rlTime_hour_set }, + { "minute", _wrap_rlTime_minute_get, _wrap_rlTime_minute_set }, + { "second", _wrap_rlTime_second_get, _wrap_rlTime_second_set }, + { "millisecond", _wrap_rlTime_millisecond_get, _wrap_rlTime_millisecond_set }, {0,0,0} }; -static swig_lua_attribute swig_rlTime_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlTime_methods[]= { + { "getTimeString", _wrap_rlTime_getTimeString}, + { "getIsoTimeString", _wrap_rlTime_getIsoTimeString}, + { "getLocalTime", _wrap_rlTime_getLocalTime}, + { "getFileModificationTime", _wrap_rlTime_getFileModificationTime}, + { "setTimeFromString", _wrap_rlTime_setTimeFromString}, + { "setTimeFromIsoString", _wrap_rlTime_setTimeFromIsoString}, + { "setLocalTime", _wrap_rlTime_setLocalTime}, + { "secondsSinceEpoche", _wrap_rlTime_secondsSinceEpoche}, + { "__add", _wrap_rlTime___add}, + { "__sub", _wrap_rlTime___sub}, + { "__eq", _wrap_rlTime___eq}, + { "__lt", _wrap_rlTime___lt}, + { "__le", _wrap_rlTime___le}, + { "normalizeAsDate", _wrap_rlTime_normalizeAsDate}, + {0,0} }; -static swig_lua_method swig_rlTime_cls_methods[] = { +static swig_lua_method swig_rlTime_meta[] = { + { "__add", _wrap_rlTime___add}, + { "__sub", _wrap_rlTime___sub}, + { "__eq", _wrap_rlTime___eq}, + { "__lt", _wrap_rlTime___lt}, + { "__le", _wrap_rlTime___le}, {0,0} }; -static swig_lua_const_info swig_rlTime_cls_constants[] = { + +static swig_lua_attribute swig_rlTime_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlTime_Sf_SwigStatic_constants[]= { + {SWIG_LUA_CONSTTAB_INT("MinutesSecondsFraction", rlTime::MinutesSecondsFraction)}, + {SWIG_LUA_CONSTTAB_INT("HoursMinutesSecondsFraction", rlTime::HoursMinutesSecondsFraction)}, + {SWIG_LUA_CONSTTAB_INT("DaysHoursMinutesSecondsFraction", rlTime::DaysHoursMinutesSecondsFraction)}, + {SWIG_LUA_CONSTTAB_INT("WeeksDaysHoursMinutesSecondsFraction", rlTime::WeeksDaysHoursMinutesSecondsFraction)}, + {SWIG_LUA_CONSTTAB_INT("MinutesSeconds", rlTime::MinutesSeconds)}, + {SWIG_LUA_CONSTTAB_INT("HoursMinutesSeconds", rlTime::HoursMinutesSeconds)}, + {SWIG_LUA_CONSTTAB_INT("DaysHoursMinutesSeconds", rlTime::DaysHoursMinutesSeconds)}, + {SWIG_LUA_CONSTTAB_INT("WeeksDaysHoursMinutesSeconds", rlTime::WeeksDaysHoursMinutesSeconds)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_rlTime_Sf_SwigStatic_methods[]= { + { "formatTimeDiff", _wrap_rlTime_formatTimeDiff}, + { "formatTimeDiffString", _wrap_rlTime_formatTimeDiffString}, + { "timegm", _wrap_rlTime_timegm}, + {0,0} +}; +static swig_lua_class* swig_rlTime_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlTime_Sf_SwigStatic = { + "rlTime", + swig_rlTime_Sf_SwigStatic_methods, + swig_rlTime_Sf_SwigStatic_attributes, + swig_rlTime_Sf_SwigStatic_constants, + swig_rlTime_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlTime_bases[] = {0}; static const char *swig_rlTime_base_names[] = {0}; -static swig_lua_class _wrap_class_rlTime = { "rlTime", &SWIGTYPE_p_rlTime,_wrap_new_rlTime, swig_delete_rlTime, swig_rlTime_methods, swig_rlTime_attributes, { "rlTime", swig_rlTime_cls_methods, swig_rlTime_cls_attributes, swig_rlTime_cls_constants }, swig_rlTime_bases, swig_rlTime_base_names }; +static swig_lua_class _wrap_class_rlTime = { "rlTime", "rlTime", &SWIGTYPE_p_rlTime,_proxy__wrap_new_rlTime, swig_delete_rlTime, swig_rlTime_methods, swig_rlTime_attributes, &swig_rlTime_Sf_SwigStatic, swig_rlTime_meta, swig_rlTime_bases, swig_rlTime_base_names }; static int _wrap_new_rlWebcam(lua_State* L) { int SWIG_arg = 0; @@ -31190,36 +34215,60 @@ static void swig_delete_rlWebcam(void *obj) { rlWebcam *arg1 = (rlWebcam *) obj; delete arg1; } -static swig_lua_method swig_rlWebcam_methods[] = { - {"setUrl", _wrap_rlWebcam_setUrl}, - {"disconnect", _wrap_rlWebcam_disconnect}, - {"getSnapshot", _wrap_rlWebcam_getSnapshot}, - {"getFrame", _wrap_rlWebcam_getFrame}, - {"getFrameBuffer", _wrap_rlWebcam_getFrameBuffer}, - {"getUrl", _wrap_rlWebcam_getUrl}, - {"getHost", _wrap_rlWebcam_getHost}, - {"getPort", _wrap_rlWebcam_getPort}, - {"getPath", _wrap_rlWebcam_getPath}, - {0,0} -}; +static int _proxy__wrap_new_rlWebcam(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_rlWebcam); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_rlWebcam_attributes[] = { - { "debug", _wrap_rlWebcam_debug_get, _wrap_rlWebcam_debug_set}, - { "filename", _wrap_rlWebcam_filename_get, _wrap_rlWebcam_filename_set}, - { "sock", _wrap_rlWebcam_sock_get, _wrap_rlWebcam_sock_set}, + { "debug", _wrap_rlWebcam_debug_get, _wrap_rlWebcam_debug_set }, + { "filename", _wrap_rlWebcam_filename_get, _wrap_rlWebcam_filename_set }, + { "sock", _wrap_rlWebcam_sock_get, _wrap_rlWebcam_sock_set }, {0,0,0} }; -static swig_lua_attribute swig_rlWebcam_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_rlWebcam_methods[]= { + { "setUrl", _wrap_rlWebcam_setUrl}, + { "disconnect", _wrap_rlWebcam_disconnect}, + { "getSnapshot", _wrap_rlWebcam_getSnapshot}, + { "getFrame", _wrap_rlWebcam_getFrame}, + { "getFrameBuffer", _wrap_rlWebcam_getFrameBuffer}, + { "getUrl", _wrap_rlWebcam_getUrl}, + { "getHost", _wrap_rlWebcam_getHost}, + { "getPort", _wrap_rlWebcam_getPort}, + { "getPath", _wrap_rlWebcam_getPath}, + {0,0} }; -static swig_lua_method swig_rlWebcam_cls_methods[] = { +static swig_lua_method swig_rlWebcam_meta[] = { {0,0} }; -static swig_lua_const_info swig_rlWebcam_cls_constants[] = { + +static swig_lua_attribute swig_rlWebcam_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_rlWebcam_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_rlWebcam_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_rlWebcam_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_rlWebcam_Sf_SwigStatic = { + "rlWebcam", + swig_rlWebcam_Sf_SwigStatic_methods, + swig_rlWebcam_Sf_SwigStatic_attributes, + swig_rlWebcam_Sf_SwigStatic_constants, + swig_rlWebcam_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_rlWebcam_bases[] = {0}; static const char *swig_rlWebcam_base_names[] = {0}; -static swig_lua_class _wrap_class_rlWebcam = { "rlWebcam", &SWIGTYPE_p_rlWebcam,_wrap_new_rlWebcam, swig_delete_rlWebcam, swig_rlWebcam_methods, swig_rlWebcam_attributes, { "rlWebcam", swig_rlWebcam_cls_methods, swig_rlWebcam_cls_attributes, swig_rlWebcam_cls_constants }, swig_rlWebcam_bases, swig_rlWebcam_base_names }; +static swig_lua_class _wrap_class_rlWebcam = { "rlWebcam", "rlWebcam", &SWIGTYPE_p_rlWebcam,_proxy__wrap_new_rlWebcam, swig_delete_rlWebcam, swig_rlWebcam_methods, swig_rlWebcam_attributes, &swig_rlWebcam_Sf_SwigStatic, swig_rlWebcam_meta, swig_rlWebcam_bases, swig_rlWebcam_base_names }; static int _wrap_rlsleep(lua_State* L) { int SWIG_arg = 0; @@ -31240,73 +34289,12 @@ static int _wrap_rlsleep(lua_State* L) { } -#ifdef __cplusplus -} -#endif - -static const struct luaL_Reg swig_commands[] = { - { "rlwsa", _wrap_rlwsa}, - { "rlScoketWrite", _wrap_rlScoketWrite}, - { "rlSetDebugPrintf", _wrap_rlSetDebugPrintf}, - { "rlDebugPrintf", _wrap_rlDebugPrintf}, - { "rlInputAvailable", _wrap_rlInputAvailable}, - { "rlLastLinePrintf", _wrap_rlLastLinePrintf}, - { "rlpass", _wrap_rlpass}, - { "rlstrncpy", _wrap_rlstrncpy}, - { "rlstrlinecpy", _wrap_rlstrlinecpy}, - { "rlsnprintf", _wrap_rlsnprintf}, - { "rlSetSigtermHandler", _wrap_rlSetSigtermHandler}, - { "rlFindFile", _wrap_rlFindFile}, - { "rlGetInifile", _wrap_rlGetInifile}, - { "rlSwapShort", _wrap_rlSwapShort}, - { "rlEib1", _wrap_rlEib1}, - { "rlEib2", _wrap_rlEib2}, - { "rlLon1", _wrap_rlLon1}, - { "rlLon2", _wrap_rlLon2}, - { "rlProfibus1", _wrap_rlProfibus1}, - { "rlProfibus2", _wrap_rlProfibus2}, - { "rlCan1", _wrap_rlCan1}, - { "rlCan2", _wrap_rlCan2}, - { "rlBrowser", _wrap_rlBrowser}, - { "rlsystem", _wrap_rlsystem}, - { "rlSubmitPvserver",_wrap_rlSubmitPvserver}, - { "rlOption", _wrap_rlOption}, - { "rlIntOption", _wrap_rlIntOption}, - { "rlFloatOption", _wrap_rlFloatOption}, - { "rlTextOption", _wrap_rlTextOption}, - { "rlCopyTextfile", _wrap_rlCopyTextfile}, - { "rlupper", _wrap_rlupper}, - { "rllower", _wrap_rllower}, - { "rlStartsWith", _wrap_rlStartsWith}, - { "rlEndsWith", _wrap_rlEndsWith}, - { "rlStrMatch", _wrap_rlStrMatch}, - { "rlFRead", _wrap_rlFRead}, - { "rlFWrite", _wrap_rlFWrite}, - { "rlWriteFile", _wrap_rlWriteFile}, - { "rlMkdir",_wrap_rlMkdir}, - { "rlBitSet", _wrap_rlBitSet}, - { "rlBitClear", _wrap_rlBitClear}, - { "rlBitChange", _wrap_rlBitChange}, - { "rlBitTest", _wrap_rlBitTest}, - { "rlPushToDoubleBuffer", _wrap_rlPushToDoubleBuffer}, - { "rlPushToFloatBuffer", _wrap_rlPushToFloatBuffer}, - { "rlEventInit", _wrap_rlEventInit}, - { "rlSetEventLocation", _wrap_rlSetEventLocation}, - { "rlEventPrintf", _wrap_rlEventPrintf}, - { "rlSetTranslator",_wrap_rlSetTranslator}, - { "rltranslate",_wrap_rltranslate}, - { "rltranslate2",_wrap_rltranslate2}, - { "rlsleep", _wrap_rlsleep}, - {0,0} -}; - -static swig_lua_var_info swig_variables[] = { +static swig_lua_attribute swig_SwigModule_attributes[] = { { "rlevent_name", _wrap_rlevent_name_get, SWIG_Lua_set_immutable }, { "rlCRLF", _wrap_rlCRLF_get, SWIG_Lua_set_immutable }, {0,0,0} }; - -static swig_lua_const_info swig_constants[] = { +static swig_lua_const_info swig_SwigModule_constants[]= { {SWIG_LUA_CONSTTAB_INT("rl_PRINTF_LENGTH", 4096)}, {SWIG_LUA_CONSTTAB_INT("rl_PRINTF_LENGTH_SPREADSHEET", 4096)}, {SWIG_LUA_CONSTTAB_INT("BIT0", 1)}, @@ -31471,8 +34459,140 @@ static swig_lua_const_info swig_constants[] = { {SWIG_LUA_CONSTTAB_INT("rlSiemensTCP_LOGO", rlSiemensTCP::LOGO)}, {SWIG_LUA_CONSTTAB_INT("rlSiemensTCP_WriteBit", rlSiemensTCP::WriteBit)}, {SWIG_LUA_CONSTTAB_INT("rlSiemensTCP_WriteByte", rlSiemensTCP::WriteByte)}, + {SWIG_LUA_CONSTTAB_INT("rlTime_MinutesSecondsFraction", rlTime::MinutesSecondsFraction)}, + {SWIG_LUA_CONSTTAB_INT("rlTime_HoursMinutesSecondsFraction", rlTime::HoursMinutesSecondsFraction)}, + {SWIG_LUA_CONSTTAB_INT("rlTime_DaysHoursMinutesSecondsFraction", rlTime::DaysHoursMinutesSecondsFraction)}, + {SWIG_LUA_CONSTTAB_INT("rlTime_WeeksDaysHoursMinutesSecondsFraction", rlTime::WeeksDaysHoursMinutesSecondsFraction)}, + {SWIG_LUA_CONSTTAB_INT("rlTime_MinutesSeconds", rlTime::MinutesSeconds)}, + {SWIG_LUA_CONSTTAB_INT("rlTime_HoursMinutesSeconds", rlTime::HoursMinutesSeconds)}, + {SWIG_LUA_CONSTTAB_INT("rlTime_DaysHoursMinutesSeconds", rlTime::DaysHoursMinutesSeconds)}, + {SWIG_LUA_CONSTTAB_INT("rlTime_WeeksDaysHoursMinutesSeconds", rlTime::WeeksDaysHoursMinutesSeconds)}, {0,0,0,0,0,0} }; +static swig_lua_method swig_SwigModule_methods[]= { + { "rlwsa", _wrap_rlwsa}, + { "rlScoketWrite", _wrap_rlScoketWrite}, + { "rlSetDebugPrintf", _wrap_rlSetDebugPrintf}, + { "rlDebugPrintf", _wrap_rlDebugPrintf}, + { "rlInputAvailable", _wrap_rlInputAvailable}, + { "rlLastLinePrintf", _wrap_rlLastLinePrintf}, + { "rlpass", _wrap_rlpass}, + { "rlstrncpy", _wrap_rlstrncpy}, + { "rlstrlinecpy", _wrap_rlstrlinecpy}, + { "rlsnprintf", _wrap_rlsnprintf}, + { "rlSetSigtermHandler", _wrap_rlSetSigtermHandler}, + { "rlFindFile", _wrap_rlFindFile}, + { "rlGetInifile", _wrap_rlGetInifile}, + { "rlSwapShort", _wrap_rlSwapShort}, + { "rlEib1", _wrap_rlEib1}, + { "rlEib2", _wrap_rlEib2}, + { "rlLon1", _wrap_rlLon1}, + { "rlLon2", _wrap_rlLon2}, + { "rlProfibus1", _wrap_rlProfibus1}, + { "rlProfibus2", _wrap_rlProfibus2}, + { "rlCan1", _wrap_rlCan1}, + { "rlCan2", _wrap_rlCan2}, + { "rlBrowser", _wrap_rlBrowser}, + { "rlsystem", _wrap_rlsystem}, + { "rlSubmitPvserver", _wrap_rlSubmitPvserver}, + { "rlOption", _wrap_rlOption}, + { "rlIntOption", _wrap_rlIntOption}, + { "rlFloatOption", _wrap_rlFloatOption}, + { "rlTextOption", _wrap_rlTextOption}, + { "rlCopyTextfile", _wrap_rlCopyTextfile}, + { "rlupper", _wrap_rlupper}, + { "rllower", _wrap_rllower}, + { "rlStartsWith", _wrap_rlStartsWith}, + { "rlEndsWith", _wrap_rlEndsWith}, + { "rlStrMatch", _wrap_rlStrMatch}, + { "rlFRead", _wrap_rlFRead}, + { "rlFWrite", _wrap_rlFWrite}, + { "rlWriteFile", _wrap_rlWriteFile}, + { "rlMkdir", _wrap_rlMkdir}, + { "rlBitSet", _wrap_rlBitSet}, + { "rlBitClear", _wrap_rlBitClear}, + { "rlBitChange", _wrap_rlBitChange}, + { "rlBitTest", _wrap_rlBitTest}, + { "rlPushToDoubleBuffer", _wrap_rlPushToDoubleBuffer}, + { "rlPushToFloatBuffer", _wrap_rlPushToFloatBuffer}, + { "rlEventInit", _wrap_rlEventInit}, + { "rlSetEventLocation", _wrap_rlSetEventLocation}, + { "rlEventPrintf", _wrap_rlEventPrintf}, + { "rlSetTranslator", _wrap_rlSetTranslator}, + { "rltranslate", _wrap_rltranslate}, + { "rltranslate2", _wrap_rltranslate2}, + { "rlTime_formatTimeDiff", _wrap_rlTime_formatTimeDiff}, + { "rlTime_formatTimeDiffString", _wrap_rlTime_formatTimeDiffString}, + { "rlTime_timegm", _wrap_rlTime_timegm}, + { "rlsleep", _wrap_rlsleep}, + {0,0} +}; +static swig_lua_class* swig_SwigModule_classes[]= { +&_wrap_class_THREAD_PARAM, +&_wrap_class_rlThread, +&_wrap_class_rlMutex, +&_wrap_class_rlSemaphore, +&_wrap_class_rlSharedMemory, +&_wrap_class_rlIpAdr, +&_wrap_class_rlUdpSocket, +&_wrap_class_rlSocket, +&_wrap_class_rl3964R, +&_wrap_class_rlCommandlineInterface, +&_wrap_class_rlDataAcquisition, +&_wrap_class_rlDataAcquisitionProvider, +&_wrap_class_rlDataProvider, +&_wrap_class_rlDataProviderClient, +&_wrap_class_rlDataProviderThreads, +&_wrap_class_rlEventLogServer, +&_wrap_class_rlEventLogServerThreads, +&_wrap_class_rlFifo, +&_wrap_class_rlFileLines, +&_wrap_class_rlFileLoad, +&_wrap_class_rlHistoryLogLine, +&_wrap_class_rlHistoryLogger, +&_wrap_class_rlHistoryReaderLine, +&_wrap_class_rlHistoryReader, +&_wrap_class_rlIniFile, +&_wrap_class_rlInterpreter, +&_wrap_class_rlMailbox, +&_wrap_class_rlModbusClient, +&_wrap_class_rlModbus, +&_wrap_class_rlOpcXmlDa, +&_wrap_class_rlPcontrol, +&_wrap_class_rlPlcState, +&_wrap_class_rlPlcMem, +&_wrap_class_rlPPIClient, +&_wrap_class_rlSerial, +&_wrap_class_rlSiemensTCPClient, +&_wrap_class_rlSiemensTCP, +&_wrap_class_rlSpawn, +&_wrap_class_rlSpreadsheetCell, +&_wrap_class_rlSpreadsheetRow, +&_wrap_class_rlSpreadsheetTable, +&_wrap_class_rlSpreadsheetWorkbook, +&_wrap_class_rlString, +&_wrap_class_rlSvgPosition, +&_wrap_class_rlSvgAnimator, +&_wrap_class_rlSvgCat, +&_wrap_class_rlTime, +&_wrap_class_rlWebcam, + 0 +}; +static swig_lua_namespace* swig_SwigModule_namespaces[] = { + 0 +}; + +static swig_lua_namespace swig_SwigModule = { + "rllib", + swig_SwigModule_methods, + swig_SwigModule_attributes, + swig_SwigModule_constants, + swig_SwigModule_classes, + swig_SwigModule_namespaces +}; +#ifdef __cplusplus +} +#endif /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ @@ -31500,9 +34620,9 @@ static void *_p_rlSiemensTCPClientTo_p_rlSharedMemory(void *x, int *SWIGUNUSEDPA static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_THREAD_PARAM = {"_p_THREAD_PARAM", "THREAD_PARAM *", 0, 0, (void*)&_wrap_class_THREAD_PARAM, 0}; static swig_type_info _swigt__p_WSEMAPHORE = {"_p_WSEMAPHORE", "WSEMAPHORE *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p__rlFileLines_ = {"_p__rlFileLines_", "rlFileLines *|_rlFileLines_ *", 0, 0, (void*)&_wrap_class__rlFileLines_, 0}; -static swig_type_info _swigt__p__rlHistoryLogLine_ = {"_p__rlHistoryLogLine_", "_rlHistoryLogLine_ *|rlHistoryLogLine *", 0, 0, (void*)&_wrap_class__rlHistoryLogLine_, 0}; -static swig_type_info _swigt__p__rlHistoryReaderLine_ = {"_p__rlHistoryReaderLine_", "rlHistoryReaderLine *|_rlHistoryReaderLine_ *", 0, 0, (void*)&_wrap_class__rlHistoryReaderLine_, 0}; +static swig_type_info _swigt__p__rlFileLines_ = {"_p__rlFileLines_", "rlFileLines *|_rlFileLines_ *", 0, 0, (void*)&_wrap_class_rlFileLines, 0}; +static swig_type_info _swigt__p__rlHistoryLogLine_ = {"_p__rlHistoryLogLine_", "_rlHistoryLogLine_ *|rlHistoryLogLine *", 0, 0, (void*)&_wrap_class_rlHistoryLogLine, 0}; +static swig_type_info _swigt__p__rlHistoryReaderLine_ = {"_p__rlHistoryReaderLine_", "rlHistoryReaderLine *|_rlHistoryReaderLine_ *", 0, 0, (void*)&_wrap_class_rlHistoryReaderLine, 0}; static swig_type_info _swigt__p_a_4__char = {"_p_a_4__char", "char (*)[4]", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p_q_const__unsigned_char_int__void = {"_p_f_p_q_const__unsigned_char_int__void", "void (*)(unsigned char const *,int)", 0, 0, (void*)0, 0}; @@ -31562,6 +34682,10 @@ static swig_type_info _swigt__p_rlUdpSocket = {"_p_rlUdpSocket", "rlUdpSocket *" static swig_type_info _swigt__p_rlWebcam = {"_p_rlWebcam", "rlWebcam *", 0, 0, (void*)&_wrap_class_rlWebcam, 0}; static swig_type_info _swigt__p_short = {"_p_short", "short *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_sockaddr_in = {"_p_sockaddr_in", "sockaddr_in *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__shared_ptrT_rlSharedMemory__LockUserAddr_t = {"_p_std__shared_ptrT_rlSharedMemory__LockUserAddr_t", "std::shared_ptr< rlSharedMemory::LockUserAddr > *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_std__string = {"_p_std__string", "std::string *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_time_t = {"_p_time_t", "time_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_tm = {"_p_tm", "tm *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *", 0, 0, (void*)0, 0}; @@ -31633,6 +34757,10 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_rlWebcam, &_swigt__p_short, &_swigt__p_sockaddr_in, + &_swigt__p_std__shared_ptrT_rlSharedMemory__LockUserAddr_t, + &_swigt__p_std__string, + &_swigt__p_time_t, + &_swigt__p_tm, &_swigt__p_unsigned_char, &_swigt__p_unsigned_int, &_swigt__p_unsigned_short, @@ -31704,6 +34832,10 @@ static swig_cast_info _swigc__p_rlUdpSocket[] = { {&_swigt__p_rlUdpSocket, 0, 0 static swig_cast_info _swigc__p_rlWebcam[] = { {&_swigt__p_rlWebcam, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_short[] = { {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_sockaddr_in[] = { {&_swigt__p_sockaddr_in, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__shared_ptrT_rlSharedMemory__LockUserAddr_t[] = { {&_swigt__p_std__shared_ptrT_rlSharedMemory__LockUserAddr_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_std__string[] = { {&_swigt__p_std__string, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_time_t[] = { {&_swigt__p_time_t, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_tm[] = { {&_swigt__p_tm, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}}; @@ -31775,6 +34907,10 @@ static swig_cast_info *swig_cast_initial[] = { _swigc__p_rlWebcam, _swigc__p_short, _swigc__p_sockaddr_in, + _swigc__p_std__shared_ptrT_rlSharedMemory__LockUserAddr_t, + _swigc__p_std__string, + _swigc__p_time_t, + _swigc__p_tm, _swigc__p_unsigned_char, _swigc__p_unsigned_int, _swigc__p_unsigned_short, @@ -31797,7 +34933,7 @@ static swig_cast_info *swig_cast_initial[] = { * array with the correct data and linking the correct swig_cast_info * structures together. * - * The generated swig_type_info structures are assigned staticly to an initial + * The generated swig_type_info structures are assigned statically to an initial * array. We just loop through that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the @@ -31841,7 +34977,7 @@ SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; swig_module_info *module_head, *iter; - int found, init; + int init; /* check to see if the circular list has been setup, if not, set it up */ if (swig_module.next==0) { @@ -31860,22 +34996,18 @@ SWIG_InitializeModule(void *clientdata) { /* This is the first module loaded for this interpreter */ /* so set the swig module into the interpreter */ SWIG_SetModule(clientdata, &swig_module); - module_head = &swig_module; } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ - found=0; iter=module_head; do { if (iter==&swig_module) { - found=1; - break; + /* Our module is already in the list, so there's nothing more to do. */ + return; } iter=iter->next; } while (iter!= module_head); - /* if the is found in the list, then all is done and we may leave */ - if (found) return; - /* otherwise we must add out module into the list */ + /* otherwise we must add our module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; } @@ -32039,27 +35171,18 @@ SWIGEXPORT int SWIG_init(lua_State* L) /* default Lua action */ { #if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) /* valid for both Lua and eLua */ int i; + int globalRegister = 0; /* start with global table */ lua_pushglobaltable (L); - /* SWIG's internal initalisation */ + /* SWIG's internal initialisation */ SWIG_InitializeModule((void*)L); SWIG_PropagateClientData(); #endif -#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) +#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) || defined(SWIG_LUA_ELUA_EMULATE) /* add a global fn */ SWIG_Lua_add_function(L,"swig_type",SWIG_Lua_type); - SWIG_Lua_add_function(L,"swig_equals",SWIG_Lua_equal); - /* begin the module (its a table with the same name as the module) */ - SWIG_Lua_module_begin(L,SWIG_name); - /* add commands/functions */ - for (i = 0; swig_commands[i].name; i++){ - SWIG_Lua_module_add_function(L,swig_commands[i].name,swig_commands[i].func); - } - /* add variables */ - for (i = 0; swig_variables[i].name; i++){ - SWIG_Lua_module_add_variable(L,swig_variables[i].name,swig_variables[i].get,swig_variables[i].set); - } + SWIG_Lua_add_function(L,"swig_equals",SWIG_Lua_class_equal); #endif #if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) @@ -32069,17 +35192,34 @@ SWIGEXPORT int SWIG_init(lua_State* L) /* default Lua action */ SWIG_Lua_init_base_class(L,(swig_lua_class*)(swig_types[i]->clientdata)); } } - /* additional registration structs & classes in lua */ +#ifdef SWIG_LUA_MODULE_GLOBAL + globalRegister = 1; +#endif + + +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) + SWIG_Lua_namespace_register(L,&swig_SwigModule, globalRegister); +#endif + +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) for (i = 0; swig_types[i]; i++){ if (swig_types[i]->clientdata){ - SWIG_Lua_class_register(L,(swig_lua_class*)(swig_types[i]->clientdata)); + SWIG_Lua_elua_class_register_instance(L,(swig_lua_class*)(swig_types[i]->clientdata)); } } #endif -#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) - /* constants */ - SWIG_Lua_InstallConstants(L,swig_constants); +#if defined(SWIG_LUA_ELUA_EMULATE) + lua_newtable(L); + SWIG_Lua_elua_emulate_register(L,swig_SwigModule.ns_methods); + SWIG_Lua_elua_emulate_register_clear(L); + if(globalRegister) { + lua_pushstring(L,swig_SwigModule.name); + lua_pushvalue(L,-2); + lua_rawset(L,-4); + } +#endif + #endif #if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) diff --git a/language_bindings/language_binding_rllib_wrap_python.cxx b/language_bindings/language_binding_rllib_wrap_python.cxx deleted file mode 100644 index bf1d7835..00000000 --- a/language_bindings/language_binding_rllib_wrap_python.cxx +++ /dev/null @@ -1,39041 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.12 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -#define SWIGPYTHON -#define SWIG_PYTHON_DIRECTOR_NO_VTABLE - - -#ifdef __cplusplus -/* SwigValueWrapper is described in swig.swg */ -template class SwigValueWrapper { - struct SwigMovePointer { - T *ptr; - SwigMovePointer(T *p) : ptr(p) { } - ~SwigMovePointer() { delete ptr; } - SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } - } pointer; - SwigValueWrapper& operator=(const SwigValueWrapper& rhs); - SwigValueWrapper(const SwigValueWrapper& rhs); -public: - SwigValueWrapper() : pointer(0) { } - SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } - operator T&() const { return *pointer.ptr; } - T *operator&() { return pointer.ptr; } -}; - -template T SwigValueInit() { - return T(); -} -#endif - -/* ----------------------------------------------------------------------------- - * This section contains generic SWIG labels for method/variable - * declarations/attributes, and other compiler dependent labels. - * ----------------------------------------------------------------------------- */ - -/* template workaround for compilers that cannot correctly implement the C++ standard */ -#ifndef SWIGTEMPLATEDISAMBIGUATOR -# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) -# define SWIGTEMPLATEDISAMBIGUATOR template -# elif defined(__HP_aCC) -/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ -/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ -# define SWIGTEMPLATEDISAMBIGUATOR template -# else -# define SWIGTEMPLATEDISAMBIGUATOR -# endif -#endif - -/* inline attribute */ -#ifndef SWIGINLINE -# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) -# define SWIGINLINE inline -# else -# define SWIGINLINE -# endif -#endif - -/* attribute recognised by some compilers to avoid 'unused' warnings */ -#ifndef SWIGUNUSED -# if defined(__GNUC__) -# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) -# define SWIGUNUSED __attribute__ ((__unused__)) -# else -# define SWIGUNUSED -# endif -# elif defined(__ICC) -# define SWIGUNUSED __attribute__ ((__unused__)) -# else -# define SWIGUNUSED -# endif -#endif - -#ifndef SWIG_MSC_UNSUPPRESS_4505 -# if defined(_MSC_VER) -# pragma warning(disable : 4505) /* unreferenced local function has been removed */ -# endif -#endif - -#ifndef SWIGUNUSEDPARM -# ifdef __cplusplus -# define SWIGUNUSEDPARM(p) -# else -# define SWIGUNUSEDPARM(p) p SWIGUNUSED -# endif -#endif - -/* internal SWIG method */ -#ifndef SWIGINTERN -# define SWIGINTERN static SWIGUNUSED -#endif - -/* internal inline SWIG method */ -#ifndef SWIGINTERNINLINE -# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE -#endif - -/* exporting methods */ -#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) -# ifndef GCC_HASCLASSVISIBILITY -# define GCC_HASCLASSVISIBILITY -# endif -#endif - -#ifndef SWIGEXPORT -# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# if defined(STATIC_LINKED) -# define SWIGEXPORT -# else -# define SWIGEXPORT __declspec(dllexport) -# endif -# else -# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) -# define SWIGEXPORT __attribute__ ((visibility("default"))) -# else -# define SWIGEXPORT -# endif -# endif -#endif - -/* calling conventions for Windows */ -#ifndef SWIGSTDCALL -# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# define SWIGSTDCALL __stdcall -# else -# define SWIGSTDCALL -# endif -#endif - -/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ -#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) -# define _CRT_SECURE_NO_DEPRECATE -#endif - -/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ -#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) -# define _SCL_SECURE_NO_DEPRECATE -#endif - - - -#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG) -/* Use debug wrappers with the Python release dll */ -# undef _DEBUG -# include -# define _DEBUG -#else -# include -#endif - -/* ----------------------------------------------------------------------------- - * swigrun.swg - * - * This file contains generic C API SWIG runtime support for pointer - * type checking. - * ----------------------------------------------------------------------------- */ - -/* This should only be incremented when either the layout of swig_type_info changes, - or for whatever reason, the runtime changes incompatibly */ -#define SWIG_RUNTIME_VERSION "4" - -/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ -#ifdef SWIG_TYPE_TABLE -# define SWIG_QUOTE_STRING(x) #x -# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) -# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) -#else -# define SWIG_TYPE_TABLE_NAME -#endif - -/* - You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for - creating a static or dynamic library from the SWIG runtime code. - In 99.9% of the cases, SWIG just needs to declare them as 'static'. - - But only do this if strictly necessary, ie, if you have problems - with your compiler or suchlike. -*/ - -#ifndef SWIGRUNTIME -# define SWIGRUNTIME SWIGINTERN -#endif - -#ifndef SWIGRUNTIMEINLINE -# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE -#endif - -/* Generic buffer size */ -#ifndef SWIG_BUFFER_SIZE -# define SWIG_BUFFER_SIZE 1024 -#endif - -/* Flags for pointer conversions */ -#define SWIG_POINTER_DISOWN 0x1 -#define SWIG_CAST_NEW_MEMORY 0x2 - -/* Flags for new pointer objects */ -#define SWIG_POINTER_OWN 0x1 - - -/* - Flags/methods for returning states. - - The SWIG conversion methods, as ConvertPtr, return an integer - that tells if the conversion was successful or not. And if not, - an error code can be returned (see swigerrors.swg for the codes). - - Use the following macros/flags to set or process the returning - states. - - In old versions of SWIG, code such as the following was usually written: - - if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { - // success code - } else { - //fail code - } - - Now you can be more explicit: - - int res = SWIG_ConvertPtr(obj,vptr,ty.flags); - if (SWIG_IsOK(res)) { - // success code - } else { - // fail code - } - - which is the same really, but now you can also do - - Type *ptr; - int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); - if (SWIG_IsOK(res)) { - // success code - if (SWIG_IsNewObj(res) { - ... - delete *ptr; - } else { - ... - } - } else { - // fail code - } - - I.e., now SWIG_ConvertPtr can return new objects and you can - identify the case and take care of the deallocation. Of course that - also requires SWIG_ConvertPtr to return new result values, such as - - int SWIG_ConvertPtr(obj, ptr,...) { - if () { - if () { - *ptr = ; - return SWIG_NEWOBJ; - } else { - *ptr = ; - return SWIG_OLDOBJ; - } - } else { - return SWIG_BADOBJ; - } - } - - Of course, returning the plain '0(success)/-1(fail)' still works, but you can be - more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the - SWIG errors code. - - Finally, if the SWIG_CASTRANK_MODE is enabled, the result code - allows to return the 'cast rank', for example, if you have this - - int food(double) - int fooi(int); - - and you call - - food(1) // cast rank '1' (1 -> 1.0) - fooi(1) // cast rank '0' - - just use the SWIG_AddCast()/SWIG_CheckState() -*/ - -#define SWIG_OK (0) -#define SWIG_ERROR (-1) -#define SWIG_IsOK(r) (r >= 0) -#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) - -/* The CastRankLimit says how many bits are used for the cast rank */ -#define SWIG_CASTRANKLIMIT (1 << 8) -/* The NewMask denotes the object was created (using new/malloc) */ -#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) -/* The TmpMask is for in/out typemaps that use temporal objects */ -#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) -/* Simple returning values */ -#define SWIG_BADOBJ (SWIG_ERROR) -#define SWIG_OLDOBJ (SWIG_OK) -#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) -#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) -/* Check, add and del mask methods */ -#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) -#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) -#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) -#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) -#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) -#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) - -/* Cast-Rank Mode */ -#if defined(SWIG_CASTRANK_MODE) -# ifndef SWIG_TypeRank -# define SWIG_TypeRank unsigned long -# endif -# ifndef SWIG_MAXCASTRANK /* Default cast allowed */ -# define SWIG_MAXCASTRANK (2) -# endif -# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) -# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) -SWIGINTERNINLINE int SWIG_AddCast(int r) { - return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; -} -SWIGINTERNINLINE int SWIG_CheckState(int r) { - return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; -} -#else /* no cast-rank mode */ -# define SWIG_AddCast(r) (r) -# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) -#endif - - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -typedef void *(*swig_converter_func)(void *, int *); -typedef struct swig_type_info *(*swig_dycast_func)(void **); - -/* Structure to store information on one type */ -typedef struct swig_type_info { - const char *name; /* mangled name of this type */ - const char *str; /* human readable name of this type */ - swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ - struct swig_cast_info *cast; /* linked list of types that can cast into this type */ - void *clientdata; /* language specific type data */ - int owndata; /* flag if the structure owns the clientdata */ -} swig_type_info; - -/* Structure to store a type and conversion function used for casting */ -typedef struct swig_cast_info { - swig_type_info *type; /* pointer to type that is equivalent to this type */ - swig_converter_func converter; /* function to cast the void pointers */ - struct swig_cast_info *next; /* pointer to next cast in linked list */ - struct swig_cast_info *prev; /* pointer to the previous cast */ -} swig_cast_info; - -/* Structure used to store module information - * Each module generates one structure like this, and the runtime collects - * all of these structures and stores them in a circularly linked list.*/ -typedef struct swig_module_info { - swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ - size_t size; /* Number of types in this module */ - struct swig_module_info *next; /* Pointer to next element in circularly linked list */ - swig_type_info **type_initial; /* Array of initially generated type structures */ - swig_cast_info **cast_initial; /* Array of initially generated casting structures */ - void *clientdata; /* Language specific module data */ -} swig_module_info; - -/* - Compare two type names skipping the space characters, therefore - "char*" == "char *" and "Class" == "Class", etc. - - Return 0 when the two name types are equivalent, as in - strncmp, but skipping ' '. -*/ -SWIGRUNTIME int -SWIG_TypeNameComp(const char *f1, const char *l1, - const char *f2, const char *l2) { - for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { - while ((*f1 == ' ') && (f1 != l1)) ++f1; - while ((*f2 == ' ') && (f2 != l2)) ++f2; - if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; - } - return (int)((l1 - f1) - (l2 - f2)); -} - -/* - Check type equivalence in a name list like ||... - Return 0 if equal, -1 if nb < tb, 1 if nb > tb -*/ -SWIGRUNTIME int -SWIG_TypeCmp(const char *nb, const char *tb) { - int equiv = 1; - const char* te = tb + strlen(tb); - const char* ne = nb; - while (equiv != 0 && *ne) { - for (nb = ne; *ne; ++ne) { - if (*ne == '|') break; - } - equiv = SWIG_TypeNameComp(nb, ne, tb, te); - if (*ne) ++ne; - } - return equiv; -} - -/* - Check type equivalence in a name list like ||... - Return 0 if not equal, 1 if equal -*/ -SWIGRUNTIME int -SWIG_TypeEquiv(const char *nb, const char *tb) { - return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; -} - -/* - Check the typename -*/ -SWIGRUNTIME swig_cast_info * -SWIG_TypeCheck(const char *c, swig_type_info *ty) { - if (ty) { - swig_cast_info *iter = ty->cast; - while (iter) { - if (strcmp(iter->type->name, c) == 0) { - if (iter == ty->cast) - return iter; - /* Move iter to the top of the linked list */ - iter->prev->next = iter->next; - if (iter->next) - iter->next->prev = iter->prev; - iter->next = ty->cast; - iter->prev = 0; - if (ty->cast) ty->cast->prev = iter; - ty->cast = iter; - return iter; - } - iter = iter->next; - } - } - return 0; -} - -/* - Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison -*/ -SWIGRUNTIME swig_cast_info * -SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { - if (ty) { - swig_cast_info *iter = ty->cast; - while (iter) { - if (iter->type == from) { - if (iter == ty->cast) - return iter; - /* Move iter to the top of the linked list */ - iter->prev->next = iter->next; - if (iter->next) - iter->next->prev = iter->prev; - iter->next = ty->cast; - iter->prev = 0; - if (ty->cast) ty->cast->prev = iter; - ty->cast = iter; - return iter; - } - iter = iter->next; - } - } - return 0; -} - -/* - Cast a pointer up an inheritance hierarchy -*/ -SWIGRUNTIMEINLINE void * -SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { - return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); -} - -/* - Dynamic pointer casting. Down an inheritance hierarchy -*/ -SWIGRUNTIME swig_type_info * -SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { - swig_type_info *lastty = ty; - if (!ty || !ty->dcast) return ty; - while (ty && (ty->dcast)) { - ty = (*ty->dcast)(ptr); - if (ty) lastty = ty; - } - return lastty; -} - -/* - Return the name associated with this type -*/ -SWIGRUNTIMEINLINE const char * -SWIG_TypeName(const swig_type_info *ty) { - return ty->name; -} - -/* - Return the pretty name associated with this type, - that is an unmangled type name in a form presentable to the user. -*/ -SWIGRUNTIME const char * -SWIG_TypePrettyName(const swig_type_info *type) { - /* The "str" field contains the equivalent pretty names of the - type, separated by vertical-bar characters. We choose - to print the last name, as it is often (?) the most - specific. */ - if (!type) return NULL; - if (type->str != NULL) { - const char *last_name = type->str; - const char *s; - for (s = type->str; *s; s++) - if (*s == '|') last_name = s+1; - return last_name; - } - else - return type->name; -} - -/* - Set the clientdata field for a type -*/ -SWIGRUNTIME void -SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { - swig_cast_info *cast = ti->cast; - /* if (ti->clientdata == clientdata) return; */ - ti->clientdata = clientdata; - - while (cast) { - if (!cast->converter) { - swig_type_info *tc = cast->type; - if (!tc->clientdata) { - SWIG_TypeClientData(tc, clientdata); - } - } - cast = cast->next; - } -} -SWIGRUNTIME void -SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { - SWIG_TypeClientData(ti, clientdata); - ti->owndata = 1; -} - -/* - Search for a swig_type_info structure only by mangled name - Search is a O(log #types) - - We start searching at module start, and finish searching when start == end. - Note: if start == end at the beginning of the function, we go all the way around - the circular list. -*/ -SWIGRUNTIME swig_type_info * -SWIG_MangledTypeQueryModule(swig_module_info *start, - swig_module_info *end, - const char *name) { - swig_module_info *iter = start; - do { - if (iter->size) { - register size_t l = 0; - register size_t r = iter->size - 1; - do { - /* since l+r >= 0, we can (>> 1) instead (/ 2) */ - register size_t i = (l + r) >> 1; - const char *iname = iter->types[i]->name; - if (iname) { - register int compare = strcmp(name, iname); - if (compare == 0) { - return iter->types[i]; - } else if (compare < 0) { - if (i) { - r = i - 1; - } else { - break; - } - } else if (compare > 0) { - l = i + 1; - } - } else { - break; /* should never happen */ - } - } while (l <= r); - } - iter = iter->next; - } while (iter != end); - return 0; -} - -/* - Search for a swig_type_info structure for either a mangled name or a human readable name. - It first searches the mangled names of the types, which is a O(log #types) - If a type is not found it then searches the human readable names, which is O(#types). - - We start searching at module start, and finish searching when start == end. - Note: if start == end at the beginning of the function, we go all the way around - the circular list. -*/ -SWIGRUNTIME swig_type_info * -SWIG_TypeQueryModule(swig_module_info *start, - swig_module_info *end, - const char *name) { - /* STEP 1: Search the name field using binary search */ - swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); - if (ret) { - return ret; - } else { - /* STEP 2: If the type hasn't been found, do a complete search - of the str field (the human readable name) */ - swig_module_info *iter = start; - do { - register size_t i = 0; - for (; i < iter->size; ++i) { - if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) - return iter->types[i]; - } - iter = iter->next; - } while (iter != end); - } - - /* neither found a match */ - return 0; -} - -/* - Pack binary data into a string -*/ -SWIGRUNTIME char * -SWIG_PackData(char *c, void *ptr, size_t sz) { - static const char hex[17] = "0123456789abcdef"; - register const unsigned char *u = (unsigned char *) ptr; - register const unsigned char *eu = u + sz; - for (; u != eu; ++u) { - register unsigned char uu = *u; - *(c++) = hex[(uu & 0xf0) >> 4]; - *(c++) = hex[uu & 0xf]; - } - return c; -} - -/* - Unpack binary data from a string -*/ -SWIGRUNTIME const char * -SWIG_UnpackData(const char *c, void *ptr, size_t sz) { - register unsigned char *u = (unsigned char *) ptr; - register const unsigned char *eu = u + sz; - for (; u != eu; ++u) { - register char d = *(c++); - register unsigned char uu; - if ((d >= '0') && (d <= '9')) - uu = ((d - '0') << 4); - else if ((d >= 'a') && (d <= 'f')) - uu = ((d - ('a'-10)) << 4); - else - return (char *) 0; - d = *(c++); - if ((d >= '0') && (d <= '9')) - uu |= (d - '0'); - else if ((d >= 'a') && (d <= 'f')) - uu |= (d - ('a'-10)); - else - return (char *) 0; - *u = uu; - } - return c; -} - -/* - Pack 'void *' into a string buffer. -*/ -SWIGRUNTIME char * -SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { - char *r = buff; - if ((2*sizeof(void *) + 2) > bsz) return 0; - *(r++) = '_'; - r = SWIG_PackData(r,&ptr,sizeof(void *)); - if (strlen(name) + 1 > (bsz - (r - buff))) return 0; - strcpy(r,name); - return buff; -} - -SWIGRUNTIME const char * -SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { - if (*c != '_') { - if (strcmp(c,"NULL") == 0) { - *ptr = (void *) 0; - return name; - } else { - return 0; - } - } - return SWIG_UnpackData(++c,ptr,sizeof(void *)); -} - -SWIGRUNTIME char * -SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { - char *r = buff; - size_t lname = (name ? strlen(name) : 0); - if ((2*sz + 2 + lname) > bsz) return 0; - *(r++) = '_'; - r = SWIG_PackData(r,ptr,sz); - if (lname) { - strncpy(r,name,lname+1); - } else { - *r = 0; - } - return buff; -} - -SWIGRUNTIME const char * -SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { - if (*c != '_') { - if (strcmp(c,"NULL") == 0) { - memset(ptr,0,sz); - return name; - } else { - return 0; - } - } - return SWIG_UnpackData(++c,ptr,sz); -} - -#ifdef __cplusplus -} -#endif - -/* Errors in SWIG */ -#define SWIG_UnknownError -1 -#define SWIG_IOError -2 -#define SWIG_RuntimeError -3 -#define SWIG_IndexError -4 -#define SWIG_TypeError -5 -#define SWIG_DivisionByZero -6 -#define SWIG_OverflowError -7 -#define SWIG_SyntaxError -8 -#define SWIG_ValueError -9 -#define SWIG_SystemError -10 -#define SWIG_AttributeError -11 -#define SWIG_MemoryError -12 -#define SWIG_NullReferenceError -13 - - - -/* Compatibility macros for Python 3 */ -#if PY_VERSION_HEX >= 0x03000000 - -#define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type) -#define PyInt_Check(x) PyLong_Check(x) -#define PyInt_AsLong(x) PyLong_AsLong(x) -#define PyInt_FromLong(x) PyLong_FromLong(x) -#define PyInt_FromSize_t(x) PyLong_FromSize_t(x) -#define PyString_Check(name) PyBytes_Check(name) -#define PyString_FromString(x) PyUnicode_FromString(x) -#define PyString_Format(fmt, args) PyUnicode_Format(fmt, args) -#define PyString_AsString(str) PyBytes_AsString(str) -#define PyString_Size(str) PyBytes_Size(str) -#define PyString_InternFromString(key) PyUnicode_InternFromString(key) -#define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE -#define PyString_AS_STRING(x) PyUnicode_AS_STRING(x) -#define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x) - -#endif - -#ifndef Py_TYPE -# define Py_TYPE(op) ((op)->ob_type) -#endif - -/* SWIG APIs for compatibility of both Python 2 & 3 */ - -#if PY_VERSION_HEX >= 0x03000000 -# define SWIG_Python_str_FromFormat PyUnicode_FromFormat -#else -# define SWIG_Python_str_FromFormat PyString_FromFormat -#endif - - -/* Warning: This function will allocate a new string in Python 3, - * so please call SWIG_Python_str_DelForPy3(x) to free the space. - */ -SWIGINTERN char* -SWIG_Python_str_AsChar(PyObject *str) -{ -#if PY_VERSION_HEX >= 0x03000000 - char *cstr; - char *newstr; - Py_ssize_t len; - str = PyUnicode_AsUTF8String(str); - PyBytes_AsStringAndSize(str, &cstr, &len); - newstr = (char *) malloc(len+1); - memcpy(newstr, cstr, len+1); - Py_XDECREF(str); - return newstr; -#else - return PyString_AsString(str); -#endif -} - -#if PY_VERSION_HEX >= 0x03000000 -# define SWIG_Python_str_DelForPy3(x) free( (void*) (x) ) -#else -# define SWIG_Python_str_DelForPy3(x) -#endif - - -SWIGINTERN PyObject* -SWIG_Python_str_FromChar(const char *c) -{ -#if PY_VERSION_HEX >= 0x03000000 - return PyUnicode_FromString(c); -#else - return PyString_FromString(c); -#endif -} - -/* Add PyOS_snprintf for old Pythons */ -#if PY_VERSION_HEX < 0x02020000 -# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) -# define PyOS_snprintf _snprintf -# else -# define PyOS_snprintf snprintf -# endif -#endif - -/* A crude PyString_FromFormat implementation for old Pythons */ -#if PY_VERSION_HEX < 0x02020000 - -#ifndef SWIG_PYBUFFER_SIZE -# define SWIG_PYBUFFER_SIZE 1024 -#endif - -static PyObject * -PyString_FromFormat(const char *fmt, ...) { - va_list ap; - char buf[SWIG_PYBUFFER_SIZE * 2]; - int res; - va_start(ap, fmt); - res = vsnprintf(buf, sizeof(buf), fmt, ap); - va_end(ap); - return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); -} -#endif - -/* Add PyObject_Del for old Pythons */ -#if PY_VERSION_HEX < 0x01060000 -# define PyObject_Del(op) PyMem_DEL((op)) -#endif -#ifndef PyObject_DEL -# define PyObject_DEL PyObject_Del -#endif - -/* A crude PyExc_StopIteration exception for old Pythons */ -#if PY_VERSION_HEX < 0x02020000 -# ifndef PyExc_StopIteration -# define PyExc_StopIteration PyExc_RuntimeError -# endif -# ifndef PyObject_GenericGetAttr -# define PyObject_GenericGetAttr 0 -# endif -#endif - -/* Py_NotImplemented is defined in 2.1 and up. */ -#if PY_VERSION_HEX < 0x02010000 -# ifndef Py_NotImplemented -# define Py_NotImplemented PyExc_RuntimeError -# endif -#endif - -/* A crude PyString_AsStringAndSize implementation for old Pythons */ -#if PY_VERSION_HEX < 0x02010000 -# ifndef PyString_AsStringAndSize -# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} -# endif -#endif - -/* PySequence_Size for old Pythons */ -#if PY_VERSION_HEX < 0x02000000 -# ifndef PySequence_Size -# define PySequence_Size PySequence_Length -# endif -#endif - -/* PyBool_FromLong for old Pythons */ -#if PY_VERSION_HEX < 0x02030000 -static -PyObject *PyBool_FromLong(long ok) -{ - PyObject *result = ok ? Py_True : Py_False; - Py_INCREF(result); - return result; -} -#endif - -/* Py_ssize_t for old Pythons */ -/* This code is as recommended by: */ -/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */ -#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) -typedef int Py_ssize_t; -# define PY_SSIZE_T_MAX INT_MAX -# define PY_SSIZE_T_MIN INT_MIN -typedef inquiry lenfunc; -typedef intargfunc ssizeargfunc; -typedef intintargfunc ssizessizeargfunc; -typedef intobjargproc ssizeobjargproc; -typedef intintobjargproc ssizessizeobjargproc; -typedef getreadbufferproc readbufferproc; -typedef getwritebufferproc writebufferproc; -typedef getsegcountproc segcountproc; -typedef getcharbufferproc charbufferproc; -static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc)) -{ - long result = 0; - PyObject *i = PyNumber_Int(x); - if (i) { - result = PyInt_AsLong(i); - Py_DECREF(i); - } - return result; -} -#endif - -#if PY_VERSION_HEX < 0x02050000 -#define PyInt_FromSize_t(x) PyInt_FromLong((long)x) -#endif - -#if PY_VERSION_HEX < 0x02040000 -#define Py_VISIT(op) \ - do { \ - if (op) { \ - int vret = visit((op), arg); \ - if (vret) \ - return vret; \ - } \ - } while (0) -#endif - -#if PY_VERSION_HEX < 0x02030000 -typedef struct { - PyTypeObject type; - PyNumberMethods as_number; - PyMappingMethods as_mapping; - PySequenceMethods as_sequence; - PyBufferProcs as_buffer; - PyObject *name, *slots; -} PyHeapTypeObject; -#endif - -#if PY_VERSION_HEX < 0x02030000 -typedef destructor freefunc; -#endif - -#if ((PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION > 6) || \ - (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION > 0) || \ - (PY_MAJOR_VERSION > 3)) -# define SWIGPY_USE_CAPSULE -# define SWIGPY_CAPSULE_NAME ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME) -#endif - -#if PY_VERSION_HEX < 0x03020000 -#define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type) -#define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name) -#endif - -/* ----------------------------------------------------------------------------- - * error manipulation - * ----------------------------------------------------------------------------- */ - -SWIGRUNTIME PyObject* -SWIG_Python_ErrorType(int code) { - PyObject* type = 0; - switch(code) { - case SWIG_MemoryError: - type = PyExc_MemoryError; - break; - case SWIG_IOError: - type = PyExc_IOError; - break; - case SWIG_RuntimeError: - type = PyExc_RuntimeError; - break; - case SWIG_IndexError: - type = PyExc_IndexError; - break; - case SWIG_TypeError: - type = PyExc_TypeError; - break; - case SWIG_DivisionByZero: - type = PyExc_ZeroDivisionError; - break; - case SWIG_OverflowError: - type = PyExc_OverflowError; - break; - case SWIG_SyntaxError: - type = PyExc_SyntaxError; - break; - case SWIG_ValueError: - type = PyExc_ValueError; - break; - case SWIG_SystemError: - type = PyExc_SystemError; - break; - case SWIG_AttributeError: - type = PyExc_AttributeError; - break; - default: - type = PyExc_RuntimeError; - } - return type; -} - - -SWIGRUNTIME void -SWIG_Python_AddErrorMsg(const char* mesg) -{ - PyObject *type = 0; - PyObject *value = 0; - PyObject *traceback = 0; - - if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); - if (value) { - char *tmp; - PyObject *old_str = PyObject_Str(value); - PyErr_Clear(); - Py_XINCREF(type); - - PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); - SWIG_Python_str_DelForPy3(tmp); - Py_DECREF(old_str); - Py_DECREF(value); - } else { - PyErr_SetString(PyExc_RuntimeError, mesg); - } -} - -#if defined(SWIG_PYTHON_NO_THREADS) -# if defined(SWIG_PYTHON_THREADS) -# undef SWIG_PYTHON_THREADS -# endif -#endif -#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ -# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) -# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ -# define SWIG_PYTHON_USE_GIL -# endif -# endif -# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ -# ifndef SWIG_PYTHON_INITIALIZE_THREADS -# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() -# endif -# ifdef __cplusplus /* C++ code */ - class SWIG_Python_Thread_Block { - bool status; - PyGILState_STATE state; - public: - void end() { if (status) { PyGILState_Release(state); status = false;} } - SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} - ~SWIG_Python_Thread_Block() { end(); } - }; - class SWIG_Python_Thread_Allow { - bool status; - PyThreadState *save; - public: - void end() { if (status) { PyEval_RestoreThread(save); status = false; }} - SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} - ~SWIG_Python_Thread_Allow() { end(); } - }; -# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block -# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() -# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow -# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() -# else /* C code */ -# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() -# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) -# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() -# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) -# endif -# else /* Old thread way, not implemented, user must provide it */ -# if !defined(SWIG_PYTHON_INITIALIZE_THREADS) -# define SWIG_PYTHON_INITIALIZE_THREADS -# endif -# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) -# define SWIG_PYTHON_THREAD_BEGIN_BLOCK -# endif -# if !defined(SWIG_PYTHON_THREAD_END_BLOCK) -# define SWIG_PYTHON_THREAD_END_BLOCK -# endif -# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) -# define SWIG_PYTHON_THREAD_BEGIN_ALLOW -# endif -# if !defined(SWIG_PYTHON_THREAD_END_ALLOW) -# define SWIG_PYTHON_THREAD_END_ALLOW -# endif -# endif -#else /* No thread support */ -# define SWIG_PYTHON_INITIALIZE_THREADS -# define SWIG_PYTHON_THREAD_BEGIN_BLOCK -# define SWIG_PYTHON_THREAD_END_BLOCK -# define SWIG_PYTHON_THREAD_BEGIN_ALLOW -# define SWIG_PYTHON_THREAD_END_ALLOW -#endif - -/* ----------------------------------------------------------------------------- - * Python API portion that goes into the runtime - * ----------------------------------------------------------------------------- */ - -#ifdef __cplusplus -extern "C" { -#endif - -/* ----------------------------------------------------------------------------- - * Constant declarations - * ----------------------------------------------------------------------------- */ - -/* Constant Types */ -#define SWIG_PY_POINTER 4 -#define SWIG_PY_BINARY 5 - -/* Constant information structure */ -typedef struct swig_const_info { - int type; - char *name; - long lvalue; - double dvalue; - void *pvalue; - swig_type_info **ptype; -} swig_const_info; - - -/* ----------------------------------------------------------------------------- - * Wrapper of PyInstanceMethod_New() used in Python 3 - * It is exported to the generated module, used for -fastproxy - * ----------------------------------------------------------------------------- */ -#if PY_VERSION_HEX >= 0x03000000 -SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) -{ - return PyInstanceMethod_New(func); -} -#else -SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func)) -{ - return NULL; -} -#endif - -#ifdef __cplusplus -} -#endif - - -/* ----------------------------------------------------------------------------- - * pyrun.swg - * - * This file contains the runtime support for Python modules - * and includes code for managing global variables and pointer - * type checking. - * - * ----------------------------------------------------------------------------- */ - -/* Common SWIG API */ - -/* for raw pointers */ -#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) -#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) -#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) - -#ifdef SWIGPYTHON_BUILTIN -#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags) -#else -#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) -#endif - -#define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) - -#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) -#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) -#define swig_owntype int - -/* for raw packed data */ -#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) -#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) - -/* for class or struct pointers */ -#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) -#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) - -/* for C or C++ function pointers */ -#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) -#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(NULL, ptr, type, 0) - -/* for C++ member pointers, ie, member methods */ -#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) -#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) - - -/* Runtime API */ - -#define SWIG_GetModule(clientdata) SWIG_Python_GetModule(clientdata) -#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) -#define SWIG_NewClientData(obj) SwigPyClientData_New(obj) - -#define SWIG_SetErrorObj SWIG_Python_SetErrorObj -#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg -#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) -#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) -#define SWIG_fail goto fail - - -/* Runtime API implementation */ - -/* Error manipulation */ - -SWIGINTERN void -SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { - SWIG_PYTHON_THREAD_BEGIN_BLOCK; - PyErr_SetObject(errtype, obj); - Py_DECREF(obj); - SWIG_PYTHON_THREAD_END_BLOCK; -} - -SWIGINTERN void -SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { - SWIG_PYTHON_THREAD_BEGIN_BLOCK; - PyErr_SetString(errtype, msg); - SWIG_PYTHON_THREAD_END_BLOCK; -} - -#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) - -/* Set a constant value */ - -#if defined(SWIGPYTHON_BUILTIN) - -SWIGINTERN void -SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) { - PyObject *s = PyString_InternFromString(key); - PyList_Append(seq, s); - Py_DECREF(s); -} - -SWIGINTERN void -SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) { -#if PY_VERSION_HEX < 0x02030000 - PyDict_SetItemString(d, (char *)name, obj); -#else - PyDict_SetItemString(d, name, obj); -#endif - Py_DECREF(obj); - if (public_interface) - SwigPyBuiltin_AddPublicSymbol(public_interface, name); -} - -#else - -SWIGINTERN void -SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { -#if PY_VERSION_HEX < 0x02030000 - PyDict_SetItemString(d, (char *)name, obj); -#else - PyDict_SetItemString(d, name, obj); -#endif - Py_DECREF(obj); -} - -#endif - -/* Append a value to the result obj */ - -SWIGINTERN PyObject* -SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { -#if !defined(SWIG_PYTHON_OUTPUT_TUPLE) - if (!result) { - result = obj; - } else if (result == Py_None) { - Py_DECREF(result); - result = obj; - } else { - if (!PyList_Check(result)) { - PyObject *o2 = result; - result = PyList_New(1); - PyList_SetItem(result, 0, o2); - } - PyList_Append(result,obj); - Py_DECREF(obj); - } - return result; -#else - PyObject* o2; - PyObject* o3; - if (!result) { - result = obj; - } else if (result == Py_None) { - Py_DECREF(result); - result = obj; - } else { - if (!PyTuple_Check(result)) { - o2 = result; - result = PyTuple_New(1); - PyTuple_SET_ITEM(result, 0, o2); - } - o3 = PyTuple_New(1); - PyTuple_SET_ITEM(o3, 0, obj); - o2 = result; - result = PySequence_Concat(o2, o3); - Py_DECREF(o2); - Py_DECREF(o3); - } - return result; -#endif -} - -/* Unpack the argument tuple */ - -SWIGINTERN int -SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs) -{ - if (!args) { - if (!min && !max) { - return 1; - } else { - PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", - name, (min == max ? "" : "at least "), (int)min); - return 0; - } - } - if (!PyTuple_Check(args)) { - if (min <= 1 && max >= 1) { - register int i; - objs[0] = args; - for (i = 1; i < max; ++i) { - objs[i] = 0; - } - return 2; - } - PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); - return 0; - } else { - register Py_ssize_t l = PyTuple_GET_SIZE(args); - if (l < min) { - PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", - name, (min == max ? "" : "at least "), (int)min, (int)l); - return 0; - } else if (l > max) { - PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", - name, (min == max ? "" : "at most "), (int)max, (int)l); - return 0; - } else { - register int i; - for (i = 0; i < l; ++i) { - objs[i] = PyTuple_GET_ITEM(args, i); - } - for (; l < max; ++l) { - objs[l] = 0; - } - return i + 1; - } - } -} - -/* A functor is a function object with one single object argument */ -#if PY_VERSION_HEX >= 0x02020000 -#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); -#else -#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); -#endif - -/* - Helper for static pointer initialization for both C and C++ code, for example - static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); -*/ -#ifdef __cplusplus -#define SWIG_STATIC_POINTER(var) var -#else -#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var -#endif - -/* ----------------------------------------------------------------------------- - * Pointer declarations - * ----------------------------------------------------------------------------- */ - -/* Flags for new pointer objects */ -#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) -#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) - -#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) - -#define SWIG_BUILTIN_TP_INIT (SWIG_POINTER_OWN << 2) -#define SWIG_BUILTIN_INIT (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN) - -#ifdef __cplusplus -extern "C" { -#endif - -/* How to access Py_None */ -#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# ifndef SWIG_PYTHON_NO_BUILD_NONE -# ifndef SWIG_PYTHON_BUILD_NONE -# define SWIG_PYTHON_BUILD_NONE -# endif -# endif -#endif - -#ifdef SWIG_PYTHON_BUILD_NONE -# ifdef Py_None -# undef Py_None -# define Py_None SWIG_Py_None() -# endif -SWIGRUNTIMEINLINE PyObject * -_SWIG_Py_None(void) -{ - PyObject *none = Py_BuildValue((char*)""); - Py_DECREF(none); - return none; -} -SWIGRUNTIME PyObject * -SWIG_Py_None(void) -{ - static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); - return none; -} -#endif - -/* The python void return value */ - -SWIGRUNTIMEINLINE PyObject * -SWIG_Py_Void(void) -{ - PyObject *none = Py_None; - Py_INCREF(none); - return none; -} - -/* SwigPyClientData */ - -typedef struct { - PyObject *klass; - PyObject *newraw; - PyObject *newargs; - PyObject *destroy; - int delargs; - int implicitconv; - PyTypeObject *pytype; -} SwigPyClientData; - -SWIGRUNTIMEINLINE int -SWIG_Python_CheckImplicit(swig_type_info *ty) -{ - SwigPyClientData *data = (SwigPyClientData *)ty->clientdata; - return data ? data->implicitconv : 0; -} - -SWIGRUNTIMEINLINE PyObject * -SWIG_Python_ExceptionType(swig_type_info *desc) { - SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0; - PyObject *klass = data ? data->klass : 0; - return (klass ? klass : PyExc_RuntimeError); -} - - -SWIGRUNTIME SwigPyClientData * -SwigPyClientData_New(PyObject* obj) -{ - if (!obj) { - return 0; - } else { - SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData)); - /* the klass element */ - data->klass = obj; - Py_INCREF(data->klass); - /* the newraw method and newargs arguments used to create a new raw instance */ - if (PyClass_Check(obj)) { - data->newraw = 0; - data->newargs = obj; - Py_INCREF(obj); - } else { -#if (PY_VERSION_HEX < 0x02020000) - data->newraw = 0; -#else - data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); -#endif - if (data->newraw) { - Py_INCREF(data->newraw); - data->newargs = PyTuple_New(1); - PyTuple_SetItem(data->newargs, 0, obj); - } else { - data->newargs = obj; - } - Py_INCREF(data->newargs); - } - /* the destroy method, aka as the C++ delete method */ - data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); - if (PyErr_Occurred()) { - PyErr_Clear(); - data->destroy = 0; - } - if (data->destroy) { - int flags; - Py_INCREF(data->destroy); - flags = PyCFunction_GET_FLAGS(data->destroy); -#ifdef METH_O - data->delargs = !(flags & (METH_O)); -#else - data->delargs = 0; -#endif - } else { - data->delargs = 0; - } - data->implicitconv = 0; - data->pytype = 0; - return data; - } -} - -SWIGRUNTIME void -SwigPyClientData_Del(SwigPyClientData *data) { - Py_XDECREF(data->newraw); - Py_XDECREF(data->newargs); - Py_XDECREF(data->destroy); -} - -/* =============== SwigPyObject =====================*/ - -typedef struct { - PyObject_HEAD - void *ptr; - swig_type_info *ty; - int own; - PyObject *next; -#ifdef SWIGPYTHON_BUILTIN - PyObject *dict; -#endif -} SwigPyObject; - -SWIGRUNTIME PyObject * -SwigPyObject_long(SwigPyObject *v) -{ - return PyLong_FromVoidPtr(v->ptr); -} - -SWIGRUNTIME PyObject * -SwigPyObject_format(const char* fmt, SwigPyObject *v) -{ - PyObject *res = NULL; - PyObject *args = PyTuple_New(1); - if (args) { - if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) { - PyObject *ofmt = SWIG_Python_str_FromChar(fmt); - if (ofmt) { -#if PY_VERSION_HEX >= 0x03000000 - res = PyUnicode_Format(ofmt,args); -#else - res = PyString_Format(ofmt,args); -#endif - Py_DECREF(ofmt); - } - Py_DECREF(args); - } - } - return res; -} - -SWIGRUNTIME PyObject * -SwigPyObject_oct(SwigPyObject *v) -{ - return SwigPyObject_format("%o",v); -} - -SWIGRUNTIME PyObject * -SwigPyObject_hex(SwigPyObject *v) -{ - return SwigPyObject_format("%x",v); -} - -SWIGRUNTIME PyObject * -#ifdef METH_NOARGS -SwigPyObject_repr(SwigPyObject *v) -#else -SwigPyObject_repr(SwigPyObject *v, PyObject *args) -#endif -{ - const char *name = SWIG_TypePrettyName(v->ty); - PyObject *repr = SWIG_Python_str_FromFormat("", (name ? name : "unknown"), (void *)v); - if (v->next) { -# ifdef METH_NOARGS - PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next); -# else - PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args); -# endif -# if PY_VERSION_HEX >= 0x03000000 - PyObject *joined = PyUnicode_Concat(repr, nrep); - Py_DecRef(repr); - Py_DecRef(nrep); - repr = joined; -# else - PyString_ConcatAndDel(&repr,nrep); -# endif - } - return repr; -} - -SWIGRUNTIME int -SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w) -{ - void *i = v->ptr; - void *j = w->ptr; - return (i < j) ? -1 : ((i > j) ? 1 : 0); -} - -/* Added for Python 3.x, would it also be useful for Python 2.x? */ -SWIGRUNTIME PyObject* -SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op) -{ - PyObject* res; - if( op != Py_EQ && op != Py_NE ) { - Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; - } - res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0); - return res; -} - - -SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void); - -#ifdef SWIGPYTHON_BUILTIN -static swig_type_info *SwigPyObject_stype = 0; -SWIGRUNTIME PyTypeObject* -SwigPyObject_type(void) { - SwigPyClientData *cd; - assert(SwigPyObject_stype); - cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; - assert(cd); - assert(cd->pytype); - return cd->pytype; -} -#else -SWIGRUNTIME PyTypeObject* -SwigPyObject_type(void) { - static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce(); - return type; -} -#endif - -SWIGRUNTIMEINLINE int -SwigPyObject_Check(PyObject *op) { -#ifdef SWIGPYTHON_BUILTIN - PyTypeObject *target_tp = SwigPyObject_type(); - if (PyType_IsSubtype(op->ob_type, target_tp)) - return 1; - return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0); -#else - return (Py_TYPE(op) == SwigPyObject_type()) - || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0); -#endif -} - -SWIGRUNTIME PyObject * -SwigPyObject_New(void *ptr, swig_type_info *ty, int own); - -SWIGRUNTIME void -SwigPyObject_dealloc(PyObject *v) -{ - SwigPyObject *sobj = (SwigPyObject *) v; - PyObject *next = sobj->next; - if (sobj->own == SWIG_POINTER_OWN) { - swig_type_info *ty = sobj->ty; - SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; - PyObject *destroy = data ? data->destroy : 0; - if (destroy) { - /* destroy is always a VARARGS method */ - PyObject *res; - if (data->delargs) { - /* we need to create a temporary object to carry the destroy operation */ - PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); - res = SWIG_Python_CallFunctor(destroy, tmp); - Py_DECREF(tmp); - } else { - PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); - PyObject *mself = PyCFunction_GET_SELF(destroy); - res = ((*meth)(mself, v)); - } - Py_XDECREF(res); - } -#if !defined(SWIG_PYTHON_SILENT_MEMLEAK) - else { - const char *name = SWIG_TypePrettyName(ty); - printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown")); - } -#endif - } - Py_XDECREF(next); - PyObject_DEL(v); -} - -SWIGRUNTIME PyObject* -SwigPyObject_append(PyObject* v, PyObject* next) -{ - SwigPyObject *sobj = (SwigPyObject *) v; -#ifndef METH_O - PyObject *tmp = 0; - if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; - next = tmp; -#endif - if (!SwigPyObject_Check(next)) { - return NULL; - } - sobj->next = next; - Py_INCREF(next); - return SWIG_Py_Void(); -} - -SWIGRUNTIME PyObject* -#ifdef METH_NOARGS -SwigPyObject_next(PyObject* v) -#else -SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) -#endif -{ - SwigPyObject *sobj = (SwigPyObject *) v; - if (sobj->next) { - Py_INCREF(sobj->next); - return sobj->next; - } else { - return SWIG_Py_Void(); - } -} - -SWIGINTERN PyObject* -#ifdef METH_NOARGS -SwigPyObject_disown(PyObject *v) -#else -SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) -#endif -{ - SwigPyObject *sobj = (SwigPyObject *)v; - sobj->own = 0; - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject* -#ifdef METH_NOARGS -SwigPyObject_acquire(PyObject *v) -#else -SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) -#endif -{ - SwigPyObject *sobj = (SwigPyObject *)v; - sobj->own = SWIG_POINTER_OWN; - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject* -SwigPyObject_own(PyObject *v, PyObject *args) -{ - PyObject *val = 0; -#if (PY_VERSION_HEX < 0x02020000) - if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) -#elif (PY_VERSION_HEX < 0x02050000) - if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) -#else - if (!PyArg_UnpackTuple(args, "own", 0, 1, &val)) -#endif - { - return NULL; - } - else - { - SwigPyObject *sobj = (SwigPyObject *)v; - PyObject *obj = PyBool_FromLong(sobj->own); - if (val) { -#ifdef METH_NOARGS - if (PyObject_IsTrue(val)) { - SwigPyObject_acquire(v); - } else { - SwigPyObject_disown(v); - } -#else - if (PyObject_IsTrue(val)) { - SwigPyObject_acquire(v,args); - } else { - SwigPyObject_disown(v,args); - } -#endif - } - return obj; - } -} - -#ifdef METH_O -static PyMethodDef -swigobject_methods[] = { - {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, - {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"acquires ownership of the pointer"}, - {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, - {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O, (char *)"appends another 'this' object"}, - {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, - {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS, (char *)"returns object representation"}, - {0, 0, 0, 0} -}; -#else -static PyMethodDef -swigobject_methods[] = { - {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, - {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, - {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, - {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, - {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, - {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS, (char *)"returns object representation"}, - {0, 0, 0, 0} -}; -#endif - -#if PY_VERSION_HEX < 0x02020000 -SWIGINTERN PyObject * -SwigPyObject_getattr(SwigPyObject *sobj,char *name) -{ - return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); -} -#endif - -SWIGRUNTIME PyTypeObject* -SwigPyObject_TypeOnce(void) { - static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; - - static PyNumberMethods SwigPyObject_as_number = { - (binaryfunc)0, /*nb_add*/ - (binaryfunc)0, /*nb_subtract*/ - (binaryfunc)0, /*nb_multiply*/ - /* nb_divide removed in Python 3 */ -#if PY_VERSION_HEX < 0x03000000 - (binaryfunc)0, /*nb_divide*/ -#endif - (binaryfunc)0, /*nb_remainder*/ - (binaryfunc)0, /*nb_divmod*/ - (ternaryfunc)0,/*nb_power*/ - (unaryfunc)0, /*nb_negative*/ - (unaryfunc)0, /*nb_positive*/ - (unaryfunc)0, /*nb_absolute*/ - (inquiry)0, /*nb_nonzero*/ - 0, /*nb_invert*/ - 0, /*nb_lshift*/ - 0, /*nb_rshift*/ - 0, /*nb_and*/ - 0, /*nb_xor*/ - 0, /*nb_or*/ -#if PY_VERSION_HEX < 0x03000000 - 0, /*nb_coerce*/ -#endif - (unaryfunc)SwigPyObject_long, /*nb_int*/ -#if PY_VERSION_HEX < 0x03000000 - (unaryfunc)SwigPyObject_long, /*nb_long*/ -#else - 0, /*nb_reserved*/ -#endif - (unaryfunc)0, /*nb_float*/ -#if PY_VERSION_HEX < 0x03000000 - (unaryfunc)SwigPyObject_oct, /*nb_oct*/ - (unaryfunc)SwigPyObject_hex, /*nb_hex*/ -#endif -#if PY_VERSION_HEX >= 0x03000000 /* 3.0 */ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */ -#elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */ -#elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ -#elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */ - 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ -#endif - }; - - static PyTypeObject swigpyobject_type; - static int type_init = 0; - if (!type_init) { - const PyTypeObject tmp = { - /* PyObject header changed in Python 3 */ -#if PY_VERSION_HEX >= 0x03000000 - PyVarObject_HEAD_INIT(NULL, 0) -#else - PyObject_HEAD_INIT(NULL) - 0, /* ob_size */ -#endif - (char *)"SwigPyObject", /* tp_name */ - sizeof(SwigPyObject), /* tp_basicsize */ - 0, /* tp_itemsize */ - (destructor)SwigPyObject_dealloc, /* tp_dealloc */ - 0, /* tp_print */ -#if PY_VERSION_HEX < 0x02020000 - (getattrfunc)SwigPyObject_getattr, /* tp_getattr */ -#else - (getattrfunc)0, /* tp_getattr */ -#endif - (setattrfunc)0, /* tp_setattr */ -#if PY_VERSION_HEX >= 0x03000000 - 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */ -#else - (cmpfunc)SwigPyObject_compare, /* tp_compare */ -#endif - (reprfunc)SwigPyObject_repr, /* tp_repr */ - &SwigPyObject_as_number, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - (hashfunc)0, /* tp_hash */ - (ternaryfunc)0, /* tp_call */ - 0, /* tp_str */ - PyObject_GenericGetAttr, /* tp_getattro */ - 0, /* tp_setattro */ - 0, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT, /* tp_flags */ - swigobject_doc, /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */ - 0, /* tp_weaklistoffset */ -#if PY_VERSION_HEX >= 0x02020000 - 0, /* tp_iter */ - 0, /* tp_iternext */ - swigobject_methods, /* tp_methods */ - 0, /* tp_members */ - 0, /* tp_getset */ - 0, /* tp_base */ - 0, /* tp_dict */ - 0, /* tp_descr_get */ - 0, /* tp_descr_set */ - 0, /* tp_dictoffset */ - 0, /* tp_init */ - 0, /* tp_alloc */ - 0, /* tp_new */ - 0, /* tp_free */ - 0, /* tp_is_gc */ - 0, /* tp_bases */ - 0, /* tp_mro */ - 0, /* tp_cache */ - 0, /* tp_subclasses */ - 0, /* tp_weaklist */ -#endif -#if PY_VERSION_HEX >= 0x02030000 - 0, /* tp_del */ -#endif -#if PY_VERSION_HEX >= 0x02060000 - 0, /* tp_version */ -#endif -#ifdef COUNT_ALLOCS - 0,0,0,0 /* tp_alloc -> tp_next */ -#endif - }; - swigpyobject_type = tmp; - type_init = 1; -#if PY_VERSION_HEX < 0x02020000 - swigpyobject_type.ob_type = &PyType_Type; -#else - if (PyType_Ready(&swigpyobject_type) < 0) - return NULL; -#endif - } - return &swigpyobject_type; -} - -SWIGRUNTIME PyObject * -SwigPyObject_New(void *ptr, swig_type_info *ty, int own) -{ - SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type()); - if (sobj) { - sobj->ptr = ptr; - sobj->ty = ty; - sobj->own = own; - sobj->next = 0; - } - return (PyObject *)sobj; -} - -/* ----------------------------------------------------------------------------- - * Implements a simple Swig Packed type, and use it instead of string - * ----------------------------------------------------------------------------- */ - -typedef struct { - PyObject_HEAD - void *pack; - swig_type_info *ty; - size_t size; -} SwigPyPacked; - -SWIGRUNTIME int -SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) -{ - char result[SWIG_BUFFER_SIZE]; - fputs("pack, v->size, 0, sizeof(result))) { - fputs("at ", fp); - fputs(result, fp); - } - fputs(v->ty->name,fp); - fputs(">", fp); - return 0; -} - -SWIGRUNTIME PyObject * -SwigPyPacked_repr(SwigPyPacked *v) -{ - char result[SWIG_BUFFER_SIZE]; - if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { - return SWIG_Python_str_FromFormat("", result, v->ty->name); - } else { - return SWIG_Python_str_FromFormat("", v->ty->name); - } -} - -SWIGRUNTIME PyObject * -SwigPyPacked_str(SwigPyPacked *v) -{ - char result[SWIG_BUFFER_SIZE]; - if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ - return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name); - } else { - return SWIG_Python_str_FromChar(v->ty->name); - } -} - -SWIGRUNTIME int -SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w) -{ - size_t i = v->size; - size_t j = w->size; - int s = (i < j) ? -1 : ((i > j) ? 1 : 0); - return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); -} - -SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void); - -SWIGRUNTIME PyTypeObject* -SwigPyPacked_type(void) { - static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce(); - return type; -} - -SWIGRUNTIMEINLINE int -SwigPyPacked_Check(PyObject *op) { - return ((op)->ob_type == SwigPyPacked_TypeOnce()) - || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0); -} - -SWIGRUNTIME void -SwigPyPacked_dealloc(PyObject *v) -{ - if (SwigPyPacked_Check(v)) { - SwigPyPacked *sobj = (SwigPyPacked *) v; - free(sobj->pack); - } - PyObject_DEL(v); -} - -SWIGRUNTIME PyTypeObject* -SwigPyPacked_TypeOnce(void) { - static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; - static PyTypeObject swigpypacked_type; - static int type_init = 0; - if (!type_init) { - const PyTypeObject tmp = { - /* PyObject header changed in Python 3 */ -#if PY_VERSION_HEX>=0x03000000 - PyVarObject_HEAD_INIT(NULL, 0) -#else - PyObject_HEAD_INIT(NULL) - 0, /* ob_size */ -#endif - (char *)"SwigPyPacked", /* tp_name */ - sizeof(SwigPyPacked), /* tp_basicsize */ - 0, /* tp_itemsize */ - (destructor)SwigPyPacked_dealloc, /* tp_dealloc */ - (printfunc)SwigPyPacked_print, /* tp_print */ - (getattrfunc)0, /* tp_getattr */ - (setattrfunc)0, /* tp_setattr */ -#if PY_VERSION_HEX>=0x03000000 - 0, /* tp_reserved in 3.0.1 */ -#else - (cmpfunc)SwigPyPacked_compare, /* tp_compare */ -#endif - (reprfunc)SwigPyPacked_repr, /* tp_repr */ - 0, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - (hashfunc)0, /* tp_hash */ - (ternaryfunc)0, /* tp_call */ - (reprfunc)SwigPyPacked_str, /* tp_str */ - PyObject_GenericGetAttr, /* tp_getattro */ - 0, /* tp_setattro */ - 0, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT, /* tp_flags */ - swigpacked_doc, /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - 0, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ -#if PY_VERSION_HEX >= 0x02020000 - 0, /* tp_iter */ - 0, /* tp_iternext */ - 0, /* tp_methods */ - 0, /* tp_members */ - 0, /* tp_getset */ - 0, /* tp_base */ - 0, /* tp_dict */ - 0, /* tp_descr_get */ - 0, /* tp_descr_set */ - 0, /* tp_dictoffset */ - 0, /* tp_init */ - 0, /* tp_alloc */ - 0, /* tp_new */ - 0, /* tp_free */ - 0, /* tp_is_gc */ - 0, /* tp_bases */ - 0, /* tp_mro */ - 0, /* tp_cache */ - 0, /* tp_subclasses */ - 0, /* tp_weaklist */ -#endif -#if PY_VERSION_HEX >= 0x02030000 - 0, /* tp_del */ -#endif -#if PY_VERSION_HEX >= 0x02060000 - 0, /* tp_version */ -#endif -#ifdef COUNT_ALLOCS - 0,0,0,0 /* tp_alloc -> tp_next */ -#endif - }; - swigpypacked_type = tmp; - type_init = 1; -#if PY_VERSION_HEX < 0x02020000 - swigpypacked_type.ob_type = &PyType_Type; -#else - if (PyType_Ready(&swigpypacked_type) < 0) - return NULL; -#endif - } - return &swigpypacked_type; -} - -SWIGRUNTIME PyObject * -SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty) -{ - SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type()); - if (sobj) { - void *pack = malloc(size); - if (pack) { - memcpy(pack, ptr, size); - sobj->pack = pack; - sobj->ty = ty; - sobj->size = size; - } else { - PyObject_DEL((PyObject *) sobj); - sobj = 0; - } - } - return (PyObject *) sobj; -} - -SWIGRUNTIME swig_type_info * -SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size) -{ - if (SwigPyPacked_Check(obj)) { - SwigPyPacked *sobj = (SwigPyPacked *)obj; - if (sobj->size != size) return 0; - memcpy(ptr, sobj->pack, size); - return sobj->ty; - } else { - return 0; - } -} - -/* ----------------------------------------------------------------------------- - * pointers/data manipulation - * ----------------------------------------------------------------------------- */ - -SWIGRUNTIMEINLINE PyObject * -_SWIG_This(void) -{ - return SWIG_Python_str_FromChar("this"); -} - -static PyObject *swig_this = NULL; - -SWIGRUNTIME PyObject * -SWIG_This(void) -{ - if (swig_this == NULL) - swig_this = _SWIG_This(); - return swig_this; -} - -/* #define SWIG_PYTHON_SLOW_GETSET_THIS */ - -/* TODO: I don't know how to implement the fast getset in Python 3 right now */ -#if PY_VERSION_HEX>=0x03000000 -#define SWIG_PYTHON_SLOW_GETSET_THIS -#endif - -SWIGRUNTIME SwigPyObject * -SWIG_Python_GetSwigThis(PyObject *pyobj) -{ - PyObject *obj; - - if (SwigPyObject_Check(pyobj)) - return (SwigPyObject *) pyobj; - -#ifdef SWIGPYTHON_BUILTIN - (void)obj; -# ifdef PyWeakref_CheckProxy - if (PyWeakref_CheckProxy(pyobj)) { - pyobj = PyWeakref_GET_OBJECT(pyobj); - if (pyobj && SwigPyObject_Check(pyobj)) - return (SwigPyObject*) pyobj; - } -# endif - return NULL; -#else - - obj = 0; - -#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) - if (PyInstance_Check(pyobj)) { - obj = _PyInstance_Lookup(pyobj, SWIG_This()); - } else { - PyObject **dictptr = _PyObject_GetDictPtr(pyobj); - if (dictptr != NULL) { - PyObject *dict = *dictptr; - obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; - } else { -#ifdef PyWeakref_CheckProxy - if (PyWeakref_CheckProxy(pyobj)) { - PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); - return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; - } -#endif - obj = PyObject_GetAttr(pyobj,SWIG_This()); - if (obj) { - Py_DECREF(obj); - } else { - if (PyErr_Occurred()) PyErr_Clear(); - return 0; - } - } - } -#else - obj = PyObject_GetAttr(pyobj,SWIG_This()); - if (obj) { - Py_DECREF(obj); - } else { - if (PyErr_Occurred()) PyErr_Clear(); - return 0; - } -#endif - if (obj && !SwigPyObject_Check(obj)) { - /* a PyObject is called 'this', try to get the 'real this' - SwigPyObject from it */ - return SWIG_Python_GetSwigThis(obj); - } - return (SwigPyObject *)obj; -#endif -} - -/* Acquire a pointer value */ - -SWIGRUNTIME int -SWIG_Python_AcquirePtr(PyObject *obj, int own) { - if (own == SWIG_POINTER_OWN) { - SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj); - if (sobj) { - int oldown = sobj->own; - sobj->own = own; - return oldown; - } - } - return 0; -} - -/* Convert a pointer value */ - -SWIGRUNTIME int -SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { - int res; - SwigPyObject *sobj; - int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0; - - if (!obj) - return SWIG_ERROR; - if (obj == Py_None && !implicit_conv) { - if (ptr) - *ptr = 0; - return SWIG_OK; - } - - res = SWIG_ERROR; - - sobj = SWIG_Python_GetSwigThis(obj); - if (own) - *own = 0; - while (sobj) { - void *vptr = sobj->ptr; - if (ty) { - swig_type_info *to = sobj->ty; - if (to == ty) { - /* no type cast needed */ - if (ptr) *ptr = vptr; - break; - } else { - swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); - if (!tc) { - sobj = (SwigPyObject *)sobj->next; - } else { - if (ptr) { - int newmemory = 0; - *ptr = SWIG_TypeCast(tc,vptr,&newmemory); - if (newmemory == SWIG_CAST_NEW_MEMORY) { - assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */ - if (own) - *own = *own | SWIG_CAST_NEW_MEMORY; - } - } - break; - } - } - } else { - if (ptr) *ptr = vptr; - break; - } - } - if (sobj) { - if (own) - *own = *own | sobj->own; - if (flags & SWIG_POINTER_DISOWN) { - sobj->own = 0; - } - res = SWIG_OK; - } else { - if (implicit_conv) { - SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; - if (data && !data->implicitconv) { - PyObject *klass = data->klass; - if (klass) { - PyObject *impconv; - data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ - impconv = SWIG_Python_CallFunctor(klass, obj); - data->implicitconv = 0; - if (PyErr_Occurred()) { - PyErr_Clear(); - impconv = 0; - } - if (impconv) { - SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv); - if (iobj) { - void *vptr; - res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); - if (SWIG_IsOK(res)) { - if (ptr) { - *ptr = vptr; - /* transfer the ownership to 'ptr' */ - iobj->own = 0; - res = SWIG_AddCast(res); - res = SWIG_AddNewMask(res); - } else { - res = SWIG_AddCast(res); - } - } - } - Py_DECREF(impconv); - } - } - } - } - if (!SWIG_IsOK(res) && obj == Py_None) { - if (ptr) - *ptr = 0; - if (PyErr_Occurred()) - PyErr_Clear(); - res = SWIG_OK; - } - } - return res; -} - -/* Convert a function ptr value */ - -SWIGRUNTIME int -SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { - if (!PyCFunction_Check(obj)) { - return SWIG_ConvertPtr(obj, ptr, ty, 0); - } else { - void *vptr = 0; - - /* here we get the method pointer for callbacks */ - const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); - const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; - if (desc) - desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; - if (!desc) - return SWIG_ERROR; - if (ty) { - swig_cast_info *tc = SWIG_TypeCheck(desc,ty); - if (tc) { - int newmemory = 0; - *ptr = SWIG_TypeCast(tc,vptr,&newmemory); - assert(!newmemory); /* newmemory handling not yet implemented */ - } else { - return SWIG_ERROR; - } - } else { - *ptr = vptr; - } - return SWIG_OK; - } -} - -/* Convert a packed value value */ - -SWIGRUNTIME int -SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { - swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz); - if (!to) return SWIG_ERROR; - if (ty) { - if (to != ty) { - /* check type cast? */ - swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); - if (!tc) return SWIG_ERROR; - } - } - return SWIG_OK; -} - -/* ----------------------------------------------------------------------------- - * Create a new pointer object - * ----------------------------------------------------------------------------- */ - -/* - Create a new instance object, without calling __init__, and set the - 'this' attribute. -*/ - -SWIGRUNTIME PyObject* -SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this) -{ -#if (PY_VERSION_HEX >= 0x02020000) - PyObject *inst = 0; - PyObject *newraw = data->newraw; - if (newraw) { - inst = PyObject_Call(newraw, data->newargs, NULL); - if (inst) { -#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) - PyObject **dictptr = _PyObject_GetDictPtr(inst); - if (dictptr != NULL) { - PyObject *dict = *dictptr; - if (dict == NULL) { - dict = PyDict_New(); - *dictptr = dict; - PyDict_SetItem(dict, SWIG_This(), swig_this); - } - } -#else - PyObject *key = SWIG_This(); - PyObject_SetAttr(inst, key, swig_this); -#endif - } - } else { -#if PY_VERSION_HEX >= 0x03000000 - inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None, Py_None); - if (inst) { - PyObject_SetAttr(inst, SWIG_This(), swig_this); - Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; - } -#else - PyObject *dict = PyDict_New(); - if (dict) { - PyDict_SetItem(dict, SWIG_This(), swig_this); - inst = PyInstance_NewRaw(data->newargs, dict); - Py_DECREF(dict); - } -#endif - } - return inst; -#else -#if (PY_VERSION_HEX >= 0x02010000) - PyObject *inst = 0; - PyObject *dict = PyDict_New(); - if (dict) { - PyDict_SetItem(dict, SWIG_This(), swig_this); - inst = PyInstance_NewRaw(data->newargs, dict); - Py_DECREF(dict); - } - return (PyObject *) inst; -#else - PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); - if (inst == NULL) { - return NULL; - } - inst->in_class = (PyClassObject *)data->newargs; - Py_INCREF(inst->in_class); - inst->in_dict = PyDict_New(); - if (inst->in_dict == NULL) { - Py_DECREF(inst); - return NULL; - } -#ifdef Py_TPFLAGS_HAVE_WEAKREFS - inst->in_weakreflist = NULL; -#endif -#ifdef Py_TPFLAGS_GC - PyObject_GC_Init(inst); -#endif - PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); - return (PyObject *) inst; -#endif -#endif -} - -SWIGRUNTIME void -SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) -{ - PyObject *dict; -#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) - PyObject **dictptr = _PyObject_GetDictPtr(inst); - if (dictptr != NULL) { - dict = *dictptr; - if (dict == NULL) { - dict = PyDict_New(); - *dictptr = dict; - } - PyDict_SetItem(dict, SWIG_This(), swig_this); - return; - } -#endif - dict = PyObject_GetAttrString(inst, (char*)"__dict__"); - PyDict_SetItem(dict, SWIG_This(), swig_this); - Py_DECREF(dict); -} - - -SWIGINTERN PyObject * -SWIG_Python_InitShadowInstance(PyObject *args) { - PyObject *obj[2]; - if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) { - return NULL; - } else { - SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]); - if (sthis) { - SwigPyObject_append((PyObject*) sthis, obj[1]); - } else { - SWIG_Python_SetSwigThis(obj[0], obj[1]); - } - return SWIG_Py_Void(); - } -} - -/* Create a new pointer object */ - -SWIGRUNTIME PyObject * -SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) { - SwigPyClientData *clientdata; - PyObject * robj; - int own; - - if (!ptr) - return SWIG_Py_Void(); - - clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0; - own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; - if (clientdata && clientdata->pytype) { - SwigPyObject *newobj; - if (flags & SWIG_BUILTIN_TP_INIT) { - newobj = (SwigPyObject*) self; - if (newobj->ptr) { - PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0); - while (newobj->next) - newobj = (SwigPyObject *) newobj->next; - newobj->next = next_self; - newobj = (SwigPyObject *)next_self; - } - } else { - newobj = PyObject_New(SwigPyObject, clientdata->pytype); - } - if (newobj) { - newobj->ptr = ptr; - newobj->ty = type; - newobj->own = own; - newobj->next = 0; -#ifdef SWIGPYTHON_BUILTIN - newobj->dict = 0; -#endif - return (PyObject*) newobj; - } - return SWIG_Py_Void(); - } - - assert(!(flags & SWIG_BUILTIN_TP_INIT)); - - robj = SwigPyObject_New(ptr, type, own); - if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { - PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); - Py_DECREF(robj); - robj = inst; - } - return robj; -} - -/* Create a new packed object */ - -SWIGRUNTIMEINLINE PyObject * -SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { - return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); -} - -/* -----------------------------------------------------------------------------* - * Get type list - * -----------------------------------------------------------------------------*/ - -#ifdef SWIG_LINK_RUNTIME -void *SWIG_ReturnGlobalTypeList(void *); -#endif - -SWIGRUNTIME swig_module_info * -SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) { - static void *type_pointer = (void *)0; - /* first check if module already created */ - if (!type_pointer) { -#ifdef SWIG_LINK_RUNTIME - type_pointer = SWIG_ReturnGlobalTypeList((void *)0); -#else -# ifdef SWIGPY_USE_CAPSULE - type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0); -# else - type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, - (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); -# endif - if (PyErr_Occurred()) { - PyErr_Clear(); - type_pointer = (void *)0; - } -#endif - } - return (swig_module_info *) type_pointer; -} - -#if PY_MAJOR_VERSION < 2 -/* PyModule_AddObject function was introduced in Python 2.0. The following function - is copied out of Python/modsupport.c in python version 2.3.4 */ -SWIGINTERN int -PyModule_AddObject(PyObject *m, char *name, PyObject *o) -{ - PyObject *dict; - if (!PyModule_Check(m)) { - PyErr_SetString(PyExc_TypeError, - "PyModule_AddObject() needs module as first arg"); - return SWIG_ERROR; - } - if (!o) { - PyErr_SetString(PyExc_TypeError, - "PyModule_AddObject() needs non-NULL value"); - return SWIG_ERROR; - } - - dict = PyModule_GetDict(m); - if (dict == NULL) { - /* Internal error -- modules must have a dict! */ - PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", - PyModule_GetName(m)); - return SWIG_ERROR; - } - if (PyDict_SetItemString(dict, name, o)) - return SWIG_ERROR; - Py_DECREF(o); - return SWIG_OK; -} -#endif - -SWIGRUNTIME void -#ifdef SWIGPY_USE_CAPSULE -SWIG_Python_DestroyModule(PyObject *obj) -#else -SWIG_Python_DestroyModule(void *vptr) -#endif -{ -#ifdef SWIGPY_USE_CAPSULE - swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME); -#else - swig_module_info *swig_module = (swig_module_info *) vptr; -#endif - swig_type_info **types = swig_module->types; - size_t i; - for (i =0; i < swig_module->size; ++i) { - swig_type_info *ty = types[i]; - if (ty->owndata) { - SwigPyClientData *data = (SwigPyClientData *) ty->clientdata; - if (data) SwigPyClientData_Del(data); - } - } - Py_DECREF(SWIG_This()); - swig_this = NULL; -} - -SWIGRUNTIME void -SWIG_Python_SetModule(swig_module_info *swig_module) { -#if PY_VERSION_HEX >= 0x03000000 - /* Add a dummy module object into sys.modules */ - PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION); -#else - static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */ - PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table); -#endif -#ifdef SWIGPY_USE_CAPSULE - PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule); - if (pointer && module) { - PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer); - } else { - Py_XDECREF(pointer); - } -#else - PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); - if (pointer && module) { - PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); - } else { - Py_XDECREF(pointer); - } -#endif -} - -/* The python cached type query */ -SWIGRUNTIME PyObject * -SWIG_Python_TypeCache(void) { - static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); - return cache; -} - -SWIGRUNTIME swig_type_info * -SWIG_Python_TypeQuery(const char *type) -{ - PyObject *cache = SWIG_Python_TypeCache(); - PyObject *key = SWIG_Python_str_FromChar(type); - PyObject *obj = PyDict_GetItem(cache, key); - swig_type_info *descriptor; - if (obj) { -#ifdef SWIGPY_USE_CAPSULE - descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL); -#else - descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); -#endif - } else { - swig_module_info *swig_module = SWIG_GetModule(0); - descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); - if (descriptor) { -#ifdef SWIGPY_USE_CAPSULE - obj = PyCapsule_New((void*) descriptor, NULL, NULL); -#else - obj = PyCObject_FromVoidPtr(descriptor, NULL); -#endif - PyDict_SetItem(cache, key, obj); - Py_DECREF(obj); - } - } - Py_DECREF(key); - return descriptor; -} - -/* - For backward compatibility only -*/ -#define SWIG_POINTER_EXCEPTION 0 -#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) -#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) - -SWIGRUNTIME int -SWIG_Python_AddErrMesg(const char* mesg, int infront) -{ - if (PyErr_Occurred()) { - PyObject *type = 0; - PyObject *value = 0; - PyObject *traceback = 0; - PyErr_Fetch(&type, &value, &traceback); - if (value) { - char *tmp; - PyObject *old_str = PyObject_Str(value); - Py_XINCREF(type); - PyErr_Clear(); - if (infront) { - PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str)); - } else { - PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); - } - SWIG_Python_str_DelForPy3(tmp); - Py_DECREF(old_str); - } - return 1; - } else { - return 0; - } -} - -SWIGRUNTIME int -SWIG_Python_ArgFail(int argnum) -{ - if (PyErr_Occurred()) { - /* add information about failing argument */ - char mesg[256]; - PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); - return SWIG_Python_AddErrMesg(mesg, 1); - } else { - return 0; - } -} - -SWIGRUNTIMEINLINE const char * -SwigPyObject_GetDesc(PyObject *self) -{ - SwigPyObject *v = (SwigPyObject *)self; - swig_type_info *ty = v ? v->ty : 0; - return ty ? ty->str : ""; -} - -SWIGRUNTIME void -SWIG_Python_TypeError(const char *type, PyObject *obj) -{ - if (type) { -#if defined(SWIG_COBJECT_TYPES) - if (obj && SwigPyObject_Check(obj)) { - const char *otype = (const char *) SwigPyObject_GetDesc(obj); - if (otype) { - PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received", - type, otype); - return; - } - } else -#endif - { - const char *otype = (obj ? obj->ob_type->tp_name : 0); - if (otype) { - PyObject *str = PyObject_Str(obj); - const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0; - if (cstr) { - PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", - type, otype, cstr); - SWIG_Python_str_DelForPy3(cstr); - } else { - PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", - type, otype); - } - Py_XDECREF(str); - return; - } - } - PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); - } else { - PyErr_Format(PyExc_TypeError, "unexpected type is received"); - } -} - - -/* Convert a pointer value, signal an exception on a type mismatch */ -SWIGRUNTIME void * -SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) { - void *result; - if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { - PyErr_Clear(); -#if SWIG_POINTER_EXCEPTION - if (flags) { - SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); - SWIG_Python_ArgFail(argnum); - } -#endif - } - return result; -} - -#ifdef SWIGPYTHON_BUILTIN -SWIGRUNTIME int -SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { - PyTypeObject *tp = obj->ob_type; - PyObject *descr; - PyObject *encoded_name; - descrsetfunc f; - int res = -1; - -# ifdef Py_USING_UNICODE - if (PyString_Check(name)) { - name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL); - if (!name) - return -1; - } else if (!PyUnicode_Check(name)) -# else - if (!PyString_Check(name)) -# endif - { - PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name); - return -1; - } else { - Py_INCREF(name); - } - - if (!tp->tp_dict) { - if (PyType_Ready(tp) < 0) - goto done; - } - - descr = _PyType_Lookup(tp, name); - f = NULL; - if (descr != NULL) - f = descr->ob_type->tp_descr_set; - if (!f) { - if (PyString_Check(name)) { - encoded_name = name; - Py_INCREF(name); - } else { - encoded_name = PyUnicode_AsUTF8String(name); - } - PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name)); - Py_DECREF(encoded_name); - } else { - res = f(descr, obj, value); - } - - done: - Py_DECREF(name); - return res; -} -#endif - - -#ifdef __cplusplus -} -#endif - - - -#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) - -#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else - - - -/* -------- TYPES TABLE (BEGIN) -------- */ - -#define SWIGTYPE_p_FILE swig_types[0] -#define SWIGTYPE_p_THREAD_PARAM swig_types[1] -#define SWIGTYPE_p_WSEMAPHORE swig_types[2] -#define SWIGTYPE_p__rlFileLines_ swig_types[3] -#define SWIGTYPE_p__rlHistoryLogLine_ swig_types[4] -#define SWIGTYPE_p__rlHistoryReaderLine_ swig_types[5] -#define SWIGTYPE_p_a_4__char swig_types[6] -#define SWIGTYPE_p_char swig_types[7] -#define SWIGTYPE_p_double swig_types[8] -#define SWIGTYPE_p_f_p_q_const__unsigned_char_int__void swig_types[9] -#define SWIGTYPE_p_f_p_void__p_void swig_types[10] -#define SWIGTYPE_p_f_p_void__void swig_types[11] -#define SWIGTYPE_p_float swig_types[12] -#define SWIGTYPE_p_int swig_types[13] -#define SWIGTYPE_p_p_char swig_types[14] -#define SWIGTYPE_p_p_void swig_types[15] -#define SWIGTYPE_p_pthread_attr_t swig_types[16] -#define SWIGTYPE_p_pthread_mutex_t swig_types[17] -#define SWIGTYPE_p_pthread_t swig_types[18] -#define SWIGTYPE_p_rl3964R swig_types[19] -#define SWIGTYPE_p_rlCommandlineInterface swig_types[20] -#define SWIGTYPE_p_rlDataAcquisition swig_types[21] -#define SWIGTYPE_p_rlDataAcquisitionProvider swig_types[22] -#define SWIGTYPE_p_rlDataProvider swig_types[23] -#define SWIGTYPE_p_rlDataProviderClient swig_types[24] -#define SWIGTYPE_p_rlDataProviderThreads swig_types[25] -#define SWIGTYPE_p_rlEventLogServer swig_types[26] -#define SWIGTYPE_p_rlEventLogServerThreads swig_types[27] -#define SWIGTYPE_p_rlFifo swig_types[28] -#define SWIGTYPE_p_rlFileLoad swig_types[29] -#define SWIGTYPE_p_rlHistoryLogger swig_types[30] -#define SWIGTYPE_p_rlHistoryReader swig_types[31] -#define SWIGTYPE_p_rlIniFile swig_types[32] -#define SWIGTYPE_p_rlInterpreter swig_types[33] -#define SWIGTYPE_p_rlIpAdr swig_types[34] -#define SWIGTYPE_p_rlMailbox swig_types[35] -#define SWIGTYPE_p_rlModbus swig_types[36] -#define SWIGTYPE_p_rlModbusClient swig_types[37] -#define SWIGTYPE_p_rlMutex swig_types[38] -#define SWIGTYPE_p_rlOpcXmlDa swig_types[39] -#define SWIGTYPE_p_rlPPIClient swig_types[40] -#define SWIGTYPE_p_rlPcontrol swig_types[41] -#define SWIGTYPE_p_rlPlcMem swig_types[42] -#define SWIGTYPE_p_rlPlcState swig_types[43] -#define SWIGTYPE_p_rlSemaphore swig_types[44] -#define SWIGTYPE_p_rlSerial swig_types[45] -#define SWIGTYPE_p_rlSharedMemory swig_types[46] -#define SWIGTYPE_p_rlSiemensTCP swig_types[47] -#define SWIGTYPE_p_rlSiemensTCPClient swig_types[48] -#define SWIGTYPE_p_rlSocket swig_types[49] -#define SWIGTYPE_p_rlSpawn swig_types[50] -#define SWIGTYPE_p_rlSpreadsheetCell swig_types[51] -#define SWIGTYPE_p_rlSpreadsheetRow swig_types[52] -#define SWIGTYPE_p_rlSpreadsheetTable swig_types[53] -#define SWIGTYPE_p_rlSpreadsheetWorkbook swig_types[54] -#define SWIGTYPE_p_rlString swig_types[55] -#define SWIGTYPE_p_rlSvgAnimator swig_types[56] -#define SWIGTYPE_p_rlSvgCat swig_types[57] -#define SWIGTYPE_p_rlSvgPosition swig_types[58] -#define SWIGTYPE_p_rlSvgPosition__rlPositionInit swig_types[59] -#define SWIGTYPE_p_rlThread swig_types[60] -#define SWIGTYPE_p_rlTime swig_types[61] -#define SWIGTYPE_p_rlUdpSocket swig_types[62] -#define SWIGTYPE_p_rlWebcam swig_types[63] -#define SWIGTYPE_p_short swig_types[64] -#define SWIGTYPE_p_sockaddr_in swig_types[65] -#define SWIGTYPE_p_unsigned_char swig_types[66] -#define SWIGTYPE_p_unsigned_int swig_types[67] -#define SWIGTYPE_p_unsigned_short swig_types[68] -#define SWIGTYPE_p_void swig_types[69] -static swig_type_info *swig_types[71]; -static swig_module_info swig_module = {swig_types, 70, 0, 0, 0, 0}; -#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) -#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) - -/* -------- TYPES TABLE (END) -------- */ - -#if (PY_VERSION_HEX <= 0x02000000) -# if !defined(SWIG_PYTHON_CLASSIC) -# error "This python version requires swig to be run with the '-classic' option" -# endif -#endif - -/*----------------------------------------------- - @(target):= _rllib.so - ------------------------------------------------*/ -#if PY_VERSION_HEX >= 0x03000000 -# define SWIG_init PyInit__rllib - -#else -# define SWIG_init init_rllib - -#endif -#define SWIG_name "_rllib" - -#define SWIGVERSION 0x020012 -#define SWIG_VERSION SWIGVERSION - - -#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) -#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) - - -#include - - -namespace swig { - class SwigPtr_PyObject { - protected: - PyObject *_obj; - - public: - SwigPtr_PyObject() :_obj(0) - { - } - - SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj) - { - Py_XINCREF(_obj); - } - - SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) - { - if (initial_ref) { - Py_XINCREF(_obj); - } - } - - SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) - { - Py_XINCREF(item._obj); - Py_XDECREF(_obj); - _obj = item._obj; - return *this; - } - - ~SwigPtr_PyObject() - { - Py_XDECREF(_obj); - } - - operator PyObject *() const - { - return _obj; - } - - PyObject *operator->() const - { - return _obj; - } - }; -} - - -namespace swig { - struct SwigVar_PyObject : SwigPtr_PyObject { - SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { } - - SwigVar_PyObject & operator = (PyObject* obj) - { - Py_XDECREF(_obj); - _obj = obj; - return *this; - } - }; -} - - -/*Putheadersandotherdeclarationshere*/ -#include"../rllib/lib/rldefine.h" -#include"../rllib/lib/rlthread.h" -#include"../rllib/lib/rlsharedmemory.h" -#include"../rllib/lib/rludpsocket.h" -#include"../rllib/lib/rlsocket.h" -#include"../rllib/lib/rl3964r.h" -#include"../rllib/lib/rlcommandlineinterface.h" -//#include"../rllib/lib/rlcontroller.h" -#include"../rllib/lib/rlcutil.h" -#include"../rllib/lib/rldataacquisition.h" -#include"../rllib/lib/rldataacquisitionprovider.h" -#include"../rllib/lib/rldataprovider.h" -//#include"../rllib/lib/rleibnetip.h" -#include"../rllib/lib/rlevent.h" -#include"../rllib/lib/rleventlogserver.h" -#include"../rllib/lib/rlfifo.h" -#include"../rllib/lib/rlfileload.h" -//win #include"../rllib/lib/rlhilschercif.h" -#include"../rllib/lib/rlhistorylogger.h" -#include"../rllib/lib/rlhistoryreader.h" -#include"../rllib/lib/rlinifile.h" -#include"../rllib/lib/rlinterpreter.h" -#include"../rllib/lib/rlmailbox.h" -#include"../rllib/lib/rlmodbusclient.h" -#include"../rllib/lib/rlmodbus.h" -#include"../rllib/lib/rlopcxmlda.h" -#include"../rllib/lib/rlpcontrol.h" -#include"../rllib/lib/rlplc.h" -#include"../rllib/lib/rlppiclient.h" -#include"../rllib/lib/rlserial.h" -#include"../rllib/lib/rlsiemenstcpclient.h" -#include"../rllib/lib/rlsiemenstcp.h" -#include"../rllib/lib/rlspawn.h" -#include"../rllib/lib/rlspreadsheet.h" -#include"../rllib/lib/rlstring.h" -#include"../rllib/lib/rlsubset.h" -#include"../rllib/lib/rlsvganimator.h" -#include"../rllib/lib/rlsvgcat.h" -#include"../rllib/lib/rltime.h" -#include"../rllib/lib/rlwebcam.h" -#include"../rllib/lib/rlwthread.h" - - -SWIGINTERNINLINE PyObject* - SWIG_From_int (int value) -{ - return PyInt_FromLong((long) value); -} - - -SWIGINTERN swig_type_info* -SWIG_pchar_descriptor(void) -{ - static int init = 0; - static swig_type_info* info = 0; - if (!init) { - info = SWIG_TypeQuery("_p_char"); - init = 1; - } - return info; -} - - -SWIGINTERNINLINE PyObject * -SWIG_FromCharPtrAndSize(const char* carray, size_t size) -{ - if (carray) { - if (size > INT_MAX) { - swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); - return pchar_descriptor ? - SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void(); - } else { -#if PY_VERSION_HEX >= 0x03000000 - return PyUnicode_FromStringAndSize(carray, static_cast< int >(size)); -#else - return PyString_FromStringAndSize(carray, static_cast< int >(size)); -#endif - } - } else { - return SWIG_Py_Void(); - } -} - - -SWIGINTERNINLINE PyObject * -SWIG_FromCharPtr(const char *cptr) -{ - return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); -} - - -#include -#if !defined(SWIG_NO_LLONG_MAX) -# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) -# define LLONG_MAX __LONG_LONG_MAX__ -# define LLONG_MIN (-LLONG_MAX - 1LL) -# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) -# endif -#endif - - -SWIGINTERN int -SWIG_AsVal_double (PyObject *obj, double *val) -{ - int res = SWIG_TypeError; - if (PyFloat_Check(obj)) { - if (val) *val = PyFloat_AsDouble(obj); - return SWIG_OK; - } else if (PyInt_Check(obj)) { - if (val) *val = PyInt_AsLong(obj); - return SWIG_OK; - } else if (PyLong_Check(obj)) { - double v = PyLong_AsDouble(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_OK; - } else { - PyErr_Clear(); - } - } -#ifdef SWIG_PYTHON_CAST_MODE - { - int dispatch = 0; - double d = PyFloat_AsDouble(obj); - if (!PyErr_Occurred()) { - if (val) *val = d; - return SWIG_AddCast(SWIG_OK); - } else { - PyErr_Clear(); - } - if (!dispatch) { - long v = PyLong_AsLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_AddCast(SWIG_AddCast(SWIG_OK)); - } else { - PyErr_Clear(); - } - } - } -#endif - return res; -} - - -#include - - -#include - - -SWIGINTERNINLINE int -SWIG_CanCastAsInteger(double *d, double min, double max) { - double x = *d; - if ((min <= x && x <= max)) { - double fx = floor(x); - double cx = ceil(x); - double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ - if ((errno == EDOM) || (errno == ERANGE)) { - errno = 0; - } else { - double summ, reps, diff; - if (rd < x) { - diff = x - rd; - } else if (rd > x) { - diff = rd - x; - } else { - return 1; - } - summ = rd + x; - reps = diff/summ; - if (reps < 8*DBL_EPSILON) { - *d = rd; - return 1; - } - } - } - return 0; -} - - -SWIGINTERN int -SWIG_AsVal_long (PyObject *obj, long* val) -{ - if (PyInt_Check(obj)) { - if (val) *val = PyInt_AsLong(obj); - return SWIG_OK; - } else if (PyLong_Check(obj)) { - long v = PyLong_AsLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_OK; - } else { - PyErr_Clear(); - } - } -#ifdef SWIG_PYTHON_CAST_MODE - { - int dispatch = 0; - long v = PyInt_AsLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_AddCast(SWIG_OK); - } else { - PyErr_Clear(); - } - if (!dispatch) { - double d; - int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); - if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) { - if (val) *val = (long)(d); - return res; - } - } - } -#endif - return SWIG_TypeError; -} - - -SWIGINTERN int -SWIG_AsVal_int (PyObject * obj, int *val) -{ - long v; - int res = SWIG_AsVal_long (obj, &v); - if (SWIG_IsOK(res)) { - if ((v < INT_MIN || v > INT_MAX)) { - return SWIG_OverflowError; - } else { - if (val) *val = static_cast< int >(v); - } - } - return res; -} - - -SWIGINTERN int -SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) -{ -#if PY_VERSION_HEX>=0x03000000 - if (PyUnicode_Check(obj)) -#else - if (PyString_Check(obj)) -#endif - { - char *cstr; Py_ssize_t len; -#if PY_VERSION_HEX>=0x03000000 - if (!alloc && cptr) { - /* We can't allow converting without allocation, since the internal - representation of string in Python 3 is UCS-2/UCS-4 but we require - a UTF-8 representation. - TODO(bhy) More detailed explanation */ - return SWIG_RuntimeError; - } - obj = PyUnicode_AsUTF8String(obj); - PyBytes_AsStringAndSize(obj, &cstr, &len); - if(alloc) *alloc = SWIG_NEWOBJ; -#else - PyString_AsStringAndSize(obj, &cstr, &len); -#endif - if (cptr) { - if (alloc) { - /* - In python the user should not be able to modify the inner - string representation. To warranty that, if you define - SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string - buffer is always returned. - - The default behavior is just to return the pointer value, - so, be careful. - */ -#if defined(SWIG_PYTHON_SAFE_CSTRINGS) - if (*alloc != SWIG_OLDOBJ) -#else - if (*alloc == SWIG_NEWOBJ) -#endif - { - *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1))); - *alloc = SWIG_NEWOBJ; - } - else { - *cptr = cstr; - *alloc = SWIG_OLDOBJ; - } - } else { - #if PY_VERSION_HEX>=0x03000000 - assert(0); /* Should never reach here in Python 3 */ - #endif - *cptr = SWIG_Python_str_AsChar(obj); - } - } - if (psize) *psize = len + 1; -#if PY_VERSION_HEX>=0x03000000 - Py_XDECREF(obj); -#endif - return SWIG_OK; - } else { - swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); - if (pchar_descriptor) { - void* vptr = 0; - if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) { - if (cptr) *cptr = (char *) vptr; - if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; - if (alloc) *alloc = SWIG_OLDOBJ; - return SWIG_OK; - } - } - } - return SWIG_TypeError; -} - - - - - -SWIGINTERN int -SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) -{ -#if PY_VERSION_HEX < 0x03000000 - if (PyInt_Check(obj)) { - long v = PyInt_AsLong(obj); - if (v >= 0) { - if (val) *val = v; - return SWIG_OK; - } else { - return SWIG_OverflowError; - } - } else -#endif - if (PyLong_Check(obj)) { - unsigned long v = PyLong_AsUnsignedLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_OK; - } else { - PyErr_Clear(); -#if PY_VERSION_HEX >= 0x03000000 - { - long v = PyLong_AsLong(obj); - if (!PyErr_Occurred()) { - if (v < 0) { - return SWIG_OverflowError; - } - } else { - PyErr_Clear(); - } - } -#endif - } - } -#ifdef SWIG_PYTHON_CAST_MODE - { - int dispatch = 0; - unsigned long v = PyLong_AsUnsignedLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_AddCast(SWIG_OK); - } else { - PyErr_Clear(); - } - if (!dispatch) { - double d; - int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); - if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { - if (val) *val = (unsigned long)(d); - return res; - } - } - } -#endif - return SWIG_TypeError; -} - - - #define SWIG_From_double PyFloat_FromDouble - - -SWIGINTERNINLINE PyObject * -SWIG_From_float (float value) -{ - return SWIG_From_double (value); -} - - -SWIGINTERN int -SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val) -{ - unsigned long v; - int res = SWIG_AsVal_unsigned_SS_long (obj, &v); - if (SWIG_IsOK(res)) { - if ((v > UCHAR_MAX)) { - return SWIG_OverflowError; - } else { - if (val) *val = static_cast< unsigned char >(v); - } - } - return res; -} - - -/* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */ -#ifndef SWIG_isfinite -# if defined(isfinite) -# define SWIG_isfinite(X) (isfinite(X)) -# elif defined(_MSC_VER) -# define SWIG_isfinite(X) (_finite(X)) -# elif defined(__sun) && defined(__SVR4) -# include -# define SWIG_isfinite(X) (finite(X)) -# endif -#endif - - -/* Accept infinite as a valid float value unless we are unable to check if a value is finite */ -#ifdef SWIG_isfinite -# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX) && SWIG_isfinite(X)) -#else -# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX)) -#endif - - -SWIGINTERN int -SWIG_AsVal_float (PyObject * obj, float *val) -{ - double v; - int res = SWIG_AsVal_double (obj, &v); - if (SWIG_IsOK(res)) { - if (SWIG_Float_Overflow_Check(v)) { - return SWIG_OverflowError; - } else { - if (val) *val = static_cast< float >(v); - } - } - return res; -} - - - #define SWIG_From_long PyLong_FromLong - - -SWIGINTERNINLINE PyObject* -SWIG_From_unsigned_SS_long (unsigned long value) -{ - return (value > LONG_MAX) ? - PyLong_FromUnsignedLong(value) : PyLong_FromLong(static_cast< long >(value)); -} - - -SWIGINTERN int -SWIG_AsCharArray(PyObject * obj, char *val, size_t size) -{ - char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ; - int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc); - if (SWIG_IsOK(res)) { - if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize; - if (csize <= size) { - if (val) { - if (csize) memcpy(val, cptr, csize*sizeof(char)); - if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char)); - } - if (alloc == SWIG_NEWOBJ) { - delete[] cptr; - res = SWIG_DelNewMask(res); - } - return res; - } - if (alloc == SWIG_NEWOBJ) delete[] cptr; - } - return SWIG_TypeError; -} - - -SWIGINTERN int -SWIG_AsVal_char (PyObject * obj, char *val) -{ - int res = SWIG_AsCharArray(obj, val, 1); - if (!SWIG_IsOK(res)) { - long v; - res = SWIG_AddCast(SWIG_AsVal_long (obj, &v)); - if (SWIG_IsOK(res)) { - if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) { - if (val) *val = static_cast< char >(v); - } else { - res = SWIG_OverflowError; - } - } - } - return res; -} - - -SWIGINTERNINLINE PyObject* - SWIG_From_unsigned_SS_int (unsigned int value) -{ - return PyInt_FromSize_t((size_t) value); -} - -#ifdef __cplusplus -extern "C" { -#endif -SWIGINTERN PyObject *_wrap_THREAD_PARAM_thread_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - THREAD_PARAM *arg1 = (THREAD_PARAM *) 0 ; - rlThread *arg2 = (rlThread *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:THREAD_PARAM_thread_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_THREAD_PARAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "THREAD_PARAM_thread_set" "', argument " "1"" of type '" "THREAD_PARAM *""'"); - } - arg1 = reinterpret_cast< THREAD_PARAM * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlThread, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "THREAD_PARAM_thread_set" "', argument " "2"" of type '" "rlThread *""'"); - } - arg2 = reinterpret_cast< rlThread * >(argp2); - if (arg1) (arg1)->thread = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_THREAD_PARAM_thread_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - THREAD_PARAM *arg1 = (THREAD_PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - rlThread *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:THREAD_PARAM_thread_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_THREAD_PARAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "THREAD_PARAM_thread_get" "', argument " "1"" of type '" "THREAD_PARAM *""'"); - } - arg1 = reinterpret_cast< THREAD_PARAM * >(argp1); - result = (rlThread *) ((arg1)->thread); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlThread, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_THREAD_PARAM_user_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - THREAD_PARAM *arg1 = (THREAD_PARAM *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:THREAD_PARAM_user_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_THREAD_PARAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "THREAD_PARAM_user_set" "', argument " "1"" of type '" "THREAD_PARAM *""'"); - } - arg1 = reinterpret_cast< THREAD_PARAM * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "THREAD_PARAM_user_set" "', argument " "2"" of type '" "void *""'"); - } - if (arg1) (arg1)->user = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_THREAD_PARAM_user_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - THREAD_PARAM *arg1 = (THREAD_PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - void *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:THREAD_PARAM_user_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_THREAD_PARAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "THREAD_PARAM_user_get" "', argument " "1"" of type '" "THREAD_PARAM *""'"); - } - arg1 = reinterpret_cast< THREAD_PARAM * >(argp1); - result = (void *) ((arg1)->user); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_THREAD_PARAM_running_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - THREAD_PARAM *arg1 = (THREAD_PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:THREAD_PARAM_running_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_THREAD_PARAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "THREAD_PARAM_running_set" "', argument " "1"" of type '" "THREAD_PARAM *""'"); - } - arg1 = reinterpret_cast< THREAD_PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "THREAD_PARAM_running_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->running = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_THREAD_PARAM_running_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - THREAD_PARAM *arg1 = (THREAD_PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:THREAD_PARAM_running_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_THREAD_PARAM, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "THREAD_PARAM_running_get" "', argument " "1"" of type '" "THREAD_PARAM *""'"); - } - arg1 = reinterpret_cast< THREAD_PARAM * >(argp1); - result = (int) ((arg1)->running); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_THREAD_PARAM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - THREAD_PARAM *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_THREAD_PARAM")) SWIG_fail; - result = (THREAD_PARAM *)new THREAD_PARAM(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_THREAD_PARAM, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_THREAD_PARAM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - THREAD_PARAM *arg1 = (THREAD_PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_THREAD_PARAM",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_THREAD_PARAM, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_THREAD_PARAM" "', argument " "1"" of type '" "THREAD_PARAM *""'"); - } - arg1 = reinterpret_cast< THREAD_PARAM * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *THREAD_PARAM_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_THREAD_PARAM, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlThread__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - rlThread *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_rlThread",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlThread" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (rlThread *)new rlThread(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlThread, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlThread__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlThread *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlThread")) SWIG_fail; - result = (rlThread *)new rlThread(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlThread, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlThread(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[2]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_rlThread__SWIG_1(self, args); - } - if (argc == 1) { - int _v; - { - int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlThread__SWIG_0(self, args); - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_rlThread'.\n" - " Possible C/C++ prototypes are:\n" - " rlThread::rlThread(int)\n" - " rlThread::rlThread()\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_delete_rlThread(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlThread *arg1 = (rlThread *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlThread",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlThread, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlThread" "', argument " "1"" of type '" "rlThread *""'"); - } - arg1 = reinterpret_cast< rlThread * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlThread_create(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlThread *arg1 = (rlThread *) 0 ; - void *(*arg2)(void *) = (void *(*)(void *)) 0 ; - void *arg3 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlThread_create",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlThread, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlThread_create" "', argument " "1"" of type '" "rlThread *""'"); - } - arg1 = reinterpret_cast< rlThread * >(argp1); - { - int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_void__p_void); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "rlThread_create" "', argument " "2"" of type '" "void *(*)(void *)""'"); - } - } - res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlThread_create" "', argument " "3"" of type '" "void *""'"); - } - result = (int)(arg1)->create(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlThread_trylock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlThread *arg1 = (rlThread *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlThread_trylock",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlThread, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlThread_trylock" "', argument " "1"" of type '" "rlThread *""'"); - } - arg1 = reinterpret_cast< rlThread * >(argp1); - result = (int)(arg1)->trylock(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlThread_lock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlThread *arg1 = (rlThread *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlThread_lock",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlThread, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlThread_lock" "', argument " "1"" of type '" "rlThread *""'"); - } - arg1 = reinterpret_cast< rlThread * >(argp1); - result = (int)(arg1)->lock(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlThread_unlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlThread *arg1 = (rlThread *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlThread_unlock",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlThread, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlThread_unlock" "', argument " "1"" of type '" "rlThread *""'"); - } - arg1 = reinterpret_cast< rlThread * >(argp1); - result = (int)(arg1)->unlock(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlThread_waitSemaphore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlThread *arg1 = (rlThread *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlThread_waitSemaphore",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlThread, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlThread_waitSemaphore" "', argument " "1"" of type '" "rlThread *""'"); - } - arg1 = reinterpret_cast< rlThread * >(argp1); - result = (int)(arg1)->waitSemaphore(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlThread_incrementSemaphore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlThread *arg1 = (rlThread *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlThread_incrementSemaphore",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlThread, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlThread_incrementSemaphore" "', argument " "1"" of type '" "rlThread *""'"); - } - arg1 = reinterpret_cast< rlThread * >(argp1); - result = (int)(arg1)->incrementSemaphore(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlThread_join(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlThread *arg1 = (rlThread *) 0 ; - void **arg2 = (void **) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlThread_join",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlThread, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlThread_join" "', argument " "1"" of type '" "rlThread *""'"); - } - arg1 = reinterpret_cast< rlThread * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_void, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlThread_join" "', argument " "2"" of type '" "void **""'"); - } - arg2 = reinterpret_cast< void ** >(argp2); - result = (int)(arg1)->join(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlThread_cancel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlThread *arg1 = (rlThread *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlThread_cancel",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlThread, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlThread_cancel" "', argument " "1"" of type '" "rlThread *""'"); - } - arg1 = reinterpret_cast< rlThread * >(argp1); - result = (int)(arg1)->cancel(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlThread_threadExit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlThread *arg1 = (rlThread *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlThread_threadExit",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlThread, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlThread_threadExit" "', argument " "1"" of type '" "rlThread *""'"); - } - arg1 = reinterpret_cast< rlThread * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlThread_threadExit" "', argument " "2"" of type '" "void *""'"); - } - (arg1)->threadExit(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlThread_tid_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlThread *arg1 = (rlThread *) 0 ; - pthread_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlThread_tid_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlThread, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlThread_tid_set" "', argument " "1"" of type '" "rlThread *""'"); - } - arg1 = reinterpret_cast< rlThread * >(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_pthread_t, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlThread_tid_set" "', argument " "2"" of type '" "pthread_t""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rlThread_tid_set" "', argument " "2"" of type '" "pthread_t""'"); - } else { - pthread_t * temp = reinterpret_cast< pthread_t * >(argp2); - arg2 = *temp; - if (SWIG_IsNewObj(res2)) delete temp; - } - } - if (arg1) (arg1)->tid = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlThread_tid_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlThread *arg1 = (rlThread *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - pthread_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlThread_tid_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlThread, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlThread_tid_get" "', argument " "1"" of type '" "rlThread *""'"); - } - arg1 = reinterpret_cast< rlThread * >(argp1); - result = ((arg1)->tid); - resultobj = SWIG_NewPointerObj((new pthread_t(static_cast< const pthread_t& >(result))), SWIGTYPE_p_pthread_t, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlThread_attr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlThread *arg1 = (rlThread *) 0 ; - pthread_attr_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlThread_attr_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlThread, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlThread_attr_set" "', argument " "1"" of type '" "rlThread *""'"); - } - arg1 = reinterpret_cast< rlThread * >(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_pthread_attr_t, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlThread_attr_set" "', argument " "2"" of type '" "pthread_attr_t""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rlThread_attr_set" "', argument " "2"" of type '" "pthread_attr_t""'"); - } else { - pthread_attr_t * temp = reinterpret_cast< pthread_attr_t * >(argp2); - arg2 = *temp; - if (SWIG_IsNewObj(res2)) delete temp; - } - } - if (arg1) (arg1)->attr = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlThread_attr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlThread *arg1 = (rlThread *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - pthread_attr_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlThread_attr_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlThread, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlThread_attr_get" "', argument " "1"" of type '" "rlThread *""'"); - } - arg1 = reinterpret_cast< rlThread * >(argp1); - result = ((arg1)->attr); - resultobj = SWIG_NewPointerObj((new pthread_attr_t(static_cast< const pthread_attr_t& >(result))), SWIGTYPE_p_pthread_attr_t, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlThread_mutex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlThread *arg1 = (rlThread *) 0 ; - pthread_mutex_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlThread_mutex_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlThread, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlThread_mutex_set" "', argument " "1"" of type '" "rlThread *""'"); - } - arg1 = reinterpret_cast< rlThread * >(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_pthread_mutex_t, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlThread_mutex_set" "', argument " "2"" of type '" "pthread_mutex_t""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rlThread_mutex_set" "', argument " "2"" of type '" "pthread_mutex_t""'"); - } else { - pthread_mutex_t * temp = reinterpret_cast< pthread_mutex_t * >(argp2); - arg2 = *temp; - if (SWIG_IsNewObj(res2)) delete temp; - } - } - if (arg1) (arg1)->mutex = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlThread_mutex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlThread *arg1 = (rlThread *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - pthread_mutex_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlThread_mutex_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlThread, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlThread_mutex_get" "', argument " "1"" of type '" "rlThread *""'"); - } - arg1 = reinterpret_cast< rlThread * >(argp1); - result = ((arg1)->mutex); - resultobj = SWIG_NewPointerObj((new pthread_mutex_t(static_cast< const pthread_mutex_t& >(result))), SWIGTYPE_p_pthread_mutex_t, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlThread_semaphore_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlThread *arg1 = (rlThread *) 0 ; - WSEMAPHORE arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlThread_semaphore_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlThread, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlThread_semaphore_set" "', argument " "1"" of type '" "rlThread *""'"); - } - arg1 = reinterpret_cast< rlThread * >(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_WSEMAPHORE, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlThread_semaphore_set" "', argument " "2"" of type '" "WSEMAPHORE""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rlThread_semaphore_set" "', argument " "2"" of type '" "WSEMAPHORE""'"); - } else { - WSEMAPHORE * temp = reinterpret_cast< WSEMAPHORE * >(argp2); - arg2 = *temp; - if (SWIG_IsNewObj(res2)) delete temp; - } - } - if (arg1) (arg1)->semaphore = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlThread_semaphore_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlThread *arg1 = (rlThread *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - WSEMAPHORE result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlThread_semaphore_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlThread, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlThread_semaphore_get" "', argument " "1"" of type '" "rlThread *""'"); - } - arg1 = reinterpret_cast< rlThread * >(argp1); - result = ((arg1)->semaphore); - resultobj = SWIG_NewPointerObj((new WSEMAPHORE(static_cast< const WSEMAPHORE& >(result))), SWIGTYPE_p_WSEMAPHORE, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlThread_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlThread, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlMutex__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - void *arg1 = (void *) 0 ; - int res1 ; - PyObject * obj0 = 0 ; - rlMutex *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_rlMutex",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlMutex" "', argument " "1"" of type '" "void const *""'"); - } - result = (rlMutex *)new rlMutex((void const *)arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlMutex, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlMutex__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlMutex *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlMutex")) SWIG_fail; - result = (rlMutex *)new rlMutex(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlMutex, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlMutex(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[2]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_rlMutex__SWIG_1(self, args); - } - if (argc == 1) { - int _v; - void *ptr = 0; - int res = SWIG_ConvertPtr(argv[0], &ptr, 0, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_rlMutex__SWIG_0(self, args); - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_rlMutex'.\n" - " Possible C/C++ prototypes are:\n" - " rlMutex::rlMutex(void const *)\n" - " rlMutex::rlMutex()\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_delete_rlMutex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlMutex *arg1 = (rlMutex *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlMutex",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlMutex, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlMutex" "', argument " "1"" of type '" "rlMutex *""'"); - } - arg1 = reinterpret_cast< rlMutex * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlMutex_trylock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlMutex *arg1 = (rlMutex *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlMutex_trylock",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlMutex, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlMutex_trylock" "', argument " "1"" of type '" "rlMutex *""'"); - } - arg1 = reinterpret_cast< rlMutex * >(argp1); - result = (int)(arg1)->trylock(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlMutex_lock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlMutex *arg1 = (rlMutex *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlMutex_lock",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlMutex, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlMutex_lock" "', argument " "1"" of type '" "rlMutex *""'"); - } - arg1 = reinterpret_cast< rlMutex * >(argp1); - result = (int)(arg1)->lock(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlMutex_unlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlMutex *arg1 = (rlMutex *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlMutex_unlock",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlMutex, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlMutex_unlock" "', argument " "1"" of type '" "rlMutex *""'"); - } - arg1 = reinterpret_cast< rlMutex * >(argp1); - result = (int)(arg1)->unlock(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlMutex_mutex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlMutex *arg1 = (rlMutex *) 0 ; - pthread_mutex_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlMutex_mutex_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlMutex, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlMutex_mutex_set" "', argument " "1"" of type '" "rlMutex *""'"); - } - arg1 = reinterpret_cast< rlMutex * >(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_pthread_mutex_t, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlMutex_mutex_set" "', argument " "2"" of type '" "pthread_mutex_t""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rlMutex_mutex_set" "', argument " "2"" of type '" "pthread_mutex_t""'"); - } else { - pthread_mutex_t * temp = reinterpret_cast< pthread_mutex_t * >(argp2); - arg2 = *temp; - if (SWIG_IsNewObj(res2)) delete temp; - } - } - if (arg1) (arg1)->mutex = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlMutex_mutex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlMutex *arg1 = (rlMutex *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - pthread_mutex_t result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlMutex_mutex_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlMutex, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlMutex_mutex_get" "', argument " "1"" of type '" "rlMutex *""'"); - } - arg1 = reinterpret_cast< rlMutex * >(argp1); - result = ((arg1)->mutex); - resultobj = SWIG_NewPointerObj((new pthread_mutex_t(static_cast< const pthread_mutex_t& >(result))), SWIGTYPE_p_pthread_mutex_t, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlMutex_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlMutex, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlSemaphore__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - rlSemaphore *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_rlSemaphore",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlSemaphore" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (rlSemaphore *)new rlSemaphore(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSemaphore, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlSemaphore__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSemaphore *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlSemaphore")) SWIG_fail; - result = (rlSemaphore *)new rlSemaphore(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSemaphore, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlSemaphore(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[2]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_rlSemaphore__SWIG_1(self, args); - } - if (argc == 1) { - int _v; - { - int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlSemaphore__SWIG_0(self, args); - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_rlSemaphore'.\n" - " Possible C/C++ prototypes are:\n" - " rlSemaphore::rlSemaphore(int)\n" - " rlSemaphore::rlSemaphore()\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_delete_rlSemaphore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSemaphore *arg1 = (rlSemaphore *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlSemaphore",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSemaphore, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlSemaphore" "', argument " "1"" of type '" "rlSemaphore *""'"); - } - arg1 = reinterpret_cast< rlSemaphore * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSemaphore_waitSemaphore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSemaphore *arg1 = (rlSemaphore *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSemaphore_waitSemaphore",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSemaphore, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSemaphore_waitSemaphore" "', argument " "1"" of type '" "rlSemaphore *""'"); - } - arg1 = reinterpret_cast< rlSemaphore * >(argp1); - result = (int)(arg1)->waitSemaphore(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSemaphore_incrementSemaphore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSemaphore *arg1 = (rlSemaphore *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSemaphore_incrementSemaphore",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSemaphore, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSemaphore_incrementSemaphore" "', argument " "1"" of type '" "rlSemaphore *""'"); - } - arg1 = reinterpret_cast< rlSemaphore * >(argp1); - result = (int)(arg1)->incrementSemaphore(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSemaphore_semaphore_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSemaphore *arg1 = (rlSemaphore *) 0 ; - WSEMAPHORE arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSemaphore_semaphore_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSemaphore, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSemaphore_semaphore_set" "', argument " "1"" of type '" "rlSemaphore *""'"); - } - arg1 = reinterpret_cast< rlSemaphore * >(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_WSEMAPHORE, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSemaphore_semaphore_set" "', argument " "2"" of type '" "WSEMAPHORE""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rlSemaphore_semaphore_set" "', argument " "2"" of type '" "WSEMAPHORE""'"); - } else { - WSEMAPHORE * temp = reinterpret_cast< WSEMAPHORE * >(argp2); - arg2 = *temp; - if (SWIG_IsNewObj(res2)) delete temp; - } - } - if (arg1) (arg1)->semaphore = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSemaphore_semaphore_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSemaphore *arg1 = (rlSemaphore *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - WSEMAPHORE result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSemaphore_semaphore_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSemaphore, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSemaphore_semaphore_get" "', argument " "1"" of type '" "rlSemaphore *""'"); - } - arg1 = reinterpret_cast< rlSemaphore * >(argp1); - result = ((arg1)->semaphore); - resultobj = SWIG_NewPointerObj((new WSEMAPHORE(static_cast< const WSEMAPHORE& >(result))), SWIGTYPE_p_WSEMAPHORE, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlSemaphore_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlSemaphore, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlSharedMemory__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - unsigned long arg2 ; - int arg3 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - unsigned long val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - rlSharedMemory *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:new_rlSharedMemory",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlSharedMemory" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_rlSharedMemory" "', argument " "2"" of type '" "unsigned long""'"); - } - arg2 = static_cast< unsigned long >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_rlSharedMemory" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (rlSharedMemory *)new rlSharedMemory((char const *)arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSharedMemory, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlSharedMemory__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - unsigned long arg2 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - unsigned long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - rlSharedMemory *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_rlSharedMemory",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlSharedMemory" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_rlSharedMemory" "', argument " "2"" of type '" "unsigned long""'"); - } - arg2 = static_cast< unsigned long >(val2); - result = (rlSharedMemory *)new rlSharedMemory((char const *)arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSharedMemory, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlSharedMemory(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_long(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlSharedMemory__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_long(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlSharedMemory__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_rlSharedMemory'.\n" - " Possible C/C++ prototypes are:\n" - " rlSharedMemory::rlSharedMemory(char const *,unsigned long,int)\n" - " rlSharedMemory::rlSharedMemory(char const *,unsigned long)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_delete_rlSharedMemory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSharedMemory *arg1 = (rlSharedMemory *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlSharedMemory",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSharedMemory, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlSharedMemory" "', argument " "1"" of type '" "rlSharedMemory *""'"); - } - arg1 = reinterpret_cast< rlSharedMemory * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSharedMemory_deleteSharedMemory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSharedMemory *arg1 = (rlSharedMemory *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSharedMemory_deleteSharedMemory",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSharedMemory, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSharedMemory_deleteSharedMemory" "', argument " "1"" of type '" "rlSharedMemory *""'"); - } - arg1 = reinterpret_cast< rlSharedMemory * >(argp1); - result = (int)(arg1)->deleteSharedMemory(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSharedMemory_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSharedMemory *arg1 = (rlSharedMemory *) 0 ; - unsigned long arg2 ; - void *arg3 = (void *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long val2 ; - int ecode2 = 0 ; - int res3 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlSharedMemory_write",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSharedMemory, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSharedMemory_write" "', argument " "1"" of type '" "rlSharedMemory *""'"); - } - arg1 = reinterpret_cast< rlSharedMemory * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSharedMemory_write" "', argument " "2"" of type '" "unsigned long""'"); - } - arg2 = static_cast< unsigned long >(val2); - res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlSharedMemory_write" "', argument " "3"" of type '" "void const *""'"); - } - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSharedMemory_write" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)(arg1)->write(arg2,(void const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSharedMemory_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSharedMemory *arg1 = (rlSharedMemory *) 0 ; - unsigned long arg2 ; - void *arg3 = (void *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long val2 ; - int ecode2 = 0 ; - int res3 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlSharedMemory_read",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSharedMemory, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSharedMemory_read" "', argument " "1"" of type '" "rlSharedMemory *""'"); - } - arg1 = reinterpret_cast< rlSharedMemory * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSharedMemory_read" "', argument " "2"" of type '" "unsigned long""'"); - } - arg2 = static_cast< unsigned long >(val2); - res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlSharedMemory_read" "', argument " "3"" of type '" "void *""'"); - } - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSharedMemory_read" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)(arg1)->read(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSharedMemory_readInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSharedMemory *arg1 = (rlSharedMemory *) 0 ; - unsigned long arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSharedMemory_readInt",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSharedMemory, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSharedMemory_readInt" "', argument " "1"" of type '" "rlSharedMemory *""'"); - } - arg1 = reinterpret_cast< rlSharedMemory * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSharedMemory_readInt" "', argument " "2"" of type '" "unsigned long""'"); - } - arg2 = static_cast< unsigned long >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSharedMemory_readInt" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->readInt(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSharedMemory_readShort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSharedMemory *arg1 = (rlSharedMemory *) 0 ; - unsigned long arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSharedMemory_readShort",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSharedMemory, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSharedMemory_readShort" "', argument " "1"" of type '" "rlSharedMemory *""'"); - } - arg1 = reinterpret_cast< rlSharedMemory * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSharedMemory_readShort" "', argument " "2"" of type '" "unsigned long""'"); - } - arg2 = static_cast< unsigned long >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSharedMemory_readShort" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->readShort(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSharedMemory_readByte(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSharedMemory *arg1 = (rlSharedMemory *) 0 ; - unsigned long arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSharedMemory_readByte",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSharedMemory, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSharedMemory_readByte" "', argument " "1"" of type '" "rlSharedMemory *""'"); - } - arg1 = reinterpret_cast< rlSharedMemory * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSharedMemory_readByte" "', argument " "2"" of type '" "unsigned long""'"); - } - arg2 = static_cast< unsigned long >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSharedMemory_readByte" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->readByte(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSharedMemory_readFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSharedMemory *arg1 = (rlSharedMemory *) 0 ; - unsigned long arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSharedMemory_readFloat",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSharedMemory, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSharedMemory_readFloat" "', argument " "1"" of type '" "rlSharedMemory *""'"); - } - arg1 = reinterpret_cast< rlSharedMemory * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSharedMemory_readFloat" "', argument " "2"" of type '" "unsigned long""'"); - } - arg2 = static_cast< unsigned long >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSharedMemory_readFloat" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (float)(arg1)->readFloat(arg2,arg3); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSharedMemory_writeInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSharedMemory *arg1 = (rlSharedMemory *) 0 ; - unsigned long arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlSharedMemory_writeInt",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSharedMemory, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSharedMemory_writeInt" "', argument " "1"" of type '" "rlSharedMemory *""'"); - } - arg1 = reinterpret_cast< rlSharedMemory * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSharedMemory_writeInt" "', argument " "2"" of type '" "unsigned long""'"); - } - arg2 = static_cast< unsigned long >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSharedMemory_writeInt" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSharedMemory_writeInt" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)(arg1)->writeInt(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSharedMemory_writeShort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSharedMemory *arg1 = (rlSharedMemory *) 0 ; - unsigned long arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlSharedMemory_writeShort",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSharedMemory, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSharedMemory_writeShort" "', argument " "1"" of type '" "rlSharedMemory *""'"); - } - arg1 = reinterpret_cast< rlSharedMemory * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSharedMemory_writeShort" "', argument " "2"" of type '" "unsigned long""'"); - } - arg2 = static_cast< unsigned long >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSharedMemory_writeShort" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSharedMemory_writeShort" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)(arg1)->writeShort(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSharedMemory_writeByte(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSharedMemory *arg1 = (rlSharedMemory *) 0 ; - unsigned long arg2 ; - int arg3 ; - unsigned char arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - unsigned char val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlSharedMemory_writeByte",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSharedMemory, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSharedMemory_writeByte" "', argument " "1"" of type '" "rlSharedMemory *""'"); - } - arg1 = reinterpret_cast< rlSharedMemory * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSharedMemory_writeByte" "', argument " "2"" of type '" "unsigned long""'"); - } - arg2 = static_cast< unsigned long >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSharedMemory_writeByte" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSharedMemory_writeByte" "', argument " "4"" of type '" "unsigned char""'"); - } - arg4 = static_cast< unsigned char >(val4); - result = (int)(arg1)->writeByte(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSharedMemory_writeFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSharedMemory *arg1 = (rlSharedMemory *) 0 ; - unsigned long arg2 ; - int arg3 ; - float arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned long val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlSharedMemory_writeFloat",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSharedMemory, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSharedMemory_writeFloat" "', argument " "1"" of type '" "rlSharedMemory *""'"); - } - arg1 = reinterpret_cast< rlSharedMemory * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSharedMemory_writeFloat" "', argument " "2"" of type '" "unsigned long""'"); - } - arg2 = static_cast< unsigned long >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSharedMemory_writeFloat" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSharedMemory_writeFloat" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - result = (int)(arg1)->writeFloat(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSharedMemory_getUserAdr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSharedMemory *arg1 = (rlSharedMemory *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - void *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSharedMemory_getUserAdr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSharedMemory, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSharedMemory_getUserAdr" "', argument " "1"" of type '" "rlSharedMemory *""'"); - } - arg1 = reinterpret_cast< rlSharedMemory * >(argp1); - result = (void *)(arg1)->getUserAdr(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSharedMemory_shmKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSharedMemory *arg1 = (rlSharedMemory *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSharedMemory_shmKey",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSharedMemory, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSharedMemory_shmKey" "', argument " "1"" of type '" "rlSharedMemory *""'"); - } - arg1 = reinterpret_cast< rlSharedMemory * >(argp1); - result = (int)(arg1)->shmKey(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSharedMemory_shmId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSharedMemory *arg1 = (rlSharedMemory *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSharedMemory_shmId",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSharedMemory, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSharedMemory_shmId" "', argument " "1"" of type '" "rlSharedMemory *""'"); - } - arg1 = reinterpret_cast< rlSharedMemory * >(argp1); - result = (int)(arg1)->shmId(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSharedMemory_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSharedMemory *arg1 = (rlSharedMemory *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - unsigned long result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSharedMemory_size",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSharedMemory, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSharedMemory_size" "', argument " "1"" of type '" "rlSharedMemory *""'"); - } - arg1 = reinterpret_cast< rlSharedMemory * >(argp1); - result = (unsigned long)(arg1)->size(); - resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSharedMemory_status_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSharedMemory *arg1 = (rlSharedMemory *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSharedMemory_status_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSharedMemory, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSharedMemory_status_set" "', argument " "1"" of type '" "rlSharedMemory *""'"); - } - arg1 = reinterpret_cast< rlSharedMemory * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSharedMemory_status_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->status = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSharedMemory_status_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSharedMemory *arg1 = (rlSharedMemory *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSharedMemory_status_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSharedMemory, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSharedMemory_status_get" "', argument " "1"" of type '" "rlSharedMemory *""'"); - } - arg1 = reinterpret_cast< rlSharedMemory * >(argp1); - result = (int) ((arg1)->status); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSharedMemory_name_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSharedMemory *arg1 = (rlSharedMemory *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSharedMemory_name_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSharedMemory, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSharedMemory_name_set" "', argument " "1"" of type '" "rlSharedMemory *""'"); - } - arg1 = reinterpret_cast< rlSharedMemory * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSharedMemory_name_set" "', argument " "2"" of type '" "char *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - if (arg1->name) delete[] arg1->name; - if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->name = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); - } else { - arg1->name = 0; - } - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSharedMemory_name_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSharedMemory *arg1 = (rlSharedMemory *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSharedMemory_name_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSharedMemory, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSharedMemory_name_get" "', argument " "1"" of type '" "rlSharedMemory *""'"); - } - arg1 = reinterpret_cast< rlSharedMemory * >(argp1); - result = (char *) ((arg1)->name); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlSharedMemory_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlSharedMemory, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlIpAdr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlIpAdr *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlIpAdr")) SWIG_fail; - result = (rlIpAdr *)new rlIpAdr(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlIpAdr, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_rlIpAdr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlIpAdr *arg1 = (rlIpAdr *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlIpAdr",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlIpAdr, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlIpAdr" "', argument " "1"" of type '" "rlIpAdr *""'"); - } - arg1 = reinterpret_cast< rlIpAdr * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlIpAdr_setAdr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlIpAdr *arg1 = (rlIpAdr *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlIpAdr_setAdr",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlIpAdr, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlIpAdr_setAdr" "', argument " "1"" of type '" "rlIpAdr *""'"); - } - arg1 = reinterpret_cast< rlIpAdr * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlIpAdr_setAdr" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlIpAdr_setAdr" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->setAdr((char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlIpAdr___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlIpAdr *arg1 = (rlIpAdr *) 0 ; - rlIpAdr *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlIpAdr___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlIpAdr, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlIpAdr___eq__" "', argument " "1"" of type '" "rlIpAdr *""'"); - } - arg1 = reinterpret_cast< rlIpAdr * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_rlIpAdr, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlIpAdr___eq__" "', argument " "2"" of type '" "rlIpAdr &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rlIpAdr___eq__" "', argument " "2"" of type '" "rlIpAdr &""'"); - } - arg2 = reinterpret_cast< rlIpAdr * >(argp2); - result = (int)(arg1)->operator ==(*arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlIpAdr_address_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlIpAdr *arg1 = (rlIpAdr *) 0 ; - sockaddr_in arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlIpAdr_address_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlIpAdr, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlIpAdr_address_set" "', argument " "1"" of type '" "rlIpAdr *""'"); - } - arg1 = reinterpret_cast< rlIpAdr * >(argp1); - { - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_sockaddr_in, 0 | 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlIpAdr_address_set" "', argument " "2"" of type '" "sockaddr_in""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rlIpAdr_address_set" "', argument " "2"" of type '" "sockaddr_in""'"); - } else { - sockaddr_in * temp = reinterpret_cast< sockaddr_in * >(argp2); - arg2 = *temp; - if (SWIG_IsNewObj(res2)) delete temp; - } - } - if (arg1) (arg1)->address = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlIpAdr_address_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlIpAdr *arg1 = (rlIpAdr *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - sockaddr_in result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlIpAdr_address_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlIpAdr, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlIpAdr_address_get" "', argument " "1"" of type '" "rlIpAdr *""'"); - } - arg1 = reinterpret_cast< rlIpAdr * >(argp1); - result = ((arg1)->address); - resultobj = SWIG_NewPointerObj((new sockaddr_in(static_cast< const sockaddr_in& >(result))), SWIGTYPE_p_sockaddr_in, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlIpAdr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlIpAdr, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlUdpSocket__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - rlUdpSocket *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_rlUdpSocket",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlUdpSocket" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (rlUdpSocket *)new rlUdpSocket(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlUdpSocket, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlUdpSocket__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlUdpSocket *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlUdpSocket")) SWIG_fail; - result = (rlUdpSocket *)new rlUdpSocket(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlUdpSocket, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlUdpSocket(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[2]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_rlUdpSocket__SWIG_1(self, args); - } - if (argc == 1) { - int _v; - { - int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlUdpSocket__SWIG_0(self, args); - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_rlUdpSocket'.\n" - " Possible C/C++ prototypes are:\n" - " rlUdpSocket::rlUdpSocket(int)\n" - " rlUdpSocket::rlUdpSocket()\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_delete_rlUdpSocket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlUdpSocket *arg1 = (rlUdpSocket *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlUdpSocket",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlUdpSocket, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlUdpSocket" "', argument " "1"" of type '" "rlUdpSocket *""'"); - } - arg1 = reinterpret_cast< rlUdpSocket * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlUdpSocket_setSockopt__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlUdpSocket *arg1 = (rlUdpSocket *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlUdpSocket_setSockopt",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlUdpSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlUdpSocket_setSockopt" "', argument " "1"" of type '" "rlUdpSocket *""'"); - } - arg1 = reinterpret_cast< rlUdpSocket * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlUdpSocket_setSockopt" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->setSockopt(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlUdpSocket_setSockopt__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlUdpSocket *arg1 = (rlUdpSocket *) 0 ; - int arg2 ; - int arg3 ; - void *arg4 = (void *) 0 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlUdpSocket_setSockopt",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlUdpSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlUdpSocket_setSockopt" "', argument " "1"" of type '" "rlUdpSocket *""'"); - } - arg1 = reinterpret_cast< rlUdpSocket * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlUdpSocket_setSockopt" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlUdpSocket_setSockopt" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_ConvertPtr(obj3,SWIG_as_voidptrptr(&arg4), 0, 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlUdpSocket_setSockopt" "', argument " "4"" of type '" "void *""'"); - } - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlUdpSocket_setSockopt" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)(arg1)->setSockopt(arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlUdpSocket_setSockopt(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlUdpSocket, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlUdpSocket_setSockopt__SWIG_0(self, args); - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlUdpSocket, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *ptr = 0; - int res = SWIG_ConvertPtr(argv[3], &ptr, 0, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlUdpSocket_setSockopt__SWIG_1(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlUdpSocket_setSockopt'.\n" - " Possible C/C++ prototypes are:\n" - " rlUdpSocket::setSockopt(int)\n" - " rlUdpSocket::setSockopt(int,int,void *,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlUdpSocket_bind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlUdpSocket *arg1 = (rlUdpSocket *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlUdpSocket_bind",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlUdpSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlUdpSocket_bind" "', argument " "1"" of type '" "rlUdpSocket *""'"); - } - arg1 = reinterpret_cast< rlUdpSocket * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlUdpSocket_bind" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->bind(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlUdpSocket_select(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlUdpSocket *arg1 = (rlUdpSocket *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlUdpSocket_select",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlUdpSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlUdpSocket_select" "', argument " "1"" of type '" "rlUdpSocket *""'"); - } - arg1 = reinterpret_cast< rlUdpSocket * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlUdpSocket_select" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->select(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlUdpSocket_recvfrom__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlUdpSocket *arg1 = (rlUdpSocket *) 0 ; - void *arg2 = (void *) 0 ; - int arg3 ; - rlIpAdr *arg4 = (rlIpAdr *) 0 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlUdpSocket_recvfrom",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlUdpSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlUdpSocket_recvfrom" "', argument " "1"" of type '" "rlUdpSocket *""'"); - } - arg1 = reinterpret_cast< rlUdpSocket * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlUdpSocket_recvfrom" "', argument " "2"" of type '" "void *""'"); - } - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlUdpSocket_recvfrom" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_rlIpAdr, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlUdpSocket_recvfrom" "', argument " "4"" of type '" "rlIpAdr *""'"); - } - arg4 = reinterpret_cast< rlIpAdr * >(argp4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlUdpSocket_recvfrom" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)(arg1)->recvfrom(arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlUdpSocket_recvfrom__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlUdpSocket *arg1 = (rlUdpSocket *) 0 ; - void *arg2 = (void *) 0 ; - int arg3 ; - rlIpAdr *arg4 = (rlIpAdr *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlUdpSocket_recvfrom",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlUdpSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlUdpSocket_recvfrom" "', argument " "1"" of type '" "rlUdpSocket *""'"); - } - arg1 = reinterpret_cast< rlUdpSocket * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlUdpSocket_recvfrom" "', argument " "2"" of type '" "void *""'"); - } - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlUdpSocket_recvfrom" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_rlIpAdr, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlUdpSocket_recvfrom" "', argument " "4"" of type '" "rlIpAdr *""'"); - } - arg4 = reinterpret_cast< rlIpAdr * >(argp4); - result = (int)(arg1)->recvfrom(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlUdpSocket_recvfrom(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlUdpSocket, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *ptr = 0; - int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_rlIpAdr, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlUdpSocket_recvfrom__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlUdpSocket, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *ptr = 0; - int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_rlIpAdr, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlUdpSocket_recvfrom__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlUdpSocket_recvfrom'.\n" - " Possible C/C++ prototypes are:\n" - " rlUdpSocket::recvfrom(void *,int,rlIpAdr *,int)\n" - " rlUdpSocket::recvfrom(void *,int,rlIpAdr *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlUdpSocket_sendto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlUdpSocket *arg1 = (rlUdpSocket *) 0 ; - void *arg2 = (void *) 0 ; - int arg3 ; - rlIpAdr *arg4 = (rlIpAdr *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlUdpSocket_sendto",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlUdpSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlUdpSocket_sendto" "', argument " "1"" of type '" "rlUdpSocket *""'"); - } - arg1 = reinterpret_cast< rlUdpSocket * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlUdpSocket_sendto" "', argument " "2"" of type '" "void const *""'"); - } - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlUdpSocket_sendto" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_rlIpAdr, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlUdpSocket_sendto" "', argument " "4"" of type '" "rlIpAdr *""'"); - } - arg4 = reinterpret_cast< rlIpAdr * >(argp4); - result = (int)(arg1)->sendto((void const *)arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlUdpSocket_printf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - rlUdpSocket *arg1 = (rlUdpSocket *) 0 ; - rlIpAdr *arg2 = (rlIpAdr *) 0 ; - char *arg3 = (char *) 0 ; - void *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlUdpSocket_printf",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlUdpSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlUdpSocket_printf" "', argument " "1"" of type '" "rlUdpSocket *""'"); - } - arg1 = reinterpret_cast< rlUdpSocket * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlIpAdr, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlUdpSocket_printf" "', argument " "2"" of type '" "rlIpAdr *""'"); - } - arg2 = reinterpret_cast< rlIpAdr * >(argp2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlUdpSocket_printf" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)(arg1)->printf(arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlUdpSocket_printf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,3); - varargs = PyTuple_GetSlice(args,3,PyTuple_Size(args)); - resultobj = _wrap_rlUdpSocket_printf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_rlUdpSocket_debug_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlUdpSocket *arg1 = (rlUdpSocket *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlUdpSocket_debug_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlUdpSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlUdpSocket_debug_set" "', argument " "1"" of type '" "rlUdpSocket *""'"); - } - arg1 = reinterpret_cast< rlUdpSocket * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlUdpSocket_debug_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->debug = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlUdpSocket_debug_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlUdpSocket *arg1 = (rlUdpSocket *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlUdpSocket_debug_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlUdpSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlUdpSocket_debug_get" "', argument " "1"" of type '" "rlUdpSocket *""'"); - } - arg1 = reinterpret_cast< rlUdpSocket * >(argp1); - result = (int) ((arg1)->debug); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlUdpSocket_readflag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlUdpSocket *arg1 = (rlUdpSocket *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlUdpSocket_readflag_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlUdpSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlUdpSocket_readflag_set" "', argument " "1"" of type '" "rlUdpSocket *""'"); - } - arg1 = reinterpret_cast< rlUdpSocket * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlUdpSocket_readflag_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->readflag = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlUdpSocket_readflag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlUdpSocket *arg1 = (rlUdpSocket *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlUdpSocket_readflag_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlUdpSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlUdpSocket_readflag_get" "', argument " "1"" of type '" "rlUdpSocket *""'"); - } - arg1 = reinterpret_cast< rlUdpSocket * >(argp1); - result = (int) ((arg1)->readflag); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlUdpSocket_writeflag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlUdpSocket *arg1 = (rlUdpSocket *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlUdpSocket_writeflag_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlUdpSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlUdpSocket_writeflag_set" "', argument " "1"" of type '" "rlUdpSocket *""'"); - } - arg1 = reinterpret_cast< rlUdpSocket * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlUdpSocket_writeflag_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->writeflag = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlUdpSocket_writeflag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlUdpSocket *arg1 = (rlUdpSocket *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlUdpSocket_writeflag_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlUdpSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlUdpSocket_writeflag_get" "', argument " "1"" of type '" "rlUdpSocket *""'"); - } - arg1 = reinterpret_cast< rlUdpSocket * >(argp1); - result = (int) ((arg1)->writeflag); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlUdpSocket_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlUdpSocket, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_rlwsa(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int result; - - if (!PyArg_ParseTuple(args,(char *)":rlwsa")) SWIG_fail; - result = (int)rlwsa(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlScoketWrite(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int *arg1 = (int *) 0 ; - void *arg2 = (void *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlScoketWrite",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlScoketWrite" "', argument " "1"" of type '" "int *""'"); - } - arg1 = reinterpret_cast< int * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlScoketWrite" "', argument " "2"" of type '" "void const *""'"); - } - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlScoketWrite" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)rlScoketWrite(arg1,(void const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlSocket__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int arg2 ; - int arg3 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - rlSocket *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:new_rlSocket",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlSocket" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_rlSocket" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_rlSocket" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (rlSocket *)new rlSocket((char const *)arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSocket, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlSocket__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - rlSocket *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_rlSocket",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlSocket" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (rlSocket *)new rlSocket(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSocket, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlSocket(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - { - int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlSocket__SWIG_1(self, args); - } - } - if (argc == 3) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlSocket__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_rlSocket'.\n" - " Possible C/C++ prototypes are:\n" - " rlSocket::rlSocket(char const *,int,int)\n" - " rlSocket::rlSocket(int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_delete_rlSocket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlSocket",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlSocket" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_setAdr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSocket_setAdr",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSocket_setAdr" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSocket_setAdr" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - (arg1)->setAdr((char const *)arg2); - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_setPort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSocket_setPort",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSocket_setPort" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSocket_setPort" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - (arg1)->setPort(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_getPort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSocket_getPort",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSocket_getPort" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - result = (int)(arg1)->getPort(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_setActive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSocket_setActive",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSocket_setActive" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSocket_setActive" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - (arg1)->setActive(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_read__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - void *arg2 = (void *) 0 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlSocket_read",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSocket_read" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSocket_read" "', argument " "2"" of type '" "void *""'"); - } - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSocket_read" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSocket_read" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)(arg1)->read(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_read__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - void *arg2 = (void *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSocket_read",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSocket_read" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSocket_read" "', argument " "2"" of type '" "void *""'"); - } - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSocket_read" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->read(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_read(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSocket, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *ptr = 0; - int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlSocket_read__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSocket, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *ptr = 0; - int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlSocket_read__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlSocket_read'.\n" - " Possible C/C++ prototypes are:\n" - " rlSocket::read(void *,int,int)\n" - " rlSocket::read(void *,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_readStr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlSocket_readStr",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSocket_readStr" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSocket_readStr" "', argument " "2"" of type '" "char *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSocket_readStr" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSocket_readStr" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)(arg1)->readStr(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_readStr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSocket_readStr",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSocket_readStr" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSocket_readStr" "', argument " "2"" of type '" "char *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSocket_readStr" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->readStr(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_readStr(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSocket, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlSocket_readStr__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSocket, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlSocket_readStr__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlSocket_readStr'.\n" - " Possible C/C++ prototypes are:\n" - " rlSocket::readStr(char *,int,int)\n" - " rlSocket::readStr(char *,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_readHttpHeader__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - rlString *arg2 = (rlString *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSocket_readHttpHeader",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSocket_readHttpHeader" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSocket_readHttpHeader" "', argument " "2"" of type '" "rlString *""'"); - } - arg2 = reinterpret_cast< rlString * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSocket_readHttpHeader" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->readHttpHeader(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_readHttpHeader__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - rlString *arg2 = (rlString *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSocket_readHttpHeader",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSocket_readHttpHeader" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSocket_readHttpHeader" "', argument " "2"" of type '" "rlString *""'"); - } - arg2 = reinterpret_cast< rlString * >(argp2); - result = (int)(arg1)->readHttpHeader(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_readHttpHeader(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSocket, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_rlString, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlSocket_readHttpHeader__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSocket, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_rlString, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlSocket_readHttpHeader__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlSocket_readHttpHeader'.\n" - " Possible C/C++ prototypes are:\n" - " rlSocket::readHttpHeader(rlString *,int)\n" - " rlSocket::readHttpHeader(rlString *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - void *arg2 = (void *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSocket_write",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSocket_write" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSocket_write" "', argument " "2"" of type '" "void const *""'"); - } - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSocket_write" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->write((void const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_printf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - char *arg2 = (char *) 0 ; - void *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSocket_printf",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSocket_printf" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSocket_printf" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->printf((char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_printf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,2); - varargs = PyTuple_GetSlice(args,2,PyTuple_Size(args)); - resultobj = _wrap_rlSocket_printf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_connect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSocket_connect",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSocket_connect" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - result = (int)(arg1)->connect(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_disconnect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSocket_disconnect",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSocket_disconnect" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - result = (int)(arg1)->disconnect(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_select__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSocket_select",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSocket_select" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSocket_select" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->select(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_select__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSocket_select",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSocket_select" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - result = (int)(arg1)->select(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_select(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSocket, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlSocket_select__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSocket, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlSocket_select__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlSocket_select'.\n" - " Possible C/C++ prototypes are:\n" - " rlSocket::select(int)\n" - " rlSocket::select()\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_isConnected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSocket_isConnected",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSocket_isConnected" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - result = (int)(arg1)->isConnected(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_setIPVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSocket_setIPVersion",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSocket_setIPVersion" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSocket_setIPVersion" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->setIPVersion(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_getIPVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSocket_getIPVersion",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSocket_getIPVersion" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - result = (int)(arg1)->getIPVersion(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_sendProcessViewBrowserButtonEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSocket_sendProcessViewBrowserButtonEvent",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSocket_sendProcessViewBrowserButtonEvent" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSocket_sendProcessViewBrowserButtonEvent" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->sendProcessViewBrowserButtonEvent(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_s_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSocket_s_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSocket_s_set" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSocket_s_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->s = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_s_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSocket_s_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSocket_s_get" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - result = (int) ((arg1)->s); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_rlGetsockopt__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int arg2 ; - int arg3 ; - void *arg4 = (void *) 0 ; - int *arg5 = (int *) 0 ; - int val1 ; - int ecode1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - void *argp5 = 0 ; - int res5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlSocket_rlGetsockopt",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "rlSocket_rlGetsockopt" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSocket_rlGetsockopt" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSocket_rlGetsockopt" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_ConvertPtr(obj3,SWIG_as_voidptrptr(&arg4), 0, 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlSocket_rlGetsockopt" "', argument " "4"" of type '" "void *""'"); - } - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "rlSocket_rlGetsockopt" "', argument " "5"" of type '" "int *""'"); - } - arg5 = reinterpret_cast< int * >(argp5); - result = (int)rlSocket::rlGetsockopt(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_rlSetsockopt__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int arg2 ; - int arg3 ; - void *arg4 = (void *) 0 ; - int arg5 ; - int val1 ; - int ecode1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlSocket_rlSetsockopt",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "rlSocket_rlSetsockopt" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSocket_rlSetsockopt" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSocket_rlSetsockopt" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_ConvertPtr(obj3,SWIG_as_voidptrptr(&arg4), 0, 0); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlSocket_rlSetsockopt" "', argument " "4"" of type '" "void const *""'"); - } - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlSocket_rlSetsockopt" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)rlSocket::rlSetsockopt(arg1,arg2,arg3,(void const *)arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_rlGetsockopt__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSocket_rlGetsockopt",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSocket_rlGetsockopt" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSocket_rlGetsockopt" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSocket_rlGetsockopt" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->rlGetsockopt(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_rlGetsockopt(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSocket, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlSocket_rlGetsockopt__SWIG_1(self, args); - } - } - } - } - if (argc == 5) { - int _v; - { - int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *ptr = 0; - int res = SWIG_ConvertPtr(argv[3], &ptr, 0, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlSocket_rlGetsockopt__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlSocket_rlGetsockopt'.\n" - " Possible C/C++ prototypes are:\n" - " rlSocket::rlGetsockopt(int,int,int,void *,int *)\n" - " rlSocket::rlGetsockopt(int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_rlSetsockopt__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSocket_rlSetsockopt",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSocket_rlSetsockopt" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSocket_rlSetsockopt" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSocket_rlSetsockopt" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->rlSetsockopt(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_rlSetsockopt(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSocket, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlSocket_rlSetsockopt__SWIG_1(self, args); - } - } - } - } - if (argc == 5) { - int _v; - { - int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *ptr = 0; - int res = SWIG_ConvertPtr(argv[3], &ptr, 0, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlSocket_rlSetsockopt__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlSocket_rlSetsockopt'.\n" - " Possible C/C++ prototypes are:\n" - " rlSocket::rlSetsockopt(int,int,int,void const *,int)\n" - " rlSocket::rlSetsockopt(int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_readHttpContentLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSocket_readHttpContentLength",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSocket_readHttpContentLength" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSocket_readHttpContentLength" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->readHttpContentLength(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_sockaddr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - unsigned char *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSocket_sockaddr_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSocket_sockaddr_set" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSocket_sockaddr_set" "', argument " "2"" of type '" "unsigned char [16+48]""'"); - } - arg2 = reinterpret_cast< unsigned char * >(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)16+48; ++ii) arg1->sockaddr[ii] = arg2[ii]; - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""sockaddr""' of type '""unsigned char [16+48]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSocket_sockaddr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSocket *arg1 = (rlSocket *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - unsigned char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSocket_sockaddr_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSocket_sockaddr_get" "', argument " "1"" of type '" "rlSocket *""'"); - } - arg1 = reinterpret_cast< rlSocket * >(argp1); - result = (unsigned char *)(unsigned char *) ((arg1)->sockaddr); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlSocket_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlSocket, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rl3964R__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - rl3964R *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_rl3964R",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rl3964R" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (rl3964R *)new rl3964R(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rl3964R, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rl3964R__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rl3964R *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rl3964R")) SWIG_fail; - result = (rl3964R *)new rl3964R(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rl3964R, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rl3964R(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[2]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_rl3964R__SWIG_1(self, args); - } - if (argc == 1) { - int _v; - { - int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rl3964R__SWIG_0(self, args); - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_rl3964R'.\n" - " Possible C/C++ prototypes are:\n" - " rl3964R::rl3964R(int)\n" - " rl3964R::rl3964R()\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_delete_rl3964R(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rl3964R *arg1 = (rl3964R *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rl3964R",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rl3964R, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rl3964R" "', argument " "1"" of type '" "rl3964R *""'"); - } - arg1 = reinterpret_cast< rl3964R * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rl3964R_open__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rl3964R *arg1 = (rl3964R *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rl3964R_open",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rl3964R, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rl3964R_open" "', argument " "1"" of type '" "rl3964R *""'"); - } - arg1 = reinterpret_cast< rl3964R * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rl3964R_open" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rl3964R_open" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->open((char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rl3964R_open__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rl3964R *arg1 = (rl3964R *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rl3964R_open",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rl3964R, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rl3964R_open" "', argument " "1"" of type '" "rl3964R *""'"); - } - arg1 = reinterpret_cast< rl3964R * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rl3964R_open" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->open((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rl3964R_open(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rl3964R, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rl3964R_open__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rl3964R, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rl3964R_open__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rl3964R_open'.\n" - " Possible C/C++ prototypes are:\n" - " rl3964R::open(char const *,int)\n" - " rl3964R::open(char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rl3964R_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rl3964R *arg1 = (rl3964R *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rl3964R_close",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rl3964R, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rl3964R_close" "', argument " "1"" of type '" "rl3964R *""'"); - } - arg1 = reinterpret_cast< rl3964R * >(argp1); - result = (int)(arg1)->close(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rl3964R_setReadCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rl3964R *arg1 = (rl3964R *) 0 ; - void (*arg2)(unsigned char const *,int) = (void (*)(unsigned char const *,int)) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rl3964R_setReadCallback",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rl3964R, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rl3964R_setReadCallback" "', argument " "1"" of type '" "rl3964R *""'"); - } - arg1 = reinterpret_cast< rl3964R * >(argp1); - { - int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_q_const__unsigned_char_int__void); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "rl3964R_setReadCallback" "', argument " "2"" of type '" "void (*)(unsigned char const *,int)""'"); - } - } - result = (int)(arg1)->setReadCallback(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rl3964R_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rl3964R *arg1 = (rl3964R *) 0 ; - unsigned char *arg2 = (unsigned char *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rl3964R_write",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rl3964R, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rl3964R_write" "', argument " "1"" of type '" "rl3964R *""'"); - } - arg1 = reinterpret_cast< rl3964R * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rl3964R_write" "', argument " "2"" of type '" "unsigned char const *""'"); - } - arg2 = reinterpret_cast< unsigned char * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rl3964R_write" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->write((unsigned char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rl3964R_send(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rl3964R *arg1 = (rl3964R *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rl3964R_send",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rl3964R, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rl3964R_send" "', argument " "1"" of type '" "rl3964R *""'"); - } - arg1 = reinterpret_cast< rl3964R * >(argp1); - result = (int)(arg1)->send(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rl3964R_receive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rl3964R *arg1 = (rl3964R *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rl3964R_receive",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rl3964R, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rl3964R_receive" "', argument " "1"" of type '" "rl3964R *""'"); - } - arg1 = reinterpret_cast< rl3964R * >(argp1); - result = (int)(arg1)->receive(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rl3964R_receiver_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rl3964R *arg1 = (rl3964R *) 0 ; - rlThread *arg2 = (rlThread *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rl3964R_receiver_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rl3964R, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rl3964R_receiver_set" "', argument " "1"" of type '" "rl3964R *""'"); - } - arg1 = reinterpret_cast< rl3964R * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlThread, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rl3964R_receiver_set" "', argument " "2"" of type '" "rlThread *""'"); - } - arg2 = reinterpret_cast< rlThread * >(argp2); - if (arg1) (arg1)->receiver = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rl3964R_receiver_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rl3964R *arg1 = (rl3964R *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - rlThread *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rl3964R_receiver_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rl3964R, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rl3964R_receiver_get" "', argument " "1"" of type '" "rl3964R *""'"); - } - arg1 = reinterpret_cast< rl3964R * >(argp1); - result = (rlThread *)& ((arg1)->receiver); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlThread, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rl3964R_tty_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rl3964R *arg1 = (rl3964R *) 0 ; - rlSerial *arg2 = (rlSerial *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rl3964R_tty_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rl3964R, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rl3964R_tty_set" "', argument " "1"" of type '" "rl3964R *""'"); - } - arg1 = reinterpret_cast< rl3964R * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlSerial, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rl3964R_tty_set" "', argument " "2"" of type '" "rlSerial *""'"); - } - arg2 = reinterpret_cast< rlSerial * >(argp2); - if (arg1) (arg1)->tty = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rl3964R_tty_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rl3964R *arg1 = (rl3964R *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - rlSerial *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rl3964R_tty_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rl3964R, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rl3964R_tty_get" "', argument " "1"" of type '" "rl3964R *""'"); - } - arg1 = reinterpret_cast< rl3964R * >(argp1); - result = (rlSerial *)& ((arg1)->tty); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSerial, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rl3964R_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rl3964R *arg1 = (rl3964R *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rl3964R_state_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rl3964R, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rl3964R_state_set" "', argument " "1"" of type '" "rl3964R *""'"); - } - arg1 = reinterpret_cast< rl3964R * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rl3964R_state_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->state = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rl3964R_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rl3964R *arg1 = (rl3964R *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rl3964R_state_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rl3964R, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rl3964R_state_get" "', argument " "1"" of type '" "rl3964R *""'"); - } - arg1 = reinterpret_cast< rl3964R * >(argp1); - result = (int) ((arg1)->state); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rl3964R_priority_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rl3964R *arg1 = (rl3964R *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rl3964R_priority_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rl3964R, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rl3964R_priority_set" "', argument " "1"" of type '" "rl3964R *""'"); - } - arg1 = reinterpret_cast< rl3964R * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rl3964R_priority_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->priority = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rl3964R_priority_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rl3964R *arg1 = (rl3964R *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rl3964R_priority_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rl3964R, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rl3964R_priority_get" "', argument " "1"" of type '" "rl3964R *""'"); - } - arg1 = reinterpret_cast< rl3964R * >(argp1); - result = (int) ((arg1)->priority); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rl3964R_run_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rl3964R *arg1 = (rl3964R *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rl3964R_run_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rl3964R, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rl3964R_run_set" "', argument " "1"" of type '" "rl3964R *""'"); - } - arg1 = reinterpret_cast< rl3964R * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rl3964R_run_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->run = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rl3964R_run_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rl3964R *arg1 = (rl3964R *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rl3964R_run_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rl3964R, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rl3964R_run_get" "', argument " "1"" of type '" "rl3964R *""'"); - } - arg1 = reinterpret_cast< rl3964R * >(argp1); - result = (int) ((arg1)->run); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rl3964R_debug_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rl3964R *arg1 = (rl3964R *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rl3964R_debug_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rl3964R, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rl3964R_debug_set" "', argument " "1"" of type '" "rl3964R *""'"); - } - arg1 = reinterpret_cast< rl3964R * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rl3964R_debug_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->debug = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rl3964R_debug_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rl3964R *arg1 = (rl3964R *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rl3964R_debug_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rl3964R, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rl3964R_debug_get" "', argument " "1"" of type '" "rl3964R *""'"); - } - arg1 = reinterpret_cast< rl3964R * >(argp1); - result = (int) ((arg1)->debug); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rl3964R_dprintf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - rl3964R *arg1 = (rl3964R *) 0 ; - char *arg2 = (char *) 0 ; - void *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rl3964R_dprintf",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rl3964R, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rl3964R_dprintf" "', argument " "1"" of type '" "rl3964R *""'"); - } - arg1 = reinterpret_cast< rl3964R * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rl3964R_dprintf" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->dprintf((char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rl3964R_dprintf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,2); - varargs = PyTuple_GetSlice(args,2,PyTuple_Size(args)); - resultobj = _wrap_rl3964R_dprintf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *rl3964R_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rl3964R, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlCommandlineInterface(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlCommandlineInterface *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlCommandlineInterface")) SWIG_fail; - result = (rlCommandlineInterface *)new rlCommandlineInterface(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlCommandlineInterface, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_rlCommandlineInterface(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlCommandlineInterface *arg1 = (rlCommandlineInterface *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlCommandlineInterface",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlCommandlineInterface, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlCommandlineInterface" "', argument " "1"" of type '" "rlCommandlineInterface *""'"); - } - arg1 = reinterpret_cast< rlCommandlineInterface * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlCommandlineInterface_start__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlCommandlineInterface *arg1 = (rlCommandlineInterface *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlCommandlineInterface_start",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlCommandlineInterface, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlCommandlineInterface_start" "', argument " "1"" of type '" "rlCommandlineInterface *""'"); - } - arg1 = reinterpret_cast< rlCommandlineInterface * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlCommandlineInterface_start" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlCommandlineInterface_start" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)(arg1)->start((char const *)arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlCommandlineInterface_start__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlCommandlineInterface *arg1 = (rlCommandlineInterface *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlCommandlineInterface_start",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlCommandlineInterface, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlCommandlineInterface_start" "', argument " "1"" of type '" "rlCommandlineInterface *""'"); - } - arg1 = reinterpret_cast< rlCommandlineInterface * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlCommandlineInterface_start" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->start((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlCommandlineInterface_start__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlCommandlineInterface *arg1 = (rlCommandlineInterface *) 0 ; - rlSerial *arg2 = (rlSerial *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlCommandlineInterface_start",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlCommandlineInterface, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlCommandlineInterface_start" "', argument " "1"" of type '" "rlCommandlineInterface *""'"); - } - arg1 = reinterpret_cast< rlCommandlineInterface * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlSerial, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlCommandlineInterface_start" "', argument " "2"" of type '" "rlSerial *""'"); - } - arg2 = reinterpret_cast< rlSerial * >(argp2); - result = (int)(arg1)->start(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlCommandlineInterface_start(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlCommandlineInterface, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_rlSerial, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlCommandlineInterface_start__SWIG_2(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlCommandlineInterface, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlCommandlineInterface_start__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlCommandlineInterface, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlCommandlineInterface_start__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlCommandlineInterface_start'.\n" - " Possible C/C++ prototypes are:\n" - " rlCommandlineInterface::start(char const *,char const *)\n" - " rlCommandlineInterface::start(char const *)\n" - " rlCommandlineInterface::start(rlSerial *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlCommandlineInterface_readLine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlCommandlineInterface *arg1 = (rlCommandlineInterface *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlCommandlineInterface_readLine",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlCommandlineInterface, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlCommandlineInterface_readLine" "', argument " "1"" of type '" "rlCommandlineInterface *""'"); - } - arg1 = reinterpret_cast< rlCommandlineInterface * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlCommandlineInterface_readLine" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (char *)(arg1)->readLine(arg2); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlCommandlineInterface_readLine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlCommandlineInterface *arg1 = (rlCommandlineInterface *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlCommandlineInterface_readLine",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlCommandlineInterface, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlCommandlineInterface_readLine" "', argument " "1"" of type '" "rlCommandlineInterface *""'"); - } - arg1 = reinterpret_cast< rlCommandlineInterface * >(argp1); - result = (char *)(arg1)->readLine(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlCommandlineInterface_readLine(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlCommandlineInterface, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlCommandlineInterface_readLine__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlCommandlineInterface, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlCommandlineInterface_readLine__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlCommandlineInterface_readLine'.\n" - " Possible C/C++ prototypes are:\n" - " rlCommandlineInterface::readLine(int)\n" - " rlCommandlineInterface::readLine()\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlCommandlineInterface_readBlock__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlCommandlineInterface *arg1 = (rlCommandlineInterface *) 0 ; - void *arg2 = (void *) 0 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlCommandlineInterface_readBlock",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlCommandlineInterface, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlCommandlineInterface_readBlock" "', argument " "1"" of type '" "rlCommandlineInterface *""'"); - } - arg1 = reinterpret_cast< rlCommandlineInterface * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlCommandlineInterface_readBlock" "', argument " "2"" of type '" "void *""'"); - } - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlCommandlineInterface_readBlock" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlCommandlineInterface_readBlock" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)(arg1)->readBlock(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlCommandlineInterface_readBlock__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlCommandlineInterface *arg1 = (rlCommandlineInterface *) 0 ; - void *arg2 = (void *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlCommandlineInterface_readBlock",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlCommandlineInterface, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlCommandlineInterface_readBlock" "', argument " "1"" of type '" "rlCommandlineInterface *""'"); - } - arg1 = reinterpret_cast< rlCommandlineInterface * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlCommandlineInterface_readBlock" "', argument " "2"" of type '" "void *""'"); - } - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlCommandlineInterface_readBlock" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->readBlock(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlCommandlineInterface_readBlock(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlCommandlineInterface, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *ptr = 0; - int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlCommandlineInterface_readBlock__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlCommandlineInterface, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *ptr = 0; - int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlCommandlineInterface_readBlock__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlCommandlineInterface_readBlock'.\n" - " Possible C/C++ prototypes are:\n" - " rlCommandlineInterface::readBlock(void *,int,int)\n" - " rlCommandlineInterface::readBlock(void *,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlCommandlineInterface_printf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - rlCommandlineInterface *arg1 = (rlCommandlineInterface *) 0 ; - char *arg2 = (char *) 0 ; - void *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlCommandlineInterface_printf",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlCommandlineInterface, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlCommandlineInterface_printf" "', argument " "1"" of type '" "rlCommandlineInterface *""'"); - } - arg1 = reinterpret_cast< rlCommandlineInterface * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlCommandlineInterface_printf" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->printf((char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlCommandlineInterface_printf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,2); - varargs = PyTuple_GetSlice(args,2,PyTuple_Size(args)); - resultobj = _wrap_rlCommandlineInterface_printf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_rlCommandlineInterface_writeBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlCommandlineInterface *arg1 = (rlCommandlineInterface *) 0 ; - void *arg2 = (void *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlCommandlineInterface_writeBlock",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlCommandlineInterface, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlCommandlineInterface_writeBlock" "', argument " "1"" of type '" "rlCommandlineInterface *""'"); - } - arg1 = reinterpret_cast< rlCommandlineInterface * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlCommandlineInterface_writeBlock" "', argument " "2"" of type '" "void *""'"); - } - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlCommandlineInterface_writeBlock" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->writeBlock(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlCommandlineInterface_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlCommandlineInterface, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_rlSetDebugPrintf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSetDebugPrintf",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "rlSetDebugPrintf" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (int)rlSetDebugPrintf(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDebugPrintf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - void *arg2 = 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlDebugPrintf",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDebugPrintf" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (int)rlDebugPrintf((char const *)arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDebugPrintf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,1); - varargs = PyTuple_GetSlice(args,1,PyTuple_Size(args)); - resultobj = _wrap_rlDebugPrintf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_rlInputAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int result; - - if (!PyArg_ParseTuple(args,(char *)":rlInputAvailable")) SWIG_fail; - result = (int)rlInputAvailable(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlLastLinePrintf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - void *arg2 = 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlLastLinePrintf",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlLastLinePrintf" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (int)rlLastLinePrintf((char const *)arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlLastLinePrintf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,1); - varargs = PyTuple_GetSlice(args,1,PyTuple_Size(args)); - resultobj = _wrap_rlLastLinePrintf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_rlpass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlpass",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlpass" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (char *)rlpass((char const *)arg1); - resultobj = SWIG_FromCharPtr((const char *)result); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlstrncpy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlstrncpy",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlstrncpy" "', argument " "1"" of type '" "char *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlstrncpy" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlstrncpy" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (char *)rlstrncpy(arg1,(char const *)arg2,arg3); - resultobj = SWIG_FromCharPtr((const char *)result); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlstrlinecpy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlstrlinecpy",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlstrlinecpy" "', argument " "1"" of type '" "char *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlstrlinecpy" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlstrlinecpy" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (char *)rlstrlinecpy(arg1,(char const *)arg2,arg3); - resultobj = SWIG_FromCharPtr((const char *)result); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlsnprintf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *arg4 = 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlsnprintf",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlsnprintf" "', argument " "1"" of type '" "char *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlsnprintf" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlsnprintf" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)rlsnprintf(arg1,arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlsnprintf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,3); - varargs = PyTuple_GetSlice(args,3,PyTuple_Size(args)); - resultobj = _wrap_rlsnprintf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_rlSetSigtermHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - void (*arg1)(void *) = (void (*)(void *)) 0 ; - void *arg2 = (void *) 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSetSigtermHandler",&obj0,&obj1)) SWIG_fail; - { - int res = SWIG_ConvertFunctionPtr(obj0, (void**)(&arg1), SWIGTYPE_p_f_p_void__void); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "rlSetSigtermHandler" "', argument " "1"" of type '" "void (*)(void *)""'"); - } - } - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSetSigtermHandler" "', argument " "2"" of type '" "void *""'"); - } - rlSetSigtermHandler(arg1,arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlFindFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int *arg2 = (int *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlFindFile",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlFindFile" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlFindFile" "', argument " "2"" of type '" "int *""'"); - } - arg2 = reinterpret_cast< int * >(argp2); - result = (char *)rlFindFile((char const *)arg1,arg2); - resultobj = SWIG_FromCharPtr((const char *)result); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlGetInifile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlGetInifile",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlGetInifile" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (char *)rlGetInifile((char const *)arg1); - resultobj = SWIG_FromCharPtr((const char *)result); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSwapShort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSwapShort",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "rlSwapShort" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (int)rlSwapShort(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlEib1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlEib1",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "rlEib1" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (int)rlEib1(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlEib2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlEib2",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "rlEib2" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (int)rlEib2(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlLon1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlLon1",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "rlLon1" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (int)rlLon1(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlLon2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlLon2",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "rlLon2" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (int)rlLon2(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlProfibus1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlProfibus1",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "rlProfibus1" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (int)rlProfibus1(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlProfibus2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlProfibus2",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "rlProfibus2" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (int)rlProfibus2(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlCan1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlCan1",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "rlCan1" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (int)rlCan1(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlCan2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlCan2",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "rlCan2" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (int)rlCan2(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlBrowser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlBrowser",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlBrowser" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (int)rlBrowser((char const *)arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlsystem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlsystem",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlsystem" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (int)rlsystem((char const *)arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSubmitPvserver__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlSubmitPvserver",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSubmitPvserver" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSubmitPvserver" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlSubmitPvserver" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlSubmitPvserver" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)rlSubmitPvserver((char const *)arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSubmitPvserver__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSubmitPvserver",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSubmitPvserver" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSubmitPvserver" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlSubmitPvserver" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)rlSubmitPvserver((char const *)arg1,(char const *)arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSubmitPvserver(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlSubmitPvserver__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlSubmitPvserver__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlSubmitPvserver'.\n" - " Possible C/C++ prototypes are:\n" - " rlSubmitPvserver(char const *,char const *,char const *,char const *)\n" - " rlSubmitPvserver(char const *,char const *,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlOption",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlOption" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlOption" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)rlOption((char const *)arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlIntOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlIntOption",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlIntOption" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlIntOption" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlIntOption" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)rlIntOption((char const *)arg1,(char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlFloatOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - float arg3 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlFloatOption",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlFloatOption" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlFloatOption" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlFloatOption" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (float)rlFloatOption((char const *)arg1,(char const *)arg2,arg3); - resultobj = SWIG_From_float(static_cast< float >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTextOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlTextOption",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTextOption" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlTextOption" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlTextOption" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (char *)rlTextOption((char const *)arg1,(char const *)arg2,(char const *)arg3); - resultobj = SWIG_FromCharPtr((const char *)result); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlCopyTextfile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlCopyTextfile",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlCopyTextfile" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlCopyTextfile" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)rlCopyTextfile((char const *)arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlupper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlupper",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlupper" "', argument " "1"" of type '" "char *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (int)rlupper(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rllower(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rllower",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rllower" "', argument " "1"" of type '" "char *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (int)rllower(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlStartsWith(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlStartsWith",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlStartsWith" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlStartsWith" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)rlStartsWith((char const *)arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlEndsWith(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlEndsWith",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlEndsWith" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlEndsWith" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)rlEndsWith((char const *)arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlStrMatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlStrMatch",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlStrMatch" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlStrMatch" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)rlStrMatch((char const *)arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlFRead(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FILE *arg1 = (FILE *) 0 ; - void *arg2 = (void *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlFRead",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FILE, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlFRead" "', argument " "1"" of type '" "FILE *""'"); - } - arg1 = reinterpret_cast< FILE * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlFRead" "', argument " "2"" of type '" "void *""'"); - } - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlFRead" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)rlFRead(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlFWrite(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FILE *arg1 = (FILE *) 0 ; - void *arg2 = (void *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlFWrite",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FILE, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlFWrite" "', argument " "1"" of type '" "FILE *""'"); - } - arg1 = reinterpret_cast< FILE * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlFWrite" "', argument " "2"" of type '" "void *""'"); - } - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlFWrite" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)rlFWrite(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlWriteFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - void *arg2 = (void *) 0 ; - int arg3 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int res2 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlWriteFile",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlWriteFile" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlWriteFile" "', argument " "2"" of type '" "void *""'"); - } - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlWriteFile" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)rlWriteFile((char const *)arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlMkdir__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int arg2 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlMkdir",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlMkdir" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlMkdir" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)rlMkdir((char const *)arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlMkdir__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlMkdir",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlMkdir" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (int)rlMkdir((char const *)arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlMkdir(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlMkdir__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlMkdir__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlMkdir'.\n" - " Possible C/C++ prototypes are:\n" - " rlMkdir(char const *,int)\n" - " rlMkdir(char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlBitSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int *arg2 = (int *) 0 ; - int val1 ; - int ecode1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlBitSet",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "rlBitSet" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlBitSet" "', argument " "2"" of type '" "int *""'"); - } - arg2 = reinterpret_cast< int * >(argp2); - result = (int)rlBitSet(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlBitClear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int *arg2 = (int *) 0 ; - int val1 ; - int ecode1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlBitClear",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "rlBitClear" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlBitClear" "', argument " "2"" of type '" "int *""'"); - } - arg2 = reinterpret_cast< int * >(argp2); - result = (int)rlBitClear(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlBitChange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int *arg2 = (int *) 0 ; - int val1 ; - int ecode1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlBitChange",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "rlBitChange" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlBitChange" "', argument " "2"" of type '" "int *""'"); - } - arg2 = reinterpret_cast< int * >(argp2); - result = (int)rlBitChange(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlBitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int *arg2 = (int *) 0 ; - int val1 ; - int ecode1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlBitTest",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "rlBitTest" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlBitTest" "', argument " "2"" of type '" "int *""'"); - } - arg2 = reinterpret_cast< int * >(argp2); - result = (int)rlBitTest(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPushToDoubleBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - double arg1 ; - double *arg2 = (double *) 0 ; - int arg3 ; - double val1 ; - int ecode1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlPushToDoubleBuffer",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_double(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "rlPushToDoubleBuffer" "', argument " "1"" of type '" "double""'"); - } - arg1 = static_cast< double >(val1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_double, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlPushToDoubleBuffer" "', argument " "2"" of type '" "double *""'"); - } - arg2 = reinterpret_cast< double * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlPushToDoubleBuffer" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - rlPushToDoubleBuffer(arg1,arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPushToFloatBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - float arg1 ; - float *arg2 = (float *) 0 ; - int arg3 ; - float val1 ; - int ecode1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlPushToFloatBuffer",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "rlPushToFloatBuffer" "', argument " "1"" of type '" "float""'"); - } - arg1 = static_cast< float >(val1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlPushToFloatBuffer" "', argument " "2"" of type '" "float *""'"); - } - arg2 = reinterpret_cast< float * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlPushToFloatBuffer" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - rlPushToFloatBuffer(arg1,arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlDataAcquisition__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - long arg3 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - long val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - rlDataAcquisition *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:new_rlDataAcquisition",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlDataAcquisition" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_rlDataAcquisition" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_rlDataAcquisition" "', argument " "3"" of type '" "long""'"); - } - arg3 = static_cast< long >(val3); - result = (rlDataAcquisition *)new rlDataAcquisition((char const *)arg1,(char const *)arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlDataAcquisition, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlDataAcquisition__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - rlDataAcquisition *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_rlDataAcquisition",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlDataAcquisition" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_rlDataAcquisition" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (rlDataAcquisition *)new rlDataAcquisition((char const *)arg1,(char const *)arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlDataAcquisition, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlDataAcquisition__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - rlDataAcquisition *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_rlDataAcquisition",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlDataAcquisition" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (rlDataAcquisition *)new rlDataAcquisition((char const *)arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlDataAcquisition, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlDataAcquisition__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisition *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlDataAcquisition")) SWIG_fail; - result = (rlDataAcquisition *)new rlDataAcquisition(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlDataAcquisition, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlDataAcquisition(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_rlDataAcquisition__SWIG_3(self, args); - } - if (argc == 1) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_rlDataAcquisition__SWIG_2(self, args); - } - } - if (argc == 2) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_rlDataAcquisition__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_long(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlDataAcquisition__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_rlDataAcquisition'.\n" - " Possible C/C++ prototypes are:\n" - " rlDataAcquisition::rlDataAcquisition(char const *,char const *,long)\n" - " rlDataAcquisition::rlDataAcquisition(char const *,char const *)\n" - " rlDataAcquisition::rlDataAcquisition(char const *)\n" - " rlDataAcquisition::rlDataAcquisition()\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_delete_rlDataAcquisition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisition *arg1 = (rlDataAcquisition *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlDataAcquisition",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisition, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlDataAcquisition" "', argument " "1"" of type '" "rlDataAcquisition *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisition * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisition_stringValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisition *arg1 = (rlDataAcquisition *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlDataAcquisition_stringValue",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisition_stringValue" "', argument " "1"" of type '" "rlDataAcquisition *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisition * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataAcquisition_stringValue" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (char *)(arg1)->stringValue((char const *)arg2); - resultobj = SWIG_FromCharPtr((const char *)result); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisition_intValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisition *arg1 = (rlDataAcquisition *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlDataAcquisition_intValue",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisition_intValue" "', argument " "1"" of type '" "rlDataAcquisition *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisition * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataAcquisition_intValue" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->intValue((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisition_floatValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisition *arg1 = (rlDataAcquisition *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlDataAcquisition_floatValue",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisition_floatValue" "', argument " "1"" of type '" "rlDataAcquisition *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisition * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataAcquisition_floatValue" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (float)(arg1)->floatValue((char const *)arg2); - resultobj = SWIG_From_float(static_cast< float >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisition_writeStringValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisition *arg1 = (rlDataAcquisition *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlDataAcquisition_writeStringValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisition_writeStringValue" "', argument " "1"" of type '" "rlDataAcquisition *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisition * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataAcquisition_writeStringValue" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlDataAcquisition_writeStringValue" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)(arg1)->writeStringValue((char const *)arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisition_writeIntValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisition *arg1 = (rlDataAcquisition *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlDataAcquisition_writeIntValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisition_writeIntValue" "', argument " "1"" of type '" "rlDataAcquisition *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisition * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataAcquisition_writeIntValue" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlDataAcquisition_writeIntValue" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->writeIntValue((char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisition_writeFloatValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisition *arg1 = (rlDataAcquisition *) 0 ; - char *arg2 = (char *) 0 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlDataAcquisition_writeFloatValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisition_writeFloatValue" "', argument " "1"" of type '" "rlDataAcquisition *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisition * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataAcquisition_writeFloatValue" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlDataAcquisition_writeFloatValue" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)(arg1)->writeFloatValue((char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisition_readErrorCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisition *arg1 = (rlDataAcquisition *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlDataAcquisition_readErrorCount",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisition_readErrorCount" "', argument " "1"" of type '" "rlDataAcquisition *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisition * >(argp1); - result = (int)(arg1)->readErrorCount(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisition_writeErrorCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisition *arg1 = (rlDataAcquisition *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlDataAcquisition_writeErrorCount",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisition_writeErrorCount" "', argument " "1"" of type '" "rlDataAcquisition *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisition * >(argp1); - result = (int)(arg1)->writeErrorCount(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisition_lifeCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisition *arg1 = (rlDataAcquisition *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlDataAcquisition_lifeCounter",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisition_lifeCounter" "', argument " "1"" of type '" "rlDataAcquisition *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisition * >(argp1); - result = (int)(arg1)->lifeCounter(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisition_firstVariable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisition *arg1 = (rlDataAcquisition *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlDataAcquisition_firstVariable",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisition_firstVariable" "', argument " "1"" of type '" "rlDataAcquisition *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisition * >(argp1); - result = (char *)(arg1)->firstVariable(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisition_nextVariable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisition *arg1 = (rlDataAcquisition *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlDataAcquisition_nextVariable",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisition_nextVariable" "', argument " "1"" of type '" "rlDataAcquisition *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisition * >(argp1); - result = (char *)(arg1)->nextVariable(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisition_shmStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisition *arg1 = (rlDataAcquisition *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlDataAcquisition_shmStatus",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisition_shmStatus" "', argument " "1"" of type '" "rlDataAcquisition *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisition * >(argp1); - result = (int)(arg1)->shmStatus(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisition_shmKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisition *arg1 = (rlDataAcquisition *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlDataAcquisition_shmKey",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisition_shmKey" "', argument " "1"" of type '" "rlDataAcquisition *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisition * >(argp1); - result = (int)(arg1)->shmKey(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisition_shmId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisition *arg1 = (rlDataAcquisition *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlDataAcquisition_shmId",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisition_shmId" "', argument " "1"" of type '" "rlDataAcquisition *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisition * >(argp1); - result = (int)(arg1)->shmId(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlDataAcquisition_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlDataAcquisition, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlDataAcquisitionProvider__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - char *arg2 = (char *) 0 ; - long arg3 ; - int val1 ; - int ecode1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - long val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - rlDataAcquisitionProvider *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:new_rlDataAcquisitionProvider",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlDataAcquisitionProvider" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_rlDataAcquisitionProvider" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_rlDataAcquisitionProvider" "', argument " "3"" of type '" "long""'"); - } - arg3 = static_cast< long >(val3); - result = (rlDataAcquisitionProvider *)new rlDataAcquisitionProvider(arg1,(char const *)arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlDataAcquisitionProvider, SWIG_POINTER_NEW | 0 ); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlDataAcquisitionProvider__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - char *arg2 = (char *) 0 ; - int val1 ; - int ecode1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - rlDataAcquisitionProvider *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_rlDataAcquisitionProvider",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlDataAcquisitionProvider" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_rlDataAcquisitionProvider" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (rlDataAcquisitionProvider *)new rlDataAcquisitionProvider(arg1,(char const *)arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlDataAcquisitionProvider, SWIG_POINTER_NEW | 0 ); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlDataAcquisitionProvider__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - rlDataAcquisitionProvider *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_rlDataAcquisitionProvider",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlDataAcquisitionProvider" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (rlDataAcquisitionProvider *)new rlDataAcquisitionProvider(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlDataAcquisitionProvider, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlDataAcquisitionProvider__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisitionProvider *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlDataAcquisitionProvider")) SWIG_fail; - result = (rlDataAcquisitionProvider *)new rlDataAcquisitionProvider(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlDataAcquisitionProvider, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlDataAcquisitionProvider(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_rlDataAcquisitionProvider__SWIG_3(self, args); - } - if (argc == 1) { - int _v; - { - int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlDataAcquisitionProvider__SWIG_2(self, args); - } - } - if (argc == 2) { - int _v; - { - int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_rlDataAcquisitionProvider__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - { - int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_long(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlDataAcquisitionProvider__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_rlDataAcquisitionProvider'.\n" - " Possible C/C++ prototypes are:\n" - " rlDataAcquisitionProvider::rlDataAcquisitionProvider(int,char const *,long)\n" - " rlDataAcquisitionProvider::rlDataAcquisitionProvider(int,char const *)\n" - " rlDataAcquisitionProvider::rlDataAcquisitionProvider(int)\n" - " rlDataAcquisitionProvider::rlDataAcquisitionProvider()\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_delete_rlDataAcquisitionProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisitionProvider *arg1 = (rlDataAcquisitionProvider *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlDataAcquisitionProvider",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisitionProvider, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlDataAcquisitionProvider" "', argument " "1"" of type '" "rlDataAcquisitionProvider *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisitionProvider * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisitionProvider_readItemList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisitionProvider *arg1 = (rlDataAcquisitionProvider *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlDataAcquisitionProvider_readItemList",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisitionProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisitionProvider_readItemList" "', argument " "1"" of type '" "rlDataAcquisitionProvider *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisitionProvider * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataAcquisitionProvider_readItemList" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->readItemList((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisitionProvider_firstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisitionProvider *arg1 = (rlDataAcquisitionProvider *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlDataAcquisitionProvider_firstItem",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisitionProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisitionProvider_firstItem" "', argument " "1"" of type '" "rlDataAcquisitionProvider *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisitionProvider * >(argp1); - result = (char *)(arg1)->firstItem(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisitionProvider_nextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisitionProvider *arg1 = (rlDataAcquisitionProvider *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlDataAcquisitionProvider_nextItem",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisitionProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisitionProvider_nextItem" "', argument " "1"" of type '" "rlDataAcquisitionProvider *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisitionProvider * >(argp1); - result = (char *)(arg1)->nextItem(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisitionProvider_stringValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisitionProvider *arg1 = (rlDataAcquisitionProvider *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlDataAcquisitionProvider_stringValue",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisitionProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisitionProvider_stringValue" "', argument " "1"" of type '" "rlDataAcquisitionProvider *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisitionProvider * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataAcquisitionProvider_stringValue" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (char *)(arg1)->stringValue((char const *)arg2); - resultobj = SWIG_FromCharPtr((const char *)result); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisitionProvider_intValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisitionProvider *arg1 = (rlDataAcquisitionProvider *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlDataAcquisitionProvider_intValue",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisitionProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisitionProvider_intValue" "', argument " "1"" of type '" "rlDataAcquisitionProvider *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisitionProvider * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataAcquisitionProvider_intValue" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->intValue((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisitionProvider_floatValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisitionProvider *arg1 = (rlDataAcquisitionProvider *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlDataAcquisitionProvider_floatValue",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisitionProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisitionProvider_floatValue" "', argument " "1"" of type '" "rlDataAcquisitionProvider *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisitionProvider * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataAcquisitionProvider_floatValue" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (float)(arg1)->floatValue((char const *)arg2); - resultobj = SWIG_From_float(static_cast< float >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisitionProvider_setStringValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisitionProvider *arg1 = (rlDataAcquisitionProvider *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlDataAcquisitionProvider_setStringValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisitionProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisitionProvider_setStringValue" "', argument " "1"" of type '" "rlDataAcquisitionProvider *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisitionProvider * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataAcquisitionProvider_setStringValue" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlDataAcquisitionProvider_setStringValue" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)(arg1)->setStringValue((char const *)arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisitionProvider_setIntValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisitionProvider *arg1 = (rlDataAcquisitionProvider *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlDataAcquisitionProvider_setIntValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisitionProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisitionProvider_setIntValue" "', argument " "1"" of type '" "rlDataAcquisitionProvider *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisitionProvider * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataAcquisitionProvider_setIntValue" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlDataAcquisitionProvider_setIntValue" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->setIntValue((char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisitionProvider_setFloatValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisitionProvider *arg1 = (rlDataAcquisitionProvider *) 0 ; - char *arg2 = (char *) 0 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlDataAcquisitionProvider_setFloatValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisitionProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisitionProvider_setFloatValue" "', argument " "1"" of type '" "rlDataAcquisitionProvider *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisitionProvider * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataAcquisitionProvider_setFloatValue" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlDataAcquisitionProvider_setFloatValue" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)(arg1)->setFloatValue((char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisitionProvider_readErrorCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisitionProvider *arg1 = (rlDataAcquisitionProvider *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlDataAcquisitionProvider_readErrorCount",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisitionProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisitionProvider_readErrorCount" "', argument " "1"" of type '" "rlDataAcquisitionProvider *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisitionProvider * >(argp1); - result = (int)(arg1)->readErrorCount(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisitionProvider_writeErrorCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisitionProvider *arg1 = (rlDataAcquisitionProvider *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlDataAcquisitionProvider_writeErrorCount",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisitionProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisitionProvider_writeErrorCount" "', argument " "1"" of type '" "rlDataAcquisitionProvider *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisitionProvider * >(argp1); - result = (int)(arg1)->writeErrorCount(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisitionProvider_lifeCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisitionProvider *arg1 = (rlDataAcquisitionProvider *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlDataAcquisitionProvider_lifeCounter",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisitionProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisitionProvider_lifeCounter" "', argument " "1"" of type '" "rlDataAcquisitionProvider *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisitionProvider * >(argp1); - result = (int)(arg1)->lifeCounter(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisitionProvider_setReadErrorCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisitionProvider *arg1 = (rlDataAcquisitionProvider *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlDataAcquisitionProvider_setReadErrorCount",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisitionProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisitionProvider_setReadErrorCount" "', argument " "1"" of type '" "rlDataAcquisitionProvider *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisitionProvider * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlDataAcquisitionProvider_setReadErrorCount" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->setReadErrorCount(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisitionProvider_setWriteErrorCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisitionProvider *arg1 = (rlDataAcquisitionProvider *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlDataAcquisitionProvider_setWriteErrorCount",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisitionProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisitionProvider_setWriteErrorCount" "', argument " "1"" of type '" "rlDataAcquisitionProvider *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisitionProvider * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlDataAcquisitionProvider_setWriteErrorCount" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->setWriteErrorCount(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisitionProvider_setLifeCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisitionProvider *arg1 = (rlDataAcquisitionProvider *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlDataAcquisitionProvider_setLifeCounter",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisitionProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisitionProvider_setLifeCounter" "', argument " "1"" of type '" "rlDataAcquisitionProvider *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisitionProvider * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlDataAcquisitionProvider_setLifeCounter" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->setLifeCounter(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisitionProvider_shmStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisitionProvider *arg1 = (rlDataAcquisitionProvider *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlDataAcquisitionProvider_shmStatus",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisitionProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisitionProvider_shmStatus" "', argument " "1"" of type '" "rlDataAcquisitionProvider *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisitionProvider * >(argp1); - result = (int)(arg1)->shmStatus(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataAcquisitionProvider_setAllowAddValues(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataAcquisitionProvider *arg1 = (rlDataAcquisitionProvider *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlDataAcquisitionProvider_setAllowAddValues",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataAcquisitionProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataAcquisitionProvider_setAllowAddValues" "', argument " "1"" of type '" "rlDataAcquisitionProvider *""'"); - } - arg1 = reinterpret_cast< rlDataAcquisitionProvider * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlDataAcquisitionProvider_setAllowAddValues" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlDataAcquisitionProvider_setAllowAddValues" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->setAllowAddValues(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlDataAcquisitionProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlDataAcquisitionProvider, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlDataProvider__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int arg2 ; - int arg3 ; - int val1 ; - int ecode1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - rlDataProvider *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:new_rlDataProvider",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlDataProvider" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_rlDataProvider" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_rlDataProvider" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (rlDataProvider *)new rlDataProvider(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlDataProvider, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlDataProvider__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int arg2 ; - int val1 ; - int ecode1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - rlDataProvider *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_rlDataProvider",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlDataProvider" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_rlDataProvider" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (rlDataProvider *)new rlDataProvider(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlDataProvider, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlDataProvider__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - rlDataProvider *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_rlDataProvider",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlDataProvider" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (rlDataProvider *)new rlDataProvider(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlDataProvider, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlDataProvider(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - { - int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlDataProvider__SWIG_2(self, args); - } - } - if (argc == 2) { - int _v; - { - int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlDataProvider__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - { - int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlDataProvider__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_rlDataProvider'.\n" - " Possible C/C++ prototypes are:\n" - " rlDataProvider::rlDataProvider(int,int,int)\n" - " rlDataProvider::rlDataProvider(int,int)\n" - " rlDataProvider::rlDataProvider(int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_delete_rlDataProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProvider *arg1 = (rlDataProvider *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlDataProvider",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProvider, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlDataProvider" "', argument " "1"" of type '" "rlDataProvider *""'"); - } - arg1 = reinterpret_cast< rlDataProvider * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProvider_getInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProvider *arg1 = (rlDataProvider *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlDataProvider_getInt",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProvider_getInt" "', argument " "1"" of type '" "rlDataProvider *""'"); - } - arg1 = reinterpret_cast< rlDataProvider * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlDataProvider_getInt" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->getInt(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProvider_getFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProvider *arg1 = (rlDataProvider *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlDataProvider_getFloat",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProvider_getFloat" "', argument " "1"" of type '" "rlDataProvider *""'"); - } - arg1 = reinterpret_cast< rlDataProvider * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlDataProvider_getFloat" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (float)(arg1)->getFloat(arg2); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProvider_getIntArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProvider *arg1 = (rlDataProvider *) 0 ; - int arg2 ; - int *arg3 = (int *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlDataProvider_getIntArray",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProvider_getIntArray" "', argument " "1"" of type '" "rlDataProvider *""'"); - } - arg1 = reinterpret_cast< rlDataProvider * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlDataProvider_getIntArray" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlDataProvider_getIntArray" "', argument " "3"" of type '" "int *""'"); - } - arg3 = reinterpret_cast< int * >(argp3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlDataProvider_getIntArray" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)(arg1)->getIntArray(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProvider_getFloatArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProvider *arg1 = (rlDataProvider *) 0 ; - int arg2 ; - float *arg3 = (float *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlDataProvider_getFloatArray",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProvider_getFloatArray" "', argument " "1"" of type '" "rlDataProvider *""'"); - } - arg1 = reinterpret_cast< rlDataProvider * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlDataProvider_getFloatArray" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlDataProvider_getFloatArray" "', argument " "3"" of type '" "float *""'"); - } - arg3 = reinterpret_cast< float * >(argp3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlDataProvider_getFloatArray" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)(arg1)->getFloatArray(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProvider_getString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProvider *arg1 = (rlDataProvider *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlDataProvider_getString",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProvider_getString" "', argument " "1"" of type '" "rlDataProvider *""'"); - } - arg1 = reinterpret_cast< rlDataProvider * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlDataProvider_getString" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (char *)(arg1)->getString(arg2); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProvider_setInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProvider *arg1 = (rlDataProvider *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlDataProvider_setInt",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProvider_setInt" "', argument " "1"" of type '" "rlDataProvider *""'"); - } - arg1 = reinterpret_cast< rlDataProvider * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlDataProvider_setInt" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlDataProvider_setInt" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->setInt(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProvider_setFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProvider *arg1 = (rlDataProvider *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlDataProvider_setFloat",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProvider_setFloat" "', argument " "1"" of type '" "rlDataProvider *""'"); - } - arg1 = reinterpret_cast< rlDataProvider * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlDataProvider_setFloat" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlDataProvider_setFloat" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)(arg1)->setFloat(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProvider_setIntArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProvider *arg1 = (rlDataProvider *) 0 ; - int arg2 ; - int *arg3 = (int *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlDataProvider_setIntArray",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProvider_setIntArray" "', argument " "1"" of type '" "rlDataProvider *""'"); - } - arg1 = reinterpret_cast< rlDataProvider * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlDataProvider_setIntArray" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlDataProvider_setIntArray" "', argument " "3"" of type '" "int *""'"); - } - arg3 = reinterpret_cast< int * >(argp3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlDataProvider_setIntArray" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)(arg1)->setIntArray(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProvider_setFloatArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProvider *arg1 = (rlDataProvider *) 0 ; - int arg2 ; - float *arg3 = (float *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlDataProvider_setFloatArray",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProvider_setFloatArray" "', argument " "1"" of type '" "rlDataProvider *""'"); - } - arg1 = reinterpret_cast< rlDataProvider * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlDataProvider_setFloatArray" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlDataProvider_setFloatArray" "', argument " "3"" of type '" "float *""'"); - } - arg3 = reinterpret_cast< float * >(argp3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlDataProvider_setFloatArray" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)(arg1)->setFloatArray(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProvider_setString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProvider *arg1 = (rlDataProvider *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlDataProvider_setString",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProvider_setString" "', argument " "1"" of type '" "rlDataProvider *""'"); - } - arg1 = reinterpret_cast< rlDataProvider * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlDataProvider_setString" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlDataProvider_setString" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)(arg1)->setString(arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProvider_getIntAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProvider *arg1 = (rlDataProvider *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlDataProvider_getIntAndReset",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProvider_getIntAndReset" "', argument " "1"" of type '" "rlDataProvider *""'"); - } - arg1 = reinterpret_cast< rlDataProvider * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlDataProvider_getIntAndReset" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->getIntAndReset(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProvider_setIntAndWaitForReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProvider *arg1 = (rlDataProvider *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlDataProvider_setIntAndWaitForReset",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProvider_setIntAndWaitForReset" "', argument " "1"" of type '" "rlDataProvider *""'"); - } - arg1 = reinterpret_cast< rlDataProvider * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlDataProvider_setIntAndWaitForReset" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlDataProvider_setIntAndWaitForReset" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->setIntAndWaitForReset(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProvider_setInt0Semaphore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProvider *arg1 = (rlDataProvider *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlDataProvider_setInt0Semaphore",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProvider_setInt0Semaphore" "', argument " "1"" of type '" "rlDataProvider *""'"); - } - arg1 = reinterpret_cast< rlDataProvider * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlDataProvider_setInt0Semaphore" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->setInt0Semaphore(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProvider_getInt0Semaphore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProvider *arg1 = (rlDataProvider *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlDataProvider_getInt0Semaphore",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProvider_getInt0Semaphore" "', argument " "1"" of type '" "rlDataProvider *""'"); - } - arg1 = reinterpret_cast< rlDataProvider * >(argp1); - result = (int)(arg1)->getInt0Semaphore(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProvider_run(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProvider *arg1 = (rlDataProvider *) 0 ; - rlSocket *arg2 = (rlSocket *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlDataProvider_run",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProvider, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProvider_run" "', argument " "1"" of type '" "rlDataProvider *""'"); - } - arg1 = reinterpret_cast< rlDataProvider * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataProvider_run" "', argument " "2"" of type '" "rlSocket *""'"); - } - arg2 = reinterpret_cast< rlSocket * >(argp2); - result = (int)(arg1)->run(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlDataProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlDataProvider, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlDataProviderClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProviderClient *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlDataProviderClient")) SWIG_fail; - result = (rlDataProviderClient *)new rlDataProviderClient(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlDataProviderClient, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_rlDataProviderClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProviderClient *arg1 = (rlDataProviderClient *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlDataProviderClient",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProviderClient, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlDataProviderClient" "', argument " "1"" of type '" "rlDataProviderClient *""'"); - } - arg1 = reinterpret_cast< rlDataProviderClient * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProviderClient_getInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProviderClient *arg1 = (rlDataProviderClient *) 0 ; - rlSocket *arg2 = (rlSocket *) 0 ; - int arg3 ; - int *arg4 = (int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlDataProviderClient_getInt",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProviderClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProviderClient_getInt" "', argument " "1"" of type '" "rlDataProviderClient *""'"); - } - arg1 = reinterpret_cast< rlDataProviderClient * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataProviderClient_getInt" "', argument " "2"" of type '" "rlSocket *""'"); - } - arg2 = reinterpret_cast< rlSocket * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlDataProviderClient_getInt" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlDataProviderClient_getInt" "', argument " "4"" of type '" "int *""'"); - } - arg4 = reinterpret_cast< int * >(argp4); - result = (int)(arg1)->getInt(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProviderClient_getFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProviderClient *arg1 = (rlDataProviderClient *) 0 ; - rlSocket *arg2 = (rlSocket *) 0 ; - int arg3 ; - int *arg4 = (int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlDataProviderClient_getFloat",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProviderClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProviderClient_getFloat" "', argument " "1"" of type '" "rlDataProviderClient *""'"); - } - arg1 = reinterpret_cast< rlDataProviderClient * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataProviderClient_getFloat" "', argument " "2"" of type '" "rlSocket *""'"); - } - arg2 = reinterpret_cast< rlSocket * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlDataProviderClient_getFloat" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlDataProviderClient_getFloat" "', argument " "4"" of type '" "int *""'"); - } - arg4 = reinterpret_cast< int * >(argp4); - result = (float)(arg1)->getFloat(arg2,arg3,arg4); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProviderClient_getIntArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProviderClient *arg1 = (rlDataProviderClient *) 0 ; - rlSocket *arg2 = (rlSocket *) 0 ; - int arg3 ; - int *arg4 = (int *) 0 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlDataProviderClient_getIntArray",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProviderClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProviderClient_getIntArray" "', argument " "1"" of type '" "rlDataProviderClient *""'"); - } - arg1 = reinterpret_cast< rlDataProviderClient * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataProviderClient_getIntArray" "', argument " "2"" of type '" "rlSocket *""'"); - } - arg2 = reinterpret_cast< rlSocket * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlDataProviderClient_getIntArray" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlDataProviderClient_getIntArray" "', argument " "4"" of type '" "int *""'"); - } - arg4 = reinterpret_cast< int * >(argp4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlDataProviderClient_getIntArray" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)(arg1)->getIntArray(arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProviderClient_getFloatArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProviderClient *arg1 = (rlDataProviderClient *) 0 ; - rlSocket *arg2 = (rlSocket *) 0 ; - int arg3 ; - float *arg4 = (float *) 0 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlDataProviderClient_getFloatArray",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProviderClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProviderClient_getFloatArray" "', argument " "1"" of type '" "rlDataProviderClient *""'"); - } - arg1 = reinterpret_cast< rlDataProviderClient * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataProviderClient_getFloatArray" "', argument " "2"" of type '" "rlSocket *""'"); - } - arg2 = reinterpret_cast< rlSocket * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlDataProviderClient_getFloatArray" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlDataProviderClient_getFloatArray" "', argument " "4"" of type '" "float *""'"); - } - arg4 = reinterpret_cast< float * >(argp4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlDataProviderClient_getFloatArray" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)(arg1)->getFloatArray(arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProviderClient_getString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProviderClient *arg1 = (rlDataProviderClient *) 0 ; - rlSocket *arg2 = (rlSocket *) 0 ; - int arg3 ; - int *arg4 = (int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlDataProviderClient_getString",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProviderClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProviderClient_getString" "', argument " "1"" of type '" "rlDataProviderClient *""'"); - } - arg1 = reinterpret_cast< rlDataProviderClient * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataProviderClient_getString" "', argument " "2"" of type '" "rlSocket *""'"); - } - arg2 = reinterpret_cast< rlSocket * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlDataProviderClient_getString" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlDataProviderClient_getString" "', argument " "4"" of type '" "int *""'"); - } - arg4 = reinterpret_cast< int * >(argp4); - result = (char *)(arg1)->getString(arg2,arg3,arg4); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProviderClient_setInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProviderClient *arg1 = (rlDataProviderClient *) 0 ; - rlSocket *arg2 = (rlSocket *) 0 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlDataProviderClient_setInt",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProviderClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProviderClient_setInt" "', argument " "1"" of type '" "rlDataProviderClient *""'"); - } - arg1 = reinterpret_cast< rlDataProviderClient * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataProviderClient_setInt" "', argument " "2"" of type '" "rlSocket *""'"); - } - arg2 = reinterpret_cast< rlSocket * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlDataProviderClient_setInt" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlDataProviderClient_setInt" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)(arg1)->setInt(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProviderClient_setFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProviderClient *arg1 = (rlDataProviderClient *) 0 ; - rlSocket *arg2 = (rlSocket *) 0 ; - int arg3 ; - float arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlDataProviderClient_setFloat",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProviderClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProviderClient_setFloat" "', argument " "1"" of type '" "rlDataProviderClient *""'"); - } - arg1 = reinterpret_cast< rlDataProviderClient * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataProviderClient_setFloat" "', argument " "2"" of type '" "rlSocket *""'"); - } - arg2 = reinterpret_cast< rlSocket * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlDataProviderClient_setFloat" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlDataProviderClient_setFloat" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - result = (int)(arg1)->setFloat(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProviderClient_setIntArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProviderClient *arg1 = (rlDataProviderClient *) 0 ; - rlSocket *arg2 = (rlSocket *) 0 ; - int arg3 ; - int *arg4 = (int *) 0 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlDataProviderClient_setIntArray",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProviderClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProviderClient_setIntArray" "', argument " "1"" of type '" "rlDataProviderClient *""'"); - } - arg1 = reinterpret_cast< rlDataProviderClient * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataProviderClient_setIntArray" "', argument " "2"" of type '" "rlSocket *""'"); - } - arg2 = reinterpret_cast< rlSocket * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlDataProviderClient_setIntArray" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlDataProviderClient_setIntArray" "', argument " "4"" of type '" "int *""'"); - } - arg4 = reinterpret_cast< int * >(argp4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlDataProviderClient_setIntArray" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)(arg1)->setIntArray(arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProviderClient_setFloatArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProviderClient *arg1 = (rlDataProviderClient *) 0 ; - rlSocket *arg2 = (rlSocket *) 0 ; - int arg3 ; - float *arg4 = (float *) 0 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlDataProviderClient_setFloatArray",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProviderClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProviderClient_setFloatArray" "', argument " "1"" of type '" "rlDataProviderClient *""'"); - } - arg1 = reinterpret_cast< rlDataProviderClient * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataProviderClient_setFloatArray" "', argument " "2"" of type '" "rlSocket *""'"); - } - arg2 = reinterpret_cast< rlSocket * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlDataProviderClient_setFloatArray" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlDataProviderClient_setFloatArray" "', argument " "4"" of type '" "float *""'"); - } - arg4 = reinterpret_cast< float * >(argp4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlDataProviderClient_setFloatArray" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)(arg1)->setFloatArray(arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProviderClient_setString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProviderClient *arg1 = (rlDataProviderClient *) 0 ; - rlSocket *arg2 = (rlSocket *) 0 ; - int arg3 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlDataProviderClient_setString",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProviderClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProviderClient_setString" "', argument " "1"" of type '" "rlDataProviderClient *""'"); - } - arg1 = reinterpret_cast< rlDataProviderClient * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataProviderClient_setString" "', argument " "2"" of type '" "rlSocket *""'"); - } - arg2 = reinterpret_cast< rlSocket * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlDataProviderClient_setString" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlDataProviderClient_setString" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)(arg1)->setString(arg2,arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProviderClient_getIntAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProviderClient *arg1 = (rlDataProviderClient *) 0 ; - rlSocket *arg2 = (rlSocket *) 0 ; - int arg3 ; - int *arg4 = (int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlDataProviderClient_getIntAndReset",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProviderClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProviderClient_getIntAndReset" "', argument " "1"" of type '" "rlDataProviderClient *""'"); - } - arg1 = reinterpret_cast< rlDataProviderClient * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataProviderClient_getIntAndReset" "', argument " "2"" of type '" "rlSocket *""'"); - } - arg2 = reinterpret_cast< rlSocket * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlDataProviderClient_getIntAndReset" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlDataProviderClient_getIntAndReset" "', argument " "4"" of type '" "int *""'"); - } - arg4 = reinterpret_cast< int * >(argp4); - result = (int)(arg1)->getIntAndReset(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProviderClient_setIntAndWaitForReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProviderClient *arg1 = (rlDataProviderClient *) 0 ; - rlSocket *arg2 = (rlSocket *) 0 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlDataProviderClient_setIntAndWaitForReset",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProviderClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProviderClient_setIntAndWaitForReset" "', argument " "1"" of type '" "rlDataProviderClient *""'"); - } - arg1 = reinterpret_cast< rlDataProviderClient * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataProviderClient_setIntAndWaitForReset" "', argument " "2"" of type '" "rlSocket *""'"); - } - arg2 = reinterpret_cast< rlSocket * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlDataProviderClient_setIntAndWaitForReset" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlDataProviderClient_setIntAndWaitForReset" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)(arg1)->setIntAndWaitForReset(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProviderClient_getInt0Semaphore(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProviderClient *arg1 = (rlDataProviderClient *) 0 ; - rlSocket *arg2 = (rlSocket *) 0 ; - int *arg3 = (int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlDataProviderClient_getInt0Semaphore",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProviderClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProviderClient_getInt0Semaphore" "', argument " "1"" of type '" "rlDataProviderClient *""'"); - } - arg1 = reinterpret_cast< rlDataProviderClient * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataProviderClient_getInt0Semaphore" "', argument " "2"" of type '" "rlSocket *""'"); - } - arg2 = reinterpret_cast< rlSocket * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlDataProviderClient_getInt0Semaphore" "', argument " "3"" of type '" "int *""'"); - } - arg3 = reinterpret_cast< int * >(argp3); - result = (int)(arg1)->getInt0Semaphore(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlDataProviderClient_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlDataProviderClient, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlDataProviderThreads(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - rlDataProvider *arg2 = (rlDataProvider *) 0 ; - int val1 ; - int ecode1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - rlDataProviderThreads *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_rlDataProviderThreads",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlDataProviderThreads" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlDataProvider, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_rlDataProviderThreads" "', argument " "2"" of type '" "rlDataProvider *""'"); - } - arg2 = reinterpret_cast< rlDataProvider * >(argp2); - result = (rlDataProviderThreads *)new rlDataProviderThreads(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlDataProviderThreads, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_rlDataProviderThreads(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProviderThreads *arg1 = (rlDataProviderThreads *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlDataProviderThreads",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProviderThreads, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlDataProviderThreads" "', argument " "1"" of type '" "rlDataProviderThreads *""'"); - } - arg1 = reinterpret_cast< rlDataProviderThreads * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProviderThreads_start(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProviderThreads *arg1 = (rlDataProviderThreads *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlDataProviderThreads_start",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProviderThreads, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProviderThreads_start" "', argument " "1"" of type '" "rlDataProviderThreads *""'"); - } - arg1 = reinterpret_cast< rlDataProviderThreads * >(argp1); - (arg1)->start(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProviderThreads_provider_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProviderThreads *arg1 = (rlDataProviderThreads *) 0 ; - rlDataProvider *arg2 = (rlDataProvider *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlDataProviderThreads_provider_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProviderThreads, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProviderThreads_provider_set" "', argument " "1"" of type '" "rlDataProviderThreads *""'"); - } - arg1 = reinterpret_cast< rlDataProviderThreads * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlDataProvider, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataProviderThreads_provider_set" "', argument " "2"" of type '" "rlDataProvider *""'"); - } - arg2 = reinterpret_cast< rlDataProvider * >(argp2); - if (arg1) (arg1)->provider = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProviderThreads_provider_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProviderThreads *arg1 = (rlDataProviderThreads *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - rlDataProvider *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlDataProviderThreads_provider_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProviderThreads, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProviderThreads_provider_get" "', argument " "1"" of type '" "rlDataProviderThreads *""'"); - } - arg1 = reinterpret_cast< rlDataProviderThreads * >(argp1); - result = (rlDataProvider *) ((arg1)->provider); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlDataProvider, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProviderThreads_thread_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProviderThreads *arg1 = (rlDataProviderThreads *) 0 ; - rlThread *arg2 = (rlThread *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlDataProviderThreads_thread_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProviderThreads, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProviderThreads_thread_set" "', argument " "1"" of type '" "rlDataProviderThreads *""'"); - } - arg1 = reinterpret_cast< rlDataProviderThreads * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlThread, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlDataProviderThreads_thread_set" "', argument " "2"" of type '" "rlThread *""'"); - } - arg2 = reinterpret_cast< rlThread * >(argp2); - if (arg1) (arg1)->thread = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProviderThreads_thread_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProviderThreads *arg1 = (rlDataProviderThreads *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - rlThread *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlDataProviderThreads_thread_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProviderThreads, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProviderThreads_thread_get" "', argument " "1"" of type '" "rlDataProviderThreads *""'"); - } - arg1 = reinterpret_cast< rlDataProviderThreads * >(argp1); - result = (rlThread *)& ((arg1)->thread); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlThread, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProviderThreads_port_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProviderThreads *arg1 = (rlDataProviderThreads *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlDataProviderThreads_port_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProviderThreads, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProviderThreads_port_set" "', argument " "1"" of type '" "rlDataProviderThreads *""'"); - } - arg1 = reinterpret_cast< rlDataProviderThreads * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlDataProviderThreads_port_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->port = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlDataProviderThreads_port_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlDataProviderThreads *arg1 = (rlDataProviderThreads *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlDataProviderThreads_port_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlDataProviderThreads, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlDataProviderThreads_port_get" "', argument " "1"" of type '" "rlDataProviderThreads *""'"); - } - arg1 = reinterpret_cast< rlDataProviderThreads * >(argp1); - result = (int) ((arg1)->port); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlDataProviderThreads_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlDataProviderThreads, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN int Swig_var_rlevent_name_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable rlevent_name is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_rlevent_name_get(void) { - PyObject *pyobj = 0; - - pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(rlevent_name), SWIGTYPE_p_a_4__char, 0 ); - return pyobj; -} - - -SWIGINTERN PyObject *_wrap_rlEventInit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - char **arg2 = (char **) 0 ; - char *arg3 = (char *) 0 ; - int val1 ; - int ecode1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlEventInit",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "rlEventInit" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlEventInit" "', argument " "2"" of type '" "char **""'"); - } - arg2 = reinterpret_cast< char ** >(argp2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlEventInit" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - rlEventInit(arg1,arg2,(char const *)arg3); - resultobj = SWIG_Py_Void(); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSetEventLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int arg2 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSetEventLocation",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSetEventLocation" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSetEventLocation" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - rlSetEventLocation((char const *)arg1,arg2); - resultobj = SWIG_Py_Void(); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlEventPrintf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - int arg1 ; - char *arg2 = (char *) 0 ; - void *arg3 = 0 ; - int val1 ; - int ecode1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlEventPrintf",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "rlEventPrintf" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlEventPrintf" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - rlEventPrintf(arg1,(char const *)arg2,arg3); - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlEventPrintf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,2); - varargs = PyTuple_GetSlice(args,2,PyTuple_Size(args)); - resultobj = _wrap_rlEventPrintf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_new_rlEventLogServer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int arg2 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - rlEventLogServer *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_rlEventLogServer",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlEventLogServer" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_rlEventLogServer" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (rlEventLogServer *)new rlEventLogServer((char const *)arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlEventLogServer, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlEventLogServer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - rlEventLogServer *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_rlEventLogServer",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlEventLogServer" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (rlEventLogServer *)new rlEventLogServer((char const *)arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlEventLogServer, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlEventLogServer__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlEventLogServer *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlEventLogServer")) SWIG_fail; - result = (rlEventLogServer *)new rlEventLogServer(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlEventLogServer, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlEventLogServer(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_rlEventLogServer__SWIG_2(self, args); - } - if (argc == 1) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_rlEventLogServer__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlEventLogServer__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_rlEventLogServer'.\n" - " Possible C/C++ prototypes are:\n" - " rlEventLogServer::rlEventLogServer(char const *,int)\n" - " rlEventLogServer::rlEventLogServer(char const *)\n" - " rlEventLogServer::rlEventLogServer()\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_delete_rlEventLogServer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlEventLogServer *arg1 = (rlEventLogServer *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlEventLogServer",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlEventLogServer, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlEventLogServer" "', argument " "1"" of type '" "rlEventLogServer *""'"); - } - arg1 = reinterpret_cast< rlEventLogServer * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlEventLogServer_getEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlEventLogServer *arg1 = (rlEventLogServer *) 0 ; - char *arg2 = (char *) 0 ; - int *arg3 = (int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlEventLogServer_getEvent",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlEventLogServer, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlEventLogServer_getEvent" "', argument " "1"" of type '" "rlEventLogServer *""'"); - } - arg1 = reinterpret_cast< rlEventLogServer * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlEventLogServer_getEvent" "', argument " "2"" of type '" "char *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlEventLogServer_getEvent" "', argument " "3"" of type '" "int *""'"); - } - arg3 = reinterpret_cast< int * >(argp3); - result = (char *)(arg1)->getEvent(arg2,arg3); - resultobj = SWIG_FromCharPtr((const char *)result); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlEventLogServer_putEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlEventLogServer *arg1 = (rlEventLogServer *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlEventLogServer_putEvent",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlEventLogServer, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlEventLogServer_putEvent" "', argument " "1"" of type '" "rlEventLogServer *""'"); - } - arg1 = reinterpret_cast< rlEventLogServer * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlEventLogServer_putEvent" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - (arg1)->putEvent((char const *)arg2); - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *rlEventLogServer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlEventLogServer, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlEventLogServerThreads(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - rlEventLogServer *arg2 = (rlEventLogServer *) 0 ; - int val1 ; - int ecode1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - rlEventLogServerThreads *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_rlEventLogServerThreads",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlEventLogServerThreads" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlEventLogServer, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_rlEventLogServerThreads" "', argument " "2"" of type '" "rlEventLogServer *""'"); - } - arg2 = reinterpret_cast< rlEventLogServer * >(argp2); - result = (rlEventLogServerThreads *)new rlEventLogServerThreads(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlEventLogServerThreads, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_rlEventLogServerThreads(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlEventLogServerThreads *arg1 = (rlEventLogServerThreads *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlEventLogServerThreads",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlEventLogServerThreads, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlEventLogServerThreads" "', argument " "1"" of type '" "rlEventLogServerThreads *""'"); - } - arg1 = reinterpret_cast< rlEventLogServerThreads * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlEventLogServerThreads_start(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlEventLogServerThreads *arg1 = (rlEventLogServerThreads *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlEventLogServerThreads_start",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlEventLogServerThreads, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlEventLogServerThreads_start" "', argument " "1"" of type '" "rlEventLogServerThreads *""'"); - } - arg1 = reinterpret_cast< rlEventLogServerThreads * >(argp1); - (arg1)->start(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlEventLogServerThreads_getPort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlEventLogServerThreads *arg1 = (rlEventLogServerThreads *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlEventLogServerThreads_getPort",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlEventLogServerThreads, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlEventLogServerThreads_getPort" "', argument " "1"" of type '" "rlEventLogServerThreads *""'"); - } - arg1 = reinterpret_cast< rlEventLogServerThreads * >(argp1); - result = (int)(arg1)->getPort(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlEventLogServerThreads_event_log_server_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlEventLogServerThreads *arg1 = (rlEventLogServerThreads *) 0 ; - rlEventLogServer *arg2 = (rlEventLogServer *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlEventLogServerThreads_event_log_server_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlEventLogServerThreads, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlEventLogServerThreads_event_log_server_set" "', argument " "1"" of type '" "rlEventLogServerThreads *""'"); - } - arg1 = reinterpret_cast< rlEventLogServerThreads * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlEventLogServer, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlEventLogServerThreads_event_log_server_set" "', argument " "2"" of type '" "rlEventLogServer *""'"); - } - arg2 = reinterpret_cast< rlEventLogServer * >(argp2); - if (arg1) (arg1)->event_log_server = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlEventLogServerThreads_event_log_server_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlEventLogServerThreads *arg1 = (rlEventLogServerThreads *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - rlEventLogServer *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlEventLogServerThreads_event_log_server_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlEventLogServerThreads, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlEventLogServerThreads_event_log_server_get" "', argument " "1"" of type '" "rlEventLogServerThreads *""'"); - } - arg1 = reinterpret_cast< rlEventLogServerThreads * >(argp1); - result = (rlEventLogServer *) ((arg1)->event_log_server); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlEventLogServer, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlEventLogServerThreads_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlEventLogServerThreads, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlFifo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - rlFifo *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_rlFifo",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlFifo" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (rlFifo *)new rlFifo(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlFifo, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlFifo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlFifo *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlFifo")) SWIG_fail; - result = (rlFifo *)new rlFifo(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlFifo, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlFifo(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[2]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_rlFifo__SWIG_1(self, args); - } - if (argc == 1) { - int _v; - { - int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlFifo__SWIG_0(self, args); - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_rlFifo'.\n" - " Possible C/C++ prototypes are:\n" - " rlFifo::rlFifo(int)\n" - " rlFifo::rlFifo()\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_delete_rlFifo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlFifo *arg1 = (rlFifo *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlFifo",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlFifo, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlFifo" "', argument " "1"" of type '" "rlFifo *""'"); - } - arg1 = reinterpret_cast< rlFifo * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlFifo_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlFifo *arg1 = (rlFifo *) 0 ; - void *arg2 = (void *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlFifo_read",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlFifo, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlFifo_read" "', argument " "1"" of type '" "rlFifo *""'"); - } - arg1 = reinterpret_cast< rlFifo * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlFifo_read" "', argument " "2"" of type '" "void *""'"); - } - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlFifo_read" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->read(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlFifo_poll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlFifo *arg1 = (rlFifo *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlFifo_poll",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlFifo, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlFifo_poll" "', argument " "1"" of type '" "rlFifo *""'"); - } - arg1 = reinterpret_cast< rlFifo * >(argp1); - result = (int)(arg1)->poll(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlFifo_nmesAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlFifo *arg1 = (rlFifo *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlFifo_nmesAvailable",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlFifo, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlFifo_nmesAvailable" "', argument " "1"" of type '" "rlFifo *""'"); - } - arg1 = reinterpret_cast< rlFifo * >(argp1); - result = (int)(arg1)->nmesAvailable(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlFifo_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlFifo *arg1 = (rlFifo *) 0 ; - void *arg2 = (void *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlFifo_write",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlFifo, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlFifo_write" "', argument " "1"" of type '" "rlFifo *""'"); - } - arg1 = reinterpret_cast< rlFifo * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlFifo_write" "', argument " "2"" of type '" "void const *""'"); - } - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlFifo_write" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->write((void const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlFifo_printf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - rlFifo *arg1 = (rlFifo *) 0 ; - char *arg2 = (char *) 0 ; - void *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlFifo_printf",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlFifo, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlFifo_printf" "', argument " "1"" of type '" "rlFifo *""'"); - } - arg1 = reinterpret_cast< rlFifo * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlFifo_printf" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->printf((char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlFifo_printf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,2); - varargs = PyTuple_GetSlice(args,2,PyTuple_Size(args)); - resultobj = _wrap_rlFifo_printf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *rlFifo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlFifo, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_rlFileLines_line_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _rlFileLines_ *arg1 = (_rlFileLines_ *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlFileLines_line_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__rlFileLines_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlFileLines_line_set" "', argument " "1"" of type '" "_rlFileLines_ *""'"); - } - arg1 = reinterpret_cast< _rlFileLines_ * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlFileLines_line_set" "', argument " "2"" of type '" "char *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - if (arg1->line) delete[] arg1->line; - if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->line = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); - } else { - arg1->line = 0; - } - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlFileLines_line_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _rlFileLines_ *arg1 = (_rlFileLines_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlFileLines_line_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__rlFileLines_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlFileLines_line_get" "', argument " "1"" of type '" "_rlFileLines_ *""'"); - } - arg1 = reinterpret_cast< _rlFileLines_ * >(argp1); - result = (char *) ((arg1)->line); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlFileLines_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _rlFileLines_ *arg1 = (_rlFileLines_ *) 0 ; - _rlFileLines_ *arg2 = (_rlFileLines_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlFileLines_next_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__rlFileLines_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlFileLines_next_set" "', argument " "1"" of type '" "_rlFileLines_ *""'"); - } - arg1 = reinterpret_cast< _rlFileLines_ * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__rlFileLines_, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlFileLines_next_set" "', argument " "2"" of type '" "_rlFileLines_ *""'"); - } - arg2 = reinterpret_cast< _rlFileLines_ * >(argp2); - if (arg1) (arg1)->next = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlFileLines_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _rlFileLines_ *arg1 = (_rlFileLines_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - _rlFileLines_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlFileLines_next_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__rlFileLines_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlFileLines_next_get" "', argument " "1"" of type '" "_rlFileLines_ *""'"); - } - arg1 = reinterpret_cast< _rlFileLines_ * >(argp1); - result = (_rlFileLines_ *) ((arg1)->next); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__rlFileLines_, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlFileLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _rlFileLines_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlFileLines")) SWIG_fail; - result = (_rlFileLines_ *)new _rlFileLines_(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__rlFileLines_, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_rlFileLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _rlFileLines_ *arg1 = (_rlFileLines_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlFileLines",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__rlFileLines_, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlFileLines" "', argument " "1"" of type '" "_rlFileLines_ *""'"); - } - arg1 = reinterpret_cast< _rlFileLines_ * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlFileLines_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p__rlFileLines_, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlFileLoad(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlFileLoad *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlFileLoad")) SWIG_fail; - result = (rlFileLoad *)new rlFileLoad(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlFileLoad, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_rlFileLoad(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlFileLoad *arg1 = (rlFileLoad *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlFileLoad",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlFileLoad, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlFileLoad" "', argument " "1"" of type '" "rlFileLoad *""'"); - } - arg1 = reinterpret_cast< rlFileLoad * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlFileLoad_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlFileLoad *arg1 = (rlFileLoad *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlFileLoad_load",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlFileLoad, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlFileLoad_load" "', argument " "1"" of type '" "rlFileLoad *""'"); - } - arg1 = reinterpret_cast< rlFileLoad * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlFileLoad_load" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->load((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlFileLoad_unload(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlFileLoad *arg1 = (rlFileLoad *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlFileLoad_unload",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlFileLoad, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlFileLoad_unload" "', argument " "1"" of type '" "rlFileLoad *""'"); - } - arg1 = reinterpret_cast< rlFileLoad * >(argp1); - (arg1)->unload(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlFileLoad_firstLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlFileLoad *arg1 = (rlFileLoad *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlFileLoad_firstLine",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlFileLoad, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlFileLoad_firstLine" "', argument " "1"" of type '" "rlFileLoad *""'"); - } - arg1 = reinterpret_cast< rlFileLoad * >(argp1); - result = (char *)(arg1)->firstLine(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlFileLoad_nextLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlFileLoad *arg1 = (rlFileLoad *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlFileLoad_nextLine",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlFileLoad, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlFileLoad_nextLine" "', argument " "1"" of type '" "rlFileLoad *""'"); - } - arg1 = reinterpret_cast< rlFileLoad * >(argp1); - result = (char *)(arg1)->nextLine(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlFileLoad_setDebug(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlFileLoad *arg1 = (rlFileLoad *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlFileLoad_setDebug",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlFileLoad, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlFileLoad_setDebug" "', argument " "1"" of type '" "rlFileLoad *""'"); - } - arg1 = reinterpret_cast< rlFileLoad * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlFileLoad_setDebug" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - (arg1)->setDebug(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlFileLoad_text2rlstring(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlFileLoad *arg1 = (rlFileLoad *) 0 ; - rlString *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlFileLoad_text2rlstring",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlFileLoad, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlFileLoad_text2rlstring" "', argument " "1"" of type '" "rlFileLoad *""'"); - } - arg1 = reinterpret_cast< rlFileLoad * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_rlString, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlFileLoad_text2rlstring" "', argument " "2"" of type '" "rlString &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rlFileLoad_text2rlstring" "', argument " "2"" of type '" "rlString &""'"); - } - arg2 = reinterpret_cast< rlString * >(argp2); - result = (int)(arg1)->text2rlstring(*arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlFileLoad_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlFileLoad, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_rlHistoryLogLine_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _rlHistoryLogLine_ *arg1 = (_rlHistoryLogLine_ *) 0 ; - _rlHistoryLogLine_ *arg2 = (_rlHistoryLogLine_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlHistoryLogLine_next_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__rlHistoryLogLine_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlHistoryLogLine_next_set" "', argument " "1"" of type '" "_rlHistoryLogLine_ *""'"); - } - arg1 = reinterpret_cast< _rlHistoryLogLine_ * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__rlHistoryLogLine_, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlHistoryLogLine_next_set" "', argument " "2"" of type '" "_rlHistoryLogLine_ *""'"); - } - arg2 = reinterpret_cast< _rlHistoryLogLine_ * >(argp2); - if (arg1) (arg1)->next = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlHistoryLogLine_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _rlHistoryLogLine_ *arg1 = (_rlHistoryLogLine_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - _rlHistoryLogLine_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlHistoryLogLine_next_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__rlHistoryLogLine_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlHistoryLogLine_next_get" "', argument " "1"" of type '" "_rlHistoryLogLine_ *""'"); - } - arg1 = reinterpret_cast< _rlHistoryLogLine_ * >(argp1); - result = (_rlHistoryLogLine_ *) ((arg1)->next); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__rlHistoryLogLine_, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlHistoryLogLine_line_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _rlHistoryLogLine_ *arg1 = (_rlHistoryLogLine_ *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlHistoryLogLine_line_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__rlHistoryLogLine_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlHistoryLogLine_line_set" "', argument " "1"" of type '" "_rlHistoryLogLine_ *""'"); - } - arg1 = reinterpret_cast< _rlHistoryLogLine_ * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlHistoryLogLine_line_set" "', argument " "2"" of type '" "char *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - if (arg1->line) delete[] arg1->line; - if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->line = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); - } else { - arg1->line = 0; - } - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlHistoryLogLine_line_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _rlHistoryLogLine_ *arg1 = (_rlHistoryLogLine_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlHistoryLogLine_line_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__rlHistoryLogLine_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlHistoryLogLine_line_get" "', argument " "1"" of type '" "_rlHistoryLogLine_ *""'"); - } - arg1 = reinterpret_cast< _rlHistoryLogLine_ * >(argp1); - result = (char *) ((arg1)->line); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlHistoryLogLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _rlHistoryLogLine_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlHistoryLogLine")) SWIG_fail; - result = (_rlHistoryLogLine_ *)new _rlHistoryLogLine_(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__rlHistoryLogLine_, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_rlHistoryLogLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _rlHistoryLogLine_ *arg1 = (_rlHistoryLogLine_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlHistoryLogLine",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__rlHistoryLogLine_, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlHistoryLogLine" "', argument " "1"" of type '" "_rlHistoryLogLine_ *""'"); - } - arg1 = reinterpret_cast< _rlHistoryLogLine_ * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlHistoryLogLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p__rlHistoryLogLine_, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlHistoryLogger__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int arg2 ; - int arg3 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - rlHistoryLogger *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:new_rlHistoryLogger",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlHistoryLogger" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_rlHistoryLogger" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_rlHistoryLogger" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (rlHistoryLogger *)new rlHistoryLogger((char const *)arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlHistoryLogger, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlHistoryLogger__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int arg2 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - rlHistoryLogger *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_rlHistoryLogger",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlHistoryLogger" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_rlHistoryLogger" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (rlHistoryLogger *)new rlHistoryLogger((char const *)arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlHistoryLogger, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlHistoryLogger(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlHistoryLogger__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlHistoryLogger__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_rlHistoryLogger'.\n" - " Possible C/C++ prototypes are:\n" - " rlHistoryLogger::rlHistoryLogger(char const *,int,int)\n" - " rlHistoryLogger::rlHistoryLogger(char const *,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_delete_rlHistoryLogger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlHistoryLogger *arg1 = (rlHistoryLogger *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlHistoryLogger",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlHistoryLogger, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlHistoryLogger" "', argument " "1"" of type '" "rlHistoryLogger *""'"); - } - arg1 = reinterpret_cast< rlHistoryLogger * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlHistoryLogger_pushLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlHistoryLogger *arg1 = (rlHistoryLogger *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlHistoryLogger_pushLine",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlHistoryLogger, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlHistoryLogger_pushLine" "', argument " "1"" of type '" "rlHistoryLogger *""'"); - } - arg1 = reinterpret_cast< rlHistoryLogger * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlHistoryLogger_pushLine" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->pushLine((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlHistoryLogger_firstLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlHistoryLogger *arg1 = (rlHistoryLogger *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlHistoryLogger_firstLine",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlHistoryLogger, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlHistoryLogger_firstLine" "', argument " "1"" of type '" "rlHistoryLogger *""'"); - } - arg1 = reinterpret_cast< rlHistoryLogger * >(argp1); - result = (char *)(arg1)->firstLine(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlHistoryLogger_nextLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlHistoryLogger *arg1 = (rlHistoryLogger *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlHistoryLogger_nextLine",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlHistoryLogger, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlHistoryLogger_nextLine" "', argument " "1"" of type '" "rlHistoryLogger *""'"); - } - arg1 = reinterpret_cast< rlHistoryLogger * >(argp1); - result = (char *)(arg1)->nextLine(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlHistoryLogger_mutex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlHistoryLogger *arg1 = (rlHistoryLogger *) 0 ; - rlMutex *arg2 = (rlMutex *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlHistoryLogger_mutex_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlHistoryLogger, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlHistoryLogger_mutex_set" "', argument " "1"" of type '" "rlHistoryLogger *""'"); - } - arg1 = reinterpret_cast< rlHistoryLogger * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlMutex, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlHistoryLogger_mutex_set" "', argument " "2"" of type '" "rlMutex *""'"); - } - arg2 = reinterpret_cast< rlMutex * >(argp2); - if (arg1) (arg1)->mutex = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlHistoryLogger_mutex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlHistoryLogger *arg1 = (rlHistoryLogger *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - rlMutex *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlHistoryLogger_mutex_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlHistoryLogger, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlHistoryLogger_mutex_get" "', argument " "1"" of type '" "rlHistoryLogger *""'"); - } - arg1 = reinterpret_cast< rlHistoryLogger * >(argp1); - result = (rlMutex *)& ((arg1)->mutex); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlMutex, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlHistoryLogger_debug_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlHistoryLogger *arg1 = (rlHistoryLogger *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlHistoryLogger_debug_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlHistoryLogger, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlHistoryLogger_debug_set" "', argument " "1"" of type '" "rlHistoryLogger *""'"); - } - arg1 = reinterpret_cast< rlHistoryLogger * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlHistoryLogger_debug_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->debug = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlHistoryLogger_debug_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlHistoryLogger *arg1 = (rlHistoryLogger *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlHistoryLogger_debug_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlHistoryLogger, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlHistoryLogger_debug_get" "', argument " "1"" of type '" "rlHistoryLogger *""'"); - } - arg1 = reinterpret_cast< rlHistoryLogger * >(argp1); - result = (int) ((arg1)->debug); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlHistoryLogger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlHistoryLogger, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_rlHistoryReaderLine_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _rlHistoryReaderLine_ *arg1 = (_rlHistoryReaderLine_ *) 0 ; - _rlHistoryReaderLine_ *arg2 = (_rlHistoryReaderLine_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlHistoryReaderLine_next_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__rlHistoryReaderLine_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlHistoryReaderLine_next_set" "', argument " "1"" of type '" "_rlHistoryReaderLine_ *""'"); - } - arg1 = reinterpret_cast< _rlHistoryReaderLine_ * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__rlHistoryReaderLine_, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlHistoryReaderLine_next_set" "', argument " "2"" of type '" "_rlHistoryReaderLine_ *""'"); - } - arg2 = reinterpret_cast< _rlHistoryReaderLine_ * >(argp2); - if (arg1) (arg1)->next = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlHistoryReaderLine_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _rlHistoryReaderLine_ *arg1 = (_rlHistoryReaderLine_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - _rlHistoryReaderLine_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlHistoryReaderLine_next_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__rlHistoryReaderLine_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlHistoryReaderLine_next_get" "', argument " "1"" of type '" "_rlHistoryReaderLine_ *""'"); - } - arg1 = reinterpret_cast< _rlHistoryReaderLine_ * >(argp1); - result = (_rlHistoryReaderLine_ *) ((arg1)->next); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__rlHistoryReaderLine_, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlHistoryReaderLine_line_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _rlHistoryReaderLine_ *arg1 = (_rlHistoryReaderLine_ *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlHistoryReaderLine_line_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__rlHistoryReaderLine_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlHistoryReaderLine_line_set" "', argument " "1"" of type '" "_rlHistoryReaderLine_ *""'"); - } - arg1 = reinterpret_cast< _rlHistoryReaderLine_ * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlHistoryReaderLine_line_set" "', argument " "2"" of type '" "char *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - if (arg1->line) delete[] arg1->line; - if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->line = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); - } else { - arg1->line = 0; - } - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlHistoryReaderLine_line_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _rlHistoryReaderLine_ *arg1 = (_rlHistoryReaderLine_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlHistoryReaderLine_line_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__rlHistoryReaderLine_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlHistoryReaderLine_line_get" "', argument " "1"" of type '" "_rlHistoryReaderLine_ *""'"); - } - arg1 = reinterpret_cast< _rlHistoryReaderLine_ * >(argp1); - result = (char *) ((arg1)->line); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlHistoryReaderLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _rlHistoryReaderLine_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlHistoryReaderLine")) SWIG_fail; - result = (_rlHistoryReaderLine_ *)new _rlHistoryReaderLine_(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__rlHistoryReaderLine_, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_rlHistoryReaderLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _rlHistoryReaderLine_ *arg1 = (_rlHistoryReaderLine_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlHistoryReaderLine",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__rlHistoryReaderLine_, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlHistoryReaderLine" "', argument " "1"" of type '" "_rlHistoryReaderLine_ *""'"); - } - arg1 = reinterpret_cast< _rlHistoryReaderLine_ * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlHistoryReaderLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p__rlHistoryReaderLine_, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlHistoryReader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlHistoryReader *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlHistoryReader")) SWIG_fail; - result = (rlHistoryReader *)new rlHistoryReader(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlHistoryReader, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_rlHistoryReader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlHistoryReader *arg1 = (rlHistoryReader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlHistoryReader",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlHistoryReader, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlHistoryReader" "', argument " "1"" of type '" "rlHistoryReader *""'"); - } - arg1 = reinterpret_cast< rlHistoryReader * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlHistoryReader_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlHistoryReader *arg1 = (rlHistoryReader *) 0 ; - char *arg2 = (char *) 0 ; - rlTime *arg3 = (rlTime *) 0 ; - rlTime *arg4 = (rlTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlHistoryReader_read",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlHistoryReader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlHistoryReader_read" "', argument " "1"" of type '" "rlHistoryReader *""'"); - } - arg1 = reinterpret_cast< rlHistoryReader * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlHistoryReader_read" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlHistoryReader_read" "', argument " "3"" of type '" "rlTime *""'"); - } - arg3 = reinterpret_cast< rlTime * >(argp3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlHistoryReader_read" "', argument " "4"" of type '" "rlTime *""'"); - } - arg4 = reinterpret_cast< rlTime * >(argp4); - result = (int)(arg1)->read((char const *)arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlHistoryReader_firstLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlHistoryReader *arg1 = (rlHistoryReader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlHistoryReader_firstLine",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlHistoryReader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlHistoryReader_firstLine" "', argument " "1"" of type '" "rlHistoryReader *""'"); - } - arg1 = reinterpret_cast< rlHistoryReader * >(argp1); - result = (char *)(arg1)->firstLine(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlHistoryReader_nextLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlHistoryReader *arg1 = (rlHistoryReader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlHistoryReader_nextLine",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlHistoryReader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlHistoryReader_nextLine" "', argument " "1"" of type '" "rlHistoryReader *""'"); - } - arg1 = reinterpret_cast< rlHistoryReader * >(argp1); - result = (char *)(arg1)->nextLine(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlHistoryReader_clean(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlHistoryReader *arg1 = (rlHistoryReader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlHistoryReader_clean",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlHistoryReader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlHistoryReader_clean" "', argument " "1"" of type '" "rlHistoryReader *""'"); - } - arg1 = reinterpret_cast< rlHistoryReader * >(argp1); - result = (int)(arg1)->clean(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlHistoryReader_cat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlHistoryReader *arg1 = (rlHistoryReader *) 0 ; - char *arg2 = (char *) 0 ; - FILE *arg3 = (FILE *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlHistoryReader_cat",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlHistoryReader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlHistoryReader_cat" "', argument " "1"" of type '" "rlHistoryReader *""'"); - } - arg1 = reinterpret_cast< rlHistoryReader * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlHistoryReader_cat" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_FILE, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlHistoryReader_cat" "', argument " "3"" of type '" "FILE *""'"); - } - arg3 = reinterpret_cast< FILE * >(argp3); - result = (int)(arg1)->cat((char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlHistoryReader_debug_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlHistoryReader *arg1 = (rlHistoryReader *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlHistoryReader_debug_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlHistoryReader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlHistoryReader_debug_set" "', argument " "1"" of type '" "rlHistoryReader *""'"); - } - arg1 = reinterpret_cast< rlHistoryReader * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlHistoryReader_debug_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->debug = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlHistoryReader_debug_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlHistoryReader *arg1 = (rlHistoryReader *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlHistoryReader_debug_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlHistoryReader, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlHistoryReader_debug_get" "', argument " "1"" of type '" "rlHistoryReader *""'"); - } - arg1 = reinterpret_cast< rlHistoryReader * >(argp1); - result = (int) ((arg1)->debug); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlHistoryReader_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlHistoryReader, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlIniFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlIniFile *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlIniFile")) SWIG_fail; - result = (rlIniFile *)new rlIniFile(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlIniFile, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_rlIniFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlIniFile *arg1 = (rlIniFile *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlIniFile",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlIniFile, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlIniFile" "', argument " "1"" of type '" "rlIniFile *""'"); - } - arg1 = reinterpret_cast< rlIniFile * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlIniFile_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlIniFile *arg1 = (rlIniFile *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlIniFile_read",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlIniFile, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlIniFile_read" "', argument " "1"" of type '" "rlIniFile *""'"); - } - arg1 = reinterpret_cast< rlIniFile * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlIniFile_read" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->read((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlIniFile_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlIniFile *arg1 = (rlIniFile *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlIniFile_write",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlIniFile, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlIniFile_write" "', argument " "1"" of type '" "rlIniFile *""'"); - } - arg1 = reinterpret_cast< rlIniFile * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlIniFile_write" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->write((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlIniFile_filename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlIniFile *arg1 = (rlIniFile *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlIniFile_filename",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlIniFile, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlIniFile_filename" "', argument " "1"" of type '" "rlIniFile *""'"); - } - arg1 = reinterpret_cast< rlIniFile * >(argp1); - result = (char *)(arg1)->filename(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlIniFile_text(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlIniFile *arg1 = (rlIniFile *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlIniFile_text",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlIniFile, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlIniFile_text" "', argument " "1"" of type '" "rlIniFile *""'"); - } - arg1 = reinterpret_cast< rlIniFile * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlIniFile_text" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlIniFile_text" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (char *)(arg1)->text((char const *)arg2,(char const *)arg3); - resultobj = SWIG_FromCharPtr((const char *)result); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlIniFile_setText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlIniFile *arg1 = (rlIniFile *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlIniFile_setText",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlIniFile, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlIniFile_setText" "', argument " "1"" of type '" "rlIniFile *""'"); - } - arg1 = reinterpret_cast< rlIniFile * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlIniFile_setText" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlIniFile_setText" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlIniFile_setText" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - (arg1)->setText((char const *)arg2,(char const *)arg3,(char const *)arg4); - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlIniFile_printf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - rlIniFile *arg1 = (rlIniFile *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - void *arg5 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlIniFile_printf",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlIniFile, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlIniFile_printf" "', argument " "1"" of type '" "rlIniFile *""'"); - } - arg1 = reinterpret_cast< rlIniFile * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlIniFile_printf" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlIniFile_printf" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlIniFile_printf" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)(arg1)->printf((char const *)arg2,(char const *)arg3,(char const *)arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlIniFile_printf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,4); - varargs = PyTuple_GetSlice(args,4,PyTuple_Size(args)); - resultobj = _wrap_rlIniFile_printf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_rlIniFile_remove__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlIniFile *arg1 = (rlIniFile *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlIniFile_remove",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlIniFile, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlIniFile_remove" "', argument " "1"" of type '" "rlIniFile *""'"); - } - arg1 = reinterpret_cast< rlIniFile * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlIniFile_remove" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - (arg1)->remove((char const *)arg2); - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlIniFile_remove__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlIniFile *arg1 = (rlIniFile *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlIniFile_remove",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlIniFile, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlIniFile_remove" "', argument " "1"" of type '" "rlIniFile *""'"); - } - arg1 = reinterpret_cast< rlIniFile * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlIniFile_remove" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlIniFile_remove" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - (arg1)->remove((char const *)arg2,(char const *)arg3); - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlIniFile_remove(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlIniFile, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlIniFile_remove__SWIG_0(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlIniFile, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlIniFile_remove__SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlIniFile_remove'.\n" - " Possible C/C++ prototypes are:\n" - " rlIniFile::remove(char const *)\n" - " rlIniFile::remove(char const *,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlIniFile_firstSection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlIniFile *arg1 = (rlIniFile *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlIniFile_firstSection",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlIniFile, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlIniFile_firstSection" "', argument " "1"" of type '" "rlIniFile *""'"); - } - arg1 = reinterpret_cast< rlIniFile * >(argp1); - result = (char *)(arg1)->firstSection(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlIniFile_nextSection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlIniFile *arg1 = (rlIniFile *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlIniFile_nextSection",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlIniFile, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlIniFile_nextSection" "', argument " "1"" of type '" "rlIniFile *""'"); - } - arg1 = reinterpret_cast< rlIniFile * >(argp1); - result = (char *)(arg1)->nextSection(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlIniFile_firstName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlIniFile *arg1 = (rlIniFile *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlIniFile_firstName",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlIniFile, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlIniFile_firstName" "', argument " "1"" of type '" "rlIniFile *""'"); - } - arg1 = reinterpret_cast< rlIniFile * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlIniFile_firstName" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (char *)(arg1)->firstName((char const *)arg2); - resultobj = SWIG_FromCharPtr((const char *)result); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlIniFile_nextName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlIniFile *arg1 = (rlIniFile *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlIniFile_nextName",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlIniFile, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlIniFile_nextName" "', argument " "1"" of type '" "rlIniFile *""'"); - } - arg1 = reinterpret_cast< rlIniFile * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlIniFile_nextName" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (char *)(arg1)->nextName((char const *)arg2); - resultobj = SWIG_FromCharPtr((const char *)result); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlIniFile_setDefaultSection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlIniFile *arg1 = (rlIniFile *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlIniFile_setDefaultSection",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlIniFile, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlIniFile_setDefaultSection" "', argument " "1"" of type '" "rlIniFile *""'"); - } - arg1 = reinterpret_cast< rlIniFile * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlIniFile_setDefaultSection" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - (arg1)->setDefaultSection((char const *)arg2); - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlIniFile_defaultSection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlIniFile *arg1 = (rlIniFile *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlIniFile_defaultSection",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlIniFile, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlIniFile_defaultSection" "', argument " "1"" of type '" "rlIniFile *""'"); - } - arg1 = reinterpret_cast< rlIniFile * >(argp1); - result = (char *)(arg1)->defaultSection(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlIniFile_i18n__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlIniFile *arg1 = (rlIniFile *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlIniFile_i18n",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlIniFile, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlIniFile_i18n" "', argument " "1"" of type '" "rlIniFile *""'"); - } - arg1 = reinterpret_cast< rlIniFile * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlIniFile_i18n" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlIniFile_i18n" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (char *)(arg1)->i18n((char const *)arg2,(char const *)arg3); - resultobj = SWIG_FromCharPtr((const char *)result); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlIniFile_i18n__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlIniFile *arg1 = (rlIniFile *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlIniFile_i18n",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlIniFile, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlIniFile_i18n" "', argument " "1"" of type '" "rlIniFile *""'"); - } - arg1 = reinterpret_cast< rlIniFile * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlIniFile_i18n" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (char *)(arg1)->i18n((char const *)arg2); - resultobj = SWIG_FromCharPtr((const char *)result); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlIniFile_i18n(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlIniFile, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlIniFile_i18n__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlIniFile, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlIniFile_i18n__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlIniFile_i18n'.\n" - " Possible C/C++ prototypes are:\n" - " rlIniFile::i18n(char const *,char const *)\n" - " rlIniFile::i18n(char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlIniFile_tr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlIniFile *arg1 = (rlIniFile *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlIniFile_tr",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlIniFile, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlIniFile_tr" "', argument " "1"" of type '" "rlIniFile *""'"); - } - arg1 = reinterpret_cast< rlIniFile * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlIniFile_tr" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (char *)(arg1)->tr((char const *)arg2); - resultobj = SWIG_FromCharPtr((const char *)result); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *rlIniFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlIniFile, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_rlSetTranslator__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSetTranslator",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSetTranslator" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSetTranslator" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)rlSetTranslator((char const *)arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSetTranslator__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSetTranslator",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSetTranslator" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (int)rlSetTranslator((char const *)arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSetTranslator(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlSetTranslator__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlSetTranslator__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlSetTranslator'.\n" - " Possible C/C++ prototypes are:\n" - " rlSetTranslator(char const *,char const *)\n" - " rlSetTranslator(char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_new_rlInterpreter__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - rlInterpreter *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_rlInterpreter",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlInterpreter" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (rlInterpreter *)new rlInterpreter(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlInterpreter, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlInterpreter__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlInterpreter *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlInterpreter")) SWIG_fail; - result = (rlInterpreter *)new rlInterpreter(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlInterpreter, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlInterpreter(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[2]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_rlInterpreter__SWIG_1(self, args); - } - if (argc == 1) { - int _v; - { - int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlInterpreter__SWIG_0(self, args); - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_rlInterpreter'.\n" - " Possible C/C++ prototypes are:\n" - " rlInterpreter::rlInterpreter(int)\n" - " rlInterpreter::rlInterpreter()\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_delete_rlInterpreter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlInterpreter *arg1 = (rlInterpreter *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlInterpreter",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlInterpreter, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlInterpreter" "', argument " "1"" of type '" "rlInterpreter *""'"); - } - arg1 = reinterpret_cast< rlInterpreter * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlInterpreter_line_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlInterpreter *arg1 = (rlInterpreter *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlInterpreter_line_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlInterpreter, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlInterpreter_line_set" "', argument " "1"" of type '" "rlInterpreter *""'"); - } - arg1 = reinterpret_cast< rlInterpreter * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlInterpreter_line_set" "', argument " "2"" of type '" "char *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - if (arg1->line) delete[] arg1->line; - if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->line = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); - } else { - arg1->line = 0; - } - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlInterpreter_line_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlInterpreter *arg1 = (rlInterpreter *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlInterpreter_line_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlInterpreter, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlInterpreter_line_get" "', argument " "1"" of type '" "rlInterpreter *""'"); - } - arg1 = reinterpret_cast< rlInterpreter * >(argp1); - result = (char *) ((arg1)->line); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlInterpreter_isCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlInterpreter *arg1 = (rlInterpreter *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlInterpreter_isCommand",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlInterpreter, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlInterpreter_isCommand" "', argument " "1"" of type '" "rlInterpreter *""'"); - } - arg1 = reinterpret_cast< rlInterpreter * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlInterpreter_isCommand" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->isCommand((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlInterpreter_copyStringParam(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlInterpreter *arg1 = (rlInterpreter *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlInterpreter_copyStringParam",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlInterpreter, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlInterpreter_copyStringParam" "', argument " "1"" of type '" "rlInterpreter *""'"); - } - arg1 = reinterpret_cast< rlInterpreter * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlInterpreter_copyStringParam" "', argument " "2"" of type '" "char *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlInterpreter_copyStringParam" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - (arg1)->copyStringParam(arg2,arg3); - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlInterpreter_maxchar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlInterpreter *arg1 = (rlInterpreter *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlInterpreter_maxchar",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlInterpreter, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlInterpreter_maxchar" "', argument " "1"" of type '" "rlInterpreter *""'"); - } - arg1 = reinterpret_cast< rlInterpreter * >(argp1); - result = (int)(arg1)->maxchar(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlInterpreter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlInterpreter, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlMailbox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - rlMailbox *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_rlMailbox",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlMailbox" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (rlMailbox *)new rlMailbox((char const *)arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlMailbox, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_rlMailbox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlMailbox *arg1 = (rlMailbox *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlMailbox",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlMailbox, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlMailbox" "', argument " "1"" of type '" "rlMailbox *""'"); - } - arg1 = reinterpret_cast< rlMailbox * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlMailbox_write__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlMailbox *arg1 = (rlMailbox *) 0 ; - void *arg2 = (void *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlMailbox_write",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlMailbox, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlMailbox_write" "', argument " "1"" of type '" "rlMailbox *""'"); - } - arg1 = reinterpret_cast< rlMailbox * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlMailbox_write" "', argument " "2"" of type '" "void const *""'"); - } - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlMailbox_write" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->write((void const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlMailbox_printf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - rlMailbox *arg1 = (rlMailbox *) 0 ; - char *arg2 = (char *) 0 ; - void *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlMailbox_printf",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlMailbox, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlMailbox_printf" "', argument " "1"" of type '" "rlMailbox *""'"); - } - arg1 = reinterpret_cast< rlMailbox * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlMailbox_printf" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->printf((char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlMailbox_printf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,2); - varargs = PyTuple_GetSlice(args,2,PyTuple_Size(args)); - resultobj = _wrap_rlMailbox_printf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_rlMailbox_read__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlMailbox *arg1 = (rlMailbox *) 0 ; - void *arg2 = (void *) 0 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlMailbox_read",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlMailbox, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlMailbox_read" "', argument " "1"" of type '" "rlMailbox *""'"); - } - arg1 = reinterpret_cast< rlMailbox * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlMailbox_read" "', argument " "2"" of type '" "void *""'"); - } - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlMailbox_read" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlMailbox_read" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)(arg1)->read(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlMailbox_read__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlMailbox *arg1 = (rlMailbox *) 0 ; - void *arg2 = (void *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlMailbox_read",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlMailbox, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlMailbox_read" "', argument " "1"" of type '" "rlMailbox *""'"); - } - arg1 = reinterpret_cast< rlMailbox * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlMailbox_read" "', argument " "2"" of type '" "void *""'"); - } - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlMailbox_read" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->read(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlMailbox_setReadBufferSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlMailbox *arg1 = (rlMailbox *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlMailbox_setReadBufferSize",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlMailbox, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlMailbox_setReadBufferSize" "', argument " "1"" of type '" "rlMailbox *""'"); - } - arg1 = reinterpret_cast< rlMailbox * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlMailbox_setReadBufferSize" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->setReadBufferSize(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlMailbox_read__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlMailbox *arg1 = (rlMailbox *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlMailbox_read",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlMailbox, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlMailbox_read" "', argument " "1"" of type '" "rlMailbox *""'"); - } - arg1 = reinterpret_cast< rlMailbox * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlMailbox_read" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (char *)(arg1)->read(arg2); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlMailbox_read__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlMailbox *arg1 = (rlMailbox *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlMailbox_read",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlMailbox, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlMailbox_read" "', argument " "1"" of type '" "rlMailbox *""'"); - } - arg1 = reinterpret_cast< rlMailbox * >(argp1); - result = (char *)(arg1)->read(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlMailbox_read(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlMailbox, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlMailbox_read__SWIG_3(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlMailbox, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlMailbox_read__SWIG_2(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlMailbox, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *ptr = 0; - int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlMailbox_read__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlMailbox, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *ptr = 0; - int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlMailbox_read__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlMailbox_read'.\n" - " Possible C/C++ prototypes are:\n" - " rlMailbox::read(void *,int,int)\n" - " rlMailbox::read(void *,int)\n" - " rlMailbox::read(int)\n" - " rlMailbox::read()\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlMailbox_write__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlMailbox *arg1 = (rlMailbox *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlMailbox_write",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlMailbox, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlMailbox_write" "', argument " "1"" of type '" "rlMailbox *""'"); - } - arg1 = reinterpret_cast< rlMailbox * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlMailbox_write" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->write((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlMailbox_write(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlMailbox, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlMailbox_write__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlMailbox, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *ptr = 0; - int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlMailbox_write__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlMailbox_write'.\n" - " Possible C/C++ prototypes are:\n" - " rlMailbox::write(void const *,int)\n" - " rlMailbox::write(char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlMailbox_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlMailbox *arg1 = (rlMailbox *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlMailbox_clear",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlMailbox, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlMailbox_clear" "', argument " "1"" of type '" "rlMailbox *""'"); - } - arg1 = reinterpret_cast< rlMailbox * >(argp1); - (arg1)->clear(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlMailbox_status_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlMailbox *arg1 = (rlMailbox *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlMailbox_status_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlMailbox, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlMailbox_status_set" "', argument " "1"" of type '" "rlMailbox *""'"); - } - arg1 = reinterpret_cast< rlMailbox * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlMailbox_status_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->status = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlMailbox_status_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlMailbox *arg1 = (rlMailbox *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlMailbox_status_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlMailbox, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlMailbox_status_get" "', argument " "1"" of type '" "rlMailbox *""'"); - } - arg1 = reinterpret_cast< rlMailbox * >(argp1); - result = (int) ((arg1)->status); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlMailbox_name_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlMailbox *arg1 = (rlMailbox *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlMailbox_name_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlMailbox, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlMailbox_name_set" "', argument " "1"" of type '" "rlMailbox *""'"); - } - arg1 = reinterpret_cast< rlMailbox * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlMailbox_name_set" "', argument " "2"" of type '" "char *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - if (arg1->name) delete[] arg1->name; - if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->name = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); - } else { - arg1->name = 0; - } - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlMailbox_name_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlMailbox *arg1 = (rlMailbox *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlMailbox_name_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlMailbox, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlMailbox_name_get" "', argument " "1"" of type '" "rlMailbox *""'"); - } - arg1 = reinterpret_cast< rlMailbox * >(argp1); - result = (char *) ((arg1)->name); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlMailbox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlMailbox, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlModbusClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - rlModbusClient *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:new_rlModbusClient",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlModbusClient" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_rlModbusClient" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_rlModbusClient" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (rlModbusClient *)new rlModbusClient((char const *)arg1,(char const *)arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlModbusClient, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_rlModbusClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbusClient *arg1 = (rlModbusClient *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlModbusClient",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbusClient, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlModbusClient" "', argument " "1"" of type '" "rlModbusClient *""'"); - } - arg1 = reinterpret_cast< rlModbusClient * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbusClient_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbusClient *arg1 = (rlModbusClient *) 0 ; - int arg2 ; - int arg3 ; - unsigned char *arg4 = (unsigned char *) 0 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlModbusClient_write",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbusClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbusClient_write" "', argument " "1"" of type '" "rlModbusClient *""'"); - } - arg1 = reinterpret_cast< rlModbusClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbusClient_write" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlModbusClient_write" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlModbusClient_write" "', argument " "4"" of type '" "unsigned char const *""'"); - } - arg4 = reinterpret_cast< unsigned char * >(argp4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlModbusClient_write" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)(arg1)->write(arg2,arg3,(unsigned char const *)arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbusClient_writeSingleCoil(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbusClient *arg1 = (rlModbusClient *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlModbusClient_writeSingleCoil",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbusClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbusClient_writeSingleCoil" "', argument " "1"" of type '" "rlModbusClient *""'"); - } - arg1 = reinterpret_cast< rlModbusClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbusClient_writeSingleCoil" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlModbusClient_writeSingleCoil" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlModbusClient_writeSingleCoil" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)(arg1)->writeSingleCoil(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbusClient_writeMultipleCoils(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbusClient *arg1 = (rlModbusClient *) 0 ; - int arg2 ; - int arg3 ; - unsigned char *arg4 = (unsigned char *) 0 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlModbusClient_writeMultipleCoils",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbusClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbusClient_writeMultipleCoils" "', argument " "1"" of type '" "rlModbusClient *""'"); - } - arg1 = reinterpret_cast< rlModbusClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbusClient_writeMultipleCoils" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlModbusClient_writeMultipleCoils" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlModbusClient_writeMultipleCoils" "', argument " "4"" of type '" "unsigned char const *""'"); - } - arg4 = reinterpret_cast< unsigned char * >(argp4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlModbusClient_writeMultipleCoils" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)(arg1)->writeMultipleCoils(arg2,arg3,(unsigned char const *)arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbusClient_writePresetSingleRegister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbusClient *arg1 = (rlModbusClient *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlModbusClient_writePresetSingleRegister",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbusClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbusClient_writePresetSingleRegister" "', argument " "1"" of type '" "rlModbusClient *""'"); - } - arg1 = reinterpret_cast< rlModbusClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbusClient_writePresetSingleRegister" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlModbusClient_writePresetSingleRegister" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlModbusClient_writePresetSingleRegister" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)(arg1)->writePresetSingleRegister(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbusClient_writePresetMultipleRegisters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbusClient *arg1 = (rlModbusClient *) 0 ; - int arg2 ; - int arg3 ; - int *arg4 = (int *) 0 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlModbusClient_writePresetMultipleRegisters",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbusClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbusClient_writePresetMultipleRegisters" "', argument " "1"" of type '" "rlModbusClient *""'"); - } - arg1 = reinterpret_cast< rlModbusClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbusClient_writePresetMultipleRegisters" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlModbusClient_writePresetMultipleRegisters" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlModbusClient_writePresetMultipleRegisters" "', argument " "4"" of type '" "int const *""'"); - } - arg4 = reinterpret_cast< int * >(argp4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlModbusClient_writePresetMultipleRegisters" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)(arg1)->writePresetMultipleRegisters(arg2,arg3,(int const *)arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbusClient_readBit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbusClient *arg1 = (rlModbusClient *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlModbusClient_readBit",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbusClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbusClient_readBit" "', argument " "1"" of type '" "rlModbusClient *""'"); - } - arg1 = reinterpret_cast< rlModbusClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbusClient_readBit" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlModbusClient_readBit" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->readBit(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbusClient_readByte(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbusClient *arg1 = (rlModbusClient *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlModbusClient_readByte",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbusClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbusClient_readByte" "', argument " "1"" of type '" "rlModbusClient *""'"); - } - arg1 = reinterpret_cast< rlModbusClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbusClient_readByte" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlModbusClient_readByte" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->readByte(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbusClient_readShort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbusClient *arg1 = (rlModbusClient *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlModbusClient_readShort",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbusClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbusClient_readShort" "', argument " "1"" of type '" "rlModbusClient *""'"); - } - arg1 = reinterpret_cast< rlModbusClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbusClient_readShort" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlModbusClient_readShort" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->readShort(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlModbusClient_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlModbusClient, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlModbus__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - long arg1 ; - int arg2 ; - char arg3 ; - long val1 ; - int ecode1 = 0 ; - int val2 ; - int ecode2 = 0 ; - char val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - rlModbus *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:new_rlModbus",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlModbus" "', argument " "1"" of type '" "long""'"); - } - arg1 = static_cast< long >(val1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_rlModbus" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_char(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_rlModbus" "', argument " "3"" of type '" "char""'"); - } - arg3 = static_cast< char >(val3); - result = (rlModbus *)new rlModbus(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlModbus, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlModbus__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - long arg1 ; - int arg2 ; - long val1 ; - int ecode1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - rlModbus *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_rlModbus",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlModbus" "', argument " "1"" of type '" "long""'"); - } - arg1 = static_cast< long >(val1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_rlModbus" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (rlModbus *)new rlModbus(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlModbus, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlModbus__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - long arg1 ; - long val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - rlModbus *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_rlModbus",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlModbus" "', argument " "1"" of type '" "long""'"); - } - arg1 = static_cast< long >(val1); - result = (rlModbus *)new rlModbus(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlModbus, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlModbus__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlModbus")) SWIG_fail; - result = (rlModbus *)new rlModbus(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlModbus, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlModbus(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_rlModbus__SWIG_3(self, args); - } - if (argc == 1) { - int _v; - { - int res = SWIG_AsVal_long(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlModbus__SWIG_2(self, args); - } - } - if (argc == 2) { - int _v; - { - int res = SWIG_AsVal_long(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlModbus__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - { - int res = SWIG_AsVal_long(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_char(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlModbus__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_rlModbus'.\n" - " Possible C/C++ prototypes are:\n" - " rlModbus::rlModbus(long,int,char)\n" - " rlModbus::rlModbus(long,int)\n" - " rlModbus::rlModbus(long)\n" - " rlModbus::rlModbus()\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_delete_rlModbus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlModbus",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlModbus" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_write__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - int arg2 ; - int arg3 ; - unsigned char *arg4 = (unsigned char *) 0 ; - int arg5 ; - int *arg6 = (int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - int val5 ; - int ecode5 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:rlModbus_write",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_write" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbus_write" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlModbus_write" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlModbus_write" "', argument " "4"" of type '" "unsigned char const *""'"); - } - arg4 = reinterpret_cast< unsigned char * >(argp4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlModbus_write" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "rlModbus_write" "', argument " "6"" of type '" "int *""'"); - } - arg6 = reinterpret_cast< int * >(argp6); - result = (int)(arg1)->write(arg2,arg3,(unsigned char const *)arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_write__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - int arg2 ; - int arg3 ; - unsigned char *arg4 = (unsigned char *) 0 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlModbus_write",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_write" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbus_write" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlModbus_write" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlModbus_write" "', argument " "4"" of type '" "unsigned char const *""'"); - } - arg4 = reinterpret_cast< unsigned char * >(argp4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlModbus_write" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)(arg1)->write(arg2,arg3,(unsigned char const *)arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_write(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlModbus, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlModbus_write__SWIG_1(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlModbus, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlModbus_write__SWIG_0(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlModbus_write'.\n" - " Possible C/C++ prototypes are:\n" - " rlModbus::write(int,int,unsigned char const *,int,int *)\n" - " rlModbus::write(int,int,unsigned char const *,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_request(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlModbus_request",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_request" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbus_request" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlModbus_request" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlModbus_request" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlModbus_request" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)(arg1)->request(arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_response__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - unsigned char *arg4 = (unsigned char *) 0 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlModbus_response",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_response" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlModbus_response" "', argument " "2"" of type '" "int *""'"); - } - arg2 = reinterpret_cast< int * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlModbus_response" "', argument " "3"" of type '" "int *""'"); - } - arg3 = reinterpret_cast< int * >(argp3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlModbus_response" "', argument " "4"" of type '" "unsigned char *""'"); - } - arg4 = reinterpret_cast< unsigned char * >(argp4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlModbus_response" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)(arg1)->response(arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_response__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - unsigned char *arg4 = (unsigned char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlModbus_response",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_response" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlModbus_response" "', argument " "2"" of type '" "int *""'"); - } - arg2 = reinterpret_cast< int * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlModbus_response" "', argument " "3"" of type '" "int *""'"); - } - arg3 = reinterpret_cast< int * >(argp3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlModbus_response" "', argument " "4"" of type '" "unsigned char *""'"); - } - arg4 = reinterpret_cast< unsigned char * >(argp4); - result = (int)(arg1)->response(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_response(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlModbus, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlModbus_response__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlModbus, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlModbus_response__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlModbus_response'.\n" - " Possible C/C++ prototypes are:\n" - " rlModbus::response(int *,int *,unsigned char *,int)\n" - " rlModbus::response(int *,int *,unsigned char *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_readRequest__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - unsigned char *arg4 = (unsigned char *) 0 ; - int arg5 ; - int *arg6 = (int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - int val5 ; - int ecode5 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:rlModbus_readRequest",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_readRequest" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlModbus_readRequest" "', argument " "2"" of type '" "int *""'"); - } - arg2 = reinterpret_cast< int * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlModbus_readRequest" "', argument " "3"" of type '" "int *""'"); - } - arg3 = reinterpret_cast< int * >(argp3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlModbus_readRequest" "', argument " "4"" of type '" "unsigned char *""'"); - } - arg4 = reinterpret_cast< unsigned char * >(argp4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlModbus_readRequest" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "rlModbus_readRequest" "', argument " "6"" of type '" "int *""'"); - } - arg6 = reinterpret_cast< int * >(argp6); - result = (int)(arg1)->readRequest(arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_readRequest__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - unsigned char *arg4 = (unsigned char *) 0 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlModbus_readRequest",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_readRequest" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlModbus_readRequest" "', argument " "2"" of type '" "int *""'"); - } - arg2 = reinterpret_cast< int * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlModbus_readRequest" "', argument " "3"" of type '" "int *""'"); - } - arg3 = reinterpret_cast< int * >(argp3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlModbus_readRequest" "', argument " "4"" of type '" "unsigned char *""'"); - } - arg4 = reinterpret_cast< unsigned char * >(argp4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlModbus_readRequest" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)(arg1)->readRequest(arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_readRequest__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - unsigned char *arg4 = (unsigned char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlModbus_readRequest",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_readRequest" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlModbus_readRequest" "', argument " "2"" of type '" "int *""'"); - } - arg2 = reinterpret_cast< int * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlModbus_readRequest" "', argument " "3"" of type '" "int *""'"); - } - arg3 = reinterpret_cast< int * >(argp3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlModbus_readRequest" "', argument " "4"" of type '" "unsigned char *""'"); - } - arg4 = reinterpret_cast< unsigned char * >(argp4); - result = (int)(arg1)->readRequest(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_readRequest(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlModbus, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlModbus_readRequest__SWIG_2(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlModbus, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlModbus_readRequest__SWIG_1(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlModbus, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlModbus_readRequest__SWIG_0(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlModbus_readRequest'.\n" - " Possible C/C++ prototypes are:\n" - " rlModbus::readRequest(int *,int *,unsigned char *,int,int *)\n" - " rlModbus::readRequest(int *,int *,unsigned char *,int)\n" - " rlModbus::readRequest(int *,int *,unsigned char *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_registerSocket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - rlSocket *arg2 = (rlSocket *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlModbus_registerSocket",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_registerSocket" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlSocket, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlModbus_registerSocket" "', argument " "2"" of type '" "rlSocket *""'"); - } - arg2 = reinterpret_cast< rlSocket * >(argp2); - (arg1)->registerSocket(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_registerSerial(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - rlSerial *arg2 = (rlSerial *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlModbus_registerSerial",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_registerSerial" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlSerial, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlModbus_registerSerial" "', argument " "2"" of type '" "rlSerial *""'"); - } - arg2 = reinterpret_cast< rlSerial * >(argp2); - (arg1)->registerSerial(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_data2int(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - unsigned char *arg2 = (unsigned char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlModbus_data2int",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_data2int" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlModbus_data2int" "', argument " "2"" of type '" "unsigned char const *""'"); - } - arg2 = reinterpret_cast< unsigned char * >(argp2); - result = (int)(arg1)->data2int((unsigned char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_int2data(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - int arg2 ; - unsigned char *arg3 = (unsigned char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlModbus_int2data",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_int2data" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbus_int2data" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlModbus_int2data" "', argument " "3"" of type '" "unsigned char *""'"); - } - arg3 = reinterpret_cast< unsigned char * >(argp3); - result = (int)(arg1)->int2data(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_intsize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlModbus_intsize",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_intsize" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - result = (int)(arg1)->intsize(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_autoreconnectSocket_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlModbus_autoreconnectSocket_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_autoreconnectSocket_set" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbus_autoreconnectSocket_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->autoreconnectSocket = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_autoreconnectSocket_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlModbus_autoreconnectSocket_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_autoreconnectSocket_get" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - result = (int) ((arg1)->autoreconnectSocket); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_readCoilStatus__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - unsigned char *arg5 = (unsigned char *) 0 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:rlModbus_readCoilStatus",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_readCoilStatus" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbus_readCoilStatus" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlModbus_readCoilStatus" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlModbus_readCoilStatus" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "rlModbus_readCoilStatus" "', argument " "5"" of type '" "unsigned char *""'"); - } - arg5 = reinterpret_cast< unsigned char * >(argp5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "rlModbus_readCoilStatus" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)(arg1)->readCoilStatus(arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_readCoilStatus__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - unsigned char *arg5 = (unsigned char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlModbus_readCoilStatus",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_readCoilStatus" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbus_readCoilStatus" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlModbus_readCoilStatus" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlModbus_readCoilStatus" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "rlModbus_readCoilStatus" "', argument " "5"" of type '" "unsigned char *""'"); - } - arg5 = reinterpret_cast< unsigned char * >(argp5); - result = (int)(arg1)->readCoilStatus(arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_readCoilStatus(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlModbus, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlModbus_readCoilStatus__SWIG_1(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlModbus, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlModbus_readCoilStatus__SWIG_0(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlModbus_readCoilStatus'.\n" - " Possible C/C++ prototypes are:\n" - " rlModbus::readCoilStatus(int,int,int,unsigned char *,int)\n" - " rlModbus::readCoilStatus(int,int,int,unsigned char *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_readInputStatus__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - unsigned char *arg5 = (unsigned char *) 0 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:rlModbus_readInputStatus",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_readInputStatus" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbus_readInputStatus" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlModbus_readInputStatus" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlModbus_readInputStatus" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "rlModbus_readInputStatus" "', argument " "5"" of type '" "unsigned char *""'"); - } - arg5 = reinterpret_cast< unsigned char * >(argp5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "rlModbus_readInputStatus" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)(arg1)->readInputStatus(arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_readInputStatus__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - unsigned char *arg5 = (unsigned char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlModbus_readInputStatus",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_readInputStatus" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbus_readInputStatus" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlModbus_readInputStatus" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlModbus_readInputStatus" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "rlModbus_readInputStatus" "', argument " "5"" of type '" "unsigned char *""'"); - } - arg5 = reinterpret_cast< unsigned char * >(argp5); - result = (int)(arg1)->readInputStatus(arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_readInputStatus(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlModbus, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlModbus_readInputStatus__SWIG_1(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlModbus, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlModbus_readInputStatus__SWIG_0(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlModbus_readInputStatus'.\n" - " Possible C/C++ prototypes are:\n" - " rlModbus::readInputStatus(int,int,int,unsigned char *,int)\n" - " rlModbus::readInputStatus(int,int,int,unsigned char *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_readHoldingRegisters__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int *arg5 = (int *) 0 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:rlModbus_readHoldingRegisters",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_readHoldingRegisters" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbus_readHoldingRegisters" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlModbus_readHoldingRegisters" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlModbus_readHoldingRegisters" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "rlModbus_readHoldingRegisters" "', argument " "5"" of type '" "int *""'"); - } - arg5 = reinterpret_cast< int * >(argp5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "rlModbus_readHoldingRegisters" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)(arg1)->readHoldingRegisters(arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_readHoldingRegisters__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int *arg5 = (int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlModbus_readHoldingRegisters",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_readHoldingRegisters" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbus_readHoldingRegisters" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlModbus_readHoldingRegisters" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlModbus_readHoldingRegisters" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "rlModbus_readHoldingRegisters" "', argument " "5"" of type '" "int *""'"); - } - arg5 = reinterpret_cast< int * >(argp5); - result = (int)(arg1)->readHoldingRegisters(arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_readHoldingRegisters(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlModbus, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlModbus_readHoldingRegisters__SWIG_1(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlModbus, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlModbus_readHoldingRegisters__SWIG_0(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlModbus_readHoldingRegisters'.\n" - " Possible C/C++ prototypes are:\n" - " rlModbus::readHoldingRegisters(int,int,int,int *,int)\n" - " rlModbus::readHoldingRegisters(int,int,int,int *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_readInputRegisters__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int *arg5 = (int *) 0 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:rlModbus_readInputRegisters",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_readInputRegisters" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbus_readInputRegisters" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlModbus_readInputRegisters" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlModbus_readInputRegisters" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "rlModbus_readInputRegisters" "', argument " "5"" of type '" "int *""'"); - } - arg5 = reinterpret_cast< int * >(argp5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "rlModbus_readInputRegisters" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)(arg1)->readInputRegisters(arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_readInputRegisters__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int *arg5 = (int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlModbus_readInputRegisters",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_readInputRegisters" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbus_readInputRegisters" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlModbus_readInputRegisters" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlModbus_readInputRegisters" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "rlModbus_readInputRegisters" "', argument " "5"" of type '" "int *""'"); - } - arg5 = reinterpret_cast< int * >(argp5); - result = (int)(arg1)->readInputRegisters(arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_readInputRegisters(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlModbus, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlModbus_readInputRegisters__SWIG_1(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlModbus, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlModbus_readInputRegisters__SWIG_0(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlModbus_readInputRegisters'.\n" - " Possible C/C++ prototypes are:\n" - " rlModbus::readInputRegisters(int,int,int,int *,int)\n" - " rlModbus::readInputRegisters(int,int,int,int *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_forceSingleCoil__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlModbus_forceSingleCoil",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_forceSingleCoil" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbus_forceSingleCoil" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlModbus_forceSingleCoil" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlModbus_forceSingleCoil" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlModbus_forceSingleCoil" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)(arg1)->forceSingleCoil(arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_forceSingleCoil__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlModbus_forceSingleCoil",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_forceSingleCoil" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbus_forceSingleCoil" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlModbus_forceSingleCoil" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlModbus_forceSingleCoil" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)(arg1)->forceSingleCoil(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_forceSingleCoil(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlModbus, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlModbus_forceSingleCoil__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlModbus, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlModbus_forceSingleCoil__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlModbus_forceSingleCoil'.\n" - " Possible C/C++ prototypes are:\n" - " rlModbus::forceSingleCoil(int,int,int,int)\n" - " rlModbus::forceSingleCoil(int,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_presetSingleRegister__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlModbus_presetSingleRegister",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_presetSingleRegister" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbus_presetSingleRegister" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlModbus_presetSingleRegister" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlModbus_presetSingleRegister" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlModbus_presetSingleRegister" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)(arg1)->presetSingleRegister(arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_presetSingleRegister__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlModbus_presetSingleRegister",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_presetSingleRegister" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbus_presetSingleRegister" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlModbus_presetSingleRegister" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlModbus_presetSingleRegister" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)(arg1)->presetSingleRegister(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_presetSingleRegister(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlModbus, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlModbus_presetSingleRegister__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlModbus, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlModbus_presetSingleRegister__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlModbus_presetSingleRegister'.\n" - " Possible C/C++ prototypes are:\n" - " rlModbus::presetSingleRegister(int,int,int,int)\n" - " rlModbus::presetSingleRegister(int,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_forceMultipleCoils__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - unsigned char *arg5 = (unsigned char *) 0 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:rlModbus_forceMultipleCoils",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_forceMultipleCoils" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbus_forceMultipleCoils" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlModbus_forceMultipleCoils" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlModbus_forceMultipleCoils" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "rlModbus_forceMultipleCoils" "', argument " "5"" of type '" "unsigned char *""'"); - } - arg5 = reinterpret_cast< unsigned char * >(argp5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "rlModbus_forceMultipleCoils" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)(arg1)->forceMultipleCoils(arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_forceMultipleCoils__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - unsigned char *arg5 = (unsigned char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlModbus_forceMultipleCoils",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_forceMultipleCoils" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbus_forceMultipleCoils" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlModbus_forceMultipleCoils" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlModbus_forceMultipleCoils" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "rlModbus_forceMultipleCoils" "', argument " "5"" of type '" "unsigned char *""'"); - } - arg5 = reinterpret_cast< unsigned char * >(argp5); - result = (int)(arg1)->forceMultipleCoils(arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_forceMultipleCoils(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlModbus, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlModbus_forceMultipleCoils__SWIG_1(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlModbus, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlModbus_forceMultipleCoils__SWIG_0(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlModbus_forceMultipleCoils'.\n" - " Possible C/C++ prototypes are:\n" - " rlModbus::forceMultipleCoils(int,int,int,unsigned char *,int)\n" - " rlModbus::forceMultipleCoils(int,int,int,unsigned char *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_presetMultipleRegisters__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int *arg5 = (int *) 0 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:rlModbus_presetMultipleRegisters",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_presetMultipleRegisters" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbus_presetMultipleRegisters" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlModbus_presetMultipleRegisters" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlModbus_presetMultipleRegisters" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "rlModbus_presetMultipleRegisters" "', argument " "5"" of type '" "int *""'"); - } - arg5 = reinterpret_cast< int * >(argp5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "rlModbus_presetMultipleRegisters" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)(arg1)->presetMultipleRegisters(arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_presetMultipleRegisters__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlModbus *arg1 = (rlModbus *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int *arg5 = (int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlModbus_presetMultipleRegisters",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlModbus, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlModbus_presetMultipleRegisters" "', argument " "1"" of type '" "rlModbus *""'"); - } - arg1 = reinterpret_cast< rlModbus * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlModbus_presetMultipleRegisters" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlModbus_presetMultipleRegisters" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlModbus_presetMultipleRegisters" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "rlModbus_presetMultipleRegisters" "', argument " "5"" of type '" "int *""'"); - } - arg5 = reinterpret_cast< int * >(argp5); - result = (int)(arg1)->presetMultipleRegisters(arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlModbus_presetMultipleRegisters(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlModbus, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlModbus_presetMultipleRegisters__SWIG_1(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlModbus, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlModbus_presetMultipleRegisters__SWIG_0(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlModbus_presetMultipleRegisters'.\n" - " Possible C/C++ prototypes are:\n" - " rlModbus::presetMultipleRegisters(int,int,int,int *,int)\n" - " rlModbus::presetMultipleRegisters(int,int,int,int *)\n"); - return 0; -} - - -SWIGINTERN PyObject *rlModbus_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlModbus, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlOpcXmlDa__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - long arg3 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - long val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - rlOpcXmlDa *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:new_rlOpcXmlDa",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlOpcXmlDa" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_rlOpcXmlDa" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_long(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_rlOpcXmlDa" "', argument " "3"" of type '" "long""'"); - } - arg3 = static_cast< long >(val3); - result = (rlOpcXmlDa *)new rlOpcXmlDa((char const *)arg1,(char const *)arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlOpcXmlDa, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlOpcXmlDa__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - rlOpcXmlDa *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_rlOpcXmlDa",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlOpcXmlDa" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_rlOpcXmlDa" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (rlOpcXmlDa *)new rlOpcXmlDa((char const *)arg1,(char const *)arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlOpcXmlDa, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlOpcXmlDa__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - rlOpcXmlDa *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_rlOpcXmlDa",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlOpcXmlDa" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (rlOpcXmlDa *)new rlOpcXmlDa((char const *)arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlOpcXmlDa, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlOpcXmlDa__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlOpcXmlDa *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlOpcXmlDa")) SWIG_fail; - result = (rlOpcXmlDa *)new rlOpcXmlDa(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlOpcXmlDa, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlOpcXmlDa(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_rlOpcXmlDa__SWIG_3(self, args); - } - if (argc == 1) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_rlOpcXmlDa__SWIG_2(self, args); - } - } - if (argc == 2) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_rlOpcXmlDa__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_long(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlOpcXmlDa__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_rlOpcXmlDa'.\n" - " Possible C/C++ prototypes are:\n" - " rlOpcXmlDa::rlOpcXmlDa(char const *,char const *,long)\n" - " rlOpcXmlDa::rlOpcXmlDa(char const *,char const *)\n" - " rlOpcXmlDa::rlOpcXmlDa(char const *)\n" - " rlOpcXmlDa::rlOpcXmlDa()\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_delete_rlOpcXmlDa(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlOpcXmlDa *arg1 = (rlOpcXmlDa *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlOpcXmlDa",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlOpcXmlDa, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlOpcXmlDa" "', argument " "1"" of type '" "rlOpcXmlDa *""'"); - } - arg1 = reinterpret_cast< rlOpcXmlDa * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlOpcXmlDa_stringValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlOpcXmlDa *arg1 = (rlOpcXmlDa *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlOpcXmlDa_stringValue",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlOpcXmlDa, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlOpcXmlDa_stringValue" "', argument " "1"" of type '" "rlOpcXmlDa *""'"); - } - arg1 = reinterpret_cast< rlOpcXmlDa * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlOpcXmlDa_stringValue" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (char *)(arg1)->stringValue((char const *)arg2); - resultobj = SWIG_FromCharPtr((const char *)result); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlOpcXmlDa_intValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlOpcXmlDa *arg1 = (rlOpcXmlDa *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlOpcXmlDa_intValue",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlOpcXmlDa, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlOpcXmlDa_intValue" "', argument " "1"" of type '" "rlOpcXmlDa *""'"); - } - arg1 = reinterpret_cast< rlOpcXmlDa * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlOpcXmlDa_intValue" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->intValue((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlOpcXmlDa_floatValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlOpcXmlDa *arg1 = (rlOpcXmlDa *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlOpcXmlDa_floatValue",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlOpcXmlDa, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlOpcXmlDa_floatValue" "', argument " "1"" of type '" "rlOpcXmlDa *""'"); - } - arg1 = reinterpret_cast< rlOpcXmlDa * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlOpcXmlDa_floatValue" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (float)(arg1)->floatValue((char const *)arg2); - resultobj = SWIG_From_float(static_cast< float >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlOpcXmlDa_writeStringValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlOpcXmlDa *arg1 = (rlOpcXmlDa *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlOpcXmlDa_writeStringValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlOpcXmlDa, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlOpcXmlDa_writeStringValue" "', argument " "1"" of type '" "rlOpcXmlDa *""'"); - } - arg1 = reinterpret_cast< rlOpcXmlDa * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlOpcXmlDa_writeStringValue" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlOpcXmlDa_writeStringValue" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)(arg1)->writeStringValue((char const *)arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlOpcXmlDa_writeIntValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlOpcXmlDa *arg1 = (rlOpcXmlDa *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlOpcXmlDa_writeIntValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlOpcXmlDa, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlOpcXmlDa_writeIntValue" "', argument " "1"" of type '" "rlOpcXmlDa *""'"); - } - arg1 = reinterpret_cast< rlOpcXmlDa * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlOpcXmlDa_writeIntValue" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlOpcXmlDa_writeIntValue" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->writeIntValue((char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlOpcXmlDa_writeFloatValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlOpcXmlDa *arg1 = (rlOpcXmlDa *) 0 ; - char *arg2 = (char *) 0 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlOpcXmlDa_writeFloatValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlOpcXmlDa, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlOpcXmlDa_writeFloatValue" "', argument " "1"" of type '" "rlOpcXmlDa *""'"); - } - arg1 = reinterpret_cast< rlOpcXmlDa * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlOpcXmlDa_writeFloatValue" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlOpcXmlDa_writeFloatValue" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)(arg1)->writeFloatValue((char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlOpcXmlDa_readErrorCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlOpcXmlDa *arg1 = (rlOpcXmlDa *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlOpcXmlDa_readErrorCount",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlOpcXmlDa, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlOpcXmlDa_readErrorCount" "', argument " "1"" of type '" "rlOpcXmlDa *""'"); - } - arg1 = reinterpret_cast< rlOpcXmlDa * >(argp1); - result = (int)(arg1)->readErrorCount(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlOpcXmlDa_writeErrorCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlOpcXmlDa *arg1 = (rlOpcXmlDa *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlOpcXmlDa_writeErrorCount",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlOpcXmlDa, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlOpcXmlDa_writeErrorCount" "', argument " "1"" of type '" "rlOpcXmlDa *""'"); - } - arg1 = reinterpret_cast< rlOpcXmlDa * >(argp1); - result = (int)(arg1)->writeErrorCount(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlOpcXmlDa_shmStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlOpcXmlDa *arg1 = (rlOpcXmlDa *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlOpcXmlDa_shmStatus",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlOpcXmlDa, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlOpcXmlDa_shmStatus" "', argument " "1"" of type '" "rlOpcXmlDa *""'"); - } - arg1 = reinterpret_cast< rlOpcXmlDa * >(argp1); - result = (int)(arg1)->shmStatus(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlOpcXmlDa_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlOpcXmlDa, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlPcontrol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPcontrol *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlPcontrol")) SWIG_fail; - result = (rlPcontrol *)new rlPcontrol(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlPcontrol, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_rlPcontrol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPcontrol *arg1 = (rlPcontrol *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlPcontrol",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPcontrol, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlPcontrol" "', argument " "1"" of type '" "rlPcontrol *""'"); - } - arg1 = reinterpret_cast< rlPcontrol * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPcontrol_setStartupCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPcontrol *arg1 = (rlPcontrol *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlPcontrol_setStartupCommand",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPcontrol, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPcontrol_setStartupCommand" "', argument " "1"" of type '" "rlPcontrol *""'"); - } - arg1 = reinterpret_cast< rlPcontrol * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlPcontrol_setStartupCommand" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlPcontrol_setStartupCommand" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - (arg1)->setStartupCommand((char const *)arg2,(char const *)arg3); - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPcontrol_start(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPcontrol *arg1 = (rlPcontrol *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPcontrol_start",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPcontrol, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPcontrol_start" "', argument " "1"" of type '" "rlPcontrol *""'"); - } - arg1 = reinterpret_cast< rlPcontrol * >(argp1); - result = (int)(arg1)->start(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPcontrol_sigterm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPcontrol *arg1 = (rlPcontrol *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPcontrol_sigterm",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPcontrol, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPcontrol_sigterm" "', argument " "1"" of type '" "rlPcontrol *""'"); - } - arg1 = reinterpret_cast< rlPcontrol * >(argp1); - result = (int)(arg1)->sigterm(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPcontrol_sigkill(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPcontrol *arg1 = (rlPcontrol *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPcontrol_sigkill",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPcontrol, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPcontrol_sigkill" "', argument " "1"" of type '" "rlPcontrol *""'"); - } - arg1 = reinterpret_cast< rlPcontrol * >(argp1); - result = (int)(arg1)->sigkill(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPcontrol_isAlive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPcontrol *arg1 = (rlPcontrol *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPcontrol_isAlive",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPcontrol, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPcontrol_isAlive" "', argument " "1"" of type '" "rlPcontrol *""'"); - } - arg1 = reinterpret_cast< rlPcontrol * >(argp1); - result = (int)(arg1)->isAlive(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPcontrol_startupCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPcontrol *arg1 = (rlPcontrol *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPcontrol_startupCommand",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPcontrol, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPcontrol_startupCommand" "', argument " "1"" of type '" "rlPcontrol *""'"); - } - arg1 = reinterpret_cast< rlPcontrol * >(argp1); - result = (char *)(arg1)->startupCommand(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPcontrol_processName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPcontrol *arg1 = (rlPcontrol *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPcontrol_processName",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPcontrol, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPcontrol_processName" "', argument " "1"" of type '" "rlPcontrol *""'"); - } - arg1 = reinterpret_cast< rlPcontrol * >(argp1); - result = (char *)(arg1)->processName(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPcontrol_processTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPcontrol *arg1 = (rlPcontrol *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - rlTime *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPcontrol_processTime",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPcontrol, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPcontrol_processTime" "', argument " "1"" of type '" "rlPcontrol *""'"); - } - arg1 = reinterpret_cast< rlPcontrol * >(argp1); - result = (rlTime *)(arg1)->processTime(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlTime, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPcontrol_setPID(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPcontrol *arg1 = (rlPcontrol *) 0 ; - long arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPcontrol_setPID",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPcontrol, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPcontrol_setPID" "', argument " "1"" of type '" "rlPcontrol *""'"); - } - arg1 = reinterpret_cast< rlPcontrol * >(argp1); - ecode2 = SWIG_AsVal_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPcontrol_setPID" "', argument " "2"" of type '" "long""'"); - } - arg2 = static_cast< long >(val2); - (arg1)->setPID(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPcontrol_pid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPcontrol *arg1 = (rlPcontrol *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - long result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPcontrol_pid",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPcontrol, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPcontrol_pid" "', argument " "1"" of type '" "rlPcontrol *""'"); - } - arg1 = reinterpret_cast< rlPcontrol * >(argp1); - result = (long)(arg1)->pid(); - resultobj = SWIG_From_long(static_cast< long >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPcontrol_getNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPcontrol *arg1 = (rlPcontrol *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - rlPcontrol *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPcontrol_getNext",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPcontrol, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPcontrol_getNext" "', argument " "1"" of type '" "rlPcontrol *""'"); - } - arg1 = reinterpret_cast< rlPcontrol * >(argp1); - result = (rlPcontrol *)(arg1)->getNext(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlPcontrol, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPcontrol_addNew(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPcontrol *arg1 = (rlPcontrol *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - rlPcontrol *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPcontrol_addNew",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPcontrol, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPcontrol_addNew" "', argument " "1"" of type '" "rlPcontrol *""'"); - } - arg1 = reinterpret_cast< rlPcontrol * >(argp1); - result = (rlPcontrol *)(arg1)->addNew(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlPcontrol, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPcontrol_setPriority(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPcontrol *arg1 = (rlPcontrol *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPcontrol_setPriority",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPcontrol, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPcontrol_setPriority" "', argument " "1"" of type '" "rlPcontrol *""'"); - } - arg1 = reinterpret_cast< rlPcontrol * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPcontrol_setPriority" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - (arg1)->setPriority(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPcontrol_priority(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPcontrol *arg1 = (rlPcontrol *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPcontrol_priority",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPcontrol, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPcontrol_priority" "', argument " "1"" of type '" "rlPcontrol *""'"); - } - arg1 = reinterpret_cast< rlPcontrol * >(argp1); - result = (int)(arg1)->priority(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlPcontrol_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlPcontrol, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlPlcState__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - int val1 ; - int ecode1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - rlPlcState *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:new_rlPlcState",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlPlcState" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_rlPlcState" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_rlPlcState" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_rlPlcState" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (rlPlcState *)new rlPlcState(arg1,arg2,arg3,(char const *)arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlPlcState, SWIG_POINTER_NEW | 0 ); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlPlcState__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int arg2 ; - int arg3 ; - int val1 ; - int ecode1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - rlPlcState *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:new_rlPlcState",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlPlcState" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_rlPlcState" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_rlPlcState" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (rlPlcState *)new rlPlcState(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlPlcState, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlPlcState__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int arg2 ; - int val1 ; - int ecode1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - rlPlcState *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_rlPlcState",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlPlcState" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_rlPlcState" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (rlPlcState *)new rlPlcState(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlPlcState, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlPlcState__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - rlPlcState *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_rlPlcState",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlPlcState" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (rlPlcState *)new rlPlcState(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlPlcState, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlPlcState__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlPlcState")) SWIG_fail; - result = (rlPlcState *)new rlPlcState(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlPlcState, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlPlcState(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_rlPlcState__SWIG_4(self, args); - } - if (argc == 1) { - int _v; - { - int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlPlcState__SWIG_3(self, args); - } - } - if (argc == 2) { - int _v; - { - int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlPlcState__SWIG_2(self, args); - } - } - } - if (argc == 3) { - int _v; - { - int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlPlcState__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - { - int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_rlPlcState__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_rlPlcState'.\n" - " Possible C/C++ prototypes are:\n" - " rlPlcState::rlPlcState(int,int,int,char const *)\n" - " rlPlcState::rlPlcState(int,int,int)\n" - " rlPlcState::rlPlcState(int,int)\n" - " rlPlcState::rlPlcState(int)\n" - " rlPlcState::rlPlcState()\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_delete_rlPlcState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlPlcState",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlPlcState" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_i_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - int *arg2 = (int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcState_i_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_i_set" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlPlcState_i_set" "', argument " "2"" of type '" "int *""'"); - } - arg2 = reinterpret_cast< int * >(argp2); - if (arg1) (arg1)->i = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_i_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcState_i_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_i_get" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - result = (int *) ((arg1)->i); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_i_old_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - int *arg2 = (int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcState_i_old_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_i_old_set" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlPlcState_i_old_set" "', argument " "2"" of type '" "int *""'"); - } - arg2 = reinterpret_cast< int * >(argp2); - if (arg1) (arg1)->i_old = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_i_old_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcState_i_old_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_i_old_get" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - result = (int *) ((arg1)->i_old); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_f_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - float *arg2 = (float *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcState_f_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_f_set" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlPlcState_f_set" "', argument " "2"" of type '" "float *""'"); - } - arg2 = reinterpret_cast< float * >(argp2); - if (arg1) (arg1)->f = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_f_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - float *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcState_f_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_f_get" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - result = (float *) ((arg1)->f); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_f_old_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - float *arg2 = (float *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcState_f_old_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_f_old_set" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlPlcState_f_old_set" "', argument " "2"" of type '" "float *""'"); - } - arg2 = reinterpret_cast< float * >(argp2); - if (arg1) (arg1)->f_old = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_f_old_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - float *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcState_f_old_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_f_old_get" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - result = (float *) ((arg1)->f_old); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_d_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - double *arg2 = (double *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcState_d_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_d_set" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_double, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlPlcState_d_set" "', argument " "2"" of type '" "double *""'"); - } - arg2 = reinterpret_cast< double * >(argp2); - if (arg1) (arg1)->d = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_d_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - double *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcState_d_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_d_get" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - result = (double *) ((arg1)->d); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_d_old_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - double *arg2 = (double *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcState_d_old_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_d_old_set" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_double, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlPlcState_d_old_set" "', argument " "2"" of type '" "double *""'"); - } - arg2 = reinterpret_cast< double * >(argp2); - if (arg1) (arg1)->d_old = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_d_old_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - double *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcState_d_old_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_d_old_get" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - result = (double *) ((arg1)->d_old); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_clear__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcState_clear",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_clear" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - (arg1)->clear(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_rememberState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcState_rememberState",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_rememberState" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - (arg1)->rememberState(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_intChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcState_intChanged",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_intChanged" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcState_intChanged" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->intChanged(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_floatChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcState_floatChanged",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_floatChanged" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcState_floatChanged" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->floatChanged(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_doubleChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcState_doubleChanged",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_doubleChanged" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcState_doubleChanged" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->doubleChanged(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_intHasIncreased(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcState_intHasIncreased",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_intHasIncreased" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcState_intHasIncreased" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->intHasIncreased(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_floatHasIncreased(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcState_floatHasIncreased",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_floatHasIncreased" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcState_floatHasIncreased" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->floatHasIncreased(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_doubleHasIncreased(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcState_doubleHasIncreased",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_doubleHasIncreased" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcState_doubleHasIncreased" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->doubleHasIncreased(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_intHasDecreased(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcState_intHasDecreased",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_intHasDecreased" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcState_intHasDecreased" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->intHasDecreased(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_floatHasDecreased(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcState_floatHasDecreased",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_floatHasDecreased" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcState_floatHasDecreased" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->floatHasDecreased(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_doubleHasDecreased(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcState_doubleHasDecreased",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_doubleHasDecreased" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcState_doubleHasDecreased" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->doubleHasDecreased(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_deltaInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcState_deltaInt",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_deltaInt" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcState_deltaInt" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->deltaInt(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_deltaFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcState_deltaFloat",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_deltaFloat" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcState_deltaFloat" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (float)(arg1)->deltaFloat(arg2); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_deltaDouble(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - double result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcState_deltaDouble",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_deltaDouble" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcState_deltaDouble" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (double)(arg1)->deltaDouble(arg2); - resultobj = SWIG_From_double(static_cast< double >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlPlcState_set",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_set" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcState_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlPlcState_set" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - (arg1)->set(arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_clear__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlPlcState_clear",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_clear" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcState_clear" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlPlcState_clear" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - (arg1)->clear(arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_clear(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlPlcState, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlPlcState_clear__SWIG_0(self, args); - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlPlcState, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlPlcState_clear__SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlPlcState_clear'.\n" - " Possible C/C++ prototypes are:\n" - " rlPlcState::clear()\n" - " rlPlcState::clear(int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_isSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlPlcState_isSet",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_isSet" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcState_isSet" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlPlcState_isSet" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->isSet(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_isClear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlPlcState_isClear",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_isClear" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcState_isClear" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlPlcState_isClear" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->isClear(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_hasBeenSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlPlcState_hasBeenSet",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_hasBeenSet" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcState_hasBeenSet" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlPlcState_hasBeenSet" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->hasBeenSet(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_hasBeenCleared(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlPlcState_hasBeenCleared",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_hasBeenCleared" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcState_hasBeenCleared" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlPlcState_hasBeenCleared" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->hasBeenCleared(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_maxInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcState_maxInt",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_maxInt" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - result = (int)(arg1)->maxInt(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_maxFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcState_maxFloat",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_maxFloat" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - result = (int)(arg1)->maxFloat(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_maxDouble(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcState_maxDouble",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_maxDouble" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - result = (int)(arg1)->maxDouble(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_getInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcState_getInt",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_getInt" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcState_getInt" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->getInt(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_getFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcState_getFloat",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_getFloat" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcState_getFloat" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (float)(arg1)->getFloat(arg2); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_getDouble(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - double result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcState_getDouble",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_getDouble" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcState_getDouble" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (double)(arg1)->getDouble(arg2); - resultobj = SWIG_From_double(static_cast< double >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_getOldInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcState_getOldInt",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_getOldInt" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcState_getOldInt" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->getOldInt(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_getOldFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcState_getOldFloat",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_getOldFloat" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcState_getOldFloat" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (float)(arg1)->getOldFloat(arg2); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_getOldDouble(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - double result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcState_getOldDouble",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_getOldDouble" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcState_getOldDouble" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (double)(arg1)->getOldDouble(arg2); - resultobj = SWIG_From_double(static_cast< double >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_shm_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - rlSharedMemory *arg2 = (rlSharedMemory *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcState_shm_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_shm_set" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlSharedMemory, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlPlcState_shm_set" "', argument " "2"" of type '" "rlSharedMemory *""'"); - } - arg2 = reinterpret_cast< rlSharedMemory * >(argp2); - if (arg1) (arg1)->shm = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcState_shm_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcState *arg1 = (rlPlcState *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - rlSharedMemory *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcState_shm_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcState, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcState_shm_get" "', argument " "1"" of type '" "rlPlcState *""'"); - } - arg1 = reinterpret_cast< rlPlcState * >(argp1); - result = (rlSharedMemory *) ((arg1)->shm); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSharedMemory, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlPlcState_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlPlcState, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlPlcMem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlPlcMem")) SWIG_fail; - result = (rlPlcMem *)new rlPlcMem(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlPlcMem, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_rlPlcMem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlPlcMem",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlPlcMem" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_i_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcMem_i_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_i_set" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcMem_i_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->i = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_i_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcMem_i_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_i_get" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - result = (int) ((arg1)->i); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_i_old_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcMem_i_old_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_i_old_set" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcMem_i_old_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->i_old = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_i_old_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcMem_i_old_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_i_old_get" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - result = (int) ((arg1)->i_old); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_f_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - float arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcMem_f_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_f_set" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcMem_f_set" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - if (arg1) (arg1)->f = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_f_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcMem_f_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_f_get" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - result = (float) ((arg1)->f); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_f_old_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - float arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcMem_f_old_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_f_old_set" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcMem_f_old_set" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - if (arg1) (arg1)->f_old = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_f_old_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcMem_f_old_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_f_old_get" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - result = (float) ((arg1)->f_old); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_d_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - double arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - double val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcMem_d_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_d_set" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - ecode2 = SWIG_AsVal_double(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcMem_d_set" "', argument " "2"" of type '" "double""'"); - } - arg2 = static_cast< double >(val2); - if (arg1) (arg1)->d = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_d_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - double result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcMem_d_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_d_get" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - result = (double) ((arg1)->d); - resultobj = SWIG_From_double(static_cast< double >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_d_old_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - double arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - double val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcMem_d_old_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_d_old_set" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - ecode2 = SWIG_AsVal_double(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcMem_d_old_set" "', argument " "2"" of type '" "double""'"); - } - arg2 = static_cast< double >(val2); - if (arg1) (arg1)->d_old = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_d_old_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - double result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcMem_d_old_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_d_old_get" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - result = (double) ((arg1)->d_old); - resultobj = SWIG_From_double(static_cast< double >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_rememberState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcMem_rememberState",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_rememberState" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - (arg1)->rememberState(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_intChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcMem_intChanged",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_intChanged" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - result = (int)(arg1)->intChanged(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_floatChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcMem_floatChanged",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_floatChanged" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - result = (int)(arg1)->floatChanged(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_doubleChanged(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcMem_doubleChanged",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_doubleChanged" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - result = (int)(arg1)->doubleChanged(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_intHasIncreased(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcMem_intHasIncreased",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_intHasIncreased" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - result = (int)(arg1)->intHasIncreased(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_floatHasIncreased(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcMem_floatHasIncreased",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_floatHasIncreased" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - result = (int)(arg1)->floatHasIncreased(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_doubleHasIncreased(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcMem_doubleHasIncreased",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_doubleHasIncreased" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - result = (int)(arg1)->doubleHasIncreased(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_intHasDecreased(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcMem_intHasDecreased",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_intHasDecreased" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - result = (int)(arg1)->intHasDecreased(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_floatHasDecreased(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcMem_floatHasDecreased",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_floatHasDecreased" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - result = (int)(arg1)->floatHasDecreased(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_doubleHasDecreased(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcMem_doubleHasDecreased",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_doubleHasDecreased" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - result = (int)(arg1)->doubleHasDecreased(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_deltaInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcMem_deltaInt",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_deltaInt" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - result = (int)(arg1)->deltaInt(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_deltaFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcMem_deltaFloat",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_deltaFloat" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - result = (float)(arg1)->deltaFloat(); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_deltaDouble(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - double result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPlcMem_deltaDouble",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_deltaDouble" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - result = (double)(arg1)->deltaDouble(); - resultobj = SWIG_From_double(static_cast< double >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcMem_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_set" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcMem_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - (arg1)->set(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcMem_clear",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_clear" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcMem_clear" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - (arg1)->clear(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_isSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcMem_isSet",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_isSet" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcMem_isSet" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->isSet(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_isClear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcMem_isClear",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_isClear" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcMem_isClear" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->isClear(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_hasBeenSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcMem_hasBeenSet",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_hasBeenSet" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcMem_hasBeenSet" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->hasBeenSet(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPlcMem_hasBeenCleared(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPlcMem *arg1 = (rlPlcMem *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPlcMem_hasBeenCleared",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPlcMem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPlcMem_hasBeenCleared" "', argument " "1"" of type '" "rlPlcMem *""'"); - } - arg1 = reinterpret_cast< rlPlcMem * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPlcMem_hasBeenCleared" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->hasBeenCleared(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlPlcMem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlPlcMem, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlPPIClient__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int arg4 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - rlPPIClient *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:new_rlPPIClient",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlPPIClient" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_rlPPIClient" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_rlPPIClient" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_rlPPIClient" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (rlPPIClient *)new rlPPIClient((char const *)arg1,(char const *)arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlPPIClient, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlPPIClient__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - rlPPIClient *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:new_rlPPIClient",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlPPIClient" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_rlPPIClient" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_rlPPIClient" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (rlPPIClient *)new rlPPIClient((char const *)arg1,(char const *)arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlPPIClient, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlPPIClient(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlPPIClient__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlPPIClient__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_rlPPIClient'.\n" - " Possible C/C++ prototypes are:\n" - " rlPPIClient::rlPPIClient(char const *,char const *,int,int)\n" - " rlPPIClient::rlPPIClient(char const *,char const *,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_delete_rlPPIClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPPIClient *arg1 = (rlPPIClient *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlPPIClient",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPPIClient, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlPPIClient" "', argument " "1"" of type '" "rlPPIClient *""'"); - } - arg1 = reinterpret_cast< rlPPIClient * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPPIClient_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPPIClient *arg1 = (rlPPIClient *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - unsigned char *arg7 = (unsigned char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - void *argp7 = 0 ; - int res7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:rlPPIClient_write",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPPIClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPPIClient_write" "', argument " "1"" of type '" "rlPPIClient *""'"); - } - arg1 = reinterpret_cast< rlPPIClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPPIClient_write" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlPPIClient_write" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlPPIClient_write" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlPPIClient_write" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "rlPPIClient_write" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "rlPPIClient_write" "', argument " "7"" of type '" "unsigned char const *""'"); - } - arg7 = reinterpret_cast< unsigned char * >(argp7); - result = (int)(arg1)->write(arg2,arg3,arg4,arg5,arg6,(unsigned char const *)arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPPIClient_writeFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPPIClient *arg1 = (rlPPIClient *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - float *arg7 = (float *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - void *argp7 = 0 ; - int res7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:rlPPIClient_writeFloat",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPPIClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPPIClient_writeFloat" "', argument " "1"" of type '" "rlPPIClient *""'"); - } - arg1 = reinterpret_cast< rlPPIClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPPIClient_writeFloat" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlPPIClient_writeFloat" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlPPIClient_writeFloat" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlPPIClient_writeFloat" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "rlPPIClient_writeFloat" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "rlPPIClient_writeFloat" "', argument " "7"" of type '" "float const *""'"); - } - arg7 = reinterpret_cast< float * >(argp7); - result = (int)(arg1)->writeFloat(arg2,arg3,arg4,arg5,arg6,(float const *)arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPPIClient_writeDword(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPPIClient *arg1 = (rlPPIClient *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int *arg7 = (int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - void *argp7 = 0 ; - int res7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:rlPPIClient_writeDword",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPPIClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPPIClient_writeDword" "', argument " "1"" of type '" "rlPPIClient *""'"); - } - arg1 = reinterpret_cast< rlPPIClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPPIClient_writeDword" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlPPIClient_writeDword" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlPPIClient_writeDword" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlPPIClient_writeDword" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "rlPPIClient_writeDword" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "rlPPIClient_writeDword" "', argument " "7"" of type '" "int const *""'"); - } - arg7 = reinterpret_cast< int * >(argp7); - result = (int)(arg1)->writeDword(arg2,arg3,arg4,arg5,arg6,(int const *)arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPPIClient_writeShort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPPIClient *arg1 = (rlPPIClient *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - short *arg7 = (short *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - void *argp7 = 0 ; - int res7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:rlPPIClient_writeShort",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPPIClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPPIClient_writeShort" "', argument " "1"" of type '" "rlPPIClient *""'"); - } - arg1 = reinterpret_cast< rlPPIClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPPIClient_writeShort" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlPPIClient_writeShort" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlPPIClient_writeShort" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlPPIClient_writeShort" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "rlPPIClient_writeShort" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_short, 0 | 0 ); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "rlPPIClient_writeShort" "', argument " "7"" of type '" "short const *""'"); - } - arg7 = reinterpret_cast< short * >(argp7); - result = (int)(arg1)->writeShort(arg2,arg3,arg4,arg5,arg6,(short const *)arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPPIClient_writeUDword(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPPIClient *arg1 = (rlPPIClient *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - unsigned int *arg7 = (unsigned int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - void *argp7 = 0 ; - int res7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:rlPPIClient_writeUDword",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPPIClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPPIClient_writeUDword" "', argument " "1"" of type '" "rlPPIClient *""'"); - } - arg1 = reinterpret_cast< rlPPIClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPPIClient_writeUDword" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlPPIClient_writeUDword" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlPPIClient_writeUDword" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlPPIClient_writeUDword" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "rlPPIClient_writeUDword" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_unsigned_int, 0 | 0 ); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "rlPPIClient_writeUDword" "', argument " "7"" of type '" "unsigned int const *""'"); - } - arg7 = reinterpret_cast< unsigned int * >(argp7); - result = (int)(arg1)->writeUDword(arg2,arg3,arg4,arg5,arg6,(unsigned int const *)arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPPIClient_writeUShort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPPIClient *arg1 = (rlPPIClient *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - unsigned short *arg7 = (unsigned short *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - void *argp7 = 0 ; - int res7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:rlPPIClient_writeUShort",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPPIClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPPIClient_writeUShort" "', argument " "1"" of type '" "rlPPIClient *""'"); - } - arg1 = reinterpret_cast< rlPPIClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPPIClient_writeUShort" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlPPIClient_writeUShort" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlPPIClient_writeUShort" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlPPIClient_writeUShort" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "rlPPIClient_writeUShort" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_unsigned_short, 0 | 0 ); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "rlPPIClient_writeUShort" "', argument " "7"" of type '" "unsigned short const *""'"); - } - arg7 = reinterpret_cast< unsigned short * >(argp7); - result = (int)(arg1)->writeUShort(arg2,arg3,arg4,arg5,arg6,(unsigned short const *)arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPPIClient_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPPIClient *arg1 = (rlPPIClient *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlPPIClient_read",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPPIClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPPIClient_read" "', argument " "1"" of type '" "rlPPIClient *""'"); - } - arg1 = reinterpret_cast< rlPPIClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPPIClient_read" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlPPIClient_read" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->read(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPPIClient_Float(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPPIClient *arg1 = (rlPPIClient *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPPIClient_Float",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPPIClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPPIClient_Float" "', argument " "1"" of type '" "rlPPIClient *""'"); - } - arg1 = reinterpret_cast< rlPPIClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPPIClient_Float" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (float)(arg1)->Float(arg2); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPPIClient_Dword(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPPIClient *arg1 = (rlPPIClient *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPPIClient_Dword",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPPIClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPPIClient_Dword" "', argument " "1"" of type '" "rlPPIClient *""'"); - } - arg1 = reinterpret_cast< rlPPIClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPPIClient_Dword" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->Dword(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPPIClient_Short(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPPIClient *arg1 = (rlPPIClient *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPPIClient_Short",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPPIClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPPIClient_Short" "', argument " "1"" of type '" "rlPPIClient *""'"); - } - arg1 = reinterpret_cast< rlPPIClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPPIClient_Short" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->Short(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPPIClient_UDword(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPPIClient *arg1 = (rlPPIClient *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - unsigned int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPPIClient_UDword",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPPIClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPPIClient_UDword" "', argument " "1"" of type '" "rlPPIClient *""'"); - } - arg1 = reinterpret_cast< rlPPIClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPPIClient_UDword" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (unsigned int)(arg1)->UDword(arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPPIClient_UShort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPPIClient *arg1 = (rlPPIClient *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - unsigned int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPPIClient_UShort",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPPIClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPPIClient_UShort" "', argument " "1"" of type '" "rlPPIClient *""'"); - } - arg1 = reinterpret_cast< rlPPIClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlPPIClient_UShort" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (unsigned int)(arg1)->UShort(arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPPIClient_buf_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPPIClient *arg1 = (rlPPIClient *) 0 ; - unsigned char *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlPPIClient_buf_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPPIClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPPIClient_buf_set" "', argument " "1"" of type '" "rlPPIClient *""'"); - } - arg1 = reinterpret_cast< rlPPIClient * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlPPIClient_buf_set" "', argument " "2"" of type '" "unsigned char [512]""'"); - } - arg2 = reinterpret_cast< unsigned char * >(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)512; ++ii) arg1->buf[ii] = arg2[ii]; - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""buf""' of type '""unsigned char [512]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlPPIClient_buf_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlPPIClient *arg1 = (rlPPIClient *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - unsigned char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlPPIClient_buf_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlPPIClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlPPIClient_buf_get" "', argument " "1"" of type '" "rlPPIClient *""'"); - } - arg1 = reinterpret_cast< rlPPIClient * >(argp1); - result = (unsigned char *)(unsigned char *) ((arg1)->buf); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlPPIClient_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlPPIClient, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlSerial(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSerial *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlSerial")) SWIG_fail; - result = (rlSerial *)new rlSerial(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSerial, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_rlSerial(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSerial *arg1 = (rlSerial *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlSerial",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSerial, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlSerial" "', argument " "1"" of type '" "rlSerial *""'"); - } - arg1 = reinterpret_cast< rlSerial * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSerial_openDevice__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSerial *arg1 = (rlSerial *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:rlSerial_openDevice",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSerial, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSerial_openDevice" "', argument " "1"" of type '" "rlSerial *""'"); - } - arg1 = reinterpret_cast< rlSerial * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSerial_openDevice" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSerial_openDevice" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSerial_openDevice" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlSerial_openDevice" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "rlSerial_openDevice" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "rlSerial_openDevice" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "rlSerial_openDevice" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - result = (int)(arg1)->openDevice((char const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSerial_openDevice__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSerial *arg1 = (rlSerial *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:rlSerial_openDevice",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSerial, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSerial_openDevice" "', argument " "1"" of type '" "rlSerial *""'"); - } - arg1 = reinterpret_cast< rlSerial * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSerial_openDevice" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSerial_openDevice" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSerial_openDevice" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlSerial_openDevice" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "rlSerial_openDevice" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "rlSerial_openDevice" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - result = (int)(arg1)->openDevice((char const *)arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSerial_openDevice__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSerial *arg1 = (rlSerial *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:rlSerial_openDevice",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSerial, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSerial_openDevice" "', argument " "1"" of type '" "rlSerial *""'"); - } - arg1 = reinterpret_cast< rlSerial * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSerial_openDevice" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSerial_openDevice" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSerial_openDevice" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlSerial_openDevice" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "rlSerial_openDevice" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)(arg1)->openDevice((char const *)arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSerial_openDevice__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSerial *arg1 = (rlSerial *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlSerial_openDevice",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSerial, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSerial_openDevice" "', argument " "1"" of type '" "rlSerial *""'"); - } - arg1 = reinterpret_cast< rlSerial * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSerial_openDevice" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSerial_openDevice" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSerial_openDevice" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlSerial_openDevice" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)(arg1)->openDevice((char const *)arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSerial_openDevice__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSerial *arg1 = (rlSerial *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlSerial_openDevice",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSerial, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSerial_openDevice" "', argument " "1"" of type '" "rlSerial *""'"); - } - arg1 = reinterpret_cast< rlSerial * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSerial_openDevice" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSerial_openDevice" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSerial_openDevice" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)(arg1)->openDevice((char const *)arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSerial_openDevice__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSerial *arg1 = (rlSerial *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSerial_openDevice",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSerial, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSerial_openDevice" "', argument " "1"" of type '" "rlSerial *""'"); - } - arg1 = reinterpret_cast< rlSerial * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSerial_openDevice" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSerial_openDevice" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->openDevice((char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSerial_openDevice__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSerial *arg1 = (rlSerial *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSerial_openDevice",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSerial, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSerial_openDevice" "', argument " "1"" of type '" "rlSerial *""'"); - } - arg1 = reinterpret_cast< rlSerial * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSerial_openDevice" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->openDevice((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSerial_openDevice(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[9]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 8) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSerial, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlSerial_openDevice__SWIG_6(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSerial, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlSerial_openDevice__SWIG_5(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSerial, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlSerial_openDevice__SWIG_4(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSerial, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlSerial_openDevice__SWIG_3(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSerial, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlSerial_openDevice__SWIG_2(self, args); - } - } - } - } - } - } - } - if (argc == 7) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSerial, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlSerial_openDevice__SWIG_1(self, args); - } - } - } - } - } - } - } - } - if (argc == 8) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSerial, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlSerial_openDevice__SWIG_0(self, args); - } - } - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlSerial_openDevice'.\n" - " Possible C/C++ prototypes are:\n" - " rlSerial::openDevice(char const *,int,int,int,int,int,int)\n" - " rlSerial::openDevice(char const *,int,int,int,int,int)\n" - " rlSerial::openDevice(char const *,int,int,int,int)\n" - " rlSerial::openDevice(char const *,int,int,int)\n" - " rlSerial::openDevice(char const *,int,int)\n" - " rlSerial::openDevice(char const *,int)\n" - " rlSerial::openDevice(char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlSerial_select__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSerial *arg1 = (rlSerial *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSerial_select",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSerial, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSerial_select" "', argument " "1"" of type '" "rlSerial *""'"); - } - arg1 = reinterpret_cast< rlSerial * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSerial_select" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->select(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSerial_select__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSerial *arg1 = (rlSerial *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSerial_select",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSerial, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSerial_select" "', argument " "1"" of type '" "rlSerial *""'"); - } - arg1 = reinterpret_cast< rlSerial * >(argp1); - result = (int)(arg1)->select(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSerial_select(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSerial, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlSerial_select__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSerial, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlSerial_select__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlSerial_select'.\n" - " Possible C/C++ prototypes are:\n" - " rlSerial::select(int)\n" - " rlSerial::select()\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlSerial_readChar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSerial *arg1 = (rlSerial *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSerial_readChar",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSerial, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSerial_readChar" "', argument " "1"" of type '" "rlSerial *""'"); - } - arg1 = reinterpret_cast< rlSerial * >(argp1); - result = (int)(arg1)->readChar(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSerial_writeChar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSerial *arg1 = (rlSerial *) 0 ; - unsigned char arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned char val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSerial_writeChar",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSerial, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSerial_writeChar" "', argument " "1"" of type '" "rlSerial *""'"); - } - arg1 = reinterpret_cast< rlSerial * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSerial_writeChar" "', argument " "2"" of type '" "unsigned char""'"); - } - arg2 = static_cast< unsigned char >(val2); - result = (int)(arg1)->writeChar(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSerial_readBlock__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSerial *arg1 = (rlSerial *) 0 ; - unsigned char *arg2 = (unsigned char *) 0 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlSerial_readBlock",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSerial, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSerial_readBlock" "', argument " "1"" of type '" "rlSerial *""'"); - } - arg1 = reinterpret_cast< rlSerial * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSerial_readBlock" "', argument " "2"" of type '" "unsigned char *""'"); - } - arg2 = reinterpret_cast< unsigned char * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSerial_readBlock" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSerial_readBlock" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)(arg1)->readBlock(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSerial_readBlock__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSerial *arg1 = (rlSerial *) 0 ; - unsigned char *arg2 = (unsigned char *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSerial_readBlock",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSerial, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSerial_readBlock" "', argument " "1"" of type '" "rlSerial *""'"); - } - arg1 = reinterpret_cast< rlSerial * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSerial_readBlock" "', argument " "2"" of type '" "unsigned char *""'"); - } - arg2 = reinterpret_cast< unsigned char * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSerial_readBlock" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->readBlock(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSerial_readBlock(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSerial, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlSerial_readBlock__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSerial, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlSerial_readBlock__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlSerial_readBlock'.\n" - " Possible C/C++ prototypes are:\n" - " rlSerial::readBlock(unsigned char *,int,int)\n" - " rlSerial::readBlock(unsigned char *,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlSerial_writeBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSerial *arg1 = (rlSerial *) 0 ; - unsigned char *arg2 = (unsigned char *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSerial_writeBlock",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSerial, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSerial_writeBlock" "', argument " "1"" of type '" "rlSerial *""'"); - } - arg1 = reinterpret_cast< rlSerial * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSerial_writeBlock" "', argument " "2"" of type '" "unsigned char const *""'"); - } - arg2 = reinterpret_cast< unsigned char * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSerial_writeBlock" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->writeBlock((unsigned char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSerial_readLine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSerial *arg1 = (rlSerial *) 0 ; - unsigned char *arg2 = (unsigned char *) 0 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlSerial_readLine",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSerial, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSerial_readLine" "', argument " "1"" of type '" "rlSerial *""'"); - } - arg1 = reinterpret_cast< rlSerial * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSerial_readLine" "', argument " "2"" of type '" "unsigned char *""'"); - } - arg2 = reinterpret_cast< unsigned char * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSerial_readLine" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSerial_readLine" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)(arg1)->readLine(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSerial_readLine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSerial *arg1 = (rlSerial *) 0 ; - unsigned char *arg2 = (unsigned char *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSerial_readLine",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSerial, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSerial_readLine" "', argument " "1"" of type '" "rlSerial *""'"); - } - arg1 = reinterpret_cast< rlSerial * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSerial_readLine" "', argument " "2"" of type '" "unsigned char *""'"); - } - arg2 = reinterpret_cast< unsigned char * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSerial_readLine" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->readLine(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSerial_readLine(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSerial, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlSerial_readLine__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSerial, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlSerial_readLine__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlSerial_readLine'.\n" - " Possible C/C++ prototypes are:\n" - " rlSerial::readLine(unsigned char *,int,int)\n" - " rlSerial::readLine(unsigned char *,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlSerial_closeDevice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSerial *arg1 = (rlSerial *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSerial_closeDevice",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSerial, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSerial_closeDevice" "', argument " "1"" of type '" "rlSerial *""'"); - } - arg1 = reinterpret_cast< rlSerial * >(argp1); - result = (int)(arg1)->closeDevice(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSerial_setTrace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSerial *arg1 = (rlSerial *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSerial_setTrace",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSerial, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSerial_setTrace" "', argument " "1"" of type '" "rlSerial *""'"); - } - arg1 = reinterpret_cast< rlSerial * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSerial_setTrace" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - (arg1)->setTrace(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlSerial_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlSerial, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlSiemensTCPClient__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int arg4 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - rlSiemensTCPClient *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:new_rlSiemensTCPClient",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlSiemensTCPClient" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_rlSiemensTCPClient" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_rlSiemensTCPClient" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_rlSiemensTCPClient" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (rlSiemensTCPClient *)new rlSiemensTCPClient((char const *)arg1,(char const *)arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSiemensTCPClient, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlSiemensTCPClient__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - rlSiemensTCPClient *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:new_rlSiemensTCPClient",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlSiemensTCPClient" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_rlSiemensTCPClient" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_rlSiemensTCPClient" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (rlSiemensTCPClient *)new rlSiemensTCPClient((char const *)arg1,(char const *)arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSiemensTCPClient, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlSiemensTCPClient(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlSiemensTCPClient__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlSiemensTCPClient__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_rlSiemensTCPClient'.\n" - " Possible C/C++ prototypes are:\n" - " rlSiemensTCPClient::rlSiemensTCPClient(char const *,char const *,int,int)\n" - " rlSiemensTCPClient::rlSiemensTCPClient(char const *,char const *,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_delete_rlSiemensTCPClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSiemensTCPClient *arg1 = (rlSiemensTCPClient *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlSiemensTCPClient",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSiemensTCPClient, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlSiemensTCPClient" "', argument " "1"" of type '" "rlSiemensTCPClient *""'"); - } - arg1 = reinterpret_cast< rlSiemensTCPClient * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSiemensTCPClient_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSiemensTCPClient *arg1 = (rlSiemensTCPClient *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - unsigned char *arg7 = (unsigned char *) 0 ; - int arg8 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - void *argp7 = 0 ; - int res7 = 0 ; - int val8 ; - int ecode8 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:rlSiemensTCPClient_write",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSiemensTCPClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSiemensTCPClient_write" "', argument " "1"" of type '" "rlSiemensTCPClient *""'"); - } - arg1 = reinterpret_cast< rlSiemensTCPClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSiemensTCPClient_write" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSiemensTCPClient_write" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSiemensTCPClient_write" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlSiemensTCPClient_write" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "rlSiemensTCPClient_write" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "rlSiemensTCPClient_write" "', argument " "7"" of type '" "unsigned char const *""'"); - } - arg7 = reinterpret_cast< unsigned char * >(argp7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "rlSiemensTCPClient_write" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - result = (int)(arg1)->write(arg2,arg3,arg4,arg5,arg6,(unsigned char const *)arg7,arg8); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSiemensTCPClient_writeBit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSiemensTCPClient *arg1 = (rlSiemensTCPClient *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - unsigned char *arg8 = (unsigned char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - void *argp8 = 0 ; - int res8 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:rlSiemensTCPClient_writeBit",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSiemensTCPClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSiemensTCPClient_writeBit" "', argument " "1"" of type '" "rlSiemensTCPClient *""'"); - } - arg1 = reinterpret_cast< rlSiemensTCPClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSiemensTCPClient_writeBit" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSiemensTCPClient_writeBit" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSiemensTCPClient_writeBit" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlSiemensTCPClient_writeBit" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "rlSiemensTCPClient_writeBit" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "rlSiemensTCPClient_writeBit" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res8)) { - SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "rlSiemensTCPClient_writeBit" "', argument " "8"" of type '" "unsigned char const *""'"); - } - arg8 = reinterpret_cast< unsigned char * >(argp8); - result = (int)(arg1)->writeBit(arg2,arg3,arg4,arg5,arg6,arg7,(unsigned char const *)arg8); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSiemensTCPClient_writeByte(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSiemensTCPClient *arg1 = (rlSiemensTCPClient *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - unsigned char *arg7 = (unsigned char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - void *argp7 = 0 ; - int res7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:rlSiemensTCPClient_writeByte",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSiemensTCPClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSiemensTCPClient_writeByte" "', argument " "1"" of type '" "rlSiemensTCPClient *""'"); - } - arg1 = reinterpret_cast< rlSiemensTCPClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSiemensTCPClient_writeByte" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSiemensTCPClient_writeByte" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSiemensTCPClient_writeByte" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlSiemensTCPClient_writeByte" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "rlSiemensTCPClient_writeByte" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "rlSiemensTCPClient_writeByte" "', argument " "7"" of type '" "unsigned char const *""'"); - } - arg7 = reinterpret_cast< unsigned char * >(argp7); - result = (int)(arg1)->writeByte(arg2,arg3,arg4,arg5,arg6,(unsigned char const *)arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSiemensTCPClient_writeFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSiemensTCPClient *arg1 = (rlSiemensTCPClient *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - float *arg7 = (float *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - void *argp7 = 0 ; - int res7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:rlSiemensTCPClient_writeFloat",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSiemensTCPClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSiemensTCPClient_writeFloat" "', argument " "1"" of type '" "rlSiemensTCPClient *""'"); - } - arg1 = reinterpret_cast< rlSiemensTCPClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSiemensTCPClient_writeFloat" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSiemensTCPClient_writeFloat" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSiemensTCPClient_writeFloat" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlSiemensTCPClient_writeFloat" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "rlSiemensTCPClient_writeFloat" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "rlSiemensTCPClient_writeFloat" "', argument " "7"" of type '" "float const *""'"); - } - arg7 = reinterpret_cast< float * >(argp7); - result = (int)(arg1)->writeFloat(arg2,arg3,arg4,arg5,arg6,(float const *)arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSiemensTCPClient_writeDword(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSiemensTCPClient *arg1 = (rlSiemensTCPClient *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int *arg7 = (int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - void *argp7 = 0 ; - int res7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:rlSiemensTCPClient_writeDword",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSiemensTCPClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSiemensTCPClient_writeDword" "', argument " "1"" of type '" "rlSiemensTCPClient *""'"); - } - arg1 = reinterpret_cast< rlSiemensTCPClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSiemensTCPClient_writeDword" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSiemensTCPClient_writeDword" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSiemensTCPClient_writeDword" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlSiemensTCPClient_writeDword" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "rlSiemensTCPClient_writeDword" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "rlSiemensTCPClient_writeDword" "', argument " "7"" of type '" "int const *""'"); - } - arg7 = reinterpret_cast< int * >(argp7); - result = (int)(arg1)->writeDword(arg2,arg3,arg4,arg5,arg6,(int const *)arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSiemensTCPClient_writeShort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSiemensTCPClient *arg1 = (rlSiemensTCPClient *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - short *arg7 = (short *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - void *argp7 = 0 ; - int res7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:rlSiemensTCPClient_writeShort",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSiemensTCPClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSiemensTCPClient_writeShort" "', argument " "1"" of type '" "rlSiemensTCPClient *""'"); - } - arg1 = reinterpret_cast< rlSiemensTCPClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSiemensTCPClient_writeShort" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSiemensTCPClient_writeShort" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSiemensTCPClient_writeShort" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlSiemensTCPClient_writeShort" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "rlSiemensTCPClient_writeShort" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_short, 0 | 0 ); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "rlSiemensTCPClient_writeShort" "', argument " "7"" of type '" "short const *""'"); - } - arg7 = reinterpret_cast< short * >(argp7); - result = (int)(arg1)->writeShort(arg2,arg3,arg4,arg5,arg6,(short const *)arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSiemensTCPClient_writeUDword(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSiemensTCPClient *arg1 = (rlSiemensTCPClient *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - unsigned int *arg7 = (unsigned int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - void *argp7 = 0 ; - int res7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:rlSiemensTCPClient_writeUDword",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSiemensTCPClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSiemensTCPClient_writeUDword" "', argument " "1"" of type '" "rlSiemensTCPClient *""'"); - } - arg1 = reinterpret_cast< rlSiemensTCPClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSiemensTCPClient_writeUDword" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSiemensTCPClient_writeUDword" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSiemensTCPClient_writeUDword" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlSiemensTCPClient_writeUDword" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "rlSiemensTCPClient_writeUDword" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_unsigned_int, 0 | 0 ); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "rlSiemensTCPClient_writeUDword" "', argument " "7"" of type '" "unsigned int const *""'"); - } - arg7 = reinterpret_cast< unsigned int * >(argp7); - result = (int)(arg1)->writeUDword(arg2,arg3,arg4,arg5,arg6,(unsigned int const *)arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSiemensTCPClient_writeUShort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSiemensTCPClient *arg1 = (rlSiemensTCPClient *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - unsigned short *arg7 = (unsigned short *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - void *argp7 = 0 ; - int res7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:rlSiemensTCPClient_writeUShort",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSiemensTCPClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSiemensTCPClient_writeUShort" "', argument " "1"" of type '" "rlSiemensTCPClient *""'"); - } - arg1 = reinterpret_cast< rlSiemensTCPClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSiemensTCPClient_writeUShort" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSiemensTCPClient_writeUShort" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSiemensTCPClient_writeUShort" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlSiemensTCPClient_writeUShort" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "rlSiemensTCPClient_writeUShort" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_unsigned_short, 0 | 0 ); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "rlSiemensTCPClient_writeUShort" "', argument " "7"" of type '" "unsigned short const *""'"); - } - arg7 = reinterpret_cast< unsigned short * >(argp7); - result = (int)(arg1)->writeUShort(arg2,arg3,arg4,arg5,arg6,(unsigned short const *)arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSiemensTCPClient_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSiemensTCPClient *arg1 = (rlSiemensTCPClient *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSiemensTCPClient_read",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSiemensTCPClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSiemensTCPClient_read" "', argument " "1"" of type '" "rlSiemensTCPClient *""'"); - } - arg1 = reinterpret_cast< rlSiemensTCPClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSiemensTCPClient_read" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSiemensTCPClient_read" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->read(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSiemensTCPClient_Float(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSiemensTCPClient *arg1 = (rlSiemensTCPClient *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSiemensTCPClient_Float",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSiemensTCPClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSiemensTCPClient_Float" "', argument " "1"" of type '" "rlSiemensTCPClient *""'"); - } - arg1 = reinterpret_cast< rlSiemensTCPClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSiemensTCPClient_Float" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (float)(arg1)->Float(arg2); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSiemensTCPClient_Dword(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSiemensTCPClient *arg1 = (rlSiemensTCPClient *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSiemensTCPClient_Dword",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSiemensTCPClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSiemensTCPClient_Dword" "', argument " "1"" of type '" "rlSiemensTCPClient *""'"); - } - arg1 = reinterpret_cast< rlSiemensTCPClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSiemensTCPClient_Dword" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->Dword(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSiemensTCPClient_Short(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSiemensTCPClient *arg1 = (rlSiemensTCPClient *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSiemensTCPClient_Short",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSiemensTCPClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSiemensTCPClient_Short" "', argument " "1"" of type '" "rlSiemensTCPClient *""'"); - } - arg1 = reinterpret_cast< rlSiemensTCPClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSiemensTCPClient_Short" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->Short(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSiemensTCPClient_UDword(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSiemensTCPClient *arg1 = (rlSiemensTCPClient *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - unsigned int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSiemensTCPClient_UDword",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSiemensTCPClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSiemensTCPClient_UDword" "', argument " "1"" of type '" "rlSiemensTCPClient *""'"); - } - arg1 = reinterpret_cast< rlSiemensTCPClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSiemensTCPClient_UDword" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (unsigned int)(arg1)->UDword(arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSiemensTCPClient_UShort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSiemensTCPClient *arg1 = (rlSiemensTCPClient *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - unsigned int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSiemensTCPClient_UShort",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSiemensTCPClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSiemensTCPClient_UShort" "', argument " "1"" of type '" "rlSiemensTCPClient *""'"); - } - arg1 = reinterpret_cast< rlSiemensTCPClient * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSiemensTCPClient_UShort" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (unsigned int)(arg1)->UShort(arg2); - resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSiemensTCPClient_buf_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSiemensTCPClient *arg1 = (rlSiemensTCPClient *) 0 ; - unsigned char *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSiemensTCPClient_buf_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSiemensTCPClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSiemensTCPClient_buf_set" "', argument " "1"" of type '" "rlSiemensTCPClient *""'"); - } - arg1 = reinterpret_cast< rlSiemensTCPClient * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSiemensTCPClient_buf_set" "', argument " "2"" of type '" "unsigned char [2048]""'"); - } - arg2 = reinterpret_cast< unsigned char * >(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)2048; ++ii) arg1->buf[ii] = arg2[ii]; - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""buf""' of type '""unsigned char [2048]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSiemensTCPClient_buf_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSiemensTCPClient *arg1 = (rlSiemensTCPClient *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - unsigned char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSiemensTCPClient_buf_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSiemensTCPClient, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSiemensTCPClient_buf_get" "', argument " "1"" of type '" "rlSiemensTCPClient *""'"); - } - arg1 = reinterpret_cast< rlSiemensTCPClient * >(argp1); - result = (unsigned char *)(unsigned char *) ((arg1)->buf); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlSiemensTCPClient_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlSiemensTCPClient, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlSiemensTCP__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - rlSiemensTCP *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:new_rlSiemensTCP",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlSiemensTCP" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_rlSiemensTCP" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_rlSiemensTCP" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_rlSiemensTCP" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_rlSiemensTCP" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (rlSiemensTCP *)new rlSiemensTCP((char const *)arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSiemensTCP, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlSiemensTCP__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - rlSiemensTCP *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:new_rlSiemensTCP",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlSiemensTCP" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_rlSiemensTCP" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_rlSiemensTCP" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_rlSiemensTCP" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (rlSiemensTCP *)new rlSiemensTCP((char const *)arg1,arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSiemensTCP, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlSiemensTCP__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int arg2 ; - int arg3 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - rlSiemensTCP *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:new_rlSiemensTCP",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlSiemensTCP" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_rlSiemensTCP" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_rlSiemensTCP" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (rlSiemensTCP *)new rlSiemensTCP((char const *)arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSiemensTCP, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlSiemensTCP__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int arg2 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - rlSiemensTCP *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_rlSiemensTCP",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlSiemensTCP" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_rlSiemensTCP" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (rlSiemensTCP *)new rlSiemensTCP((char const *)arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSiemensTCP, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlSiemensTCP__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - rlSiemensTCP *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_rlSiemensTCP",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlSiemensTCP" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (rlSiemensTCP *)new rlSiemensTCP((char const *)arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSiemensTCP, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlSiemensTCP(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_rlSiemensTCP__SWIG_4(self, args); - } - } - if (argc == 2) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlSiemensTCP__SWIG_3(self, args); - } - } - } - if (argc == 3) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlSiemensTCP__SWIG_2(self, args); - } - } - } - } - if (argc == 4) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlSiemensTCP__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlSiemensTCP__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_rlSiemensTCP'.\n" - " Possible C/C++ prototypes are:\n" - " rlSiemensTCP::rlSiemensTCP(char const *,int,int,int,int)\n" - " rlSiemensTCP::rlSiemensTCP(char const *,int,int,int)\n" - " rlSiemensTCP::rlSiemensTCP(char const *,int,int)\n" - " rlSiemensTCP::rlSiemensTCP(char const *,int)\n" - " rlSiemensTCP::rlSiemensTCP(char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_delete_rlSiemensTCP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSiemensTCP *arg1 = (rlSiemensTCP *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlSiemensTCP",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSiemensTCP, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlSiemensTCP" "', argument " "1"" of type '" "rlSiemensTCP *""'"); - } - arg1 = reinterpret_cast< rlSiemensTCP * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSiemensTCP_getDefaultConnectBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSiemensTCP *arg1 = (rlSiemensTCP *) 0 ; - unsigned char *arg2 = (unsigned char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSiemensTCP_getDefaultConnectBlock",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSiemensTCP, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSiemensTCP_getDefaultConnectBlock" "', argument " "1"" of type '" "rlSiemensTCP *""'"); - } - arg1 = reinterpret_cast< rlSiemensTCP * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSiemensTCP_getDefaultConnectBlock" "', argument " "2"" of type '" "unsigned char *""'"); - } - arg2 = reinterpret_cast< unsigned char * >(argp2); - result = (int)(arg1)->getDefaultConnectBlock(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSiemensTCP_setConnectBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSiemensTCP *arg1 = (rlSiemensTCP *) 0 ; - unsigned char *arg2 = (unsigned char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSiemensTCP_setConnectBlock",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSiemensTCP, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSiemensTCP_setConnectBlock" "', argument " "1"" of type '" "rlSiemensTCP *""'"); - } - arg1 = reinterpret_cast< rlSiemensTCP * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSiemensTCP_setConnectBlock" "', argument " "2"" of type '" "unsigned char const *""'"); - } - arg2 = reinterpret_cast< unsigned char * >(argp2); - result = (int)(arg1)->setConnectBlock((unsigned char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSiemensTCP_getConnectBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSiemensTCP *arg1 = (rlSiemensTCP *) 0 ; - unsigned char *arg2 = (unsigned char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSiemensTCP_getConnectBlock",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSiemensTCP, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSiemensTCP_getConnectBlock" "', argument " "1"" of type '" "rlSiemensTCP *""'"); - } - arg1 = reinterpret_cast< rlSiemensTCP * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSiemensTCP_getConnectBlock" "', argument " "2"" of type '" "unsigned char *""'"); - } - arg2 = reinterpret_cast< unsigned char * >(argp2); - result = (int)(arg1)->getConnectBlock(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSiemensTCP_write__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSiemensTCP *arg1 = (rlSiemensTCP *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - unsigned char *arg6 = (unsigned char *) 0 ; - int arg7 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; - int val7 ; - int ecode7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:rlSiemensTCP_write",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSiemensTCP, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSiemensTCP_write" "', argument " "1"" of type '" "rlSiemensTCP *""'"); - } - arg1 = reinterpret_cast< rlSiemensTCP * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSiemensTCP_write" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSiemensTCP_write" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSiemensTCP_write" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlSiemensTCP_write" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "rlSiemensTCP_write" "', argument " "6"" of type '" "unsigned char const *""'"); - } - arg6 = reinterpret_cast< unsigned char * >(argp6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "rlSiemensTCP_write" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - result = (int)(arg1)->write(arg2,arg3,arg4,arg5,(unsigned char const *)arg6,arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSiemensTCP_write__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSiemensTCP *arg1 = (rlSiemensTCP *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - unsigned char *arg6 = (unsigned char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:rlSiemensTCP_write",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSiemensTCP, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSiemensTCP_write" "', argument " "1"" of type '" "rlSiemensTCP *""'"); - } - arg1 = reinterpret_cast< rlSiemensTCP * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSiemensTCP_write" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSiemensTCP_write" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSiemensTCP_write" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlSiemensTCP_write" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "rlSiemensTCP_write" "', argument " "6"" of type '" "unsigned char const *""'"); - } - arg6 = reinterpret_cast< unsigned char * >(argp6); - result = (int)(arg1)->write(arg2,arg3,arg4,arg5,(unsigned char const *)arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSiemensTCP_write(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[8]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 7) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSiemensTCP, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlSiemensTCP_write__SWIG_1(self, args); - } - } - } - } - } - } - } - if (argc == 7) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSiemensTCP, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlSiemensTCP_write__SWIG_0(self, args); - } - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlSiemensTCP_write'.\n" - " Possible C/C++ prototypes are:\n" - " rlSiemensTCP::write(int,int,int,int,unsigned char const *,int)\n" - " rlSiemensTCP::write(int,int,int,int,unsigned char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlSiemensTCP_fetch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSiemensTCP *arg1 = (rlSiemensTCP *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - unsigned char *arg6 = (unsigned char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:rlSiemensTCP_fetch",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSiemensTCP, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSiemensTCP_fetch" "', argument " "1"" of type '" "rlSiemensTCP *""'"); - } - arg1 = reinterpret_cast< rlSiemensTCP * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSiemensTCP_fetch" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSiemensTCP_fetch" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSiemensTCP_fetch" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlSiemensTCP_fetch" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "rlSiemensTCP_fetch" "', argument " "6"" of type '" "unsigned char *""'"); - } - arg6 = reinterpret_cast< unsigned char * >(argp6); - result = (int)(arg1)->fetch(arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlSiemensTCP_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlSiemensTCP, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlSpawn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpawn *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlSpawn")) SWIG_fail; - result = (rlSpawn *)new rlSpawn(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSpawn, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_rlSpawn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpawn *arg1 = (rlSpawn *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlSpawn",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpawn, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlSpawn" "', argument " "1"" of type '" "rlSpawn *""'"); - } - arg1 = reinterpret_cast< rlSpawn * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpawn_spawn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpawn *arg1 = (rlSpawn *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSpawn_spawn",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpawn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpawn_spawn" "', argument " "1"" of type '" "rlSpawn *""'"); - } - arg1 = reinterpret_cast< rlSpawn * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSpawn_spawn" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->spawn((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpawn_readLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpawn *arg1 = (rlSpawn *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSpawn_readLine",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpawn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpawn_readLine" "', argument " "1"" of type '" "rlSpawn *""'"); - } - arg1 = reinterpret_cast< rlSpawn * >(argp1); - result = (char *)(arg1)->readLine(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpawn_getchar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpawn *arg1 = (rlSpawn *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSpawn_getchar",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpawn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpawn_getchar" "', argument " "1"" of type '" "rlSpawn *""'"); - } - arg1 = reinterpret_cast< rlSpawn * >(argp1); - result = (int)(arg1)->getchar(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpawn_select__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpawn *arg1 = (rlSpawn *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSpawn_select",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpawn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpawn_select" "', argument " "1"" of type '" "rlSpawn *""'"); - } - arg1 = reinterpret_cast< rlSpawn * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSpawn_select" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->select(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpawn_select__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpawn *arg1 = (rlSpawn *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSpawn_select",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpawn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpawn_select" "', argument " "1"" of type '" "rlSpawn *""'"); - } - arg1 = reinterpret_cast< rlSpawn * >(argp1); - result = (int)(arg1)->select(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpawn_select(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSpawn, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlSpawn_select__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSpawn, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlSpawn_select__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlSpawn_select'.\n" - " Possible C/C++ prototypes are:\n" - " rlSpawn::select(int)\n" - " rlSpawn::select()\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlSpawn_writeString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpawn *arg1 = (rlSpawn *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSpawn_writeString",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpawn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpawn_writeString" "', argument " "1"" of type '" "rlSpawn *""'"); - } - arg1 = reinterpret_cast< rlSpawn * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSpawn_writeString" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->writeString((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpawn_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpawn *arg1 = (rlSpawn *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSpawn_write",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpawn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpawn_write" "', argument " "1"" of type '" "rlSpawn *""'"); - } - arg1 = reinterpret_cast< rlSpawn * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSpawn_write" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSpawn_write" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->write((char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpawn_printf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - rlSpawn *arg1 = (rlSpawn *) 0 ; - char *arg2 = (char *) 0 ; - void *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSpawn_printf",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpawn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpawn_printf" "', argument " "1"" of type '" "rlSpawn *""'"); - } - arg1 = reinterpret_cast< rlSpawn * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSpawn_printf" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->printf((char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpawn_printf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,2); - varargs = PyTuple_GetSlice(args,2,PyTuple_Size(args)); - resultobj = _wrap_rlSpawn_printf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_rlSpawn_printAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpawn *arg1 = (rlSpawn *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSpawn_printAll",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpawn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpawn_printAll" "', argument " "1"" of type '" "rlSpawn *""'"); - } - arg1 = reinterpret_cast< rlSpawn * >(argp1); - (arg1)->printAll(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpawn_getFilepointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpawn *arg1 = (rlSpawn *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - FILE *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSpawn_getFilepointer",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpawn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpawn_getFilepointer" "', argument " "1"" of type '" "rlSpawn *""'"); - } - arg1 = reinterpret_cast< rlSpawn * >(argp1); - result = (FILE *)(arg1)->getFilepointer(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FILE, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpawn_sigkill(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpawn *arg1 = (rlSpawn *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSpawn_sigkill",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpawn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpawn_sigkill" "', argument " "1"" of type '" "rlSpawn *""'"); - } - arg1 = reinterpret_cast< rlSpawn * >(argp1); - result = (int)(arg1)->sigkill(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpawn_readJpegBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpawn *arg1 = (rlSpawn *) 0 ; - unsigned char *arg2 = (unsigned char *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSpawn_readJpegBuffer",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpawn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpawn_readJpegBuffer" "', argument " "1"" of type '" "rlSpawn *""'"); - } - arg1 = reinterpret_cast< rlSpawn * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSpawn_readJpegBuffer" "', argument " "2"" of type '" "unsigned char *""'"); - } - arg2 = reinterpret_cast< unsigned char * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSpawn_readJpegBuffer" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->readJpegBuffer(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpawn_pid_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpawn *arg1 = (rlSpawn *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSpawn_pid_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpawn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpawn_pid_set" "', argument " "1"" of type '" "rlSpawn *""'"); - } - arg1 = reinterpret_cast< rlSpawn * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSpawn_pid_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->pid = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpawn_pid_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpawn *arg1 = (rlSpawn *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSpawn_pid_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpawn, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpawn_pid_get" "', argument " "1"" of type '" "rlSpawn *""'"); - } - arg1 = reinterpret_cast< rlSpawn * >(argp1); - result = (int) ((arg1)->pid); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlSpawn_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlSpawn, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlSpreadsheetCell__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - rlSpreadsheetCell *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_rlSpreadsheetCell",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlSpreadsheetCell" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (rlSpreadsheetCell *)new rlSpreadsheetCell((char const *)arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSpreadsheetCell, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlSpreadsheetCell__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetCell *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlSpreadsheetCell")) SWIG_fail; - result = (rlSpreadsheetCell *)new rlSpreadsheetCell(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSpreadsheetCell, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlSpreadsheetCell(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[2]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_rlSpreadsheetCell__SWIG_1(self, args); - } - if (argc == 1) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_rlSpreadsheetCell__SWIG_0(self, args); - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_rlSpreadsheetCell'.\n" - " Possible C/C++ prototypes are:\n" - " rlSpreadsheetCell::rlSpreadsheetCell(char const *)\n" - " rlSpreadsheetCell::rlSpreadsheetCell()\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_delete_rlSpreadsheetCell(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetCell *arg1 = (rlSpreadsheetCell *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlSpreadsheetCell",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetCell, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlSpreadsheetCell" "', argument " "1"" of type '" "rlSpreadsheetCell *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetCell * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetCell_text(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetCell *arg1 = (rlSpreadsheetCell *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSpreadsheetCell_text",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetCell, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetCell_text" "', argument " "1"" of type '" "rlSpreadsheetCell *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetCell * >(argp1); - result = (char *)(arg1)->text(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetCell_setText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetCell *arg1 = (rlSpreadsheetCell *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSpreadsheetCell_setText",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetCell, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetCell_setText" "', argument " "1"" of type '" "rlSpreadsheetCell *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetCell * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSpreadsheetCell_setText" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - (arg1)->setText((char const *)arg2); - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetCell_printf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - rlSpreadsheetCell *arg1 = (rlSpreadsheetCell *) 0 ; - char *arg2 = (char *) 0 ; - void *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSpreadsheetCell_printf",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetCell, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetCell_printf" "', argument " "1"" of type '" "rlSpreadsheetCell *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetCell * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSpreadsheetCell_printf" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->printf((char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetCell_printf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,2); - varargs = PyTuple_GetSlice(args,2,PyTuple_Size(args)); - resultobj = _wrap_rlSpreadsheetCell_printf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetCell_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetCell *arg1 = (rlSpreadsheetCell *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSpreadsheetCell_clear",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetCell, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetCell_clear" "', argument " "1"" of type '" "rlSpreadsheetCell *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetCell * >(argp1); - (arg1)->clear(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetCell_setNextCell(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetCell *arg1 = (rlSpreadsheetCell *) 0 ; - rlSpreadsheetCell *arg2 = (rlSpreadsheetCell *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSpreadsheetCell_setNextCell",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetCell, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetCell_setNextCell" "', argument " "1"" of type '" "rlSpreadsheetCell *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetCell * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlSpreadsheetCell, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSpreadsheetCell_setNextCell" "', argument " "2"" of type '" "rlSpreadsheetCell *""'"); - } - arg2 = reinterpret_cast< rlSpreadsheetCell * >(argp2); - (arg1)->setNextCell(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetCell_getNextCell(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetCell *arg1 = (rlSpreadsheetCell *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - rlSpreadsheetCell *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSpreadsheetCell_getNextCell",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetCell, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetCell_getNextCell" "', argument " "1"" of type '" "rlSpreadsheetCell *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetCell * >(argp1); - result = (rlSpreadsheetCell *)(arg1)->getNextCell(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSpreadsheetCell, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetCell_exists(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetCell *arg1 = (rlSpreadsheetCell *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSpreadsheetCell_exists",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetCell, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetCell_exists" "', argument " "1"" of type '" "rlSpreadsheetCell *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetCell * >(argp1); - result = (int)(arg1)->exists(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlSpreadsheetCell_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlSpreadsheetCell, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlSpreadsheetRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetRow *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlSpreadsheetRow")) SWIG_fail; - result = (rlSpreadsheetRow *)new rlSpreadsheetRow(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSpreadsheetRow, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_rlSpreadsheetRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetRow *arg1 = (rlSpreadsheetRow *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlSpreadsheetRow",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetRow, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlSpreadsheetRow" "', argument " "1"" of type '" "rlSpreadsheetRow *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetRow * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetRow_text(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetRow *arg1 = (rlSpreadsheetRow *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSpreadsheetRow_text",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetRow, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetRow_text" "', argument " "1"" of type '" "rlSpreadsheetRow *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetRow * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSpreadsheetRow_text" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (char *)(arg1)->text(arg2); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetRow_setText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetRow *arg1 = (rlSpreadsheetRow *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSpreadsheetRow_setText",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetRow, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetRow_setText" "', argument " "1"" of type '" "rlSpreadsheetRow *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetRow * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSpreadsheetRow_setText" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlSpreadsheetRow_setText" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - (arg1)->setText(arg2,(char const *)arg3); - resultobj = SWIG_Py_Void(); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetRow_printf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - rlSpreadsheetRow *arg1 = (rlSpreadsheetRow *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSpreadsheetRow_printf",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetRow, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetRow_printf" "', argument " "1"" of type '" "rlSpreadsheetRow *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetRow * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSpreadsheetRow_printf" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlSpreadsheetRow_printf" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)(arg1)->printf(arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetRow_printf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,3); - varargs = PyTuple_GetSlice(args,3,PyTuple_Size(args)); - resultobj = _wrap_rlSpreadsheetRow_printf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetRow_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetRow *arg1 = (rlSpreadsheetRow *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSpreadsheetRow_clear",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetRow, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetRow_clear" "', argument " "1"" of type '" "rlSpreadsheetRow *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetRow * >(argp1); - (arg1)->clear(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetRow_setNextRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetRow *arg1 = (rlSpreadsheetRow *) 0 ; - rlSpreadsheetRow *arg2 = (rlSpreadsheetRow *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSpreadsheetRow_setNextRow",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetRow, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetRow_setNextRow" "', argument " "1"" of type '" "rlSpreadsheetRow *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetRow * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlSpreadsheetRow, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSpreadsheetRow_setNextRow" "', argument " "2"" of type '" "rlSpreadsheetRow *""'"); - } - arg2 = reinterpret_cast< rlSpreadsheetRow * >(argp2); - (arg1)->setNextRow(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetRow_getNextRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetRow *arg1 = (rlSpreadsheetRow *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - rlSpreadsheetRow *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSpreadsheetRow_getNextRow",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetRow, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetRow_getNextRow" "', argument " "1"" of type '" "rlSpreadsheetRow *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetRow * >(argp1); - result = (rlSpreadsheetRow *)(arg1)->getNextRow(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSpreadsheetRow, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetRow_getFirstCell(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetRow *arg1 = (rlSpreadsheetRow *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - rlSpreadsheetCell *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSpreadsheetRow_getFirstCell",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetRow, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetRow_getFirstCell" "', argument " "1"" of type '" "rlSpreadsheetRow *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetRow * >(argp1); - result = (rlSpreadsheetCell *)(arg1)->getFirstCell(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSpreadsheetCell, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetRow_readRow__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetRow *arg1 = (rlSpreadsheetRow *) 0 ; - unsigned char *arg2 = (unsigned char *) 0 ; - char arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - char val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSpreadsheetRow_readRow",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetRow, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetRow_readRow" "', argument " "1"" of type '" "rlSpreadsheetRow *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetRow * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSpreadsheetRow_readRow" "', argument " "2"" of type '" "unsigned char const *""'"); - } - arg2 = reinterpret_cast< unsigned char * >(argp2); - ecode3 = SWIG_AsVal_char(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSpreadsheetRow_readRow" "', argument " "3"" of type '" "char""'"); - } - arg3 = static_cast< char >(val3); - (arg1)->readRow((unsigned char const *)arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetRow_readRow__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetRow *arg1 = (rlSpreadsheetRow *) 0 ; - unsigned char *arg2 = (unsigned char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSpreadsheetRow_readRow",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetRow, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetRow_readRow" "', argument " "1"" of type '" "rlSpreadsheetRow *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetRow * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSpreadsheetRow_readRow" "', argument " "2"" of type '" "unsigned char const *""'"); - } - arg2 = reinterpret_cast< unsigned char * >(argp2); - (arg1)->readRow((unsigned char const *)arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetRow_readRow(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSpreadsheetRow, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlSpreadsheetRow_readRow__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSpreadsheetRow, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_char(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlSpreadsheetRow_readRow__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlSpreadsheetRow_readRow'.\n" - " Possible C/C++ prototypes are:\n" - " rlSpreadsheetRow::readRow(unsigned char const *,char)\n" - " rlSpreadsheetRow::readRow(unsigned char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetRow_writeRow__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetRow *arg1 = (rlSpreadsheetRow *) 0 ; - void *arg2 = (void *) 0 ; - char arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSpreadsheetRow_writeRow",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetRow, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetRow_writeRow" "', argument " "1"" of type '" "rlSpreadsheetRow *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetRow * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSpreadsheetRow_writeRow" "', argument " "2"" of type '" "void *""'"); - } - ecode3 = SWIG_AsVal_char(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSpreadsheetRow_writeRow" "', argument " "3"" of type '" "char""'"); - } - arg3 = static_cast< char >(val3); - (arg1)->writeRow(arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetRow_writeRow__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetRow *arg1 = (rlSpreadsheetRow *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSpreadsheetRow_writeRow",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetRow, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetRow_writeRow" "', argument " "1"" of type '" "rlSpreadsheetRow *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetRow * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSpreadsheetRow_writeRow" "', argument " "2"" of type '" "void *""'"); - } - (arg1)->writeRow(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetRow_writeRow(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSpreadsheetRow, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *ptr = 0; - int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlSpreadsheetRow_writeRow__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSpreadsheetRow, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *ptr = 0; - int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_char(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlSpreadsheetRow_writeRow__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlSpreadsheetRow_writeRow'.\n" - " Possible C/C++ prototypes are:\n" - " rlSpreadsheetRow::writeRow(void *,char)\n" - " rlSpreadsheetRow::writeRow(void *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetRow_exists(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetRow *arg1 = (rlSpreadsheetRow *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSpreadsheetRow_exists",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetRow, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetRow_exists" "', argument " "1"" of type '" "rlSpreadsheetRow *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetRow * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSpreadsheetRow_exists" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->exists(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlSpreadsheetRow_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlSpreadsheetRow, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlSpreadsheetTable__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char arg1 ; - char val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - rlSpreadsheetTable *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_rlSpreadsheetTable",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_char(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlSpreadsheetTable" "', argument " "1"" of type '" "char""'"); - } - arg1 = static_cast< char >(val1); - result = (rlSpreadsheetTable *)new rlSpreadsheetTable(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSpreadsheetTable, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlSpreadsheetTable__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetTable *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlSpreadsheetTable")) SWIG_fail; - result = (rlSpreadsheetTable *)new rlSpreadsheetTable(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSpreadsheetTable, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlSpreadsheetTable(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[2]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_rlSpreadsheetTable__SWIG_1(self, args); - } - if (argc == 1) { - int _v; - { - int res = SWIG_AsVal_char(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlSpreadsheetTable__SWIG_0(self, args); - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_rlSpreadsheetTable'.\n" - " Possible C/C++ prototypes are:\n" - " rlSpreadsheetTable::rlSpreadsheetTable(char)\n" - " rlSpreadsheetTable::rlSpreadsheetTable()\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_delete_rlSpreadsheetTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetTable *arg1 = (rlSpreadsheetTable *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlSpreadsheetTable",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetTable, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlSpreadsheetTable" "', argument " "1"" of type '" "rlSpreadsheetTable *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetTable * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetTable_text(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetTable *arg1 = (rlSpreadsheetTable *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSpreadsheetTable_text",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetTable, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetTable_text" "', argument " "1"" of type '" "rlSpreadsheetTable *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetTable * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSpreadsheetTable_text" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSpreadsheetTable_text" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (char *)(arg1)->text(arg2,arg3); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetTable_setText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetTable *arg1 = (rlSpreadsheetTable *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlSpreadsheetTable_setText",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetTable, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetTable_setText" "', argument " "1"" of type '" "rlSpreadsheetTable *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetTable * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSpreadsheetTable_setText" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSpreadsheetTable_setText" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlSpreadsheetTable_setText" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - (arg1)->setText(arg2,arg3,(char const *)arg4); - resultobj = SWIG_Py_Void(); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetTable_printf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - rlSpreadsheetTable *arg1 = (rlSpreadsheetTable *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - void *arg5 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlSpreadsheetTable_printf",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetTable, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetTable_printf" "', argument " "1"" of type '" "rlSpreadsheetTable *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetTable * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSpreadsheetTable_printf" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSpreadsheetTable_printf" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlSpreadsheetTable_printf" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)(arg1)->printf(arg2,arg3,(char const *)arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetTable_printf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,4); - varargs = PyTuple_GetSlice(args,4,PyTuple_Size(args)); - resultobj = _wrap_rlSpreadsheetTable_printf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetTable_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetTable *arg1 = (rlSpreadsheetTable *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSpreadsheetTable_clear",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetTable, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetTable_clear" "', argument " "1"" of type '" "rlSpreadsheetTable *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetTable * >(argp1); - (arg1)->clear(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetTable_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetTable *arg1 = (rlSpreadsheetTable *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSpreadsheetTable_read",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetTable, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetTable_read" "', argument " "1"" of type '" "rlSpreadsheetTable *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetTable * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSpreadsheetTable_read" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->read((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetTable_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetTable *arg1 = (rlSpreadsheetTable *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSpreadsheetTable_write",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetTable, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetTable_write" "', argument " "1"" of type '" "rlSpreadsheetTable *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetTable * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSpreadsheetTable_write" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->write((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetTable_setNextTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetTable *arg1 = (rlSpreadsheetTable *) 0 ; - rlSpreadsheetTable *arg2 = (rlSpreadsheetTable *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSpreadsheetTable_setNextTable",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetTable, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetTable_setNextTable" "', argument " "1"" of type '" "rlSpreadsheetTable *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetTable * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlSpreadsheetTable, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSpreadsheetTable_setNextTable" "', argument " "2"" of type '" "rlSpreadsheetTable *""'"); - } - arg2 = reinterpret_cast< rlSpreadsheetTable * >(argp2); - (arg1)->setNextTable(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetTable_getNextTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetTable *arg1 = (rlSpreadsheetTable *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - rlSpreadsheetTable *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSpreadsheetTable_getNextTable",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetTable, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetTable_getNextTable" "', argument " "1"" of type '" "rlSpreadsheetTable *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetTable * >(argp1); - result = (rlSpreadsheetTable *)(arg1)->getNextTable(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSpreadsheetTable, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetTable_getFirstRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetTable *arg1 = (rlSpreadsheetTable *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - rlSpreadsheetRow *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSpreadsheetTable_getFirstRow",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetTable, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetTable_getFirstRow" "', argument " "1"" of type '" "rlSpreadsheetTable *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetTable * >(argp1); - result = (rlSpreadsheetRow *)(arg1)->getFirstRow(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSpreadsheetRow, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetTable_exists(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetTable *arg1 = (rlSpreadsheetTable *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSpreadsheetTable_exists",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetTable, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetTable_exists" "', argument " "1"" of type '" "rlSpreadsheetTable *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetTable * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSpreadsheetTable_exists" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSpreadsheetTable_exists" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->exists(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetTable_setDelimitor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetTable *arg1 = (rlSpreadsheetTable *) 0 ; - char arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - char val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSpreadsheetTable_setDelimitor",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetTable, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetTable_setDelimitor" "', argument " "1"" of type '" "rlSpreadsheetTable *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetTable * >(argp1); - ecode2 = SWIG_AsVal_char(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSpreadsheetTable_setDelimitor" "', argument " "2"" of type '" "char""'"); - } - arg2 = static_cast< char >(val2); - (arg1)->setDelimitor(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlSpreadsheetTable_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlSpreadsheetTable, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlSpreadsheetWorkbook__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char arg1 ; - char val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - rlSpreadsheetWorkbook *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_rlSpreadsheetWorkbook",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_char(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlSpreadsheetWorkbook" "', argument " "1"" of type '" "char""'"); - } - arg1 = static_cast< char >(val1); - result = (rlSpreadsheetWorkbook *)new rlSpreadsheetWorkbook(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSpreadsheetWorkbook, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlSpreadsheetWorkbook__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetWorkbook *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlSpreadsheetWorkbook")) SWIG_fail; - result = (rlSpreadsheetWorkbook *)new rlSpreadsheetWorkbook(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSpreadsheetWorkbook, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlSpreadsheetWorkbook(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[2]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_rlSpreadsheetWorkbook__SWIG_1(self, args); - } - if (argc == 1) { - int _v; - { - int res = SWIG_AsVal_char(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlSpreadsheetWorkbook__SWIG_0(self, args); - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_rlSpreadsheetWorkbook'.\n" - " Possible C/C++ prototypes are:\n" - " rlSpreadsheetWorkbook::rlSpreadsheetWorkbook(char)\n" - " rlSpreadsheetWorkbook::rlSpreadsheetWorkbook()\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_delete_rlSpreadsheetWorkbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetWorkbook *arg1 = (rlSpreadsheetWorkbook *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlSpreadsheetWorkbook",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetWorkbook, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlSpreadsheetWorkbook" "', argument " "1"" of type '" "rlSpreadsheetWorkbook *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetWorkbook * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetWorkbook_text(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetWorkbook *arg1 = (rlSpreadsheetWorkbook *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlSpreadsheetWorkbook_text",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetWorkbook, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetWorkbook_text" "', argument " "1"" of type '" "rlSpreadsheetWorkbook *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetWorkbook * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSpreadsheetWorkbook_text" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSpreadsheetWorkbook_text" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSpreadsheetWorkbook_text" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (char *)(arg1)->text(arg2,arg3,arg4); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetWorkbook_setText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetWorkbook *arg1 = (rlSpreadsheetWorkbook *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - char *arg5 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlSpreadsheetWorkbook_setText",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetWorkbook, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetWorkbook_setText" "', argument " "1"" of type '" "rlSpreadsheetWorkbook *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetWorkbook * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSpreadsheetWorkbook_setText" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSpreadsheetWorkbook_setText" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSpreadsheetWorkbook_setText" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "rlSpreadsheetWorkbook_setText" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - (arg1)->setText(arg2,arg3,arg4,(char const *)arg5); - resultobj = SWIG_Py_Void(); - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetWorkbook_printf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - rlSpreadsheetWorkbook *arg1 = (rlSpreadsheetWorkbook *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - char *arg5 = (char *) 0 ; - void *arg6 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlSpreadsheetWorkbook_printf",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetWorkbook, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetWorkbook_printf" "', argument " "1"" of type '" "rlSpreadsheetWorkbook *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetWorkbook * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSpreadsheetWorkbook_printf" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSpreadsheetWorkbook_printf" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSpreadsheetWorkbook_printf" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "rlSpreadsheetWorkbook_printf" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - result = (int)(arg1)->printf(arg2,arg3,arg4,(char const *)arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetWorkbook_printf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,5); - varargs = PyTuple_GetSlice(args,5,PyTuple_Size(args)); - resultobj = _wrap_rlSpreadsheetWorkbook_printf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetWorkbook_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetWorkbook *arg1 = (rlSpreadsheetWorkbook *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSpreadsheetWorkbook_clear",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetWorkbook, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetWorkbook_clear" "', argument " "1"" of type '" "rlSpreadsheetWorkbook *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetWorkbook * >(argp1); - (arg1)->clear(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetWorkbook_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetWorkbook *arg1 = (rlSpreadsheetWorkbook *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSpreadsheetWorkbook_read",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetWorkbook, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetWorkbook_read" "', argument " "1"" of type '" "rlSpreadsheetWorkbook *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetWorkbook * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSpreadsheetWorkbook_read" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->read((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetWorkbook_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetWorkbook *arg1 = (rlSpreadsheetWorkbook *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSpreadsheetWorkbook_write",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetWorkbook, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetWorkbook_write" "', argument " "1"" of type '" "rlSpreadsheetWorkbook *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetWorkbook * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSpreadsheetWorkbook_write" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->write((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetWorkbook_exists(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetWorkbook *arg1 = (rlSpreadsheetWorkbook *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlSpreadsheetWorkbook_exists",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetWorkbook, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetWorkbook_exists" "', argument " "1"" of type '" "rlSpreadsheetWorkbook *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetWorkbook * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSpreadsheetWorkbook_exists" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSpreadsheetWorkbook_exists" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSpreadsheetWorkbook_exists" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)(arg1)->exists(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetWorkbook_getFirstTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetWorkbook *arg1 = (rlSpreadsheetWorkbook *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - rlSpreadsheetTable *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSpreadsheetWorkbook_getFirstTable",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetWorkbook, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetWorkbook_getFirstTable" "', argument " "1"" of type '" "rlSpreadsheetWorkbook *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetWorkbook * >(argp1); - result = (rlSpreadsheetTable *)(arg1)->getFirstTable(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSpreadsheetTable, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSpreadsheetWorkbook_setDelimitor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSpreadsheetWorkbook *arg1 = (rlSpreadsheetWorkbook *) 0 ; - char arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - char val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSpreadsheetWorkbook_setDelimitor",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSpreadsheetWorkbook, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSpreadsheetWorkbook_setDelimitor" "', argument " "1"" of type '" "rlSpreadsheetWorkbook *""'"); - } - arg1 = reinterpret_cast< rlSpreadsheetWorkbook * >(argp1); - ecode2 = SWIG_AsVal_char(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSpreadsheetWorkbook_setDelimitor" "', argument " "2"" of type '" "char""'"); - } - arg2 = static_cast< char >(val2); - (arg1)->setDelimitor(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlSpreadsheetWorkbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlSpreadsheetWorkbook, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN int Swig_var_rlCRLF_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable rlCRLF is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_rlCRLF_get(void) { - PyObject *pyobj = 0; - - pyobj = SWIG_FromCharPtr(rlCRLF); - return pyobj; -} - - -SWIGINTERN PyObject *_wrap_new_rlString__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - rlString *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_rlString",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlString" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (rlString *)new rlString((char const *)arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlString, SWIG_POINTER_NEW | 0 ); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlString__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlString")) SWIG_fail; - result = (rlString *)new rlString(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlString, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlString__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - rlString *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_rlString",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_rlString, 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlString" "', argument " "1"" of type '" "rlString &""'"); - } - if (!argp1) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_rlString" "', argument " "1"" of type '" "rlString &""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - result = (rlString *)new rlString(*arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlString, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlString__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - rlString *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_rlString",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_rlString" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - result = (rlString *)new rlString(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlString, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlString(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[2]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 1) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_rlString__SWIG_1(self, args); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlString, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_rlString__SWIG_2(self, args); - } - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlString, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_rlString__SWIG_3(self, args); - } - } - if (argc == 1) { - int _v; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_rlString__SWIG_0(self, args); - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_rlString'.\n" - " Possible C/C++ prototypes are:\n" - " rlString::rlString(char const *)\n" - " rlString::rlString()\n" - " rlString::rlString(rlString &)\n" - " rlString::rlString(rlString *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_delete_rlString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlString",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlString" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - rlString *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlString___add__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString___add__" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlString___add__" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (rlString *) &(arg1)->operator +((char const *)arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlString, 0 | 0 ); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - rlString *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - rlString *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlString___add__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString___add__" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_rlString, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlString___add__" "', argument " "2"" of type '" "rlString &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rlString___add__" "', argument " "2"" of type '" "rlString &""'"); - } - arg2 = reinterpret_cast< rlString * >(argp2); - result = (rlString *) &(arg1)->operator +(*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlString, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString___add__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlString, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_rlString, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlString___add____SWIG_1(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlString, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlString___add____SWIG_0(self, args); - } - } - } - -fail: - Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; -} - - -SWIGINTERN PyObject *_wrap_rlString___iadd____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - rlString *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlString___iadd__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString___iadd__" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlString___iadd__" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (rlString *) &(arg1)->operator +=((char const *)arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlString, SWIG_POINTER_OWN | 0 ); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString___iadd____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - rlString *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - rlString *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlString___iadd__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString___iadd__" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_rlString, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlString___iadd__" "', argument " "2"" of type '" "rlString &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rlString___iadd__" "', argument " "2"" of type '" "rlString &""'"); - } - arg2 = reinterpret_cast< rlString * >(argp2); - result = (rlString *) &(arg1)->operator +=(*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlString, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString___iadd__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlString, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_rlString, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlString___iadd____SWIG_1(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlString, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlString___iadd____SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlString___iadd__'.\n" - " Possible C/C++ prototypes are:\n" - " rlString::operator +=(char const *)\n" - " rlString::operator +=(rlString &)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlString___eq____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlString___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString___eq__" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlString___eq__" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->operator ==((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString___eq____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - rlString *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlString___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString___eq__" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_rlString, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlString___eq__" "', argument " "2"" of type '" "rlString &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rlString___eq__" "', argument " "2"" of type '" "rlString &""'"); - } - arg2 = reinterpret_cast< rlString * >(argp2); - result = (int)(arg1)->operator ==(*arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString___eq__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlString, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_rlString, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlString___eq____SWIG_1(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlString, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlString___eq____SWIG_0(self, args); - } - } - } - -fail: - Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; -} - - -SWIGINTERN PyObject *_wrap_rlString___ne____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlString___ne__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString___ne__" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlString___ne__" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->operator !=((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString___ne____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - rlString *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlString___ne__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString___ne__" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_rlString, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlString___ne__" "', argument " "2"" of type '" "rlString &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rlString___ne__" "', argument " "2"" of type '" "rlString &""'"); - } - arg2 = reinterpret_cast< rlString * >(argp2); - result = (int)(arg1)->operator !=(*arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString___ne__(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlString, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_rlString, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlString___ne____SWIG_1(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlString, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlString___ne____SWIG_0(self, args); - } - } - } - -fail: - Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; -} - - -SWIGINTERN PyObject *_wrap_rlString_text(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlString_text",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString_text" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - result = (char *)(arg1)->text(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString_setText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlString_setText",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString_setText" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlString_setText" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->setText((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString_printf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - char *arg2 = (char *) 0 ; - void *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlString_printf",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString_printf" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlString_printf" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->printf((char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString_printf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,2); - varargs = PyTuple_GetSlice(args,2,PyTuple_Size(args)); - resultobj = _wrap_rlString_printf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_rlString_strcpy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlString_strcpy",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString_strcpy" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlString_strcpy" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->strcpy((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString_cat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlString_cat",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString_cat" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlString_cat" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->cat((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString_upper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlString_upper",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString_upper" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - result = (int)(arg1)->upper(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString_lower(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlString_lower",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString_lower" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - result = (int)(arg1)->lower(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString_startsWith(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlString_startsWith",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString_startsWith" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlString_startsWith" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->startsWith((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString_strnocasecmp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlString_strnocasecmp",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString_strnocasecmp" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlString_strnocasecmp" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->strnocasecmp((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString_strnnocasecmp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlString_strnnocasecmp",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString_strnnocasecmp" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlString_strnnocasecmp" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlString_strnnocasecmp" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->strnnocasecmp((char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString_strstr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlString_strstr",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString_strstr" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlString_strstr" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (char *)(arg1)->strstr((char const *)arg2); - resultobj = SWIG_FromCharPtr((const char *)result); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString_strchr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlString_strchr",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString_strchr" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlString_strchr" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (char *)(arg1)->strchr(arg2); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString_strrchr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlString_strrchr",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString_strrchr" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlString_strrchr" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (char *)(arg1)->strrchr(arg2); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString_removeQuotas__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - char arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - char val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlString_removeQuotas",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString_removeQuotas" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - ecode2 = SWIG_AsVal_char(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlString_removeQuotas" "', argument " "2"" of type '" "char""'"); - } - arg2 = static_cast< char >(val2); - result = (int)(arg1)->removeQuotas(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString_removeQuotas__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlString_removeQuotas",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString_removeQuotas" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - result = (int)(arg1)->removeQuotas(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString_removeQuotas(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlString, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlString_removeQuotas__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlString, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_char(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlString_removeQuotas__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlString_removeQuotas'.\n" - " Possible C/C++ prototypes are:\n" - " rlString::removeQuotas(char)\n" - " rlString::removeQuotas()\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlString_removeNewline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlString_removeNewline",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString_removeNewline" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - result = (int)(arg1)->removeNewline(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlString_read",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString_read" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlString_read" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->read((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlString_write",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString_write" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlString_write" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->write((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString_toFilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlString_toFilename",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString_toFilename" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - result = (char *)(arg1)->toFilename(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlString_toDirname(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlString *arg1 = (rlString *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlString_toDirname",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlString_toDirname" "', argument " "1"" of type '" "rlString *""'"); - } - arg1 = reinterpret_cast< rlString * >(argp1); - result = (char *)(arg1)->toDirname(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlString_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlString, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlSvgPosition__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgPosition *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlSvgPosition")) SWIG_fail; - result = (rlSvgPosition *)new rlSvgPosition(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSvgPosition, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlSvgPosition__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - float arg1 ; - float arg2 ; - float arg3 ; - float arg4 ; - float arg5 ; - float arg6 ; - float val1 ; - int ecode1 = 0 ; - float val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - float val5 ; - int ecode5 = 0 ; - float val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - rlSvgPosition *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:new_rlSvgPosition",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - ecode1 = SWIG_AsVal_float(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlSvgPosition" "', argument " "1"" of type '" "float""'"); - } - arg1 = static_cast< float >(val1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_rlSvgPosition" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_rlSvgPosition" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_rlSvgPosition" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - ecode5 = SWIG_AsVal_float(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_rlSvgPosition" "', argument " "5"" of type '" "float""'"); - } - arg5 = static_cast< float >(val5); - ecode6 = SWIG_AsVal_float(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_rlSvgPosition" "', argument " "6"" of type '" "float""'"); - } - arg6 = static_cast< float >(val6); - result = (rlSvgPosition *)new rlSvgPosition(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSvgPosition, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlSvgPosition(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_rlSvgPosition__SWIG_0(self, args); - } - if (argc == 6) { - int _v; - { - int res = SWIG_AsVal_float(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlSvgPosition__SWIG_1(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_rlSvgPosition'.\n" - " Possible C/C++ prototypes are:\n" - " rlSvgPosition::rlSvgPosition()\n" - " rlSvgPosition::rlSvgPosition(float,float,float,float,float,float)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_delete_rlSvgPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgPosition *arg1 = (rlSvgPosition *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlSvgPosition",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgPosition, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlSvgPosition" "', argument " "1"" of type '" "rlSvgPosition *""'"); - } - arg1 = reinterpret_cast< rlSvgPosition * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgPosition_sx_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgPosition *arg1 = (rlSvgPosition *) 0 ; - float arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSvgPosition_sx_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgPosition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgPosition_sx_set" "', argument " "1"" of type '" "rlSvgPosition *""'"); - } - arg1 = reinterpret_cast< rlSvgPosition * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSvgPosition_sx_set" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - if (arg1) (arg1)->sx = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgPosition_sx_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgPosition *arg1 = (rlSvgPosition *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSvgPosition_sx_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgPosition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgPosition_sx_get" "', argument " "1"" of type '" "rlSvgPosition *""'"); - } - arg1 = reinterpret_cast< rlSvgPosition * >(argp1); - result = (float) ((arg1)->sx); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgPosition_alpha_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgPosition *arg1 = (rlSvgPosition *) 0 ; - float arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSvgPosition_alpha_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgPosition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgPosition_alpha_set" "', argument " "1"" of type '" "rlSvgPosition *""'"); - } - arg1 = reinterpret_cast< rlSvgPosition * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSvgPosition_alpha_set" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - if (arg1) (arg1)->alpha = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgPosition_alpha_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgPosition *arg1 = (rlSvgPosition *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSvgPosition_alpha_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgPosition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgPosition_alpha_get" "', argument " "1"" of type '" "rlSvgPosition *""'"); - } - arg1 = reinterpret_cast< rlSvgPosition * >(argp1); - result = (float) ((arg1)->alpha); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgPosition_x0_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgPosition *arg1 = (rlSvgPosition *) 0 ; - float arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSvgPosition_x0_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgPosition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgPosition_x0_set" "', argument " "1"" of type '" "rlSvgPosition *""'"); - } - arg1 = reinterpret_cast< rlSvgPosition * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSvgPosition_x0_set" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - if (arg1) (arg1)->x0 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgPosition_x0_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgPosition *arg1 = (rlSvgPosition *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSvgPosition_x0_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgPosition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgPosition_x0_get" "', argument " "1"" of type '" "rlSvgPosition *""'"); - } - arg1 = reinterpret_cast< rlSvgPosition * >(argp1); - result = (float) ((arg1)->x0); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgPosition_y0_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgPosition *arg1 = (rlSvgPosition *) 0 ; - float arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSvgPosition_y0_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgPosition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgPosition_y0_set" "', argument " "1"" of type '" "rlSvgPosition *""'"); - } - arg1 = reinterpret_cast< rlSvgPosition * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSvgPosition_y0_set" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - if (arg1) (arg1)->y0 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgPosition_y0_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgPosition *arg1 = (rlSvgPosition *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSvgPosition_y0_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgPosition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgPosition_y0_get" "', argument " "1"" of type '" "rlSvgPosition *""'"); - } - arg1 = reinterpret_cast< rlSvgPosition * >(argp1); - result = (float) ((arg1)->y0); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgPosition_cx_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgPosition *arg1 = (rlSvgPosition *) 0 ; - float arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSvgPosition_cx_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgPosition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgPosition_cx_set" "', argument " "1"" of type '" "rlSvgPosition *""'"); - } - arg1 = reinterpret_cast< rlSvgPosition * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSvgPosition_cx_set" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - if (arg1) (arg1)->cx = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgPosition_cx_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgPosition *arg1 = (rlSvgPosition *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSvgPosition_cx_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgPosition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgPosition_cx_get" "', argument " "1"" of type '" "rlSvgPosition *""'"); - } - arg1 = reinterpret_cast< rlSvgPosition * >(argp1); - result = (float) ((arg1)->cx); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgPosition_cy_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgPosition *arg1 = (rlSvgPosition *) 0 ; - float arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSvgPosition_cy_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgPosition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgPosition_cy_set" "', argument " "1"" of type '" "rlSvgPosition *""'"); - } - arg1 = reinterpret_cast< rlSvgPosition * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSvgPosition_cy_set" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - if (arg1) (arg1)->cy = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgPosition_cy_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgPosition *arg1 = (rlSvgPosition *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSvgPosition_cy_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgPosition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgPosition_cy_get" "', argument " "1"" of type '" "rlSvgPosition *""'"); - } - arg1 = reinterpret_cast< rlSvgPosition * >(argp1); - result = (float) ((arg1)->cy); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgPosition_init_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgPosition *arg1 = (rlSvgPosition *) 0 ; - rlSvgPosition::rlPositionInit *arg2 = (rlSvgPosition::rlPositionInit *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSvgPosition_init_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgPosition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgPosition_init_set" "', argument " "1"" of type '" "rlSvgPosition *""'"); - } - arg1 = reinterpret_cast< rlSvgPosition * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlSvgPosition__rlPositionInit, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSvgPosition_init_set" "', argument " "2"" of type '" "rlSvgPosition::rlPositionInit *""'"); - } - arg2 = reinterpret_cast< rlSvgPosition::rlPositionInit * >(argp2); - if (arg1) (arg1)->init = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgPosition_init_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgPosition *arg1 = (rlSvgPosition *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - rlSvgPosition::rlPositionInit *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSvgPosition_init_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgPosition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgPosition_init_get" "', argument " "1"" of type '" "rlSvgPosition *""'"); - } - arg1 = reinterpret_cast< rlSvgPosition * >(argp1); - result = (rlSvgPosition::rlPositionInit *)& ((arg1)->init); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSvgPosition__rlPositionInit, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgPosition_setInit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgPosition *arg1 = (rlSvgPosition *) 0 ; - float arg2 ; - float arg3 ; - float arg4 ; - float arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - float val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlSvgPosition_setInit",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgPosition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgPosition_setInit" "', argument " "1"" of type '" "rlSvgPosition *""'"); - } - arg1 = reinterpret_cast< rlSvgPosition * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSvgPosition_setInit" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSvgPosition_setInit" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSvgPosition_setInit" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - ecode5 = SWIG_AsVal_float(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlSvgPosition_setInit" "', argument " "5"" of type '" "float""'"); - } - arg5 = static_cast< float >(val5); - (arg1)->setInit(arg2,arg3,arg4,arg5); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgPosition_move(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgPosition *arg1 = (rlSvgPosition *) 0 ; - float arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSvgPosition_move",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgPosition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgPosition_move" "', argument " "1"" of type '" "rlSvgPosition *""'"); - } - arg1 = reinterpret_cast< rlSvgPosition * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSvgPosition_move" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSvgPosition_move" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - (arg1)->move(arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgPosition_moveRelative(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgPosition *arg1 = (rlSvgPosition *) 0 ; - float arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSvgPosition_moveRelative",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgPosition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgPosition_moveRelative" "', argument " "1"" of type '" "rlSvgPosition *""'"); - } - arg1 = reinterpret_cast< rlSvgPosition * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSvgPosition_moveRelative" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSvgPosition_moveRelative" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - (arg1)->moveRelative(arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgPosition_scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgPosition *arg1 = (rlSvgPosition *) 0 ; - float arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSvgPosition_scale",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgPosition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgPosition_scale" "', argument " "1"" of type '" "rlSvgPosition *""'"); - } - arg1 = reinterpret_cast< rlSvgPosition * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSvgPosition_scale" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - (arg1)->scale(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgPosition_scaleRelative(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgPosition *arg1 = (rlSvgPosition *) 0 ; - float arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSvgPosition_scaleRelative",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgPosition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgPosition_scaleRelative" "', argument " "1"" of type '" "rlSvgPosition *""'"); - } - arg1 = reinterpret_cast< rlSvgPosition * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSvgPosition_scaleRelative" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - (arg1)->scaleRelative(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgPosition_rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgPosition *arg1 = (rlSvgPosition *) 0 ; - float arg2 ; - float arg3 ; - float arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlSvgPosition_rotate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgPosition, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgPosition_rotate" "', argument " "1"" of type '" "rlSvgPosition *""'"); - } - arg1 = reinterpret_cast< rlSvgPosition * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSvgPosition_rotate" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSvgPosition_rotate" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSvgPosition_rotate" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - (arg1)->rotate(arg2,arg3,arg4); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlSvgPosition_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlSvgPosition, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlSvgAnimator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlSvgAnimator")) SWIG_fail; - result = (rlSvgAnimator *)new rlSvgAnimator(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSvgAnimator, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_rlSvgAnimator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlSvgAnimator",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlSvgAnimator" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_setSocket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - int *arg2 = (int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSvgAnimator_setSocket",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_setSocket" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSvgAnimator_setSocket" "', argument " "2"" of type '" "int *""'"); - } - arg2 = reinterpret_cast< int * >(argp2); - result = (int)(arg1)->setSocket(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_setId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSvgAnimator_setId",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_setId" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSvgAnimator_setId" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->setId(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_read__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - char *arg2 = (char *) 0 ; - rlIniFile *arg3 = (rlIniFile *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSvgAnimator_read",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_read" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSvgAnimator_read" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_rlIniFile, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlSvgAnimator_read" "', argument " "3"" of type '" "rlIniFile *""'"); - } - arg3 = reinterpret_cast< rlIniFile * >(argp3); - result = (int)(arg1)->read((char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_read__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSvgAnimator_read",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_read" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSvgAnimator_read" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->read((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_read(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSvgAnimator, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlSvgAnimator_read__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSvgAnimator, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_rlIniFile, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlSvgAnimator_read__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlSvgAnimator_read'.\n" - " Possible C/C++ prototypes are:\n" - " rlSvgAnimator::read(char const *,rlIniFile *)\n" - " rlSvgAnimator::read(char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_writeSocket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSvgAnimator_writeSocket",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_writeSocket" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - result = (int)(arg1)->writeSocket(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_svgPrintf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - void *arg5 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlSvgAnimator_svgPrintf",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_svgPrintf" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSvgAnimator_svgPrintf" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlSvgAnimator_svgPrintf" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlSvgAnimator_svgPrintf" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)(arg1)->svgPrintf((char const *)arg2,(char const *)arg3,(char const *)arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_svgPrintf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,4); - varargs = PyTuple_GetSlice(args,4,PyTuple_Size(args)); - resultobj = _wrap_rlSvgAnimator_svgPrintf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_svgRecursivePrintf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - void *arg5 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlSvgAnimator_svgRecursivePrintf",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_svgRecursivePrintf" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSvgAnimator_svgRecursivePrintf" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlSvgAnimator_svgRecursivePrintf" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlSvgAnimator_svgRecursivePrintf" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)(arg1)->svgRecursivePrintf((char const *)arg2,(char const *)arg3,(char const *)arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_svgRecursivePrintf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,4); - varargs = PyTuple_GetSlice(args,4,PyTuple_Size(args)); - resultobj = _wrap_rlSvgAnimator_svgRecursivePrintf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_svgSearchAndReplace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlSvgAnimator_svgSearchAndReplace",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_svgSearchAndReplace" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSvgAnimator_svgSearchAndReplace" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlSvgAnimator_svgSearchAndReplace" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlSvgAnimator_svgSearchAndReplace" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "rlSvgAnimator_svgSearchAndReplace" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - result = (int)(arg1)->svgSearchAndReplace((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_svgRecursiveSearchAndReplace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:rlSvgAnimator_svgRecursiveSearchAndReplace",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_svgRecursiveSearchAndReplace" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSvgAnimator_svgRecursiveSearchAndReplace" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlSvgAnimator_svgRecursiveSearchAndReplace" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlSvgAnimator_svgRecursiveSearchAndReplace" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "rlSvgAnimator_svgRecursiveSearchAndReplace" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - result = (int)(arg1)->svgRecursiveSearchAndReplace((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_svgTextPrintf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSvgAnimator_svgTextPrintf",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_svgTextPrintf" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSvgAnimator_svgTextPrintf" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlSvgAnimator_svgTextPrintf" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)(arg1)->svgTextPrintf((char const *)arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_svgTextPrintf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,3); - varargs = PyTuple_GetSlice(args,3,PyTuple_Size(args)); - resultobj = _wrap_rlSvgAnimator_svgTextPrintf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_svgRemoveStyleOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSvgAnimator_svgRemoveStyleOption",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_svgRemoveStyleOption" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSvgAnimator_svgRemoveStyleOption" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlSvgAnimator_svgRemoveStyleOption" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)(arg1)->svgRemoveStyleOption((char const *)arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_svgRecursiveRemoveStyleOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSvgAnimator_svgRecursiveRemoveStyleOption",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_svgRecursiveRemoveStyleOption" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSvgAnimator_svgRecursiveRemoveStyleOption" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlSvgAnimator_svgRecursiveRemoveStyleOption" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)(arg1)->svgRecursiveRemoveStyleOption((char const *)arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_svgChangeStyleOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlSvgAnimator_svgChangeStyleOption",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_svgChangeStyleOption" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSvgAnimator_svgChangeStyleOption" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlSvgAnimator_svgChangeStyleOption" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlSvgAnimator_svgChangeStyleOption" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)(arg1)->svgChangeStyleOption((char const *)arg2,(char const *)arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_svgRecursiveChangeStyleOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlSvgAnimator_svgRecursiveChangeStyleOption",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_svgRecursiveChangeStyleOption" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSvgAnimator_svgRecursiveChangeStyleOption" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlSvgAnimator_svgRecursiveChangeStyleOption" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "rlSvgAnimator_svgRecursiveChangeStyleOption" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)(arg1)->svgRecursiveChangeStyleOption((char const *)arg2,(char const *)arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_svgSetStyleOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSvgAnimator_svgSetStyleOption",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_svgSetStyleOption" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSvgAnimator_svgSetStyleOption" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlSvgAnimator_svgSetStyleOption" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)(arg1)->svgSetStyleOption((char const *)arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_svgRecursiveSetStyleOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSvgAnimator_svgRecursiveSetStyleOption",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_svgRecursiveSetStyleOption" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSvgAnimator_svgRecursiveSetStyleOption" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlSvgAnimator_svgRecursiveSetStyleOption" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)(arg1)->svgRecursiveSetStyleOption((char const *)arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSvgAnimator_show",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_show" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSvgAnimator_show" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSvgAnimator_show" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->show((char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_setMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - char *arg2 = (char *) 0 ; - float arg3 ; - float arg4 ; - float arg5 ; - float arg6 ; - float arg7 ; - float arg8 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - float val5 ; - int ecode5 = 0 ; - float val6 ; - int ecode6 = 0 ; - float val7 ; - int ecode7 = 0 ; - float val8 ; - int ecode8 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:rlSvgAnimator_setMatrix",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_setMatrix" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSvgAnimator_setMatrix" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSvgAnimator_setMatrix" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlSvgAnimator_setMatrix" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - ecode5 = SWIG_AsVal_float(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "rlSvgAnimator_setMatrix" "', argument " "5"" of type '" "float""'"); - } - arg5 = static_cast< float >(val5); - ecode6 = SWIG_AsVal_float(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "rlSvgAnimator_setMatrix" "', argument " "6"" of type '" "float""'"); - } - arg6 = static_cast< float >(val6); - ecode7 = SWIG_AsVal_float(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "rlSvgAnimator_setMatrix" "', argument " "7"" of type '" "float""'"); - } - arg7 = static_cast< float >(val7); - ecode8 = SWIG_AsVal_float(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "rlSvgAnimator_setMatrix" "', argument " "8"" of type '" "float""'"); - } - arg8 = static_cast< float >(val8); - result = (int)(arg1)->setMatrix((char const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_setMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - char *arg2 = (char *) 0 ; - rlSvgPosition *arg3 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSvgAnimator_setMatrix",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_setMatrix" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSvgAnimator_setMatrix" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_rlSvgPosition, 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlSvgAnimator_setMatrix" "', argument " "3"" of type '" "rlSvgPosition &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rlSvgAnimator_setMatrix" "', argument " "3"" of type '" "rlSvgPosition &""'"); - } - arg3 = reinterpret_cast< rlSvgPosition * >(argp3); - result = (int)(arg1)->setMatrix((char const *)arg2,*arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_setMatrix(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[9]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 8) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSvgAnimator, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_rlSvgPosition, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlSvgAnimator_setMatrix__SWIG_1(self, args); - } - } - } - } - if (argc == 8) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSvgAnimator, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_float(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlSvgAnimator_setMatrix__SWIG_0(self, args); - } - } - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlSvgAnimator_setMatrix'.\n" - " Possible C/C++ prototypes are:\n" - " rlSvgAnimator::setMatrix(char const *,float,float,float,float,float,float)\n" - " rlSvgAnimator::setMatrix(char const *,rlSvgPosition &)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_setMainObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSvgAnimator_setMainObject",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_setMainObject" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSvgAnimator_setMainObject" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->setMainObject((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_mainObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSvgAnimator_mainObject",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_mainObject" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - result = (char *)(arg1)->mainObject(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_setXY0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - float arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSvgAnimator_setXY0",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_setXY0" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSvgAnimator_setXY0" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSvgAnimator_setXY0" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)(arg1)->setXY0(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_x0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSvgAnimator_x0",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_x0" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - result = (float)(arg1)->x0(); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_y0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSvgAnimator_y0",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_y0" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - result = (float)(arg1)->y0(); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_setMouseXY0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - float arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSvgAnimator_setMouseXY0",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_setMouseXY0" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSvgAnimator_setMouseXY0" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSvgAnimator_setMouseXY0" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)(arg1)->setMouseXY0(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_mouseX0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSvgAnimator_mouseX0",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_mouseX0" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - result = (float)(arg1)->mouseX0(); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_mouseY0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSvgAnimator_mouseY0",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_mouseY0" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - result = (float)(arg1)->mouseY0(); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_setMouseXY1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - float arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSvgAnimator_setMouseXY1",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_setMouseXY1" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSvgAnimator_setMouseXY1" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSvgAnimator_setMouseXY1" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)(arg1)->setMouseXY1(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_mouseX1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSvgAnimator_mouseX1",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_mouseX1" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - result = (float)(arg1)->mouseX1(); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_mouseY1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSvgAnimator_mouseY1",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_mouseY1" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - result = (float)(arg1)->mouseY1(); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_setScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - float arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSvgAnimator_setScale",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_setScale" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSvgAnimator_setScale" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - result = (int)(arg1)->setScale(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSvgAnimator_scale",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_scale" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - result = (float)(arg1)->scale(); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_zoomCenter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - float arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSvgAnimator_zoomCenter",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_zoomCenter" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSvgAnimator_zoomCenter" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - result = (int)(arg1)->zoomCenter(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_zoomRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSvgAnimator_zoomRect",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_zoomRect" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - result = (int)(arg1)->zoomRect(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_setMainObjectMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSvgAnimator_setMainObjectMatrix",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_setMainObjectMatrix" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - result = (int)(arg1)->setMainObjectMatrix(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_setWindowSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSvgAnimator_setWindowSize",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_setWindowSize" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSvgAnimator_setWindowSize" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSvgAnimator_setWindowSize" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->setWindowSize(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_windowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSvgAnimator_windowWidth",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_windowWidth" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - result = (float)(arg1)->windowWidth(); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_windowHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSvgAnimator_windowHeight",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_windowHeight" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - result = (float)(arg1)->windowHeight(); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_moveMainObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - float arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSvgAnimator_moveMainObject",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_moveMainObject" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSvgAnimator_moveMainObject" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSvgAnimator_moveMainObject" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)(arg1)->moveMainObject(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_isModified_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSvgAnimator_isModified_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_isModified_set" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlSvgAnimator_isModified_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->isModified = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgAnimator_isModified_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgAnimator *arg1 = (rlSvgAnimator *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSvgAnimator_isModified_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgAnimator, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgAnimator_isModified_get" "', argument " "1"" of type '" "rlSvgAnimator *""'"); - } - arg1 = reinterpret_cast< rlSvgAnimator * >(argp1); - result = (int) ((arg1)->isModified); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlSvgAnimator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlSvgAnimator, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlSvgCat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgCat *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlSvgCat")) SWIG_fail; - result = (rlSvgCat *)new rlSvgCat(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSvgCat, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_rlSvgCat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgCat *arg1 = (rlSvgCat *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlSvgCat",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgCat, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlSvgCat" "', argument " "1"" of type '" "rlSvgCat *""'"); - } - arg1 = reinterpret_cast< rlSvgCat * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgCat_open__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgCat *arg1 = (rlSvgCat *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSvgCat_open",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgCat, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgCat_open" "', argument " "1"" of type '" "rlSvgCat *""'"); - } - arg1 = reinterpret_cast< rlSvgCat * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSvgCat_open" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "rlSvgCat_open" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)(arg1)->open((char const *)arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgCat_open__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgCat *arg1 = (rlSvgCat *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlSvgCat_open",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgCat, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgCat_open" "', argument " "1"" of type '" "rlSvgCat *""'"); - } - arg1 = reinterpret_cast< rlSvgCat * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSvgCat_open" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->open((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgCat_open(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSvgCat, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlSvgCat_open__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlSvgCat, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlSvgCat_open__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlSvgCat_open'.\n" - " Possible C/C++ prototypes are:\n" - " rlSvgCat::open(char const *,char const *)\n" - " rlSvgCat::open(char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlSvgCat_reopenSocket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgCat *arg1 = (rlSvgCat *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlSvgCat_reopenSocket",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgCat, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgCat_reopenSocket" "', argument " "1"" of type '" "rlSvgCat *""'"); - } - arg1 = reinterpret_cast< rlSvgCat * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlSvgCat_reopenSocket" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlSvgCat_reopenSocket" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->reopenSocket((char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgCat_cat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgCat *arg1 = (rlSvgCat *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSvgCat_cat",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgCat, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgCat_cat" "', argument " "1"" of type '" "rlSvgCat *""'"); - } - arg1 = reinterpret_cast< rlSvgCat * >(argp1); - (arg1)->cat(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlSvgCat_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlSvgCat *arg1 = (rlSvgCat *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlSvgCat_close",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlSvgCat, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlSvgCat_close" "', argument " "1"" of type '" "rlSvgCat *""'"); - } - arg1 = reinterpret_cast< rlSvgCat * >(argp1); - (arg1)->close(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlSvgCat_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlSvgCat, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlTime__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int val1 ; - int ecode1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - rlTime *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:new_rlTime",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlTime" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_rlTime" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_rlTime" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_rlTime" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_rlTime" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_rlTime" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_rlTime" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - result = (rlTime *)new rlTime(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlTime, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlTime__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int val1 ; - int ecode1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - rlTime *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:new_rlTime",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlTime" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_rlTime" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_rlTime" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_rlTime" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_rlTime" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_rlTime" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (rlTime *)new rlTime(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlTime, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlTime__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int val1 ; - int ecode1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - rlTime *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:new_rlTime",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlTime" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_rlTime" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_rlTime" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_rlTime" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_rlTime" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (rlTime *)new rlTime(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlTime, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlTime__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int arg2 ; - int arg3 ; - int arg4 ; - int val1 ; - int ecode1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - rlTime *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:new_rlTime",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlTime" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_rlTime" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_rlTime" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_rlTime" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (rlTime *)new rlTime(arg1,arg2,arg3,arg4); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlTime, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlTime__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int arg2 ; - int arg3 ; - int val1 ; - int ecode1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - rlTime *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:new_rlTime",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlTime" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_rlTime" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_rlTime" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (rlTime *)new rlTime(arg1,arg2,arg3); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlTime, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlTime__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int arg2 ; - int val1 ; - int ecode1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - rlTime *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:new_rlTime",&obj0,&obj1)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlTime" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_rlTime" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (rlTime *)new rlTime(arg1,arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlTime, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlTime__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - rlTime *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_rlTime",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_rlTime" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (rlTime *)new rlTime(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlTime, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlTime__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlTime")) SWIG_fail; - result = (rlTime *)new rlTime(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlTime, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_rlTime(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[8]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 7) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 0) { - return _wrap_new_rlTime__SWIG_7(self, args); - } - if (argc == 1) { - int _v; - { - int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlTime__SWIG_6(self, args); - } - } - if (argc == 2) { - int _v; - { - int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlTime__SWIG_5(self, args); - } - } - } - if (argc == 3) { - int _v; - { - int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlTime__SWIG_4(self, args); - } - } - } - } - if (argc == 4) { - int _v; - { - int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlTime__SWIG_3(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - { - int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlTime__SWIG_2(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - { - int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlTime__SWIG_1(self, args); - } - } - } - } - } - } - } - if (argc == 7) { - int _v; - { - int res = SWIG_AsVal_int(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_rlTime__SWIG_0(self, args); - } - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_rlTime'.\n" - " Possible C/C++ prototypes are:\n" - " rlTime::rlTime(int,int,int,int,int,int,int)\n" - " rlTime::rlTime(int,int,int,int,int,int)\n" - " rlTime::rlTime(int,int,int,int,int)\n" - " rlTime::rlTime(int,int,int,int)\n" - " rlTime::rlTime(int,int,int)\n" - " rlTime::rlTime(int,int)\n" - " rlTime::rlTime(int)\n" - " rlTime::rlTime()\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_delete_rlTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlTime",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlTime" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime_getTimeString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlTime_getTimeString",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime_getTimeString" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - result = (char *)(arg1)->getTimeString(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime_getIsoTimeString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlTime_getIsoTimeString",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime_getIsoTimeString" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - result = (char *)(arg1)->getIsoTimeString(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime_getLocalTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlTime_getLocalTime",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime_getLocalTime" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - (arg1)->getLocalTime(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime_getFileModificationTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlTime_getFileModificationTime",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime_getFileModificationTime" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlTime_getFileModificationTime" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->getFileModificationTime((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime_setTimeFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlTime_setTimeFromString",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime_setTimeFromString" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlTime_setTimeFromString" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - (arg1)->setTimeFromString((char const *)arg2); - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime_setTimeFromIsoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlTime_setTimeFromIsoString",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime_setTimeFromIsoString" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlTime_setTimeFromIsoString" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - (arg1)->setTimeFromIsoString((char const *)arg2); - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime_setLocalTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlTime_setLocalTime",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime_setLocalTime" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - (arg1)->setLocalTime(); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime_secondsSinceEpoche(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - double result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlTime_secondsSinceEpoche",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime_secondsSinceEpoche" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - result = (double)(arg1)->secondsSinceEpoche(); - resultobj = SWIG_From_double(static_cast< double >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - rlTime *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - rlTime *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlTime___iadd__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime___iadd__" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_rlTime, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlTime___iadd__" "', argument " "2"" of type '" "rlTime &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rlTime___iadd__" "', argument " "2"" of type '" "rlTime &""'"); - } - arg2 = reinterpret_cast< rlTime * >(argp2); - result = (rlTime *) &(arg1)->operator +=(*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlTime, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - rlTime *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - rlTime *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlTime___isub__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime___isub__" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_rlTime, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlTime___isub__" "', argument " "2"" of type '" "rlTime &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rlTime___isub__" "', argument " "2"" of type '" "rlTime &""'"); - } - arg2 = reinterpret_cast< rlTime * >(argp2); - result = (rlTime *) &(arg1)->operator -=(*arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlTime, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - rlTime *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - rlTime result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlTime___add__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime___add__" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_rlTime, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlTime___add__" "', argument " "2"" of type '" "rlTime &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rlTime___add__" "', argument " "2"" of type '" "rlTime &""'"); - } - arg2 = reinterpret_cast< rlTime * >(argp2); - result = (arg1)->operator +(*arg2); - resultobj = SWIG_NewPointerObj((new rlTime(static_cast< const rlTime& >(result))), SWIGTYPE_p_rlTime, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - rlTime *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - rlTime result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlTime___sub__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime___sub__" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_rlTime, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlTime___sub__" "', argument " "2"" of type '" "rlTime &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rlTime___sub__" "', argument " "2"" of type '" "rlTime &""'"); - } - arg2 = reinterpret_cast< rlTime * >(argp2); - result = (arg1)->operator -(*arg2); - resultobj = SWIG_NewPointerObj((new rlTime(static_cast< const rlTime& >(result))), SWIGTYPE_p_rlTime, SWIG_POINTER_OWN | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - rlTime *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlTime___eq__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime___eq__" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_rlTime, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlTime___eq__" "', argument " "2"" of type '" "rlTime &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rlTime___eq__" "', argument " "2"" of type '" "rlTime &""'"); - } - arg2 = reinterpret_cast< rlTime * >(argp2); - result = (int)(arg1)->operator ==(*arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime___lt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - rlTime *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlTime___lt__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime___lt__" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_rlTime, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlTime___lt__" "', argument " "2"" of type '" "rlTime &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rlTime___lt__" "', argument " "2"" of type '" "rlTime &""'"); - } - arg2 = reinterpret_cast< rlTime * >(argp2); - result = (int)(arg1)->operator <(*arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime___le__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - rlTime *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlTime___le__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime___le__" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_rlTime, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlTime___le__" "', argument " "2"" of type '" "rlTime &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rlTime___le__" "', argument " "2"" of type '" "rlTime &""'"); - } - arg2 = reinterpret_cast< rlTime * >(argp2); - result = (int)(arg1)->operator <=(*arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime___gt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - rlTime *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlTime___gt__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime___gt__" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_rlTime, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlTime___gt__" "', argument " "2"" of type '" "rlTime &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rlTime___gt__" "', argument " "2"" of type '" "rlTime &""'"); - } - arg2 = reinterpret_cast< rlTime * >(argp2); - result = (int)(arg1)->operator >(*arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime___ge__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - rlTime *arg2 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlTime___ge__",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime___ge__" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_rlTime, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlTime___ge__" "', argument " "2"" of type '" "rlTime &""'"); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rlTime___ge__" "', argument " "2"" of type '" "rlTime &""'"); - } - arg2 = reinterpret_cast< rlTime * >(argp2); - result = (int)(arg1)->operator >=(*arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime_year_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlTime_year_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime_year_set" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlTime_year_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->year = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime_year_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlTime_year_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime_year_get" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - result = (int) ((arg1)->year); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime_month_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlTime_month_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime_month_set" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlTime_month_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->month = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime_month_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlTime_month_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime_month_get" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - result = (int) ((arg1)->month); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime_day_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlTime_day_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime_day_set" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlTime_day_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->day = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime_day_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlTime_day_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime_day_get" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - result = (int) ((arg1)->day); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime_hour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlTime_hour_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime_hour_set" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlTime_hour_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->hour = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime_hour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlTime_hour_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime_hour_get" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - result = (int) ((arg1)->hour); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime_minute_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlTime_minute_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime_minute_set" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlTime_minute_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->minute = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime_minute_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlTime_minute_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime_minute_get" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - result = (int) ((arg1)->minute); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime_second_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlTime_second_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime_second_set" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlTime_second_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->second = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime_second_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlTime_second_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime_second_get" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - result = (int) ((arg1)->second); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime_millisecond_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlTime_millisecond_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime_millisecond_set" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlTime_millisecond_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->millisecond = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlTime_millisecond_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlTime *arg1 = (rlTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlTime_millisecond_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlTime_millisecond_get" "', argument " "1"" of type '" "rlTime *""'"); - } - arg1 = reinterpret_cast< rlTime * >(argp1); - result = (int) ((arg1)->millisecond); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlTime_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlTime, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_rlWebcam(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlWebcam *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_rlWebcam")) SWIG_fail; - result = (rlWebcam *)new rlWebcam(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlWebcam, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_rlWebcam(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlWebcam *arg1 = (rlWebcam *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_rlWebcam",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlWebcam, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_rlWebcam" "', argument " "1"" of type '" "rlWebcam *""'"); - } - arg1 = reinterpret_cast< rlWebcam * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlWebcam_setUrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlWebcam *arg1 = (rlWebcam *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlWebcam_setUrl",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlWebcam, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlWebcam_setUrl" "', argument " "1"" of type '" "rlWebcam *""'"); - } - arg1 = reinterpret_cast< rlWebcam * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlWebcam_setUrl" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->setUrl((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlWebcam_disconnect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlWebcam *arg1 = (rlWebcam *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlWebcam_disconnect",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlWebcam, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlWebcam_disconnect" "', argument " "1"" of type '" "rlWebcam *""'"); - } - arg1 = reinterpret_cast< rlWebcam * >(argp1); - result = (int)(arg1)->disconnect(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlWebcam_getSnapshot__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlWebcam *arg1 = (rlWebcam *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlWebcam_getSnapshot",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlWebcam, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlWebcam_getSnapshot" "', argument " "1"" of type '" "rlWebcam *""'"); - } - arg1 = reinterpret_cast< rlWebcam * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlWebcam_getSnapshot" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (char *)(arg1)->getSnapshot(arg2); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlWebcam_getSnapshot__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlWebcam *arg1 = (rlWebcam *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlWebcam_getSnapshot",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlWebcam, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlWebcam_getSnapshot" "', argument " "1"" of type '" "rlWebcam *""'"); - } - arg1 = reinterpret_cast< rlWebcam * >(argp1); - result = (char *)(arg1)->getSnapshot(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlWebcam_getSnapshot(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlWebcam, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlWebcam_getSnapshot__SWIG_1(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlWebcam, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlWebcam_getSnapshot__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlWebcam_getSnapshot'.\n" - " Possible C/C++ prototypes are:\n" - " rlWebcam::getSnapshot(int)\n" - " rlWebcam::getSnapshot()\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlWebcam_getFrame__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlWebcam *arg1 = (rlWebcam *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlWebcam_getFrame",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlWebcam, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlWebcam_getFrame" "', argument " "1"" of type '" "rlWebcam *""'"); - } - arg1 = reinterpret_cast< rlWebcam * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlWebcam_getFrame" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlWebcam_getFrame" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (char *)(arg1)->getFrame(arg2,arg3); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlWebcam_getFrame__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlWebcam *arg1 = (rlWebcam *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlWebcam_getFrame",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlWebcam, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlWebcam_getFrame" "', argument " "1"" of type '" "rlWebcam *""'"); - } - arg1 = reinterpret_cast< rlWebcam * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlWebcam_getFrame" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (char *)(arg1)->getFrame(arg2); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlWebcam_getFrame__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlWebcam *arg1 = (rlWebcam *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlWebcam_getFrame",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlWebcam, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlWebcam_getFrame" "', argument " "1"" of type '" "rlWebcam *""'"); - } - arg1 = reinterpret_cast< rlWebcam * >(argp1); - result = (char *)(arg1)->getFrame(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlWebcam_getFrame(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 1) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlWebcam, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_rlWebcam_getFrame__SWIG_2(self, args); - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlWebcam, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlWebcam_getFrame__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlWebcam, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlWebcam_getFrame__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlWebcam_getFrame'.\n" - " Possible C/C++ prototypes are:\n" - " rlWebcam::getFrame(int,int)\n" - " rlWebcam::getFrame(int)\n" - " rlWebcam::getFrame()\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlWebcam_getFrameBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlWebcam *arg1 = (rlWebcam *) 0 ; - unsigned char *arg2 = (unsigned char *) 0 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:rlWebcam_getFrameBuffer",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlWebcam, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlWebcam_getFrameBuffer" "', argument " "1"" of type '" "rlWebcam *""'"); - } - arg1 = reinterpret_cast< rlWebcam * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlWebcam_getFrameBuffer" "', argument " "2"" of type '" "unsigned char *""'"); - } - arg2 = reinterpret_cast< unsigned char * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlWebcam_getFrameBuffer" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "rlWebcam_getFrameBuffer" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)(arg1)->getFrameBuffer(arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlWebcam_getFrameBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlWebcam *arg1 = (rlWebcam *) 0 ; - unsigned char *arg2 = (unsigned char *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:rlWebcam_getFrameBuffer",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlWebcam, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlWebcam_getFrameBuffer" "', argument " "1"" of type '" "rlWebcam *""'"); - } - arg1 = reinterpret_cast< rlWebcam * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlWebcam_getFrameBuffer" "', argument " "2"" of type '" "unsigned char *""'"); - } - arg2 = reinterpret_cast< unsigned char * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "rlWebcam_getFrameBuffer" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->getFrameBuffer(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlWebcam_getFrameBuffer(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlWebcam, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlWebcam_getFrameBuffer__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_rlWebcam, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_rlWebcam_getFrameBuffer__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'rlWebcam_getFrameBuffer'.\n" - " Possible C/C++ prototypes are:\n" - " rlWebcam::getFrameBuffer(unsigned char *,int,int)\n" - " rlWebcam::getFrameBuffer(unsigned char *,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_rlWebcam_getUrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlWebcam *arg1 = (rlWebcam *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlWebcam_getUrl",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlWebcam, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlWebcam_getUrl" "', argument " "1"" of type '" "rlWebcam *""'"); - } - arg1 = reinterpret_cast< rlWebcam * >(argp1); - result = (char *)(arg1)->getUrl(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlWebcam_getHost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlWebcam *arg1 = (rlWebcam *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlWebcam_getHost",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlWebcam, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlWebcam_getHost" "', argument " "1"" of type '" "rlWebcam *""'"); - } - arg1 = reinterpret_cast< rlWebcam * >(argp1); - result = (char *)(arg1)->getHost(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlWebcam_getPort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlWebcam *arg1 = (rlWebcam *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlWebcam_getPort",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlWebcam, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlWebcam_getPort" "', argument " "1"" of type '" "rlWebcam *""'"); - } - arg1 = reinterpret_cast< rlWebcam * >(argp1); - result = (int)(arg1)->getPort(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlWebcam_getPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlWebcam *arg1 = (rlWebcam *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlWebcam_getPath",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlWebcam, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlWebcam_getPath" "', argument " "1"" of type '" "rlWebcam *""'"); - } - arg1 = reinterpret_cast< rlWebcam * >(argp1); - result = (char *)(arg1)->getPath(); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlWebcam_debug_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlWebcam *arg1 = (rlWebcam *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlWebcam_debug_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlWebcam, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlWebcam_debug_set" "', argument " "1"" of type '" "rlWebcam *""'"); - } - arg1 = reinterpret_cast< rlWebcam * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rlWebcam_debug_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->debug = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlWebcam_debug_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlWebcam *arg1 = (rlWebcam *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:rlWebcam_debug_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlWebcam, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlWebcam_debug_get" "', argument " "1"" of type '" "rlWebcam *""'"); - } - arg1 = reinterpret_cast< rlWebcam * >(argp1); - result = (int) ((arg1)->debug); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlWebcam_filename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlWebcam *arg1 = (rlWebcam *) 0 ; - rlString *arg2 = (rlString *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlWebcam_filename_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlWebcam, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlWebcam_filename_set" "', argument " "1"" of type '" "rlWebcam *""'"); - } - arg1 = reinterpret_cast< rlWebcam * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlString, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlWebcam_filename_set" "', argument " "2"" of type '" "rlString *""'"); - } - arg2 = reinterpret_cast< rlString * >(argp2); - if (arg1) (arg1)->filename = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlWebcam_filename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlWebcam *arg1 = (rlWebcam *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - rlString *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlWebcam_filename_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlWebcam, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlWebcam_filename_get" "', argument " "1"" of type '" "rlWebcam *""'"); - } - arg1 = reinterpret_cast< rlWebcam * >(argp1); - result = (rlString *)& ((arg1)->filename); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlString, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlWebcam_sock_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlWebcam *arg1 = (rlWebcam *) 0 ; - rlSocket *arg2 = (rlSocket *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:rlWebcam_sock_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlWebcam, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlWebcam_sock_set" "', argument " "1"" of type '" "rlWebcam *""'"); - } - arg1 = reinterpret_cast< rlWebcam * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_rlSocket, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rlWebcam_sock_set" "', argument " "2"" of type '" "rlSocket *""'"); - } - arg2 = reinterpret_cast< rlSocket * >(argp2); - if (arg1) (arg1)->sock = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_rlWebcam_sock_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - rlWebcam *arg1 = (rlWebcam *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - rlSocket *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlWebcam_sock_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_rlWebcam, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rlWebcam_sock_get" "', argument " "1"" of type '" "rlWebcam *""'"); - } - arg1 = reinterpret_cast< rlWebcam * >(argp1); - result = (rlSocket *) ((arg1)->sock); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_rlSocket, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *rlWebcam_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_rlWebcam, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_rlsleep(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - long arg1 ; - long val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:rlsleep",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "rlsleep" "', argument " "1"" of type '" "long""'"); - } - arg1 = static_cast< long >(val1); - rlsleep(arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -static PyMethodDef SwigMethods[] = { - { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL}, - { (char *)"THREAD_PARAM_thread_set", _wrap_THREAD_PARAM_thread_set, METH_VARARGS, NULL}, - { (char *)"THREAD_PARAM_thread_get", _wrap_THREAD_PARAM_thread_get, METH_VARARGS, NULL}, - { (char *)"THREAD_PARAM_user_set", _wrap_THREAD_PARAM_user_set, METH_VARARGS, NULL}, - { (char *)"THREAD_PARAM_user_get", _wrap_THREAD_PARAM_user_get, METH_VARARGS, NULL}, - { (char *)"THREAD_PARAM_running_set", _wrap_THREAD_PARAM_running_set, METH_VARARGS, NULL}, - { (char *)"THREAD_PARAM_running_get", _wrap_THREAD_PARAM_running_get, METH_VARARGS, NULL}, - { (char *)"new_THREAD_PARAM", _wrap_new_THREAD_PARAM, METH_VARARGS, NULL}, - { (char *)"delete_THREAD_PARAM", _wrap_delete_THREAD_PARAM, METH_VARARGS, NULL}, - { (char *)"THREAD_PARAM_swigregister", THREAD_PARAM_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlThread", _wrap_new_rlThread, METH_VARARGS, NULL}, - { (char *)"delete_rlThread", _wrap_delete_rlThread, METH_VARARGS, NULL}, - { (char *)"rlThread_create", _wrap_rlThread_create, METH_VARARGS, NULL}, - { (char *)"rlThread_trylock", _wrap_rlThread_trylock, METH_VARARGS, NULL}, - { (char *)"rlThread_lock", _wrap_rlThread_lock, METH_VARARGS, NULL}, - { (char *)"rlThread_unlock", _wrap_rlThread_unlock, METH_VARARGS, NULL}, - { (char *)"rlThread_waitSemaphore", _wrap_rlThread_waitSemaphore, METH_VARARGS, NULL}, - { (char *)"rlThread_incrementSemaphore", _wrap_rlThread_incrementSemaphore, METH_VARARGS, NULL}, - { (char *)"rlThread_join", _wrap_rlThread_join, METH_VARARGS, NULL}, - { (char *)"rlThread_cancel", _wrap_rlThread_cancel, METH_VARARGS, NULL}, - { (char *)"rlThread_threadExit", _wrap_rlThread_threadExit, METH_VARARGS, NULL}, - { (char *)"rlThread_tid_set", _wrap_rlThread_tid_set, METH_VARARGS, NULL}, - { (char *)"rlThread_tid_get", _wrap_rlThread_tid_get, METH_VARARGS, NULL}, - { (char *)"rlThread_attr_set", _wrap_rlThread_attr_set, METH_VARARGS, NULL}, - { (char *)"rlThread_attr_get", _wrap_rlThread_attr_get, METH_VARARGS, NULL}, - { (char *)"rlThread_mutex_set", _wrap_rlThread_mutex_set, METH_VARARGS, NULL}, - { (char *)"rlThread_mutex_get", _wrap_rlThread_mutex_get, METH_VARARGS, NULL}, - { (char *)"rlThread_semaphore_set", _wrap_rlThread_semaphore_set, METH_VARARGS, NULL}, - { (char *)"rlThread_semaphore_get", _wrap_rlThread_semaphore_get, METH_VARARGS, NULL}, - { (char *)"rlThread_swigregister", rlThread_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlMutex", _wrap_new_rlMutex, METH_VARARGS, NULL}, - { (char *)"delete_rlMutex", _wrap_delete_rlMutex, METH_VARARGS, NULL}, - { (char *)"rlMutex_trylock", _wrap_rlMutex_trylock, METH_VARARGS, NULL}, - { (char *)"rlMutex_lock", _wrap_rlMutex_lock, METH_VARARGS, NULL}, - { (char *)"rlMutex_unlock", _wrap_rlMutex_unlock, METH_VARARGS, NULL}, - { (char *)"rlMutex_mutex_set", _wrap_rlMutex_mutex_set, METH_VARARGS, NULL}, - { (char *)"rlMutex_mutex_get", _wrap_rlMutex_mutex_get, METH_VARARGS, NULL}, - { (char *)"rlMutex_swigregister", rlMutex_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlSemaphore", _wrap_new_rlSemaphore, METH_VARARGS, NULL}, - { (char *)"delete_rlSemaphore", _wrap_delete_rlSemaphore, METH_VARARGS, NULL}, - { (char *)"rlSemaphore_waitSemaphore", _wrap_rlSemaphore_waitSemaphore, METH_VARARGS, NULL}, - { (char *)"rlSemaphore_incrementSemaphore", _wrap_rlSemaphore_incrementSemaphore, METH_VARARGS, NULL}, - { (char *)"rlSemaphore_semaphore_set", _wrap_rlSemaphore_semaphore_set, METH_VARARGS, NULL}, - { (char *)"rlSemaphore_semaphore_get", _wrap_rlSemaphore_semaphore_get, METH_VARARGS, NULL}, - { (char *)"rlSemaphore_swigregister", rlSemaphore_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlSharedMemory", _wrap_new_rlSharedMemory, METH_VARARGS, NULL}, - { (char *)"delete_rlSharedMemory", _wrap_delete_rlSharedMemory, METH_VARARGS, NULL}, - { (char *)"rlSharedMemory_deleteSharedMemory", _wrap_rlSharedMemory_deleteSharedMemory, METH_VARARGS, NULL}, - { (char *)"rlSharedMemory_write", _wrap_rlSharedMemory_write, METH_VARARGS, NULL}, - { (char *)"rlSharedMemory_read", _wrap_rlSharedMemory_read, METH_VARARGS, NULL}, - { (char *)"rlSharedMemory_readInt", _wrap_rlSharedMemory_readInt, METH_VARARGS, NULL}, - { (char *)"rlSharedMemory_readShort", _wrap_rlSharedMemory_readShort, METH_VARARGS, NULL}, - { (char *)"rlSharedMemory_readByte", _wrap_rlSharedMemory_readByte, METH_VARARGS, NULL}, - { (char *)"rlSharedMemory_readFloat", _wrap_rlSharedMemory_readFloat, METH_VARARGS, NULL}, - { (char *)"rlSharedMemory_writeInt", _wrap_rlSharedMemory_writeInt, METH_VARARGS, NULL}, - { (char *)"rlSharedMemory_writeShort", _wrap_rlSharedMemory_writeShort, METH_VARARGS, NULL}, - { (char *)"rlSharedMemory_writeByte", _wrap_rlSharedMemory_writeByte, METH_VARARGS, NULL}, - { (char *)"rlSharedMemory_writeFloat", _wrap_rlSharedMemory_writeFloat, METH_VARARGS, NULL}, - { (char *)"rlSharedMemory_getUserAdr", _wrap_rlSharedMemory_getUserAdr, METH_VARARGS, NULL}, - { (char *)"rlSharedMemory_shmKey", _wrap_rlSharedMemory_shmKey, METH_VARARGS, NULL}, - { (char *)"rlSharedMemory_shmId", _wrap_rlSharedMemory_shmId, METH_VARARGS, NULL}, - { (char *)"rlSharedMemory_size", _wrap_rlSharedMemory_size, METH_VARARGS, NULL}, - { (char *)"rlSharedMemory_status_set", _wrap_rlSharedMemory_status_set, METH_VARARGS, NULL}, - { (char *)"rlSharedMemory_status_get", _wrap_rlSharedMemory_status_get, METH_VARARGS, NULL}, - { (char *)"rlSharedMemory_name_set", _wrap_rlSharedMemory_name_set, METH_VARARGS, NULL}, - { (char *)"rlSharedMemory_name_get", _wrap_rlSharedMemory_name_get, METH_VARARGS, NULL}, - { (char *)"rlSharedMemory_swigregister", rlSharedMemory_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlIpAdr", _wrap_new_rlIpAdr, METH_VARARGS, NULL}, - { (char *)"delete_rlIpAdr", _wrap_delete_rlIpAdr, METH_VARARGS, NULL}, - { (char *)"rlIpAdr_setAdr", _wrap_rlIpAdr_setAdr, METH_VARARGS, NULL}, - { (char *)"rlIpAdr___eq__", _wrap_rlIpAdr___eq__, METH_VARARGS, NULL}, - { (char *)"rlIpAdr_address_set", _wrap_rlIpAdr_address_set, METH_VARARGS, NULL}, - { (char *)"rlIpAdr_address_get", _wrap_rlIpAdr_address_get, METH_VARARGS, NULL}, - { (char *)"rlIpAdr_swigregister", rlIpAdr_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlUdpSocket", _wrap_new_rlUdpSocket, METH_VARARGS, NULL}, - { (char *)"delete_rlUdpSocket", _wrap_delete_rlUdpSocket, METH_VARARGS, NULL}, - { (char *)"rlUdpSocket_setSockopt", _wrap_rlUdpSocket_setSockopt, METH_VARARGS, NULL}, - { (char *)"rlUdpSocket_bind", _wrap_rlUdpSocket_bind, METH_VARARGS, NULL}, - { (char *)"rlUdpSocket_select", _wrap_rlUdpSocket_select, METH_VARARGS, NULL}, - { (char *)"rlUdpSocket_recvfrom", _wrap_rlUdpSocket_recvfrom, METH_VARARGS, NULL}, - { (char *)"rlUdpSocket_sendto", _wrap_rlUdpSocket_sendto, METH_VARARGS, NULL}, - { (char *)"rlUdpSocket_printf", _wrap_rlUdpSocket_printf, METH_VARARGS, NULL}, - { (char *)"rlUdpSocket_debug_set", _wrap_rlUdpSocket_debug_set, METH_VARARGS, NULL}, - { (char *)"rlUdpSocket_debug_get", _wrap_rlUdpSocket_debug_get, METH_VARARGS, NULL}, - { (char *)"rlUdpSocket_readflag_set", _wrap_rlUdpSocket_readflag_set, METH_VARARGS, NULL}, - { (char *)"rlUdpSocket_readflag_get", _wrap_rlUdpSocket_readflag_get, METH_VARARGS, NULL}, - { (char *)"rlUdpSocket_writeflag_set", _wrap_rlUdpSocket_writeflag_set, METH_VARARGS, NULL}, - { (char *)"rlUdpSocket_writeflag_get", _wrap_rlUdpSocket_writeflag_get, METH_VARARGS, NULL}, - { (char *)"rlUdpSocket_swigregister", rlUdpSocket_swigregister, METH_VARARGS, NULL}, - { (char *)"rlwsa", _wrap_rlwsa, METH_VARARGS, NULL}, - { (char *)"rlScoketWrite", _wrap_rlScoketWrite, METH_VARARGS, NULL}, - { (char *)"new_rlSocket", _wrap_new_rlSocket, METH_VARARGS, NULL}, - { (char *)"delete_rlSocket", _wrap_delete_rlSocket, METH_VARARGS, NULL}, - { (char *)"rlSocket_setAdr", _wrap_rlSocket_setAdr, METH_VARARGS, NULL}, - { (char *)"rlSocket_setPort", _wrap_rlSocket_setPort, METH_VARARGS, NULL}, - { (char *)"rlSocket_getPort", _wrap_rlSocket_getPort, METH_VARARGS, NULL}, - { (char *)"rlSocket_setActive", _wrap_rlSocket_setActive, METH_VARARGS, NULL}, - { (char *)"rlSocket_read", _wrap_rlSocket_read, METH_VARARGS, NULL}, - { (char *)"rlSocket_readStr", _wrap_rlSocket_readStr, METH_VARARGS, NULL}, - { (char *)"rlSocket_readHttpHeader", _wrap_rlSocket_readHttpHeader, METH_VARARGS, NULL}, - { (char *)"rlSocket_write", _wrap_rlSocket_write, METH_VARARGS, NULL}, - { (char *)"rlSocket_printf", _wrap_rlSocket_printf, METH_VARARGS, NULL}, - { (char *)"rlSocket_connect", _wrap_rlSocket_connect, METH_VARARGS, NULL}, - { (char *)"rlSocket_disconnect", _wrap_rlSocket_disconnect, METH_VARARGS, NULL}, - { (char *)"rlSocket_select", _wrap_rlSocket_select, METH_VARARGS, NULL}, - { (char *)"rlSocket_isConnected", _wrap_rlSocket_isConnected, METH_VARARGS, NULL}, - { (char *)"rlSocket_setIPVersion", _wrap_rlSocket_setIPVersion, METH_VARARGS, NULL}, - { (char *)"rlSocket_getIPVersion", _wrap_rlSocket_getIPVersion, METH_VARARGS, NULL}, - { (char *)"rlSocket_sendProcessViewBrowserButtonEvent", _wrap_rlSocket_sendProcessViewBrowserButtonEvent, METH_VARARGS, NULL}, - { (char *)"rlSocket_s_set", _wrap_rlSocket_s_set, METH_VARARGS, NULL}, - { (char *)"rlSocket_s_get", _wrap_rlSocket_s_get, METH_VARARGS, NULL}, - { (char *)"rlSocket_rlGetsockopt", _wrap_rlSocket_rlGetsockopt, METH_VARARGS, NULL}, - { (char *)"rlSocket_rlSetsockopt", _wrap_rlSocket_rlSetsockopt, METH_VARARGS, NULL}, - { (char *)"rlSocket_readHttpContentLength", _wrap_rlSocket_readHttpContentLength, METH_VARARGS, NULL}, - { (char *)"rlSocket_sockaddr_set", _wrap_rlSocket_sockaddr_set, METH_VARARGS, NULL}, - { (char *)"rlSocket_sockaddr_get", _wrap_rlSocket_sockaddr_get, METH_VARARGS, NULL}, - { (char *)"rlSocket_swigregister", rlSocket_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rl3964R", _wrap_new_rl3964R, METH_VARARGS, NULL}, - { (char *)"delete_rl3964R", _wrap_delete_rl3964R, METH_VARARGS, NULL}, - { (char *)"rl3964R_open", _wrap_rl3964R_open, METH_VARARGS, NULL}, - { (char *)"rl3964R_close", _wrap_rl3964R_close, METH_VARARGS, NULL}, - { (char *)"rl3964R_setReadCallback", _wrap_rl3964R_setReadCallback, METH_VARARGS, NULL}, - { (char *)"rl3964R_write", _wrap_rl3964R_write, METH_VARARGS, NULL}, - { (char *)"rl3964R_send", _wrap_rl3964R_send, METH_VARARGS, NULL}, - { (char *)"rl3964R_receive", _wrap_rl3964R_receive, METH_VARARGS, NULL}, - { (char *)"rl3964R_receiver_set", _wrap_rl3964R_receiver_set, METH_VARARGS, NULL}, - { (char *)"rl3964R_receiver_get", _wrap_rl3964R_receiver_get, METH_VARARGS, NULL}, - { (char *)"rl3964R_tty_set", _wrap_rl3964R_tty_set, METH_VARARGS, NULL}, - { (char *)"rl3964R_tty_get", _wrap_rl3964R_tty_get, METH_VARARGS, NULL}, - { (char *)"rl3964R_state_set", _wrap_rl3964R_state_set, METH_VARARGS, NULL}, - { (char *)"rl3964R_state_get", _wrap_rl3964R_state_get, METH_VARARGS, NULL}, - { (char *)"rl3964R_priority_set", _wrap_rl3964R_priority_set, METH_VARARGS, NULL}, - { (char *)"rl3964R_priority_get", _wrap_rl3964R_priority_get, METH_VARARGS, NULL}, - { (char *)"rl3964R_run_set", _wrap_rl3964R_run_set, METH_VARARGS, NULL}, - { (char *)"rl3964R_run_get", _wrap_rl3964R_run_get, METH_VARARGS, NULL}, - { (char *)"rl3964R_debug_set", _wrap_rl3964R_debug_set, METH_VARARGS, NULL}, - { (char *)"rl3964R_debug_get", _wrap_rl3964R_debug_get, METH_VARARGS, NULL}, - { (char *)"rl3964R_dprintf", _wrap_rl3964R_dprintf, METH_VARARGS, NULL}, - { (char *)"rl3964R_swigregister", rl3964R_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlCommandlineInterface", _wrap_new_rlCommandlineInterface, METH_VARARGS, NULL}, - { (char *)"delete_rlCommandlineInterface", _wrap_delete_rlCommandlineInterface, METH_VARARGS, NULL}, - { (char *)"rlCommandlineInterface_start", _wrap_rlCommandlineInterface_start, METH_VARARGS, NULL}, - { (char *)"rlCommandlineInterface_readLine", _wrap_rlCommandlineInterface_readLine, METH_VARARGS, NULL}, - { (char *)"rlCommandlineInterface_readBlock", _wrap_rlCommandlineInterface_readBlock, METH_VARARGS, NULL}, - { (char *)"rlCommandlineInterface_printf", _wrap_rlCommandlineInterface_printf, METH_VARARGS, NULL}, - { (char *)"rlCommandlineInterface_writeBlock", _wrap_rlCommandlineInterface_writeBlock, METH_VARARGS, NULL}, - { (char *)"rlCommandlineInterface_swigregister", rlCommandlineInterface_swigregister, METH_VARARGS, NULL}, - { (char *)"rlSetDebugPrintf", _wrap_rlSetDebugPrintf, METH_VARARGS, NULL}, - { (char *)"rlDebugPrintf", _wrap_rlDebugPrintf, METH_VARARGS, NULL}, - { (char *)"rlInputAvailable", _wrap_rlInputAvailable, METH_VARARGS, NULL}, - { (char *)"rlLastLinePrintf", _wrap_rlLastLinePrintf, METH_VARARGS, NULL}, - { (char *)"rlpass", _wrap_rlpass, METH_VARARGS, NULL}, - { (char *)"rlstrncpy", _wrap_rlstrncpy, METH_VARARGS, NULL}, - { (char *)"rlstrlinecpy", _wrap_rlstrlinecpy, METH_VARARGS, NULL}, - { (char *)"rlsnprintf", _wrap_rlsnprintf, METH_VARARGS, NULL}, - { (char *)"rlSetSigtermHandler", _wrap_rlSetSigtermHandler, METH_VARARGS, NULL}, - { (char *)"rlFindFile", _wrap_rlFindFile, METH_VARARGS, NULL}, - { (char *)"rlGetInifile", _wrap_rlGetInifile, METH_VARARGS, NULL}, - { (char *)"rlSwapShort", _wrap_rlSwapShort, METH_VARARGS, NULL}, - { (char *)"rlEib1", _wrap_rlEib1, METH_VARARGS, NULL}, - { (char *)"rlEib2", _wrap_rlEib2, METH_VARARGS, NULL}, - { (char *)"rlLon1", _wrap_rlLon1, METH_VARARGS, NULL}, - { (char *)"rlLon2", _wrap_rlLon2, METH_VARARGS, NULL}, - { (char *)"rlProfibus1", _wrap_rlProfibus1, METH_VARARGS, NULL}, - { (char *)"rlProfibus2", _wrap_rlProfibus2, METH_VARARGS, NULL}, - { (char *)"rlCan1", _wrap_rlCan1, METH_VARARGS, NULL}, - { (char *)"rlCan2", _wrap_rlCan2, METH_VARARGS, NULL}, - { (char *)"rlBrowser", _wrap_rlBrowser, METH_VARARGS, NULL}, - { (char *)"rlsystem", _wrap_rlsystem, METH_VARARGS, NULL}, - { (char *)"rlSubmitPvserver", _wrap_rlSubmitPvserver, METH_VARARGS, NULL}, - { (char *)"rlOption", _wrap_rlOption, METH_VARARGS, NULL}, - { (char *)"rlIntOption", _wrap_rlIntOption, METH_VARARGS, NULL}, - { (char *)"rlFloatOption", _wrap_rlFloatOption, METH_VARARGS, NULL}, - { (char *)"rlTextOption", _wrap_rlTextOption, METH_VARARGS, NULL}, - { (char *)"rlCopyTextfile", _wrap_rlCopyTextfile, METH_VARARGS, NULL}, - { (char *)"rlupper", _wrap_rlupper, METH_VARARGS, NULL}, - { (char *)"rllower", _wrap_rllower, METH_VARARGS, NULL}, - { (char *)"rlStartsWith", _wrap_rlStartsWith, METH_VARARGS, NULL}, - { (char *)"rlEndsWith", _wrap_rlEndsWith, METH_VARARGS, NULL}, - { (char *)"rlStrMatch", _wrap_rlStrMatch, METH_VARARGS, NULL}, - { (char *)"rlFRead", _wrap_rlFRead, METH_VARARGS, NULL}, - { (char *)"rlFWrite", _wrap_rlFWrite, METH_VARARGS, NULL}, - { (char *)"rlWriteFile", _wrap_rlWriteFile, METH_VARARGS, NULL}, - { (char *)"rlMkdir", _wrap_rlMkdir, METH_VARARGS, NULL}, - { (char *)"rlBitSet", _wrap_rlBitSet, METH_VARARGS, NULL}, - { (char *)"rlBitClear", _wrap_rlBitClear, METH_VARARGS, NULL}, - { (char *)"rlBitChange", _wrap_rlBitChange, METH_VARARGS, NULL}, - { (char *)"rlBitTest", _wrap_rlBitTest, METH_VARARGS, NULL}, - { (char *)"rlPushToDoubleBuffer", _wrap_rlPushToDoubleBuffer, METH_VARARGS, NULL}, - { (char *)"rlPushToFloatBuffer", _wrap_rlPushToFloatBuffer, METH_VARARGS, NULL}, - { (char *)"new_rlDataAcquisition", _wrap_new_rlDataAcquisition, METH_VARARGS, NULL}, - { (char *)"delete_rlDataAcquisition", _wrap_delete_rlDataAcquisition, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisition_stringValue", _wrap_rlDataAcquisition_stringValue, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisition_intValue", _wrap_rlDataAcquisition_intValue, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisition_floatValue", _wrap_rlDataAcquisition_floatValue, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisition_writeStringValue", _wrap_rlDataAcquisition_writeStringValue, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisition_writeIntValue", _wrap_rlDataAcquisition_writeIntValue, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisition_writeFloatValue", _wrap_rlDataAcquisition_writeFloatValue, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisition_readErrorCount", _wrap_rlDataAcquisition_readErrorCount, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisition_writeErrorCount", _wrap_rlDataAcquisition_writeErrorCount, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisition_lifeCounter", _wrap_rlDataAcquisition_lifeCounter, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisition_firstVariable", _wrap_rlDataAcquisition_firstVariable, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisition_nextVariable", _wrap_rlDataAcquisition_nextVariable, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisition_shmStatus", _wrap_rlDataAcquisition_shmStatus, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisition_shmKey", _wrap_rlDataAcquisition_shmKey, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisition_shmId", _wrap_rlDataAcquisition_shmId, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisition_swigregister", rlDataAcquisition_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlDataAcquisitionProvider", _wrap_new_rlDataAcquisitionProvider, METH_VARARGS, NULL}, - { (char *)"delete_rlDataAcquisitionProvider", _wrap_delete_rlDataAcquisitionProvider, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisitionProvider_readItemList", _wrap_rlDataAcquisitionProvider_readItemList, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisitionProvider_firstItem", _wrap_rlDataAcquisitionProvider_firstItem, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisitionProvider_nextItem", _wrap_rlDataAcquisitionProvider_nextItem, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisitionProvider_stringValue", _wrap_rlDataAcquisitionProvider_stringValue, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisitionProvider_intValue", _wrap_rlDataAcquisitionProvider_intValue, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisitionProvider_floatValue", _wrap_rlDataAcquisitionProvider_floatValue, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisitionProvider_setStringValue", _wrap_rlDataAcquisitionProvider_setStringValue, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisitionProvider_setIntValue", _wrap_rlDataAcquisitionProvider_setIntValue, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisitionProvider_setFloatValue", _wrap_rlDataAcquisitionProvider_setFloatValue, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisitionProvider_readErrorCount", _wrap_rlDataAcquisitionProvider_readErrorCount, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisitionProvider_writeErrorCount", _wrap_rlDataAcquisitionProvider_writeErrorCount, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisitionProvider_lifeCounter", _wrap_rlDataAcquisitionProvider_lifeCounter, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisitionProvider_setReadErrorCount", _wrap_rlDataAcquisitionProvider_setReadErrorCount, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisitionProvider_setWriteErrorCount", _wrap_rlDataAcquisitionProvider_setWriteErrorCount, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisitionProvider_setLifeCounter", _wrap_rlDataAcquisitionProvider_setLifeCounter, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisitionProvider_shmStatus", _wrap_rlDataAcquisitionProvider_shmStatus, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisitionProvider_setAllowAddValues", _wrap_rlDataAcquisitionProvider_setAllowAddValues, METH_VARARGS, NULL}, - { (char *)"rlDataAcquisitionProvider_swigregister", rlDataAcquisitionProvider_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlDataProvider", _wrap_new_rlDataProvider, METH_VARARGS, NULL}, - { (char *)"delete_rlDataProvider", _wrap_delete_rlDataProvider, METH_VARARGS, NULL}, - { (char *)"rlDataProvider_getInt", _wrap_rlDataProvider_getInt, METH_VARARGS, NULL}, - { (char *)"rlDataProvider_getFloat", _wrap_rlDataProvider_getFloat, METH_VARARGS, NULL}, - { (char *)"rlDataProvider_getIntArray", _wrap_rlDataProvider_getIntArray, METH_VARARGS, NULL}, - { (char *)"rlDataProvider_getFloatArray", _wrap_rlDataProvider_getFloatArray, METH_VARARGS, NULL}, - { (char *)"rlDataProvider_getString", _wrap_rlDataProvider_getString, METH_VARARGS, NULL}, - { (char *)"rlDataProvider_setInt", _wrap_rlDataProvider_setInt, METH_VARARGS, NULL}, - { (char *)"rlDataProvider_setFloat", _wrap_rlDataProvider_setFloat, METH_VARARGS, NULL}, - { (char *)"rlDataProvider_setIntArray", _wrap_rlDataProvider_setIntArray, METH_VARARGS, NULL}, - { (char *)"rlDataProvider_setFloatArray", _wrap_rlDataProvider_setFloatArray, METH_VARARGS, NULL}, - { (char *)"rlDataProvider_setString", _wrap_rlDataProvider_setString, METH_VARARGS, NULL}, - { (char *)"rlDataProvider_getIntAndReset", _wrap_rlDataProvider_getIntAndReset, METH_VARARGS, NULL}, - { (char *)"rlDataProvider_setIntAndWaitForReset", _wrap_rlDataProvider_setIntAndWaitForReset, METH_VARARGS, NULL}, - { (char *)"rlDataProvider_setInt0Semaphore", _wrap_rlDataProvider_setInt0Semaphore, METH_VARARGS, NULL}, - { (char *)"rlDataProvider_getInt0Semaphore", _wrap_rlDataProvider_getInt0Semaphore, METH_VARARGS, NULL}, - { (char *)"rlDataProvider_run", _wrap_rlDataProvider_run, METH_VARARGS, NULL}, - { (char *)"rlDataProvider_swigregister", rlDataProvider_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlDataProviderClient", _wrap_new_rlDataProviderClient, METH_VARARGS, NULL}, - { (char *)"delete_rlDataProviderClient", _wrap_delete_rlDataProviderClient, METH_VARARGS, NULL}, - { (char *)"rlDataProviderClient_getInt", _wrap_rlDataProviderClient_getInt, METH_VARARGS, NULL}, - { (char *)"rlDataProviderClient_getFloat", _wrap_rlDataProviderClient_getFloat, METH_VARARGS, NULL}, - { (char *)"rlDataProviderClient_getIntArray", _wrap_rlDataProviderClient_getIntArray, METH_VARARGS, NULL}, - { (char *)"rlDataProviderClient_getFloatArray", _wrap_rlDataProviderClient_getFloatArray, METH_VARARGS, NULL}, - { (char *)"rlDataProviderClient_getString", _wrap_rlDataProviderClient_getString, METH_VARARGS, NULL}, - { (char *)"rlDataProviderClient_setInt", _wrap_rlDataProviderClient_setInt, METH_VARARGS, NULL}, - { (char *)"rlDataProviderClient_setFloat", _wrap_rlDataProviderClient_setFloat, METH_VARARGS, NULL}, - { (char *)"rlDataProviderClient_setIntArray", _wrap_rlDataProviderClient_setIntArray, METH_VARARGS, NULL}, - { (char *)"rlDataProviderClient_setFloatArray", _wrap_rlDataProviderClient_setFloatArray, METH_VARARGS, NULL}, - { (char *)"rlDataProviderClient_setString", _wrap_rlDataProviderClient_setString, METH_VARARGS, NULL}, - { (char *)"rlDataProviderClient_getIntAndReset", _wrap_rlDataProviderClient_getIntAndReset, METH_VARARGS, NULL}, - { (char *)"rlDataProviderClient_setIntAndWaitForReset", _wrap_rlDataProviderClient_setIntAndWaitForReset, METH_VARARGS, NULL}, - { (char *)"rlDataProviderClient_getInt0Semaphore", _wrap_rlDataProviderClient_getInt0Semaphore, METH_VARARGS, NULL}, - { (char *)"rlDataProviderClient_swigregister", rlDataProviderClient_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlDataProviderThreads", _wrap_new_rlDataProviderThreads, METH_VARARGS, NULL}, - { (char *)"delete_rlDataProviderThreads", _wrap_delete_rlDataProviderThreads, METH_VARARGS, NULL}, - { (char *)"rlDataProviderThreads_start", _wrap_rlDataProviderThreads_start, METH_VARARGS, NULL}, - { (char *)"rlDataProviderThreads_provider_set", _wrap_rlDataProviderThreads_provider_set, METH_VARARGS, NULL}, - { (char *)"rlDataProviderThreads_provider_get", _wrap_rlDataProviderThreads_provider_get, METH_VARARGS, NULL}, - { (char *)"rlDataProviderThreads_thread_set", _wrap_rlDataProviderThreads_thread_set, METH_VARARGS, NULL}, - { (char *)"rlDataProviderThreads_thread_get", _wrap_rlDataProviderThreads_thread_get, METH_VARARGS, NULL}, - { (char *)"rlDataProviderThreads_port_set", _wrap_rlDataProviderThreads_port_set, METH_VARARGS, NULL}, - { (char *)"rlDataProviderThreads_port_get", _wrap_rlDataProviderThreads_port_get, METH_VARARGS, NULL}, - { (char *)"rlDataProviderThreads_swigregister", rlDataProviderThreads_swigregister, METH_VARARGS, NULL}, - { (char *)"rlEventInit", _wrap_rlEventInit, METH_VARARGS, NULL}, - { (char *)"rlSetEventLocation", _wrap_rlSetEventLocation, METH_VARARGS, NULL}, - { (char *)"rlEventPrintf", _wrap_rlEventPrintf, METH_VARARGS, NULL}, - { (char *)"new_rlEventLogServer", _wrap_new_rlEventLogServer, METH_VARARGS, NULL}, - { (char *)"delete_rlEventLogServer", _wrap_delete_rlEventLogServer, METH_VARARGS, NULL}, - { (char *)"rlEventLogServer_getEvent", _wrap_rlEventLogServer_getEvent, METH_VARARGS, NULL}, - { (char *)"rlEventLogServer_putEvent", _wrap_rlEventLogServer_putEvent, METH_VARARGS, NULL}, - { (char *)"rlEventLogServer_swigregister", rlEventLogServer_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlEventLogServerThreads", _wrap_new_rlEventLogServerThreads, METH_VARARGS, NULL}, - { (char *)"delete_rlEventLogServerThreads", _wrap_delete_rlEventLogServerThreads, METH_VARARGS, NULL}, - { (char *)"rlEventLogServerThreads_start", _wrap_rlEventLogServerThreads_start, METH_VARARGS, NULL}, - { (char *)"rlEventLogServerThreads_getPort", _wrap_rlEventLogServerThreads_getPort, METH_VARARGS, NULL}, - { (char *)"rlEventLogServerThreads_event_log_server_set", _wrap_rlEventLogServerThreads_event_log_server_set, METH_VARARGS, NULL}, - { (char *)"rlEventLogServerThreads_event_log_server_get", _wrap_rlEventLogServerThreads_event_log_server_get, METH_VARARGS, NULL}, - { (char *)"rlEventLogServerThreads_swigregister", rlEventLogServerThreads_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlFifo", _wrap_new_rlFifo, METH_VARARGS, NULL}, - { (char *)"delete_rlFifo", _wrap_delete_rlFifo, METH_VARARGS, NULL}, - { (char *)"rlFifo_read", _wrap_rlFifo_read, METH_VARARGS, NULL}, - { (char *)"rlFifo_poll", _wrap_rlFifo_poll, METH_VARARGS, NULL}, - { (char *)"rlFifo_nmesAvailable", _wrap_rlFifo_nmesAvailable, METH_VARARGS, NULL}, - { (char *)"rlFifo_write", _wrap_rlFifo_write, METH_VARARGS, NULL}, - { (char *)"rlFifo_printf", _wrap_rlFifo_printf, METH_VARARGS, NULL}, - { (char *)"rlFifo_swigregister", rlFifo_swigregister, METH_VARARGS, NULL}, - { (char *)"rlFileLines_line_set", _wrap_rlFileLines_line_set, METH_VARARGS, NULL}, - { (char *)"rlFileLines_line_get", _wrap_rlFileLines_line_get, METH_VARARGS, NULL}, - { (char *)"rlFileLines_next_set", _wrap_rlFileLines_next_set, METH_VARARGS, NULL}, - { (char *)"rlFileLines_next_get", _wrap_rlFileLines_next_get, METH_VARARGS, NULL}, - { (char *)"new_rlFileLines", _wrap_new_rlFileLines, METH_VARARGS, NULL}, - { (char *)"delete_rlFileLines", _wrap_delete_rlFileLines, METH_VARARGS, NULL}, - { (char *)"rlFileLines_swigregister", rlFileLines_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlFileLoad", _wrap_new_rlFileLoad, METH_VARARGS, NULL}, - { (char *)"delete_rlFileLoad", _wrap_delete_rlFileLoad, METH_VARARGS, NULL}, - { (char *)"rlFileLoad_load", _wrap_rlFileLoad_load, METH_VARARGS, NULL}, - { (char *)"rlFileLoad_unload", _wrap_rlFileLoad_unload, METH_VARARGS, NULL}, - { (char *)"rlFileLoad_firstLine", _wrap_rlFileLoad_firstLine, METH_VARARGS, NULL}, - { (char *)"rlFileLoad_nextLine", _wrap_rlFileLoad_nextLine, METH_VARARGS, NULL}, - { (char *)"rlFileLoad_setDebug", _wrap_rlFileLoad_setDebug, METH_VARARGS, NULL}, - { (char *)"rlFileLoad_text2rlstring", _wrap_rlFileLoad_text2rlstring, METH_VARARGS, NULL}, - { (char *)"rlFileLoad_swigregister", rlFileLoad_swigregister, METH_VARARGS, NULL}, - { (char *)"rlHistoryLogLine_next_set", _wrap_rlHistoryLogLine_next_set, METH_VARARGS, NULL}, - { (char *)"rlHistoryLogLine_next_get", _wrap_rlHistoryLogLine_next_get, METH_VARARGS, NULL}, - { (char *)"rlHistoryLogLine_line_set", _wrap_rlHistoryLogLine_line_set, METH_VARARGS, NULL}, - { (char *)"rlHistoryLogLine_line_get", _wrap_rlHistoryLogLine_line_get, METH_VARARGS, NULL}, - { (char *)"new_rlHistoryLogLine", _wrap_new_rlHistoryLogLine, METH_VARARGS, NULL}, - { (char *)"delete_rlHistoryLogLine", _wrap_delete_rlHistoryLogLine, METH_VARARGS, NULL}, - { (char *)"rlHistoryLogLine_swigregister", rlHistoryLogLine_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlHistoryLogger", _wrap_new_rlHistoryLogger, METH_VARARGS, NULL}, - { (char *)"delete_rlHistoryLogger", _wrap_delete_rlHistoryLogger, METH_VARARGS, NULL}, - { (char *)"rlHistoryLogger_pushLine", _wrap_rlHistoryLogger_pushLine, METH_VARARGS, NULL}, - { (char *)"rlHistoryLogger_firstLine", _wrap_rlHistoryLogger_firstLine, METH_VARARGS, NULL}, - { (char *)"rlHistoryLogger_nextLine", _wrap_rlHistoryLogger_nextLine, METH_VARARGS, NULL}, - { (char *)"rlHistoryLogger_mutex_set", _wrap_rlHistoryLogger_mutex_set, METH_VARARGS, NULL}, - { (char *)"rlHistoryLogger_mutex_get", _wrap_rlHistoryLogger_mutex_get, METH_VARARGS, NULL}, - { (char *)"rlHistoryLogger_debug_set", _wrap_rlHistoryLogger_debug_set, METH_VARARGS, NULL}, - { (char *)"rlHistoryLogger_debug_get", _wrap_rlHistoryLogger_debug_get, METH_VARARGS, NULL}, - { (char *)"rlHistoryLogger_swigregister", rlHistoryLogger_swigregister, METH_VARARGS, NULL}, - { (char *)"rlHistoryReaderLine_next_set", _wrap_rlHistoryReaderLine_next_set, METH_VARARGS, NULL}, - { (char *)"rlHistoryReaderLine_next_get", _wrap_rlHistoryReaderLine_next_get, METH_VARARGS, NULL}, - { (char *)"rlHistoryReaderLine_line_set", _wrap_rlHistoryReaderLine_line_set, METH_VARARGS, NULL}, - { (char *)"rlHistoryReaderLine_line_get", _wrap_rlHistoryReaderLine_line_get, METH_VARARGS, NULL}, - { (char *)"new_rlHistoryReaderLine", _wrap_new_rlHistoryReaderLine, METH_VARARGS, NULL}, - { (char *)"delete_rlHistoryReaderLine", _wrap_delete_rlHistoryReaderLine, METH_VARARGS, NULL}, - { (char *)"rlHistoryReaderLine_swigregister", rlHistoryReaderLine_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlHistoryReader", _wrap_new_rlHistoryReader, METH_VARARGS, NULL}, - { (char *)"delete_rlHistoryReader", _wrap_delete_rlHistoryReader, METH_VARARGS, NULL}, - { (char *)"rlHistoryReader_read", _wrap_rlHistoryReader_read, METH_VARARGS, NULL}, - { (char *)"rlHistoryReader_firstLine", _wrap_rlHistoryReader_firstLine, METH_VARARGS, NULL}, - { (char *)"rlHistoryReader_nextLine", _wrap_rlHistoryReader_nextLine, METH_VARARGS, NULL}, - { (char *)"rlHistoryReader_clean", _wrap_rlHistoryReader_clean, METH_VARARGS, NULL}, - { (char *)"rlHistoryReader_cat", _wrap_rlHistoryReader_cat, METH_VARARGS, NULL}, - { (char *)"rlHistoryReader_debug_set", _wrap_rlHistoryReader_debug_set, METH_VARARGS, NULL}, - { (char *)"rlHistoryReader_debug_get", _wrap_rlHistoryReader_debug_get, METH_VARARGS, NULL}, - { (char *)"rlHistoryReader_swigregister", rlHistoryReader_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlIniFile", _wrap_new_rlIniFile, METH_VARARGS, NULL}, - { (char *)"delete_rlIniFile", _wrap_delete_rlIniFile, METH_VARARGS, NULL}, - { (char *)"rlIniFile_read", _wrap_rlIniFile_read, METH_VARARGS, NULL}, - { (char *)"rlIniFile_write", _wrap_rlIniFile_write, METH_VARARGS, NULL}, - { (char *)"rlIniFile_filename", _wrap_rlIniFile_filename, METH_VARARGS, NULL}, - { (char *)"rlIniFile_text", _wrap_rlIniFile_text, METH_VARARGS, NULL}, - { (char *)"rlIniFile_setText", _wrap_rlIniFile_setText, METH_VARARGS, NULL}, - { (char *)"rlIniFile_printf", _wrap_rlIniFile_printf, METH_VARARGS, NULL}, - { (char *)"rlIniFile_remove", _wrap_rlIniFile_remove, METH_VARARGS, NULL}, - { (char *)"rlIniFile_firstSection", _wrap_rlIniFile_firstSection, METH_VARARGS, NULL}, - { (char *)"rlIniFile_nextSection", _wrap_rlIniFile_nextSection, METH_VARARGS, NULL}, - { (char *)"rlIniFile_firstName", _wrap_rlIniFile_firstName, METH_VARARGS, NULL}, - { (char *)"rlIniFile_nextName", _wrap_rlIniFile_nextName, METH_VARARGS, NULL}, - { (char *)"rlIniFile_setDefaultSection", _wrap_rlIniFile_setDefaultSection, METH_VARARGS, NULL}, - { (char *)"rlIniFile_defaultSection", _wrap_rlIniFile_defaultSection, METH_VARARGS, NULL}, - { (char *)"rlIniFile_i18n", _wrap_rlIniFile_i18n, METH_VARARGS, NULL}, - { (char *)"rlIniFile_tr", _wrap_rlIniFile_tr, METH_VARARGS, NULL}, - { (char *)"rlIniFile_swigregister", rlIniFile_swigregister, METH_VARARGS, NULL}, - { (char *)"rlSetTranslator", _wrap_rlSetTranslator, METH_VARARGS, NULL}, - { (char *)"new_rlInterpreter", _wrap_new_rlInterpreter, METH_VARARGS, NULL}, - { (char *)"delete_rlInterpreter", _wrap_delete_rlInterpreter, METH_VARARGS, NULL}, - { (char *)"rlInterpreter_line_set", _wrap_rlInterpreter_line_set, METH_VARARGS, NULL}, - { (char *)"rlInterpreter_line_get", _wrap_rlInterpreter_line_get, METH_VARARGS, NULL}, - { (char *)"rlInterpreter_isCommand", _wrap_rlInterpreter_isCommand, METH_VARARGS, NULL}, - { (char *)"rlInterpreter_copyStringParam", _wrap_rlInterpreter_copyStringParam, METH_VARARGS, NULL}, - { (char *)"rlInterpreter_maxchar", _wrap_rlInterpreter_maxchar, METH_VARARGS, NULL}, - { (char *)"rlInterpreter_swigregister", rlInterpreter_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlMailbox", _wrap_new_rlMailbox, METH_VARARGS, NULL}, - { (char *)"delete_rlMailbox", _wrap_delete_rlMailbox, METH_VARARGS, NULL}, - { (char *)"rlMailbox_printf", _wrap_rlMailbox_printf, METH_VARARGS, NULL}, - { (char *)"rlMailbox_setReadBufferSize", _wrap_rlMailbox_setReadBufferSize, METH_VARARGS, NULL}, - { (char *)"rlMailbox_read", _wrap_rlMailbox_read, METH_VARARGS, NULL}, - { (char *)"rlMailbox_write", _wrap_rlMailbox_write, METH_VARARGS, NULL}, - { (char *)"rlMailbox_clear", _wrap_rlMailbox_clear, METH_VARARGS, NULL}, - { (char *)"rlMailbox_status_set", _wrap_rlMailbox_status_set, METH_VARARGS, NULL}, - { (char *)"rlMailbox_status_get", _wrap_rlMailbox_status_get, METH_VARARGS, NULL}, - { (char *)"rlMailbox_name_set", _wrap_rlMailbox_name_set, METH_VARARGS, NULL}, - { (char *)"rlMailbox_name_get", _wrap_rlMailbox_name_get, METH_VARARGS, NULL}, - { (char *)"rlMailbox_swigregister", rlMailbox_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlModbusClient", _wrap_new_rlModbusClient, METH_VARARGS, NULL}, - { (char *)"delete_rlModbusClient", _wrap_delete_rlModbusClient, METH_VARARGS, NULL}, - { (char *)"rlModbusClient_write", _wrap_rlModbusClient_write, METH_VARARGS, NULL}, - { (char *)"rlModbusClient_writeSingleCoil", _wrap_rlModbusClient_writeSingleCoil, METH_VARARGS, NULL}, - { (char *)"rlModbusClient_writeMultipleCoils", _wrap_rlModbusClient_writeMultipleCoils, METH_VARARGS, NULL}, - { (char *)"rlModbusClient_writePresetSingleRegister", _wrap_rlModbusClient_writePresetSingleRegister, METH_VARARGS, NULL}, - { (char *)"rlModbusClient_writePresetMultipleRegisters", _wrap_rlModbusClient_writePresetMultipleRegisters, METH_VARARGS, NULL}, - { (char *)"rlModbusClient_readBit", _wrap_rlModbusClient_readBit, METH_VARARGS, NULL}, - { (char *)"rlModbusClient_readByte", _wrap_rlModbusClient_readByte, METH_VARARGS, NULL}, - { (char *)"rlModbusClient_readShort", _wrap_rlModbusClient_readShort, METH_VARARGS, NULL}, - { (char *)"rlModbusClient_swigregister", rlModbusClient_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlModbus", _wrap_new_rlModbus, METH_VARARGS, NULL}, - { (char *)"delete_rlModbus", _wrap_delete_rlModbus, METH_VARARGS, NULL}, - { (char *)"rlModbus_write", _wrap_rlModbus_write, METH_VARARGS, NULL}, - { (char *)"rlModbus_request", _wrap_rlModbus_request, METH_VARARGS, NULL}, - { (char *)"rlModbus_response", _wrap_rlModbus_response, METH_VARARGS, NULL}, - { (char *)"rlModbus_readRequest", _wrap_rlModbus_readRequest, METH_VARARGS, NULL}, - { (char *)"rlModbus_registerSocket", _wrap_rlModbus_registerSocket, METH_VARARGS, NULL}, - { (char *)"rlModbus_registerSerial", _wrap_rlModbus_registerSerial, METH_VARARGS, NULL}, - { (char *)"rlModbus_data2int", _wrap_rlModbus_data2int, METH_VARARGS, NULL}, - { (char *)"rlModbus_int2data", _wrap_rlModbus_int2data, METH_VARARGS, NULL}, - { (char *)"rlModbus_intsize", _wrap_rlModbus_intsize, METH_VARARGS, NULL}, - { (char *)"rlModbus_autoreconnectSocket_set", _wrap_rlModbus_autoreconnectSocket_set, METH_VARARGS, NULL}, - { (char *)"rlModbus_autoreconnectSocket_get", _wrap_rlModbus_autoreconnectSocket_get, METH_VARARGS, NULL}, - { (char *)"rlModbus_readCoilStatus", _wrap_rlModbus_readCoilStatus, METH_VARARGS, NULL}, - { (char *)"rlModbus_readInputStatus", _wrap_rlModbus_readInputStatus, METH_VARARGS, NULL}, - { (char *)"rlModbus_readHoldingRegisters", _wrap_rlModbus_readHoldingRegisters, METH_VARARGS, NULL}, - { (char *)"rlModbus_readInputRegisters", _wrap_rlModbus_readInputRegisters, METH_VARARGS, NULL}, - { (char *)"rlModbus_forceSingleCoil", _wrap_rlModbus_forceSingleCoil, METH_VARARGS, NULL}, - { (char *)"rlModbus_presetSingleRegister", _wrap_rlModbus_presetSingleRegister, METH_VARARGS, NULL}, - { (char *)"rlModbus_forceMultipleCoils", _wrap_rlModbus_forceMultipleCoils, METH_VARARGS, NULL}, - { (char *)"rlModbus_presetMultipleRegisters", _wrap_rlModbus_presetMultipleRegisters, METH_VARARGS, NULL}, - { (char *)"rlModbus_swigregister", rlModbus_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlOpcXmlDa", _wrap_new_rlOpcXmlDa, METH_VARARGS, NULL}, - { (char *)"delete_rlOpcXmlDa", _wrap_delete_rlOpcXmlDa, METH_VARARGS, NULL}, - { (char *)"rlOpcXmlDa_stringValue", _wrap_rlOpcXmlDa_stringValue, METH_VARARGS, NULL}, - { (char *)"rlOpcXmlDa_intValue", _wrap_rlOpcXmlDa_intValue, METH_VARARGS, NULL}, - { (char *)"rlOpcXmlDa_floatValue", _wrap_rlOpcXmlDa_floatValue, METH_VARARGS, NULL}, - { (char *)"rlOpcXmlDa_writeStringValue", _wrap_rlOpcXmlDa_writeStringValue, METH_VARARGS, NULL}, - { (char *)"rlOpcXmlDa_writeIntValue", _wrap_rlOpcXmlDa_writeIntValue, METH_VARARGS, NULL}, - { (char *)"rlOpcXmlDa_writeFloatValue", _wrap_rlOpcXmlDa_writeFloatValue, METH_VARARGS, NULL}, - { (char *)"rlOpcXmlDa_readErrorCount", _wrap_rlOpcXmlDa_readErrorCount, METH_VARARGS, NULL}, - { (char *)"rlOpcXmlDa_writeErrorCount", _wrap_rlOpcXmlDa_writeErrorCount, METH_VARARGS, NULL}, - { (char *)"rlOpcXmlDa_shmStatus", _wrap_rlOpcXmlDa_shmStatus, METH_VARARGS, NULL}, - { (char *)"rlOpcXmlDa_swigregister", rlOpcXmlDa_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlPcontrol", _wrap_new_rlPcontrol, METH_VARARGS, NULL}, - { (char *)"delete_rlPcontrol", _wrap_delete_rlPcontrol, METH_VARARGS, NULL}, - { (char *)"rlPcontrol_setStartupCommand", _wrap_rlPcontrol_setStartupCommand, METH_VARARGS, NULL}, - { (char *)"rlPcontrol_start", _wrap_rlPcontrol_start, METH_VARARGS, NULL}, - { (char *)"rlPcontrol_sigterm", _wrap_rlPcontrol_sigterm, METH_VARARGS, NULL}, - { (char *)"rlPcontrol_sigkill", _wrap_rlPcontrol_sigkill, METH_VARARGS, NULL}, - { (char *)"rlPcontrol_isAlive", _wrap_rlPcontrol_isAlive, METH_VARARGS, NULL}, - { (char *)"rlPcontrol_startupCommand", _wrap_rlPcontrol_startupCommand, METH_VARARGS, NULL}, - { (char *)"rlPcontrol_processName", _wrap_rlPcontrol_processName, METH_VARARGS, NULL}, - { (char *)"rlPcontrol_processTime", _wrap_rlPcontrol_processTime, METH_VARARGS, NULL}, - { (char *)"rlPcontrol_setPID", _wrap_rlPcontrol_setPID, METH_VARARGS, NULL}, - { (char *)"rlPcontrol_pid", _wrap_rlPcontrol_pid, METH_VARARGS, NULL}, - { (char *)"rlPcontrol_getNext", _wrap_rlPcontrol_getNext, METH_VARARGS, NULL}, - { (char *)"rlPcontrol_addNew", _wrap_rlPcontrol_addNew, METH_VARARGS, NULL}, - { (char *)"rlPcontrol_setPriority", _wrap_rlPcontrol_setPriority, METH_VARARGS, NULL}, - { (char *)"rlPcontrol_priority", _wrap_rlPcontrol_priority, METH_VARARGS, NULL}, - { (char *)"rlPcontrol_swigregister", rlPcontrol_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlPlcState", _wrap_new_rlPlcState, METH_VARARGS, NULL}, - { (char *)"delete_rlPlcState", _wrap_delete_rlPlcState, METH_VARARGS, NULL}, - { (char *)"rlPlcState_i_set", _wrap_rlPlcState_i_set, METH_VARARGS, NULL}, - { (char *)"rlPlcState_i_get", _wrap_rlPlcState_i_get, METH_VARARGS, NULL}, - { (char *)"rlPlcState_i_old_set", _wrap_rlPlcState_i_old_set, METH_VARARGS, NULL}, - { (char *)"rlPlcState_i_old_get", _wrap_rlPlcState_i_old_get, METH_VARARGS, NULL}, - { (char *)"rlPlcState_f_set", _wrap_rlPlcState_f_set, METH_VARARGS, NULL}, - { (char *)"rlPlcState_f_get", _wrap_rlPlcState_f_get, METH_VARARGS, NULL}, - { (char *)"rlPlcState_f_old_set", _wrap_rlPlcState_f_old_set, METH_VARARGS, NULL}, - { (char *)"rlPlcState_f_old_get", _wrap_rlPlcState_f_old_get, METH_VARARGS, NULL}, - { (char *)"rlPlcState_d_set", _wrap_rlPlcState_d_set, METH_VARARGS, NULL}, - { (char *)"rlPlcState_d_get", _wrap_rlPlcState_d_get, METH_VARARGS, NULL}, - { (char *)"rlPlcState_d_old_set", _wrap_rlPlcState_d_old_set, METH_VARARGS, NULL}, - { (char *)"rlPlcState_d_old_get", _wrap_rlPlcState_d_old_get, METH_VARARGS, NULL}, - { (char *)"rlPlcState_rememberState", _wrap_rlPlcState_rememberState, METH_VARARGS, NULL}, - { (char *)"rlPlcState_intChanged", _wrap_rlPlcState_intChanged, METH_VARARGS, NULL}, - { (char *)"rlPlcState_floatChanged", _wrap_rlPlcState_floatChanged, METH_VARARGS, NULL}, - { (char *)"rlPlcState_doubleChanged", _wrap_rlPlcState_doubleChanged, METH_VARARGS, NULL}, - { (char *)"rlPlcState_intHasIncreased", _wrap_rlPlcState_intHasIncreased, METH_VARARGS, NULL}, - { (char *)"rlPlcState_floatHasIncreased", _wrap_rlPlcState_floatHasIncreased, METH_VARARGS, NULL}, - { (char *)"rlPlcState_doubleHasIncreased", _wrap_rlPlcState_doubleHasIncreased, METH_VARARGS, NULL}, - { (char *)"rlPlcState_intHasDecreased", _wrap_rlPlcState_intHasDecreased, METH_VARARGS, NULL}, - { (char *)"rlPlcState_floatHasDecreased", _wrap_rlPlcState_floatHasDecreased, METH_VARARGS, NULL}, - { (char *)"rlPlcState_doubleHasDecreased", _wrap_rlPlcState_doubleHasDecreased, METH_VARARGS, NULL}, - { (char *)"rlPlcState_deltaInt", _wrap_rlPlcState_deltaInt, METH_VARARGS, NULL}, - { (char *)"rlPlcState_deltaFloat", _wrap_rlPlcState_deltaFloat, METH_VARARGS, NULL}, - { (char *)"rlPlcState_deltaDouble", _wrap_rlPlcState_deltaDouble, METH_VARARGS, NULL}, - { (char *)"rlPlcState_set", _wrap_rlPlcState_set, METH_VARARGS, NULL}, - { (char *)"rlPlcState_clear", _wrap_rlPlcState_clear, METH_VARARGS, NULL}, - { (char *)"rlPlcState_isSet", _wrap_rlPlcState_isSet, METH_VARARGS, NULL}, - { (char *)"rlPlcState_isClear", _wrap_rlPlcState_isClear, METH_VARARGS, NULL}, - { (char *)"rlPlcState_hasBeenSet", _wrap_rlPlcState_hasBeenSet, METH_VARARGS, NULL}, - { (char *)"rlPlcState_hasBeenCleared", _wrap_rlPlcState_hasBeenCleared, METH_VARARGS, NULL}, - { (char *)"rlPlcState_maxInt", _wrap_rlPlcState_maxInt, METH_VARARGS, NULL}, - { (char *)"rlPlcState_maxFloat", _wrap_rlPlcState_maxFloat, METH_VARARGS, NULL}, - { (char *)"rlPlcState_maxDouble", _wrap_rlPlcState_maxDouble, METH_VARARGS, NULL}, - { (char *)"rlPlcState_getInt", _wrap_rlPlcState_getInt, METH_VARARGS, NULL}, - { (char *)"rlPlcState_getFloat", _wrap_rlPlcState_getFloat, METH_VARARGS, NULL}, - { (char *)"rlPlcState_getDouble", _wrap_rlPlcState_getDouble, METH_VARARGS, NULL}, - { (char *)"rlPlcState_getOldInt", _wrap_rlPlcState_getOldInt, METH_VARARGS, NULL}, - { (char *)"rlPlcState_getOldFloat", _wrap_rlPlcState_getOldFloat, METH_VARARGS, NULL}, - { (char *)"rlPlcState_getOldDouble", _wrap_rlPlcState_getOldDouble, METH_VARARGS, NULL}, - { (char *)"rlPlcState_shm_set", _wrap_rlPlcState_shm_set, METH_VARARGS, NULL}, - { (char *)"rlPlcState_shm_get", _wrap_rlPlcState_shm_get, METH_VARARGS, NULL}, - { (char *)"rlPlcState_swigregister", rlPlcState_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlPlcMem", _wrap_new_rlPlcMem, METH_VARARGS, NULL}, - { (char *)"delete_rlPlcMem", _wrap_delete_rlPlcMem, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_i_set", _wrap_rlPlcMem_i_set, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_i_get", _wrap_rlPlcMem_i_get, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_i_old_set", _wrap_rlPlcMem_i_old_set, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_i_old_get", _wrap_rlPlcMem_i_old_get, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_f_set", _wrap_rlPlcMem_f_set, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_f_get", _wrap_rlPlcMem_f_get, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_f_old_set", _wrap_rlPlcMem_f_old_set, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_f_old_get", _wrap_rlPlcMem_f_old_get, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_d_set", _wrap_rlPlcMem_d_set, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_d_get", _wrap_rlPlcMem_d_get, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_d_old_set", _wrap_rlPlcMem_d_old_set, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_d_old_get", _wrap_rlPlcMem_d_old_get, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_rememberState", _wrap_rlPlcMem_rememberState, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_intChanged", _wrap_rlPlcMem_intChanged, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_floatChanged", _wrap_rlPlcMem_floatChanged, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_doubleChanged", _wrap_rlPlcMem_doubleChanged, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_intHasIncreased", _wrap_rlPlcMem_intHasIncreased, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_floatHasIncreased", _wrap_rlPlcMem_floatHasIncreased, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_doubleHasIncreased", _wrap_rlPlcMem_doubleHasIncreased, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_intHasDecreased", _wrap_rlPlcMem_intHasDecreased, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_floatHasDecreased", _wrap_rlPlcMem_floatHasDecreased, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_doubleHasDecreased", _wrap_rlPlcMem_doubleHasDecreased, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_deltaInt", _wrap_rlPlcMem_deltaInt, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_deltaFloat", _wrap_rlPlcMem_deltaFloat, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_deltaDouble", _wrap_rlPlcMem_deltaDouble, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_set", _wrap_rlPlcMem_set, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_clear", _wrap_rlPlcMem_clear, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_isSet", _wrap_rlPlcMem_isSet, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_isClear", _wrap_rlPlcMem_isClear, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_hasBeenSet", _wrap_rlPlcMem_hasBeenSet, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_hasBeenCleared", _wrap_rlPlcMem_hasBeenCleared, METH_VARARGS, NULL}, - { (char *)"rlPlcMem_swigregister", rlPlcMem_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlPPIClient", _wrap_new_rlPPIClient, METH_VARARGS, NULL}, - { (char *)"delete_rlPPIClient", _wrap_delete_rlPPIClient, METH_VARARGS, NULL}, - { (char *)"rlPPIClient_write", _wrap_rlPPIClient_write, METH_VARARGS, NULL}, - { (char *)"rlPPIClient_writeFloat", _wrap_rlPPIClient_writeFloat, METH_VARARGS, NULL}, - { (char *)"rlPPIClient_writeDword", _wrap_rlPPIClient_writeDword, METH_VARARGS, NULL}, - { (char *)"rlPPIClient_writeShort", _wrap_rlPPIClient_writeShort, METH_VARARGS, NULL}, - { (char *)"rlPPIClient_writeUDword", _wrap_rlPPIClient_writeUDword, METH_VARARGS, NULL}, - { (char *)"rlPPIClient_writeUShort", _wrap_rlPPIClient_writeUShort, METH_VARARGS, NULL}, - { (char *)"rlPPIClient_read", _wrap_rlPPIClient_read, METH_VARARGS, NULL}, - { (char *)"rlPPIClient_Float", _wrap_rlPPIClient_Float, METH_VARARGS, NULL}, - { (char *)"rlPPIClient_Dword", _wrap_rlPPIClient_Dword, METH_VARARGS, NULL}, - { (char *)"rlPPIClient_Short", _wrap_rlPPIClient_Short, METH_VARARGS, NULL}, - { (char *)"rlPPIClient_UDword", _wrap_rlPPIClient_UDword, METH_VARARGS, NULL}, - { (char *)"rlPPIClient_UShort", _wrap_rlPPIClient_UShort, METH_VARARGS, NULL}, - { (char *)"rlPPIClient_buf_set", _wrap_rlPPIClient_buf_set, METH_VARARGS, NULL}, - { (char *)"rlPPIClient_buf_get", _wrap_rlPPIClient_buf_get, METH_VARARGS, NULL}, - { (char *)"rlPPIClient_swigregister", rlPPIClient_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlSerial", _wrap_new_rlSerial, METH_VARARGS, NULL}, - { (char *)"delete_rlSerial", _wrap_delete_rlSerial, METH_VARARGS, NULL}, - { (char *)"rlSerial_openDevice", _wrap_rlSerial_openDevice, METH_VARARGS, NULL}, - { (char *)"rlSerial_select", _wrap_rlSerial_select, METH_VARARGS, NULL}, - { (char *)"rlSerial_readChar", _wrap_rlSerial_readChar, METH_VARARGS, NULL}, - { (char *)"rlSerial_writeChar", _wrap_rlSerial_writeChar, METH_VARARGS, NULL}, - { (char *)"rlSerial_readBlock", _wrap_rlSerial_readBlock, METH_VARARGS, NULL}, - { (char *)"rlSerial_writeBlock", _wrap_rlSerial_writeBlock, METH_VARARGS, NULL}, - { (char *)"rlSerial_readLine", _wrap_rlSerial_readLine, METH_VARARGS, NULL}, - { (char *)"rlSerial_closeDevice", _wrap_rlSerial_closeDevice, METH_VARARGS, NULL}, - { (char *)"rlSerial_setTrace", _wrap_rlSerial_setTrace, METH_VARARGS, NULL}, - { (char *)"rlSerial_swigregister", rlSerial_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlSiemensTCPClient", _wrap_new_rlSiemensTCPClient, METH_VARARGS, NULL}, - { (char *)"delete_rlSiemensTCPClient", _wrap_delete_rlSiemensTCPClient, METH_VARARGS, NULL}, - { (char *)"rlSiemensTCPClient_write", _wrap_rlSiemensTCPClient_write, METH_VARARGS, NULL}, - { (char *)"rlSiemensTCPClient_writeBit", _wrap_rlSiemensTCPClient_writeBit, METH_VARARGS, NULL}, - { (char *)"rlSiemensTCPClient_writeByte", _wrap_rlSiemensTCPClient_writeByte, METH_VARARGS, NULL}, - { (char *)"rlSiemensTCPClient_writeFloat", _wrap_rlSiemensTCPClient_writeFloat, METH_VARARGS, NULL}, - { (char *)"rlSiemensTCPClient_writeDword", _wrap_rlSiemensTCPClient_writeDword, METH_VARARGS, NULL}, - { (char *)"rlSiemensTCPClient_writeShort", _wrap_rlSiemensTCPClient_writeShort, METH_VARARGS, NULL}, - { (char *)"rlSiemensTCPClient_writeUDword", _wrap_rlSiemensTCPClient_writeUDword, METH_VARARGS, NULL}, - { (char *)"rlSiemensTCPClient_writeUShort", _wrap_rlSiemensTCPClient_writeUShort, METH_VARARGS, NULL}, - { (char *)"rlSiemensTCPClient_read", _wrap_rlSiemensTCPClient_read, METH_VARARGS, NULL}, - { (char *)"rlSiemensTCPClient_Float", _wrap_rlSiemensTCPClient_Float, METH_VARARGS, NULL}, - { (char *)"rlSiemensTCPClient_Dword", _wrap_rlSiemensTCPClient_Dword, METH_VARARGS, NULL}, - { (char *)"rlSiemensTCPClient_Short", _wrap_rlSiemensTCPClient_Short, METH_VARARGS, NULL}, - { (char *)"rlSiemensTCPClient_UDword", _wrap_rlSiemensTCPClient_UDword, METH_VARARGS, NULL}, - { (char *)"rlSiemensTCPClient_UShort", _wrap_rlSiemensTCPClient_UShort, METH_VARARGS, NULL}, - { (char *)"rlSiemensTCPClient_buf_set", _wrap_rlSiemensTCPClient_buf_set, METH_VARARGS, NULL}, - { (char *)"rlSiemensTCPClient_buf_get", _wrap_rlSiemensTCPClient_buf_get, METH_VARARGS, NULL}, - { (char *)"rlSiemensTCPClient_swigregister", rlSiemensTCPClient_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlSiemensTCP", _wrap_new_rlSiemensTCP, METH_VARARGS, NULL}, - { (char *)"delete_rlSiemensTCP", _wrap_delete_rlSiemensTCP, METH_VARARGS, NULL}, - { (char *)"rlSiemensTCP_getDefaultConnectBlock", _wrap_rlSiemensTCP_getDefaultConnectBlock, METH_VARARGS, NULL}, - { (char *)"rlSiemensTCP_setConnectBlock", _wrap_rlSiemensTCP_setConnectBlock, METH_VARARGS, NULL}, - { (char *)"rlSiemensTCP_getConnectBlock", _wrap_rlSiemensTCP_getConnectBlock, METH_VARARGS, NULL}, - { (char *)"rlSiemensTCP_write", _wrap_rlSiemensTCP_write, METH_VARARGS, NULL}, - { (char *)"rlSiemensTCP_fetch", _wrap_rlSiemensTCP_fetch, METH_VARARGS, NULL}, - { (char *)"rlSiemensTCP_swigregister", rlSiemensTCP_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlSpawn", _wrap_new_rlSpawn, METH_VARARGS, NULL}, - { (char *)"delete_rlSpawn", _wrap_delete_rlSpawn, METH_VARARGS, NULL}, - { (char *)"rlSpawn_spawn", _wrap_rlSpawn_spawn, METH_VARARGS, NULL}, - { (char *)"rlSpawn_readLine", _wrap_rlSpawn_readLine, METH_VARARGS, NULL}, - { (char *)"rlSpawn_getchar", _wrap_rlSpawn_getchar, METH_VARARGS, NULL}, - { (char *)"rlSpawn_select", _wrap_rlSpawn_select, METH_VARARGS, NULL}, - { (char *)"rlSpawn_writeString", _wrap_rlSpawn_writeString, METH_VARARGS, NULL}, - { (char *)"rlSpawn_write", _wrap_rlSpawn_write, METH_VARARGS, NULL}, - { (char *)"rlSpawn_printf", _wrap_rlSpawn_printf, METH_VARARGS, NULL}, - { (char *)"rlSpawn_printAll", _wrap_rlSpawn_printAll, METH_VARARGS, NULL}, - { (char *)"rlSpawn_getFilepointer", _wrap_rlSpawn_getFilepointer, METH_VARARGS, NULL}, - { (char *)"rlSpawn_sigkill", _wrap_rlSpawn_sigkill, METH_VARARGS, NULL}, - { (char *)"rlSpawn_readJpegBuffer", _wrap_rlSpawn_readJpegBuffer, METH_VARARGS, NULL}, - { (char *)"rlSpawn_pid_set", _wrap_rlSpawn_pid_set, METH_VARARGS, NULL}, - { (char *)"rlSpawn_pid_get", _wrap_rlSpawn_pid_get, METH_VARARGS, NULL}, - { (char *)"rlSpawn_swigregister", rlSpawn_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlSpreadsheetCell", _wrap_new_rlSpreadsheetCell, METH_VARARGS, NULL}, - { (char *)"delete_rlSpreadsheetCell", _wrap_delete_rlSpreadsheetCell, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetCell_text", _wrap_rlSpreadsheetCell_text, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetCell_setText", _wrap_rlSpreadsheetCell_setText, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetCell_printf", _wrap_rlSpreadsheetCell_printf, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetCell_clear", _wrap_rlSpreadsheetCell_clear, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetCell_setNextCell", _wrap_rlSpreadsheetCell_setNextCell, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetCell_getNextCell", _wrap_rlSpreadsheetCell_getNextCell, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetCell_exists", _wrap_rlSpreadsheetCell_exists, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetCell_swigregister", rlSpreadsheetCell_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlSpreadsheetRow", _wrap_new_rlSpreadsheetRow, METH_VARARGS, NULL}, - { (char *)"delete_rlSpreadsheetRow", _wrap_delete_rlSpreadsheetRow, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetRow_text", _wrap_rlSpreadsheetRow_text, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetRow_setText", _wrap_rlSpreadsheetRow_setText, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetRow_printf", _wrap_rlSpreadsheetRow_printf, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetRow_clear", _wrap_rlSpreadsheetRow_clear, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetRow_setNextRow", _wrap_rlSpreadsheetRow_setNextRow, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetRow_getNextRow", _wrap_rlSpreadsheetRow_getNextRow, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetRow_getFirstCell", _wrap_rlSpreadsheetRow_getFirstCell, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetRow_readRow", _wrap_rlSpreadsheetRow_readRow, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetRow_writeRow", _wrap_rlSpreadsheetRow_writeRow, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetRow_exists", _wrap_rlSpreadsheetRow_exists, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetRow_swigregister", rlSpreadsheetRow_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlSpreadsheetTable", _wrap_new_rlSpreadsheetTable, METH_VARARGS, NULL}, - { (char *)"delete_rlSpreadsheetTable", _wrap_delete_rlSpreadsheetTable, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetTable_text", _wrap_rlSpreadsheetTable_text, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetTable_setText", _wrap_rlSpreadsheetTable_setText, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetTable_printf", _wrap_rlSpreadsheetTable_printf, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetTable_clear", _wrap_rlSpreadsheetTable_clear, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetTable_read", _wrap_rlSpreadsheetTable_read, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetTable_write", _wrap_rlSpreadsheetTable_write, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetTable_setNextTable", _wrap_rlSpreadsheetTable_setNextTable, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetTable_getNextTable", _wrap_rlSpreadsheetTable_getNextTable, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetTable_getFirstRow", _wrap_rlSpreadsheetTable_getFirstRow, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetTable_exists", _wrap_rlSpreadsheetTable_exists, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetTable_setDelimitor", _wrap_rlSpreadsheetTable_setDelimitor, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetTable_swigregister", rlSpreadsheetTable_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlSpreadsheetWorkbook", _wrap_new_rlSpreadsheetWorkbook, METH_VARARGS, NULL}, - { (char *)"delete_rlSpreadsheetWorkbook", _wrap_delete_rlSpreadsheetWorkbook, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetWorkbook_text", _wrap_rlSpreadsheetWorkbook_text, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetWorkbook_setText", _wrap_rlSpreadsheetWorkbook_setText, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetWorkbook_printf", _wrap_rlSpreadsheetWorkbook_printf, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetWorkbook_clear", _wrap_rlSpreadsheetWorkbook_clear, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetWorkbook_read", _wrap_rlSpreadsheetWorkbook_read, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetWorkbook_write", _wrap_rlSpreadsheetWorkbook_write, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetWorkbook_exists", _wrap_rlSpreadsheetWorkbook_exists, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetWorkbook_getFirstTable", _wrap_rlSpreadsheetWorkbook_getFirstTable, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetWorkbook_setDelimitor", _wrap_rlSpreadsheetWorkbook_setDelimitor, METH_VARARGS, NULL}, - { (char *)"rlSpreadsheetWorkbook_swigregister", rlSpreadsheetWorkbook_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlString", _wrap_new_rlString, METH_VARARGS, NULL}, - { (char *)"delete_rlString", _wrap_delete_rlString, METH_VARARGS, NULL}, - { (char *)"rlString___add__", _wrap_rlString___add__, METH_VARARGS, NULL}, - { (char *)"rlString___iadd__", _wrap_rlString___iadd__, METH_VARARGS, NULL}, - { (char *)"rlString___eq__", _wrap_rlString___eq__, METH_VARARGS, NULL}, - { (char *)"rlString___ne__", _wrap_rlString___ne__, METH_VARARGS, NULL}, - { (char *)"rlString_text", _wrap_rlString_text, METH_VARARGS, NULL}, - { (char *)"rlString_setText", _wrap_rlString_setText, METH_VARARGS, NULL}, - { (char *)"rlString_printf", _wrap_rlString_printf, METH_VARARGS, NULL}, - { (char *)"rlString_strcpy", _wrap_rlString_strcpy, METH_VARARGS, NULL}, - { (char *)"rlString_cat", _wrap_rlString_cat, METH_VARARGS, NULL}, - { (char *)"rlString_upper", _wrap_rlString_upper, METH_VARARGS, NULL}, - { (char *)"rlString_lower", _wrap_rlString_lower, METH_VARARGS, NULL}, - { (char *)"rlString_startsWith", _wrap_rlString_startsWith, METH_VARARGS, NULL}, - { (char *)"rlString_strnocasecmp", _wrap_rlString_strnocasecmp, METH_VARARGS, NULL}, - { (char *)"rlString_strnnocasecmp", _wrap_rlString_strnnocasecmp, METH_VARARGS, NULL}, - { (char *)"rlString_strstr", _wrap_rlString_strstr, METH_VARARGS, NULL}, - { (char *)"rlString_strchr", _wrap_rlString_strchr, METH_VARARGS, NULL}, - { (char *)"rlString_strrchr", _wrap_rlString_strrchr, METH_VARARGS, NULL}, - { (char *)"rlString_removeQuotas", _wrap_rlString_removeQuotas, METH_VARARGS, NULL}, - { (char *)"rlString_removeNewline", _wrap_rlString_removeNewline, METH_VARARGS, NULL}, - { (char *)"rlString_read", _wrap_rlString_read, METH_VARARGS, NULL}, - { (char *)"rlString_write", _wrap_rlString_write, METH_VARARGS, NULL}, - { (char *)"rlString_toFilename", _wrap_rlString_toFilename, METH_VARARGS, NULL}, - { (char *)"rlString_toDirname", _wrap_rlString_toDirname, METH_VARARGS, NULL}, - { (char *)"rlString_swigregister", rlString_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlSvgPosition", _wrap_new_rlSvgPosition, METH_VARARGS, NULL}, - { (char *)"delete_rlSvgPosition", _wrap_delete_rlSvgPosition, METH_VARARGS, NULL}, - { (char *)"rlSvgPosition_sx_set", _wrap_rlSvgPosition_sx_set, METH_VARARGS, NULL}, - { (char *)"rlSvgPosition_sx_get", _wrap_rlSvgPosition_sx_get, METH_VARARGS, NULL}, - { (char *)"rlSvgPosition_alpha_set", _wrap_rlSvgPosition_alpha_set, METH_VARARGS, NULL}, - { (char *)"rlSvgPosition_alpha_get", _wrap_rlSvgPosition_alpha_get, METH_VARARGS, NULL}, - { (char *)"rlSvgPosition_x0_set", _wrap_rlSvgPosition_x0_set, METH_VARARGS, NULL}, - { (char *)"rlSvgPosition_x0_get", _wrap_rlSvgPosition_x0_get, METH_VARARGS, NULL}, - { (char *)"rlSvgPosition_y0_set", _wrap_rlSvgPosition_y0_set, METH_VARARGS, NULL}, - { (char *)"rlSvgPosition_y0_get", _wrap_rlSvgPosition_y0_get, METH_VARARGS, NULL}, - { (char *)"rlSvgPosition_cx_set", _wrap_rlSvgPosition_cx_set, METH_VARARGS, NULL}, - { (char *)"rlSvgPosition_cx_get", _wrap_rlSvgPosition_cx_get, METH_VARARGS, NULL}, - { (char *)"rlSvgPosition_cy_set", _wrap_rlSvgPosition_cy_set, METH_VARARGS, NULL}, - { (char *)"rlSvgPosition_cy_get", _wrap_rlSvgPosition_cy_get, METH_VARARGS, NULL}, - { (char *)"rlSvgPosition_init_set", _wrap_rlSvgPosition_init_set, METH_VARARGS, NULL}, - { (char *)"rlSvgPosition_init_get", _wrap_rlSvgPosition_init_get, METH_VARARGS, NULL}, - { (char *)"rlSvgPosition_setInit", _wrap_rlSvgPosition_setInit, METH_VARARGS, NULL}, - { (char *)"rlSvgPosition_move", _wrap_rlSvgPosition_move, METH_VARARGS, NULL}, - { (char *)"rlSvgPosition_moveRelative", _wrap_rlSvgPosition_moveRelative, METH_VARARGS, NULL}, - { (char *)"rlSvgPosition_scale", _wrap_rlSvgPosition_scale, METH_VARARGS, NULL}, - { (char *)"rlSvgPosition_scaleRelative", _wrap_rlSvgPosition_scaleRelative, METH_VARARGS, NULL}, - { (char *)"rlSvgPosition_rotate", _wrap_rlSvgPosition_rotate, METH_VARARGS, NULL}, - { (char *)"rlSvgPosition_swigregister", rlSvgPosition_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlSvgAnimator", _wrap_new_rlSvgAnimator, METH_VARARGS, NULL}, - { (char *)"delete_rlSvgAnimator", _wrap_delete_rlSvgAnimator, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_setSocket", _wrap_rlSvgAnimator_setSocket, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_setId", _wrap_rlSvgAnimator_setId, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_read", _wrap_rlSvgAnimator_read, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_writeSocket", _wrap_rlSvgAnimator_writeSocket, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_svgPrintf", _wrap_rlSvgAnimator_svgPrintf, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_svgRecursivePrintf", _wrap_rlSvgAnimator_svgRecursivePrintf, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_svgSearchAndReplace", _wrap_rlSvgAnimator_svgSearchAndReplace, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_svgRecursiveSearchAndReplace", _wrap_rlSvgAnimator_svgRecursiveSearchAndReplace, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_svgTextPrintf", _wrap_rlSvgAnimator_svgTextPrintf, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_svgRemoveStyleOption", _wrap_rlSvgAnimator_svgRemoveStyleOption, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_svgRecursiveRemoveStyleOption", _wrap_rlSvgAnimator_svgRecursiveRemoveStyleOption, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_svgChangeStyleOption", _wrap_rlSvgAnimator_svgChangeStyleOption, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_svgRecursiveChangeStyleOption", _wrap_rlSvgAnimator_svgRecursiveChangeStyleOption, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_svgSetStyleOption", _wrap_rlSvgAnimator_svgSetStyleOption, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_svgRecursiveSetStyleOption", _wrap_rlSvgAnimator_svgRecursiveSetStyleOption, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_show", _wrap_rlSvgAnimator_show, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_setMatrix", _wrap_rlSvgAnimator_setMatrix, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_setMainObject", _wrap_rlSvgAnimator_setMainObject, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_mainObject", _wrap_rlSvgAnimator_mainObject, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_setXY0", _wrap_rlSvgAnimator_setXY0, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_x0", _wrap_rlSvgAnimator_x0, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_y0", _wrap_rlSvgAnimator_y0, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_setMouseXY0", _wrap_rlSvgAnimator_setMouseXY0, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_mouseX0", _wrap_rlSvgAnimator_mouseX0, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_mouseY0", _wrap_rlSvgAnimator_mouseY0, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_setMouseXY1", _wrap_rlSvgAnimator_setMouseXY1, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_mouseX1", _wrap_rlSvgAnimator_mouseX1, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_mouseY1", _wrap_rlSvgAnimator_mouseY1, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_setScale", _wrap_rlSvgAnimator_setScale, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_scale", _wrap_rlSvgAnimator_scale, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_zoomCenter", _wrap_rlSvgAnimator_zoomCenter, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_zoomRect", _wrap_rlSvgAnimator_zoomRect, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_setMainObjectMatrix", _wrap_rlSvgAnimator_setMainObjectMatrix, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_setWindowSize", _wrap_rlSvgAnimator_setWindowSize, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_windowWidth", _wrap_rlSvgAnimator_windowWidth, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_windowHeight", _wrap_rlSvgAnimator_windowHeight, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_moveMainObject", _wrap_rlSvgAnimator_moveMainObject, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_isModified_set", _wrap_rlSvgAnimator_isModified_set, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_isModified_get", _wrap_rlSvgAnimator_isModified_get, METH_VARARGS, NULL}, - { (char *)"rlSvgAnimator_swigregister", rlSvgAnimator_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlSvgCat", _wrap_new_rlSvgCat, METH_VARARGS, NULL}, - { (char *)"delete_rlSvgCat", _wrap_delete_rlSvgCat, METH_VARARGS, NULL}, - { (char *)"rlSvgCat_open", _wrap_rlSvgCat_open, METH_VARARGS, NULL}, - { (char *)"rlSvgCat_reopenSocket", _wrap_rlSvgCat_reopenSocket, METH_VARARGS, NULL}, - { (char *)"rlSvgCat_cat", _wrap_rlSvgCat_cat, METH_VARARGS, NULL}, - { (char *)"rlSvgCat_close", _wrap_rlSvgCat_close, METH_VARARGS, NULL}, - { (char *)"rlSvgCat_swigregister", rlSvgCat_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlTime", _wrap_new_rlTime, METH_VARARGS, NULL}, - { (char *)"delete_rlTime", _wrap_delete_rlTime, METH_VARARGS, NULL}, - { (char *)"rlTime_getTimeString", _wrap_rlTime_getTimeString, METH_VARARGS, NULL}, - { (char *)"rlTime_getIsoTimeString", _wrap_rlTime_getIsoTimeString, METH_VARARGS, NULL}, - { (char *)"rlTime_getLocalTime", _wrap_rlTime_getLocalTime, METH_VARARGS, NULL}, - { (char *)"rlTime_getFileModificationTime", _wrap_rlTime_getFileModificationTime, METH_VARARGS, NULL}, - { (char *)"rlTime_setTimeFromString", _wrap_rlTime_setTimeFromString, METH_VARARGS, NULL}, - { (char *)"rlTime_setTimeFromIsoString", _wrap_rlTime_setTimeFromIsoString, METH_VARARGS, NULL}, - { (char *)"rlTime_setLocalTime", _wrap_rlTime_setLocalTime, METH_VARARGS, NULL}, - { (char *)"rlTime_secondsSinceEpoche", _wrap_rlTime_secondsSinceEpoche, METH_VARARGS, NULL}, - { (char *)"rlTime___iadd__", _wrap_rlTime___iadd__, METH_VARARGS, NULL}, - { (char *)"rlTime___isub__", _wrap_rlTime___isub__, METH_VARARGS, NULL}, - { (char *)"rlTime___add__", _wrap_rlTime___add__, METH_VARARGS, NULL}, - { (char *)"rlTime___sub__", _wrap_rlTime___sub__, METH_VARARGS, NULL}, - { (char *)"rlTime___eq__", _wrap_rlTime___eq__, METH_VARARGS, NULL}, - { (char *)"rlTime___lt__", _wrap_rlTime___lt__, METH_VARARGS, NULL}, - { (char *)"rlTime___le__", _wrap_rlTime___le__, METH_VARARGS, NULL}, - { (char *)"rlTime___gt__", _wrap_rlTime___gt__, METH_VARARGS, NULL}, - { (char *)"rlTime___ge__", _wrap_rlTime___ge__, METH_VARARGS, NULL}, - { (char *)"rlTime_year_set", _wrap_rlTime_year_set, METH_VARARGS, NULL}, - { (char *)"rlTime_year_get", _wrap_rlTime_year_get, METH_VARARGS, NULL}, - { (char *)"rlTime_month_set", _wrap_rlTime_month_set, METH_VARARGS, NULL}, - { (char *)"rlTime_month_get", _wrap_rlTime_month_get, METH_VARARGS, NULL}, - { (char *)"rlTime_day_set", _wrap_rlTime_day_set, METH_VARARGS, NULL}, - { (char *)"rlTime_day_get", _wrap_rlTime_day_get, METH_VARARGS, NULL}, - { (char *)"rlTime_hour_set", _wrap_rlTime_hour_set, METH_VARARGS, NULL}, - { (char *)"rlTime_hour_get", _wrap_rlTime_hour_get, METH_VARARGS, NULL}, - { (char *)"rlTime_minute_set", _wrap_rlTime_minute_set, METH_VARARGS, NULL}, - { (char *)"rlTime_minute_get", _wrap_rlTime_minute_get, METH_VARARGS, NULL}, - { (char *)"rlTime_second_set", _wrap_rlTime_second_set, METH_VARARGS, NULL}, - { (char *)"rlTime_second_get", _wrap_rlTime_second_get, METH_VARARGS, NULL}, - { (char *)"rlTime_millisecond_set", _wrap_rlTime_millisecond_set, METH_VARARGS, NULL}, - { (char *)"rlTime_millisecond_get", _wrap_rlTime_millisecond_get, METH_VARARGS, NULL}, - { (char *)"rlTime_swigregister", rlTime_swigregister, METH_VARARGS, NULL}, - { (char *)"new_rlWebcam", _wrap_new_rlWebcam, METH_VARARGS, NULL}, - { (char *)"delete_rlWebcam", _wrap_delete_rlWebcam, METH_VARARGS, NULL}, - { (char *)"rlWebcam_setUrl", _wrap_rlWebcam_setUrl, METH_VARARGS, NULL}, - { (char *)"rlWebcam_disconnect", _wrap_rlWebcam_disconnect, METH_VARARGS, NULL}, - { (char *)"rlWebcam_getSnapshot", _wrap_rlWebcam_getSnapshot, METH_VARARGS, NULL}, - { (char *)"rlWebcam_getFrame", _wrap_rlWebcam_getFrame, METH_VARARGS, NULL}, - { (char *)"rlWebcam_getFrameBuffer", _wrap_rlWebcam_getFrameBuffer, METH_VARARGS, NULL}, - { (char *)"rlWebcam_getUrl", _wrap_rlWebcam_getUrl, METH_VARARGS, NULL}, - { (char *)"rlWebcam_getHost", _wrap_rlWebcam_getHost, METH_VARARGS, NULL}, - { (char *)"rlWebcam_getPort", _wrap_rlWebcam_getPort, METH_VARARGS, NULL}, - { (char *)"rlWebcam_getPath", _wrap_rlWebcam_getPath, METH_VARARGS, NULL}, - { (char *)"rlWebcam_debug_set", _wrap_rlWebcam_debug_set, METH_VARARGS, NULL}, - { (char *)"rlWebcam_debug_get", _wrap_rlWebcam_debug_get, METH_VARARGS, NULL}, - { (char *)"rlWebcam_filename_set", _wrap_rlWebcam_filename_set, METH_VARARGS, NULL}, - { (char *)"rlWebcam_filename_get", _wrap_rlWebcam_filename_get, METH_VARARGS, NULL}, - { (char *)"rlWebcam_sock_set", _wrap_rlWebcam_sock_set, METH_VARARGS, NULL}, - { (char *)"rlWebcam_sock_get", _wrap_rlWebcam_sock_get, METH_VARARGS, NULL}, - { (char *)"rlWebcam_swigregister", rlWebcam_swigregister, METH_VARARGS, NULL}, - { (char *)"rlsleep", _wrap_rlsleep, METH_VARARGS, NULL}, - { NULL, NULL, 0, NULL } -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ - -static void *_p_rlModbusClientTo_p_rlMailbox(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((rlMailbox *) ((rlModbusClient *) x)); -} -static void *_p_rlPPIClientTo_p_rlMailbox(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((rlMailbox *) ((rlPPIClient *) x)); -} -static void *_p_rlSiemensTCPClientTo_p_rlMailbox(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((rlMailbox *) ((rlSiemensTCPClient *) x)); -} -static void *_p_rlSiemensTCPTo_p_rlSocket(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((rlSocket *) ((rlSiemensTCP *) x)); -} -static void *_p_rlModbusClientTo_p_rlSharedMemory(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((rlSharedMemory *) ((rlModbusClient *) x)); -} -static void *_p_rlPPIClientTo_p_rlSharedMemory(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((rlSharedMemory *) ((rlPPIClient *) x)); -} -static void *_p_rlSiemensTCPClientTo_p_rlSharedMemory(void *x, int *SWIGUNUSEDPARM(newmemory)) { - return (void *)((rlSharedMemory *) ((rlSiemensTCPClient *) x)); -} -static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_THREAD_PARAM = {"_p_THREAD_PARAM", "THREAD_PARAM *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_WSEMAPHORE = {"_p_WSEMAPHORE", "WSEMAPHORE *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p__rlFileLines_ = {"_p__rlFileLines_", "rlFileLines *|_rlFileLines_ *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p__rlHistoryLogLine_ = {"_p__rlHistoryLogLine_", "_rlHistoryLogLine_ *|rlHistoryLogLine *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p__rlHistoryReaderLine_ = {"_p__rlHistoryReaderLine_", "rlHistoryReaderLine *|_rlHistoryReaderLine_ *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_a_4__char = {"_p_a_4__char", "char (*)[4]", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_f_p_q_const__unsigned_char_int__void = {"_p_f_p_q_const__unsigned_char_int__void", "void (*)(unsigned char const *,int)", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_f_p_void__p_void = {"_p_f_p_void__p_void", "void *(*)(void *)", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_f_p_void__void = {"_p_f_p_void__void", "void (*)(void *)", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_float = {"_p_float", "float *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_p_void = {"_p_p_void", "void **", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_pthread_attr_t = {"_p_pthread_attr_t", "pthread_attr_t *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_pthread_mutex_t = {"_p_pthread_mutex_t", "pthread_mutex_t *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_pthread_t = {"_p_pthread_t", "pthread_t *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rl3964R = {"_p_rl3964R", "rl3964R *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlCommandlineInterface = {"_p_rlCommandlineInterface", "rlCommandlineInterface *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlDataAcquisition = {"_p_rlDataAcquisition", "rlDataAcquisition *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlDataAcquisitionProvider = {"_p_rlDataAcquisitionProvider", "rlDataAcquisitionProvider *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlDataProvider = {"_p_rlDataProvider", "rlDataProvider *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlDataProviderClient = {"_p_rlDataProviderClient", "rlDataProviderClient *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlDataProviderThreads = {"_p_rlDataProviderThreads", "rlDataProviderThreads *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlEventLogServer = {"_p_rlEventLogServer", "rlEventLogServer *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlEventLogServerThreads = {"_p_rlEventLogServerThreads", "rlEventLogServerThreads *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlFifo = {"_p_rlFifo", "rlFifo *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlFileLoad = {"_p_rlFileLoad", "rlFileLoad *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlHistoryLogger = {"_p_rlHistoryLogger", "rlHistoryLogger *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlHistoryReader = {"_p_rlHistoryReader", "rlHistoryReader *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlIniFile = {"_p_rlIniFile", "rlIniFile *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlInterpreter = {"_p_rlInterpreter", "rlInterpreter *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlIpAdr = {"_p_rlIpAdr", "rlIpAdr *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlMailbox = {"_p_rlMailbox", "rlMailbox *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlModbus = {"_p_rlModbus", "rlModbus *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlModbusClient = {"_p_rlModbusClient", "rlModbusClient *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlMutex = {"_p_rlMutex", "rlMutex *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlOpcXmlDa = {"_p_rlOpcXmlDa", "rlOpcXmlDa *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlPPIClient = {"_p_rlPPIClient", "rlPPIClient *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlPcontrol = {"_p_rlPcontrol", "rlPcontrol *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlPlcMem = {"_p_rlPlcMem", "rlPlcMem *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlPlcState = {"_p_rlPlcState", "rlPlcState *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlSemaphore = {"_p_rlSemaphore", "rlSemaphore *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlSerial = {"_p_rlSerial", "rlSerial *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlSharedMemory = {"_p_rlSharedMemory", "rlSharedMemory *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlSiemensTCP = {"_p_rlSiemensTCP", "rlSiemensTCP *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlSiemensTCPClient = {"_p_rlSiemensTCPClient", "rlSiemensTCPClient *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlSocket = {"_p_rlSocket", "rlSocket *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlSpawn = {"_p_rlSpawn", "rlSpawn *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlSpreadsheetCell = {"_p_rlSpreadsheetCell", "rlSpreadsheetCell *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlSpreadsheetRow = {"_p_rlSpreadsheetRow", "rlSpreadsheetRow *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlSpreadsheetTable = {"_p_rlSpreadsheetTable", "rlSpreadsheetTable *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlSpreadsheetWorkbook = {"_p_rlSpreadsheetWorkbook", "rlSpreadsheetWorkbook *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlString = {"_p_rlString", "rlString *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlSvgAnimator = {"_p_rlSvgAnimator", "rlSvgAnimator *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlSvgCat = {"_p_rlSvgCat", "rlSvgCat *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlSvgPosition = {"_p_rlSvgPosition", "rlSvgPosition *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlSvgPosition__rlPositionInit = {"_p_rlSvgPosition__rlPositionInit", "rlSvgPosition::rlPositionInit *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlThread = {"_p_rlThread", "rlThread *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlTime = {"_p_rlTime", "rlTime *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlUdpSocket = {"_p_rlUdpSocket", "rlUdpSocket *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_rlWebcam = {"_p_rlWebcam", "rlWebcam *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_short = {"_p_short", "short *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_sockaddr_in = {"_p_sockaddr_in", "sockaddr_in *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; - -static swig_type_info *swig_type_initial[] = { - &_swigt__p_FILE, - &_swigt__p_THREAD_PARAM, - &_swigt__p_WSEMAPHORE, - &_swigt__p__rlFileLines_, - &_swigt__p__rlHistoryLogLine_, - &_swigt__p__rlHistoryReaderLine_, - &_swigt__p_a_4__char, - &_swigt__p_char, - &_swigt__p_double, - &_swigt__p_f_p_q_const__unsigned_char_int__void, - &_swigt__p_f_p_void__p_void, - &_swigt__p_f_p_void__void, - &_swigt__p_float, - &_swigt__p_int, - &_swigt__p_p_char, - &_swigt__p_p_void, - &_swigt__p_pthread_attr_t, - &_swigt__p_pthread_mutex_t, - &_swigt__p_pthread_t, - &_swigt__p_rl3964R, - &_swigt__p_rlCommandlineInterface, - &_swigt__p_rlDataAcquisition, - &_swigt__p_rlDataAcquisitionProvider, - &_swigt__p_rlDataProvider, - &_swigt__p_rlDataProviderClient, - &_swigt__p_rlDataProviderThreads, - &_swigt__p_rlEventLogServer, - &_swigt__p_rlEventLogServerThreads, - &_swigt__p_rlFifo, - &_swigt__p_rlFileLoad, - &_swigt__p_rlHistoryLogger, - &_swigt__p_rlHistoryReader, - &_swigt__p_rlIniFile, - &_swigt__p_rlInterpreter, - &_swigt__p_rlIpAdr, - &_swigt__p_rlMailbox, - &_swigt__p_rlModbus, - &_swigt__p_rlModbusClient, - &_swigt__p_rlMutex, - &_swigt__p_rlOpcXmlDa, - &_swigt__p_rlPPIClient, - &_swigt__p_rlPcontrol, - &_swigt__p_rlPlcMem, - &_swigt__p_rlPlcState, - &_swigt__p_rlSemaphore, - &_swigt__p_rlSerial, - &_swigt__p_rlSharedMemory, - &_swigt__p_rlSiemensTCP, - &_swigt__p_rlSiemensTCPClient, - &_swigt__p_rlSocket, - &_swigt__p_rlSpawn, - &_swigt__p_rlSpreadsheetCell, - &_swigt__p_rlSpreadsheetRow, - &_swigt__p_rlSpreadsheetTable, - &_swigt__p_rlSpreadsheetWorkbook, - &_swigt__p_rlString, - &_swigt__p_rlSvgAnimator, - &_swigt__p_rlSvgCat, - &_swigt__p_rlSvgPosition, - &_swigt__p_rlSvgPosition__rlPositionInit, - &_swigt__p_rlThread, - &_swigt__p_rlTime, - &_swigt__p_rlUdpSocket, - &_swigt__p_rlWebcam, - &_swigt__p_short, - &_swigt__p_sockaddr_in, - &_swigt__p_unsigned_char, - &_swigt__p_unsigned_int, - &_swigt__p_unsigned_short, - &_swigt__p_void, -}; - -static swig_cast_info _swigc__p_FILE[] = { {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_THREAD_PARAM[] = { {&_swigt__p_THREAD_PARAM, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_WSEMAPHORE[] = { {&_swigt__p_WSEMAPHORE, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p__rlFileLines_[] = { {&_swigt__p__rlFileLines_, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p__rlHistoryLogLine_[] = { {&_swigt__p__rlHistoryLogLine_, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p__rlHistoryReaderLine_[] = { {&_swigt__p__rlHistoryReaderLine_, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_a_4__char[] = { {&_swigt__p_a_4__char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_f_p_q_const__unsigned_char_int__void[] = { {&_swigt__p_f_p_q_const__unsigned_char_int__void, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_f_p_void__p_void[] = { {&_swigt__p_f_p_void__p_void, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_f_p_void__void[] = { {&_swigt__p_f_p_void__void, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_float[] = { {&_swigt__p_float, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_p_void[] = { {&_swigt__p_p_void, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_pthread_attr_t[] = { {&_swigt__p_pthread_attr_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_pthread_mutex_t[] = { {&_swigt__p_pthread_mutex_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_pthread_t[] = { {&_swigt__p_pthread_t, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rl3964R[] = { {&_swigt__p_rl3964R, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlCommandlineInterface[] = { {&_swigt__p_rlCommandlineInterface, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlDataAcquisition[] = { {&_swigt__p_rlDataAcquisition, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlDataAcquisitionProvider[] = { {&_swigt__p_rlDataAcquisitionProvider, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlDataProvider[] = { {&_swigt__p_rlDataProvider, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlDataProviderClient[] = { {&_swigt__p_rlDataProviderClient, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlDataProviderThreads[] = { {&_swigt__p_rlDataProviderThreads, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlEventLogServer[] = { {&_swigt__p_rlEventLogServer, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlEventLogServerThreads[] = { {&_swigt__p_rlEventLogServerThreads, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlFifo[] = { {&_swigt__p_rlFifo, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlFileLoad[] = { {&_swigt__p_rlFileLoad, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlHistoryLogger[] = { {&_swigt__p_rlHistoryLogger, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlHistoryReader[] = { {&_swigt__p_rlHistoryReader, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlIniFile[] = { {&_swigt__p_rlIniFile, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlInterpreter[] = { {&_swigt__p_rlInterpreter, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlIpAdr[] = { {&_swigt__p_rlIpAdr, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlMailbox[] = { {&_swigt__p_rlModbusClient, _p_rlModbusClientTo_p_rlMailbox, 0, 0}, {&_swigt__p_rlPPIClient, _p_rlPPIClientTo_p_rlMailbox, 0, 0}, {&_swigt__p_rlMailbox, 0, 0, 0}, {&_swigt__p_rlSiemensTCPClient, _p_rlSiemensTCPClientTo_p_rlMailbox, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlModbus[] = { {&_swigt__p_rlModbus, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlModbusClient[] = { {&_swigt__p_rlModbusClient, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlMutex[] = { {&_swigt__p_rlMutex, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlOpcXmlDa[] = { {&_swigt__p_rlOpcXmlDa, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlPPIClient[] = { {&_swigt__p_rlPPIClient, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlPcontrol[] = { {&_swigt__p_rlPcontrol, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlPlcMem[] = { {&_swigt__p_rlPlcMem, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlPlcState[] = { {&_swigt__p_rlPlcState, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlSemaphore[] = { {&_swigt__p_rlSemaphore, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlSerial[] = { {&_swigt__p_rlSerial, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlSharedMemory[] = { {&_swigt__p_rlModbusClient, _p_rlModbusClientTo_p_rlSharedMemory, 0, 0}, {&_swigt__p_rlPPIClient, _p_rlPPIClientTo_p_rlSharedMemory, 0, 0}, {&_swigt__p_rlSharedMemory, 0, 0, 0}, {&_swigt__p_rlSiemensTCPClient, _p_rlSiemensTCPClientTo_p_rlSharedMemory, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlSiemensTCP[] = { {&_swigt__p_rlSiemensTCP, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlSiemensTCPClient[] = { {&_swigt__p_rlSiemensTCPClient, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlSocket[] = { {&_swigt__p_rlSiemensTCP, _p_rlSiemensTCPTo_p_rlSocket, 0, 0}, {&_swigt__p_rlSocket, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlSpawn[] = { {&_swigt__p_rlSpawn, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlSpreadsheetCell[] = { {&_swigt__p_rlSpreadsheetCell, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlSpreadsheetRow[] = { {&_swigt__p_rlSpreadsheetRow, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlSpreadsheetTable[] = { {&_swigt__p_rlSpreadsheetTable, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlSpreadsheetWorkbook[] = { {&_swigt__p_rlSpreadsheetWorkbook, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlString[] = { {&_swigt__p_rlString, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlSvgAnimator[] = { {&_swigt__p_rlSvgAnimator, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlSvgCat[] = { {&_swigt__p_rlSvgCat, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlSvgPosition[] = { {&_swigt__p_rlSvgPosition, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlSvgPosition__rlPositionInit[] = { {&_swigt__p_rlSvgPosition__rlPositionInit, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlThread[] = { {&_swigt__p_rlThread, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlTime[] = { {&_swigt__p_rlTime, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlUdpSocket[] = { {&_swigt__p_rlUdpSocket, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_rlWebcam[] = { {&_swigt__p_rlWebcam, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_short[] = { {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_sockaddr_in[] = { {&_swigt__p_sockaddr_in, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; - -static swig_cast_info *swig_cast_initial[] = { - _swigc__p_FILE, - _swigc__p_THREAD_PARAM, - _swigc__p_WSEMAPHORE, - _swigc__p__rlFileLines_, - _swigc__p__rlHistoryLogLine_, - _swigc__p__rlHistoryReaderLine_, - _swigc__p_a_4__char, - _swigc__p_char, - _swigc__p_double, - _swigc__p_f_p_q_const__unsigned_char_int__void, - _swigc__p_f_p_void__p_void, - _swigc__p_f_p_void__void, - _swigc__p_float, - _swigc__p_int, - _swigc__p_p_char, - _swigc__p_p_void, - _swigc__p_pthread_attr_t, - _swigc__p_pthread_mutex_t, - _swigc__p_pthread_t, - _swigc__p_rl3964R, - _swigc__p_rlCommandlineInterface, - _swigc__p_rlDataAcquisition, - _swigc__p_rlDataAcquisitionProvider, - _swigc__p_rlDataProvider, - _swigc__p_rlDataProviderClient, - _swigc__p_rlDataProviderThreads, - _swigc__p_rlEventLogServer, - _swigc__p_rlEventLogServerThreads, - _swigc__p_rlFifo, - _swigc__p_rlFileLoad, - _swigc__p_rlHistoryLogger, - _swigc__p_rlHistoryReader, - _swigc__p_rlIniFile, - _swigc__p_rlInterpreter, - _swigc__p_rlIpAdr, - _swigc__p_rlMailbox, - _swigc__p_rlModbus, - _swigc__p_rlModbusClient, - _swigc__p_rlMutex, - _swigc__p_rlOpcXmlDa, - _swigc__p_rlPPIClient, - _swigc__p_rlPcontrol, - _swigc__p_rlPlcMem, - _swigc__p_rlPlcState, - _swigc__p_rlSemaphore, - _swigc__p_rlSerial, - _swigc__p_rlSharedMemory, - _swigc__p_rlSiemensTCP, - _swigc__p_rlSiemensTCPClient, - _swigc__p_rlSocket, - _swigc__p_rlSpawn, - _swigc__p_rlSpreadsheetCell, - _swigc__p_rlSpreadsheetRow, - _swigc__p_rlSpreadsheetTable, - _swigc__p_rlSpreadsheetWorkbook, - _swigc__p_rlString, - _swigc__p_rlSvgAnimator, - _swigc__p_rlSvgCat, - _swigc__p_rlSvgPosition, - _swigc__p_rlSvgPosition__rlPositionInit, - _swigc__p_rlThread, - _swigc__p_rlTime, - _swigc__p_rlUdpSocket, - _swigc__p_rlWebcam, - _swigc__p_short, - _swigc__p_sockaddr_in, - _swigc__p_unsigned_char, - _swigc__p_unsigned_int, - _swigc__p_unsigned_short, - _swigc__p_void, -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ - -static swig_const_info swig_const_table[] = { -{0, 0, 0, 0.0, 0, 0}}; - -#ifdef __cplusplus -} -#endif -/* ----------------------------------------------------------------------------- - * Type initialization: - * This problem is tough by the requirement that no dynamic - * memory is used. Also, since swig_type_info structures store pointers to - * swig_cast_info structures and swig_cast_info structures store pointers back - * to swig_type_info structures, we need some lookup code at initialization. - * The idea is that swig generates all the structures that are needed. - * The runtime then collects these partially filled structures. - * The SWIG_InitializeModule function takes these initial arrays out of - * swig_module, and does all the lookup, filling in the swig_module.types - * array with the correct data and linking the correct swig_cast_info - * structures together. - * - * The generated swig_type_info structures are assigned staticly to an initial - * array. We just loop through that array, and handle each type individually. - * First we lookup if this type has been already loaded, and if so, use the - * loaded structure instead of the generated one. Then we have to fill in the - * cast linked list. The cast data is initially stored in something like a - * two-dimensional array. Each row corresponds to a type (there are the same - * number of rows as there are in the swig_type_initial array). Each entry in - * a column is one of the swig_cast_info structures for that type. - * The cast_initial array is actually an array of arrays, because each row has - * a variable number of columns. So to actually build the cast linked list, - * we find the array of casts associated with the type, and loop through it - * adding the casts to the list. The one last trick we need to do is making - * sure the type pointer in the swig_cast_info struct is correct. - * - * First off, we lookup the cast->type name to see if it is already loaded. - * There are three cases to handle: - * 1) If the cast->type has already been loaded AND the type we are adding - * casting info to has not been loaded (it is in this module), THEN we - * replace the cast->type pointer with the type pointer that has already - * been loaded. - * 2) If BOTH types (the one we are adding casting info to, and the - * cast->type) are loaded, THEN the cast info has already been loaded by - * the previous module so we just ignore it. - * 3) Finally, if cast->type has not already been loaded, then we add that - * swig_cast_info to the linked list (because the cast->type) pointer will - * be correct. - * ----------------------------------------------------------------------------- */ - -#ifdef __cplusplus -extern "C" { -#if 0 -} /* c-mode */ -#endif -#endif - -#if 0 -#define SWIGRUNTIME_DEBUG -#endif - - -SWIGRUNTIME void -SWIG_InitializeModule(void *clientdata) { - size_t i; - swig_module_info *module_head, *iter; - int found, init; - - /* check to see if the circular list has been setup, if not, set it up */ - if (swig_module.next==0) { - /* Initialize the swig_module */ - swig_module.type_initial = swig_type_initial; - swig_module.cast_initial = swig_cast_initial; - swig_module.next = &swig_module; - init = 1; - } else { - init = 0; - } - - /* Try and load any already created modules */ - module_head = SWIG_GetModule(clientdata); - if (!module_head) { - /* This is the first module loaded for this interpreter */ - /* so set the swig module into the interpreter */ - SWIG_SetModule(clientdata, &swig_module); - module_head = &swig_module; - } else { - /* the interpreter has loaded a SWIG module, but has it loaded this one? */ - found=0; - iter=module_head; - do { - if (iter==&swig_module) { - found=1; - break; - } - iter=iter->next; - } while (iter!= module_head); - - /* if the is found in the list, then all is done and we may leave */ - if (found) return; - /* otherwise we must add out module into the list */ - swig_module.next = module_head->next; - module_head->next = &swig_module; - } - - /* When multiple interpreters are used, a module could have already been initialized in - a different interpreter, but not yet have a pointer in this interpreter. - In this case, we do not want to continue adding types... everything should be - set up already */ - if (init == 0) return; - - /* Now work on filling in swig_module.types */ -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: size %d\n", swig_module.size); -#endif - for (i = 0; i < swig_module.size; ++i) { - swig_type_info *type = 0; - swig_type_info *ret; - swig_cast_info *cast; - -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); -#endif - - /* if there is another module already loaded */ - if (swig_module.next != &swig_module) { - type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); - } - if (type) { - /* Overwrite clientdata field */ -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: found type %s\n", type->name); -#endif - if (swig_module.type_initial[i]->clientdata) { - type->clientdata = swig_module.type_initial[i]->clientdata; -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); -#endif - } - } else { - type = swig_module.type_initial[i]; - } - - /* Insert casting types */ - cast = swig_module.cast_initial[i]; - while (cast->type) { - /* Don't need to add information already in the list */ - ret = 0; -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); -#endif - if (swig_module.next != &swig_module) { - ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); -#ifdef SWIGRUNTIME_DEBUG - if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); -#endif - } - if (ret) { - if (type == swig_module.type_initial[i]) { -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: skip old type %s\n", ret->name); -#endif - cast->type = ret; - ret = 0; - } else { - /* Check for casting already in the list */ - swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); -#ifdef SWIGRUNTIME_DEBUG - if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); -#endif - if (!ocast) ret = 0; - } - } - - if (!ret) { -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); -#endif - if (type->cast) { - type->cast->prev = cast; - cast->next = type->cast; - } - type->cast = cast; - } - cast++; - } - /* Set entry in modules->types array equal to the type */ - swig_module.types[i] = type; - } - swig_module.types[i] = 0; - -#ifdef SWIGRUNTIME_DEBUG - printf("**** SWIG_InitializeModule: Cast List ******\n"); - for (i = 0; i < swig_module.size; ++i) { - int j = 0; - swig_cast_info *cast = swig_module.cast_initial[i]; - printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); - while (cast->type) { - printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); - cast++; - ++j; - } - printf("---- Total casts: %d\n",j); - } - printf("**** SWIG_InitializeModule: Cast List ******\n"); -#endif -} - -/* This function will propagate the clientdata field of type to -* any new swig_type_info structures that have been added into the list -* of equivalent types. It is like calling -* SWIG_TypeClientData(type, clientdata) a second time. -*/ -SWIGRUNTIME void -SWIG_PropagateClientData(void) { - size_t i; - swig_cast_info *equiv; - static int init_run = 0; - - if (init_run) return; - init_run = 1; - - for (i = 0; i < swig_module.size; i++) { - if (swig_module.types[i]->clientdata) { - equiv = swig_module.types[i]->cast; - while (equiv) { - if (!equiv->converter) { - if (equiv->type && !equiv->type->clientdata) - SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); - } - equiv = equiv->next; - } - } - } -} - -#ifdef __cplusplus -#if 0 -{ - /* c-mode */ -#endif -} -#endif - - - -#ifdef __cplusplus -extern "C" { -#endif - - /* Python-specific SWIG API */ -#define SWIG_newvarlink() SWIG_Python_newvarlink() -#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) -#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) - - /* ----------------------------------------------------------------------------- - * global variable support code. - * ----------------------------------------------------------------------------- */ - - typedef struct swig_globalvar { - char *name; /* Name of global variable */ - PyObject *(*get_attr)(void); /* Return the current value */ - int (*set_attr)(PyObject *); /* Set the value */ - struct swig_globalvar *next; - } swig_globalvar; - - typedef struct swig_varlinkobject { - PyObject_HEAD - swig_globalvar *vars; - } swig_varlinkobject; - - SWIGINTERN PyObject * - swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { -#if PY_VERSION_HEX >= 0x03000000 - return PyUnicode_InternFromString(""); -#else - return PyString_FromString(""); -#endif - } - - SWIGINTERN PyObject * - swig_varlink_str(swig_varlinkobject *v) { -#if PY_VERSION_HEX >= 0x03000000 - PyObject *str = PyUnicode_InternFromString("("); - PyObject *tail; - PyObject *joined; - swig_globalvar *var; - for (var = v->vars; var; var=var->next) { - tail = PyUnicode_FromString(var->name); - joined = PyUnicode_Concat(str, tail); - Py_DecRef(str); - Py_DecRef(tail); - str = joined; - if (var->next) { - tail = PyUnicode_InternFromString(", "); - joined = PyUnicode_Concat(str, tail); - Py_DecRef(str); - Py_DecRef(tail); - str = joined; - } - } - tail = PyUnicode_InternFromString(")"); - joined = PyUnicode_Concat(str, tail); - Py_DecRef(str); - Py_DecRef(tail); - str = joined; -#else - PyObject *str = PyString_FromString("("); - swig_globalvar *var; - for (var = v->vars; var; var=var->next) { - PyString_ConcatAndDel(&str,PyString_FromString(var->name)); - if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); - } - PyString_ConcatAndDel(&str,PyString_FromString(")")); -#endif - return str; - } - - SWIGINTERN int - swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { - char *tmp; - PyObject *str = swig_varlink_str(v); - fprintf(fp,"Swig global variables "); - fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str)); - SWIG_Python_str_DelForPy3(tmp); - Py_DECREF(str); - return 0; - } - - SWIGINTERN void - swig_varlink_dealloc(swig_varlinkobject *v) { - swig_globalvar *var = v->vars; - while (var) { - swig_globalvar *n = var->next; - free(var->name); - free(var); - var = n; - } - } - - SWIGINTERN PyObject * - swig_varlink_getattr(swig_varlinkobject *v, char *n) { - PyObject *res = NULL; - swig_globalvar *var = v->vars; - while (var) { - if (strcmp(var->name,n) == 0) { - res = (*var->get_attr)(); - break; - } - var = var->next; - } - if (res == NULL && !PyErr_Occurred()) { - PyErr_SetString(PyExc_NameError,"Unknown C global variable"); - } - return res; - } - - SWIGINTERN int - swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { - int res = 1; - swig_globalvar *var = v->vars; - while (var) { - if (strcmp(var->name,n) == 0) { - res = (*var->set_attr)(p); - break; - } - var = var->next; - } - if (res == 1 && !PyErr_Occurred()) { - PyErr_SetString(PyExc_NameError,"Unknown C global variable"); - } - return res; - } - - SWIGINTERN PyTypeObject* - swig_varlink_type(void) { - static char varlink__doc__[] = "Swig var link object"; - static PyTypeObject varlink_type; - static int type_init = 0; - if (!type_init) { - const PyTypeObject tmp = { - /* PyObject header changed in Python 3 */ -#if PY_VERSION_HEX >= 0x03000000 - PyVarObject_HEAD_INIT(NULL, 0) -#else - PyObject_HEAD_INIT(NULL) - 0, /* ob_size */ -#endif - (char *)"swigvarlink", /* tp_name */ - sizeof(swig_varlinkobject), /* tp_basicsize */ - 0, /* tp_itemsize */ - (destructor) swig_varlink_dealloc, /* tp_dealloc */ - (printfunc) swig_varlink_print, /* tp_print */ - (getattrfunc) swig_varlink_getattr, /* tp_getattr */ - (setattrfunc) swig_varlink_setattr, /* tp_setattr */ - 0, /* tp_compare */ - (reprfunc) swig_varlink_repr, /* tp_repr */ - 0, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - 0, /* tp_hash */ - 0, /* tp_call */ - (reprfunc) swig_varlink_str, /* tp_str */ - 0, /* tp_getattro */ - 0, /* tp_setattro */ - 0, /* tp_as_buffer */ - 0, /* tp_flags */ - varlink__doc__, /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - 0, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ -#if PY_VERSION_HEX >= 0x02020000 - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ -#endif -#if PY_VERSION_HEX >= 0x02030000 - 0, /* tp_del */ -#endif -#if PY_VERSION_HEX >= 0x02060000 - 0, /* tp_version */ -#endif -#ifdef COUNT_ALLOCS - 0,0,0,0 /* tp_alloc -> tp_next */ -#endif - }; - varlink_type = tmp; - type_init = 1; -#if PY_VERSION_HEX < 0x02020000 - varlink_type.ob_type = &PyType_Type; -#else - if (PyType_Ready(&varlink_type) < 0) - return NULL; -#endif - } - return &varlink_type; - } - - /* Create a variable linking object for use later */ - SWIGINTERN PyObject * - SWIG_Python_newvarlink(void) { - swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); - if (result) { - result->vars = 0; - } - return ((PyObject*) result); - } - - SWIGINTERN void - SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { - swig_varlinkobject *v = (swig_varlinkobject *) p; - swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); - if (gv) { - size_t size = strlen(name)+1; - gv->name = (char *)malloc(size); - if (gv->name) { - strncpy(gv->name,name,size); - gv->get_attr = get_attr; - gv->set_attr = set_attr; - gv->next = v->vars; - } - } - v->vars = gv; - } - - SWIGINTERN PyObject * - SWIG_globals(void) { - static PyObject *_SWIG_globals = 0; - if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); - return _SWIG_globals; - } - - /* ----------------------------------------------------------------------------- - * constants/methods manipulation - * ----------------------------------------------------------------------------- */ - - /* Install Constants */ - SWIGINTERN void - SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { - PyObject *obj = 0; - size_t i; - for (i = 0; constants[i].type; ++i) { - switch(constants[i].type) { - case SWIG_PY_POINTER: - obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); - break; - case SWIG_PY_BINARY: - obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); - break; - default: - obj = 0; - break; - } - if (obj) { - PyDict_SetItemString(d, constants[i].name, obj); - Py_DECREF(obj); - } - } - } - - /* -----------------------------------------------------------------------------*/ - /* Fix SwigMethods to carry the callback ptrs when needed */ - /* -----------------------------------------------------------------------------*/ - - SWIGINTERN void - SWIG_Python_FixMethods(PyMethodDef *methods, - swig_const_info *const_table, - swig_type_info **types, - swig_type_info **types_initial) { - size_t i; - for (i = 0; methods[i].ml_name; ++i) { - const char *c = methods[i].ml_doc; - if (c && (c = strstr(c, "swig_ptr: "))) { - int j; - swig_const_info *ci = 0; - const char *name = c + 10; - for (j = 0; const_table[j].type; ++j) { - if (strncmp(const_table[j].name, name, - strlen(const_table[j].name)) == 0) { - ci = &(const_table[j]); - break; - } - } - if (ci) { - void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; - if (ptr) { - size_t shift = (ci->ptype) - types; - swig_type_info *ty = types_initial[shift]; - size_t ldoc = (c - methods[i].ml_doc); - size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; - char *ndoc = (char*)malloc(ldoc + lptr + 10); - if (ndoc) { - char *buff = ndoc; - strncpy(buff, methods[i].ml_doc, ldoc); - buff += ldoc; - strncpy(buff, "swig_ptr: ", 10); - buff += 10; - SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); - methods[i].ml_doc = ndoc; - } - } - } - } - } - } - -#ifdef __cplusplus -} -#endif - -/* -----------------------------------------------------------------------------* - * Partial Init method - * -----------------------------------------------------------------------------*/ - -#ifdef __cplusplus -extern "C" -#endif - -SWIGEXPORT -#if PY_VERSION_HEX >= 0x03000000 -PyObject* -#else -void -#endif -SWIG_init(void) { - PyObject *m, *d, *md; -#if PY_VERSION_HEX >= 0x03000000 - static struct PyModuleDef SWIG_module = { -# if PY_VERSION_HEX >= 0x03020000 - PyModuleDef_HEAD_INIT, -# else - { - PyObject_HEAD_INIT(NULL) - NULL, /* m_init */ - 0, /* m_index */ - NULL, /* m_copy */ - }, -# endif - (char *) SWIG_name, - NULL, - -1, - SwigMethods, - NULL, - NULL, - NULL, - NULL - }; -#endif - -#if defined(SWIGPYTHON_BUILTIN) - static SwigPyClientData SwigPyObject_clientdata = { - 0, 0, 0, 0, 0, 0, 0 - }; - static PyGetSetDef this_getset_def = { - (char *)"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL - }; - static SwigPyGetSet thisown_getset_closure = { - (PyCFunction) SwigPyObject_own, - (PyCFunction) SwigPyObject_own - }; - static PyGetSetDef thisown_getset_def = { - (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure - }; - PyObject *metatype_args; - PyTypeObject *builtin_pytype; - int builtin_base_count; - swig_type_info *builtin_basetype; - PyObject *tuple; - PyGetSetDescrObject *static_getset; - PyTypeObject *metatype; - SwigPyClientData *cd; - PyObject *public_interface, *public_symbol; - PyObject *this_descr; - PyObject *thisown_descr; - int i; - - (void)builtin_pytype; - (void)builtin_base_count; - (void)builtin_basetype; - (void)tuple; - (void)static_getset; - - /* metatype is used to implement static member variables. */ - metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type); - assert(metatype_args); - metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL); - assert(metatype); - Py_DECREF(metatype_args); - metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro; - assert(PyType_Ready(metatype) >= 0); -#endif - - /* Fix SwigMethods to carry the callback ptrs when needed */ - SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); - -#if PY_VERSION_HEX >= 0x03000000 - m = PyModule_Create(&SWIG_module); -#else - m = Py_InitModule((char *) SWIG_name, SwigMethods); -#endif - md = d = PyModule_GetDict(m); - (void)md; - - SWIG_InitializeModule(0); - -#ifdef SWIGPYTHON_BUILTIN - SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject"); - assert(SwigPyObject_stype); - cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; - if (!cd) { - SwigPyObject_stype->clientdata = &SwigPyObject_clientdata; - SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce(); - } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) { - PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules."); -# if PY_VERSION_HEX >= 0x03000000 - return NULL; -# else - return; -# endif - } - - /* All objects have a 'this' attribute */ - this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def); - (void)this_descr; - - /* All objects have a 'thisown' attribute */ - thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def); - (void)thisown_descr; - - public_interface = PyList_New(0); - public_symbol = 0; - (void)public_symbol; - - PyDict_SetItemString(md, "__all__", public_interface); - Py_DECREF(public_interface); - for (i = 0; SwigMethods[i].ml_name != NULL; ++i) - SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name); - for (i = 0; swig_const_table[i].name != 0; ++i) - SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name); -#endif - - SWIG_InstallConstants(d,swig_const_table); - - SWIG_Python_SetConstant(d, "rl_PRINTF_LENGTH",SWIG_From_int(static_cast< int >(4096))); - SWIG_Python_SetConstant(d, "rl_PRINTF_LENGTH_SPREADSHEET",SWIG_From_int(static_cast< int >(4096))); - SWIG_Python_SetConstant(d, "BIT0",SWIG_From_int(static_cast< int >(1))); - SWIG_Python_SetConstant(d, "BIT1",SWIG_From_int(static_cast< int >(2))); - SWIG_Python_SetConstant(d, "BIT2",SWIG_From_int(static_cast< int >(4))); - SWIG_Python_SetConstant(d, "BIT3",SWIG_From_int(static_cast< int >(8))); - SWIG_Python_SetConstant(d, "BIT4",SWIG_From_int(static_cast< int >(16))); - SWIG_Python_SetConstant(d, "BIT5",SWIG_From_int(static_cast< int >(32))); - SWIG_Python_SetConstant(d, "BIT6",SWIG_From_int(static_cast< int >(64))); - SWIG_Python_SetConstant(d, "BIT7",SWIG_From_int(static_cast< int >(128))); - SWIG_Python_SetConstant(d, "BIT8",SWIG_From_int(static_cast< int >(256*1))); - SWIG_Python_SetConstant(d, "BIT9",SWIG_From_int(static_cast< int >(256*2))); - SWIG_Python_SetConstant(d, "BIT10",SWIG_From_int(static_cast< int >(256*4))); - SWIG_Python_SetConstant(d, "BIT11",SWIG_From_int(static_cast< int >(256*8))); - SWIG_Python_SetConstant(d, "BIT12",SWIG_From_int(static_cast< int >(256*16))); - SWIG_Python_SetConstant(d, "BIT13",SWIG_From_int(static_cast< int >(256*32))); - SWIG_Python_SetConstant(d, "BIT14",SWIG_From_int(static_cast< int >(256*64))); - SWIG_Python_SetConstant(d, "BIT15",SWIG_From_int(static_cast< int >(256*128))); - SWIG_Python_SetConstant(d, "BIT16",SWIG_From_int(static_cast< int >(256*256*1))); - SWIG_Python_SetConstant(d, "BIT17",SWIG_From_int(static_cast< int >(256*256*2))); - SWIG_Python_SetConstant(d, "BIT18",SWIG_From_int(static_cast< int >(256*256*4))); - SWIG_Python_SetConstant(d, "BIT19",SWIG_From_int(static_cast< int >(256*256*8))); - SWIG_Python_SetConstant(d, "BIT20",SWIG_From_int(static_cast< int >(256*256*16))); - SWIG_Python_SetConstant(d, "BIT21",SWIG_From_int(static_cast< int >(256*256*32))); - SWIG_Python_SetConstant(d, "BIT22",SWIG_From_int(static_cast< int >(256*256*64))); - SWIG_Python_SetConstant(d, "BIT23",SWIG_From_int(static_cast< int >(256*256*128))); - SWIG_Python_SetConstant(d, "BIT24",SWIG_From_int(static_cast< int >(256*256*256*1))); - SWIG_Python_SetConstant(d, "BIT25",SWIG_From_int(static_cast< int >(256*256*256*2))); - SWIG_Python_SetConstant(d, "BIT26",SWIG_From_int(static_cast< int >(256*256*256*4))); - SWIG_Python_SetConstant(d, "BIT27",SWIG_From_int(static_cast< int >(256*256*256*8))); - SWIG_Python_SetConstant(d, "BIT28",SWIG_From_int(static_cast< int >(256*256*256*16))); - SWIG_Python_SetConstant(d, "BIT29",SWIG_From_int(static_cast< int >(256*256*256*32))); - SWIG_Python_SetConstant(d, "BIT30",SWIG_From_int(static_cast< int >(256*256*256*64))); - SWIG_Python_SetConstant(d, "BIT31",SWIG_From_int(static_cast< int >(256*256*256*128))); - SWIG_Python_SetConstant(d, "RLCRLF",SWIG_FromCharPtr("\r\n")); - SWIG_Python_SetConstant(d, "rlSharedMemory_OK",SWIG_From_int(static_cast< int >(rlSharedMemory::OK))); - SWIG_Python_SetConstant(d, "rlSharedMemory_ERROR_FILE",SWIG_From_int(static_cast< int >(rlSharedMemory::ERROR_FILE))); - SWIG_Python_SetConstant(d, "rlSharedMemory_ERROR_SHMGET",SWIG_From_int(static_cast< int >(rlSharedMemory::ERROR_SHMGET))); - SWIG_Python_SetConstant(d, "rlSharedMemory_ERROR_SHMAT",SWIG_From_int(static_cast< int >(rlSharedMemory::ERROR_SHMAT))); - SWIG_Python_SetConstant(d, "rlSharedMemory_ERROR_SHMCTL",SWIG_From_int(static_cast< int >(rlSharedMemory::ERROR_SHMCTL))); - SWIG_Python_SetConstant(d, "rlSocket_SOCKET_ERR",SWIG_From_int(static_cast< int >(rlSocket::SOCKET_ERR))); - SWIG_Python_SetConstant(d, "rlSocket_SETSOCKOPT_ERR",SWIG_From_int(static_cast< int >(rlSocket::SETSOCKOPT_ERR))); - SWIG_Python_SetConstant(d, "rlSocket_LISTEN_ERR",SWIG_From_int(static_cast< int >(rlSocket::LISTEN_ERR))); - SWIG_Python_SetConstant(d, "rlSocket_ACCEPT_ERR",SWIG_From_int(static_cast< int >(rlSocket::ACCEPT_ERR))); - SWIG_Python_SetConstant(d, "rlSocket_INET_ADDR_ERR",SWIG_From_int(static_cast< int >(rlSocket::INET_ADDR_ERR))); - SWIG_Python_SetConstant(d, "rlSocket_CONNECT_ERR",SWIG_From_int(static_cast< int >(rlSocket::CONNECT_ERR))); - SWIG_Python_SetConstant(d, "rlSocket_PORT_ERR",SWIG_From_int(static_cast< int >(rlSocket::PORT_ERR))); - SWIG_Python_SetConstant(d, "rl3964R_highPriority",SWIG_From_int(static_cast< int >(rl3964R::highPriority))); - SWIG_Python_SetConstant(d, "rl3964R_lowPriority",SWIG_From_int(static_cast< int >(rl3964R::lowPriority))); - SWIG_Python_SetConstant(d, "rlDataAcquisition_DAQ_ERROR",SWIG_From_int(static_cast< int >(rlDataAcquisition::DAQ_ERROR))); - SWIG_Python_SetConstant(d, "rlDataAcquisitionProvider_DAQ_PROVIDER_ERROR",SWIG_From_int(static_cast< int >(rlDataAcquisitionProvider::DAQ_PROVIDER_ERROR))); - SWIG_Python_SetConstant(d, "rlMAX_EVENT",SWIG_From_int(static_cast< int >(256))); - PyDict_SetItemString(md,(char*)"cvar", SWIG_globals()); - SWIG_addvarlink(SWIG_globals(),(char*)"rlevent_name",Swig_var_rlevent_name_get, Swig_var_rlevent_name_set); - SWIG_Python_SetConstant(d, "rlInfo",SWIG_From_int(static_cast< int >(rlInfo))); - SWIG_Python_SetConstant(d, "rlWarning",SWIG_From_int(static_cast< int >(rlWarning))); - SWIG_Python_SetConstant(d, "rlError",SWIG_From_int(static_cast< int >(rlError))); - SWIG_Python_SetConstant(d, "rlCritical",SWIG_From_int(static_cast< int >(rlCritical))); - SWIG_Python_SetConstant(d, "rlFatal",SWIG_From_int(static_cast< int >(rlFatal))); - SWIG_Python_SetConstant(d, "rlTest",SWIG_From_int(static_cast< int >(rlTest))); - SWIG_Python_SetConstant(d, "rlEVENT_SIZE",SWIG_From_int(static_cast< int >(rlEVENT_SIZE))); - SWIG_Python_SetConstant(d, "rlMAX_MESSAGES",SWIG_From_int(static_cast< int >(128))); - SWIG_Python_SetConstant(d, "rlFifo_DATA_AVAILABLE",SWIG_From_int(static_cast< int >(rlFifo::DATA_AVAILABLE))); - SWIG_Python_SetConstant(d, "rlFifo_NO_DATA_AVAILABLE",SWIG_From_int(static_cast< int >(rlFifo::NO_DATA_AVAILABLE))); - SWIG_Python_SetConstant(d, "rlFifo_MESSAGE_TO_BIG",SWIG_From_int(static_cast< int >(rlFifo::MESSAGE_TO_BIG))); - SWIG_Python_SetConstant(d, "rlFifo_FIFO_FULL",SWIG_From_int(static_cast< int >(rlFifo::FIFO_FULL))); - SWIG_Python_SetConstant(d, "rlMailbox_MAILBOX_ERROR",SWIG_From_int(static_cast< int >(rlMailbox::MAILBOX_ERROR))); - SWIG_Python_SetConstant(d, "rlMailbox_MAILBOX_FULL",SWIG_From_int(static_cast< int >(rlMailbox::MAILBOX_FULL))); - SWIG_Python_SetConstant(d, "rlMailbox_WAIT",SWIG_From_int(static_cast< int >(rlMailbox::WAIT))); - SWIG_Python_SetConstant(d, "rlMailbox_NOWAIT",SWIG_From_int(static_cast< int >(rlMailbox::NOWAIT))); - SWIG_Python_SetConstant(d, "rlMailbox_MAX_MAILBOX",SWIG_From_int(static_cast< int >(rlMailbox::MAX_MAILBOX))); - SWIG_Python_SetConstant(d, "rlMailbox_OK",SWIG_From_int(static_cast< int >(rlMailbox::OK))); - SWIG_Python_SetConstant(d, "rlMailbox_COULD_NOT_CREATE_MAILBOX",SWIG_From_int(static_cast< int >(rlMailbox::COULD_NOT_CREATE_MAILBOX))); - SWIG_Python_SetConstant(d, "rlMailbox_COULD_NOT_GET_KEY",SWIG_From_int(static_cast< int >(rlMailbox::COULD_NOT_GET_KEY))); - SWIG_Python_SetConstant(d, "rlMailbox_COULD_NOT_GET_CHAN_ID",SWIG_From_int(static_cast< int >(rlMailbox::COULD_NOT_GET_CHAN_ID))); - SWIG_Python_SetConstant(d, "rlModbus_MODBUS_CHECKSUM_ERROR",SWIG_From_int(static_cast< int >(rlModbus::MODBUS_CHECKSUM_ERROR))); - SWIG_Python_SetConstant(d, "rlModbus_MODBUS_ERROR",SWIG_From_int(static_cast< int >(rlModbus::MODBUS_ERROR))); - SWIG_Python_SetConstant(d, "rlModbus_MODBUS_SUCCESS",SWIG_From_int(static_cast< int >(rlModbus::MODBUS_SUCCESS))); - SWIG_Python_SetConstant(d, "rlModbus_MODBUS_RTU",SWIG_From_int(static_cast< int >(rlModbus::MODBUS_RTU))); - SWIG_Python_SetConstant(d, "rlModbus_MODBUS_ASCII",SWIG_From_int(static_cast< int >(rlModbus::MODBUS_ASCII))); - SWIG_Python_SetConstant(d, "rlModbus_ReadCoilStatus",SWIG_From_int(static_cast< int >(rlModbus::ReadCoilStatus))); - SWIG_Python_SetConstant(d, "rlModbus_ReadInputStatus",SWIG_From_int(static_cast< int >(rlModbus::ReadInputStatus))); - SWIG_Python_SetConstant(d, "rlModbus_ReadHoldingRegisters",SWIG_From_int(static_cast< int >(rlModbus::ReadHoldingRegisters))); - SWIG_Python_SetConstant(d, "rlModbus_ReadInputRegisters",SWIG_From_int(static_cast< int >(rlModbus::ReadInputRegisters))); - SWIG_Python_SetConstant(d, "rlModbus_ForceSingleCoil",SWIG_From_int(static_cast< int >(rlModbus::ForceSingleCoil))); - SWIG_Python_SetConstant(d, "rlModbus_PresetSingleRegister",SWIG_From_int(static_cast< int >(rlModbus::PresetSingleRegister))); - SWIG_Python_SetConstant(d, "rlModbus_ReadExceptionStatus",SWIG_From_int(static_cast< int >(rlModbus::ReadExceptionStatus))); - SWIG_Python_SetConstant(d, "rlModbus_FetchCommEventCtr",SWIG_From_int(static_cast< int >(rlModbus::FetchCommEventCtr))); - SWIG_Python_SetConstant(d, "rlModbus_FetchCommEventLog",SWIG_From_int(static_cast< int >(rlModbus::FetchCommEventLog))); - SWIG_Python_SetConstant(d, "rlModbus_ForceMultipleCoils",SWIG_From_int(static_cast< int >(rlModbus::ForceMultipleCoils))); - SWIG_Python_SetConstant(d, "rlModbus_PresetMultipleRegs",SWIG_From_int(static_cast< int >(rlModbus::PresetMultipleRegs))); - SWIG_Python_SetConstant(d, "rlModbus_ReportSlaveID",SWIG_From_int(static_cast< int >(rlModbus::ReportSlaveID))); - SWIG_Python_SetConstant(d, "rlModbus_ReadGeneralReference",SWIG_From_int(static_cast< int >(rlModbus::ReadGeneralReference))); - SWIG_Python_SetConstant(d, "rlModbus_WriteGeneralReference",SWIG_From_int(static_cast< int >(rlModbus::WriteGeneralReference))); - SWIG_Python_SetConstant(d, "rlModbus_MaskWrite4XRegisters",SWIG_From_int(static_cast< int >(rlModbus::MaskWrite4XRegisters))); - SWIG_Python_SetConstant(d, "rlModbus_ReadWrite4XRegisters",SWIG_From_int(static_cast< int >(rlModbus::ReadWrite4XRegisters))); - SWIG_Python_SetConstant(d, "rlModbus_ReadFifoQueue",SWIG_From_int(static_cast< int >(rlModbus::ReadFifoQueue))); - SWIG_Python_SetConstant(d, "rlOpcXmlDa_OPCXMLDA_ERROR",SWIG_From_int(static_cast< int >(rlOpcXmlDa::OPCXMLDA_ERROR))); - SWIG_Python_SetConstant(d, "rlPPIClient_daveSD",SWIG_From_int(static_cast< int >(rlPPIClient::daveSD))); - SWIG_Python_SetConstant(d, "rlPPIClient_daveInputs",SWIG_From_int(static_cast< int >(rlPPIClient::daveInputs))); - SWIG_Python_SetConstant(d, "rlPPIClient_daveOutputs",SWIG_From_int(static_cast< int >(rlPPIClient::daveOutputs))); - SWIG_Python_SetConstant(d, "rlPPIClient_daveFlags",SWIG_From_int(static_cast< int >(rlPPIClient::daveFlags))); - SWIG_Python_SetConstant(d, "rlPPIClient_daveDB",SWIG_From_int(static_cast< int >(rlPPIClient::daveDB))); - SWIG_Python_SetConstant(d, "rlPPIClient_daveDI",SWIG_From_int(static_cast< int >(rlPPIClient::daveDI))); - SWIG_Python_SetConstant(d, "rlPPIClient_daveLocal",SWIG_From_int(static_cast< int >(rlPPIClient::daveLocal))); - SWIG_Python_SetConstant(d, "rlPPIClient_daveV",SWIG_From_int(static_cast< int >(rlPPIClient::daveV))); - SWIG_Python_SetConstant(d, "rlPPIClient_daveCounter",SWIG_From_int(static_cast< int >(rlPPIClient::daveCounter))); - SWIG_Python_SetConstant(d, "rlPPIClient_daveTimer",SWIG_From_int(static_cast< int >(rlPPIClient::daveTimer))); - SWIG_Python_SetConstant(d, "B0",SWIG_From_int(static_cast< int >(0000000))); - SWIG_Python_SetConstant(d, "B50",SWIG_From_int(static_cast< int >(0000001))); - SWIG_Python_SetConstant(d, "B75",SWIG_From_int(static_cast< int >(0000002))); - SWIG_Python_SetConstant(d, "B110",SWIG_From_int(static_cast< int >(0000003))); - SWIG_Python_SetConstant(d, "B134",SWIG_From_int(static_cast< int >(0000004))); - SWIG_Python_SetConstant(d, "B150",SWIG_From_int(static_cast< int >(0000005))); - SWIG_Python_SetConstant(d, "B200",SWIG_From_int(static_cast< int >(0000006))); - SWIG_Python_SetConstant(d, "B300",SWIG_From_int(static_cast< int >(0000007))); - SWIG_Python_SetConstant(d, "B600",SWIG_From_int(static_cast< int >(0000010))); - SWIG_Python_SetConstant(d, "B1200",SWIG_From_int(static_cast< int >(0000011))); - SWIG_Python_SetConstant(d, "B1800",SWIG_From_int(static_cast< int >(0000012))); - SWIG_Python_SetConstant(d, "B2400",SWIG_From_int(static_cast< int >(0000013))); - SWIG_Python_SetConstant(d, "B4800",SWIG_From_int(static_cast< int >(0000014))); - SWIG_Python_SetConstant(d, "B9600",SWIG_From_int(static_cast< int >(0000015))); - SWIG_Python_SetConstant(d, "B19200",SWIG_From_int(static_cast< int >(0000016))); - SWIG_Python_SetConstant(d, "B38400",SWIG_From_int(static_cast< int >(0000017))); - SWIG_Python_SetConstant(d, "B57600",SWIG_From_int(static_cast< int >(0010001))); - SWIG_Python_SetConstant(d, "B115200",SWIG_From_int(static_cast< int >(0010002))); - SWIG_Python_SetConstant(d, "B230400",SWIG_From_int(static_cast< int >(0010003))); - SWIG_Python_SetConstant(d, "B460800",SWIG_From_int(static_cast< int >(0010004))); - SWIG_Python_SetConstant(d, "B500000",SWIG_From_int(static_cast< int >(0010005))); - SWIG_Python_SetConstant(d, "B576000",SWIG_From_int(static_cast< int >(0010006))); - SWIG_Python_SetConstant(d, "B921600",SWIG_From_int(static_cast< int >(0010007))); - SWIG_Python_SetConstant(d, "B1000000",SWIG_From_int(static_cast< int >(0010010))); - SWIG_Python_SetConstant(d, "B1152000",SWIG_From_int(static_cast< int >(0010011))); - SWIG_Python_SetConstant(d, "B1500000",SWIG_From_int(static_cast< int >(0010012))); - SWIG_Python_SetConstant(d, "B2000000",SWIG_From_int(static_cast< int >(0010013))); - SWIG_Python_SetConstant(d, "B2500000",SWIG_From_int(static_cast< int >(0010014))); - SWIG_Python_SetConstant(d, "B3000000",SWIG_From_int(static_cast< int >(0010015))); - SWIG_Python_SetConstant(d, "B3500000",SWIG_From_int(static_cast< int >(0010016))); - SWIG_Python_SetConstant(d, "B4000000",SWIG_From_int(static_cast< int >(0010017))); - SWIG_Python_SetConstant(d, "rlSerial_NONE",SWIG_From_int(static_cast< int >(rlSerial::NONE))); - SWIG_Python_SetConstant(d, "rlSerial_ODD",SWIG_From_int(static_cast< int >(rlSerial::ODD))); - SWIG_Python_SetConstant(d, "rlSerial_EVEN",SWIG_From_int(static_cast< int >(rlSerial::EVEN))); - SWIG_Python_SetConstant(d, "rlSiemensTCPClient_ORG_DB",SWIG_From_int(static_cast< int >(rlSiemensTCPClient::ORG_DB))); - SWIG_Python_SetConstant(d, "rlSiemensTCPClient_ORG_M",SWIG_From_int(static_cast< int >(rlSiemensTCPClient::ORG_M))); - SWIG_Python_SetConstant(d, "rlSiemensTCPClient_ORG_E",SWIG_From_int(static_cast< int >(rlSiemensTCPClient::ORG_E))); - SWIG_Python_SetConstant(d, "rlSiemensTCPClient_ORG_A",SWIG_From_int(static_cast< int >(rlSiemensTCPClient::ORG_A))); - SWIG_Python_SetConstant(d, "rlSiemensTCPClient_ORG_PEPA",SWIG_From_int(static_cast< int >(rlSiemensTCPClient::ORG_PEPA))); - SWIG_Python_SetConstant(d, "rlSiemensTCPClient_ORG_Z",SWIG_From_int(static_cast< int >(rlSiemensTCPClient::ORG_Z))); - SWIG_Python_SetConstant(d, "rlSiemensTCPClient_ORG_T",SWIG_From_int(static_cast< int >(rlSiemensTCPClient::ORG_T))); - SWIG_Python_SetConstant(d, "rlSiemensTCP_ORG_DB",SWIG_From_int(static_cast< int >(rlSiemensTCP::ORG_DB))); - SWIG_Python_SetConstant(d, "rlSiemensTCP_ORG_M",SWIG_From_int(static_cast< int >(rlSiemensTCP::ORG_M))); - SWIG_Python_SetConstant(d, "rlSiemensTCP_ORG_E",SWIG_From_int(static_cast< int >(rlSiemensTCP::ORG_E))); - SWIG_Python_SetConstant(d, "rlSiemensTCP_ORG_A",SWIG_From_int(static_cast< int >(rlSiemensTCP::ORG_A))); - SWIG_Python_SetConstant(d, "rlSiemensTCP_ORG_PEPA",SWIG_From_int(static_cast< int >(rlSiemensTCP::ORG_PEPA))); - SWIG_Python_SetConstant(d, "rlSiemensTCP_ORG_Z",SWIG_From_int(static_cast< int >(rlSiemensTCP::ORG_Z))); - SWIG_Python_SetConstant(d, "rlSiemensTCP_ORG_T",SWIG_From_int(static_cast< int >(rlSiemensTCP::ORG_T))); - SWIG_Python_SetConstant(d, "rlSiemensTCP_ANY_SIEMENS_COMPATIBLE_PLC",SWIG_From_int(static_cast< int >(rlSiemensTCP::ANY_SIEMENS_COMPATIBLE_PLC))); - SWIG_Python_SetConstant(d, "rlSiemensTCP_S7_200",SWIG_From_int(static_cast< int >(rlSiemensTCP::S7_200))); - SWIG_Python_SetConstant(d, "rlSiemensTCP_S7_300",SWIG_From_int(static_cast< int >(rlSiemensTCP::S7_300))); - SWIG_Python_SetConstant(d, "rlSiemensTCP_S7_400",SWIG_From_int(static_cast< int >(rlSiemensTCP::S7_400))); - SWIG_Python_SetConstant(d, "rlSiemensTCP_S5",SWIG_From_int(static_cast< int >(rlSiemensTCP::S5))); - SWIG_Python_SetConstant(d, "rlSiemensTCP_RACK_SLOT",SWIG_From_int(static_cast< int >(rlSiemensTCP::RACK_SLOT))); - SWIG_Python_SetConstant(d, "rlSiemensTCP_S7_1200",SWIG_From_int(static_cast< int >(rlSiemensTCP::S7_1200))); - SWIG_Python_SetConstant(d, "rlSiemensTCP_LOGO",SWIG_From_int(static_cast< int >(rlSiemensTCP::LOGO))); - SWIG_Python_SetConstant(d, "rlSiemensTCP_WriteBit",SWIG_From_int(static_cast< int >(rlSiemensTCP::WriteBit))); - SWIG_Python_SetConstant(d, "rlSiemensTCP_WriteByte",SWIG_From_int(static_cast< int >(rlSiemensTCP::WriteByte))); - SWIG_addvarlink(SWIG_globals(),(char*)"rlCRLF",Swig_var_rlCRLF_get, Swig_var_rlCRLF_set); -#if PY_VERSION_HEX >= 0x03000000 - return m; -#else - return; -#endif -} - diff --git a/language_bindings/language_binding_wrap_id.cxx b/language_bindings/language_binding_wrap_id.cxx deleted file mode 100644 index 3f6a5740..00000000 --- a/language_bindings/language_binding_wrap_id.cxx +++ /dev/null @@ -1,40616 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.12 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -#define SWIGPYTHON -#define SWIG_PYTHON_DIRECTOR_NO_VTABLE - - -#ifdef __cplusplus -/* SwigValueWrapper is described in swig.swg */ -template class SwigValueWrapper { - struct SwigMovePointer { - T *ptr; - SwigMovePointer(T *p) : ptr(p) { } - ~SwigMovePointer() { delete ptr; } - SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } - } pointer; - SwigValueWrapper& operator=(const SwigValueWrapper& rhs); - SwigValueWrapper(const SwigValueWrapper& rhs); -public: - SwigValueWrapper() : pointer(0) { } - SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } - operator T&() const { return *pointer.ptr; } - T *operator&() { return pointer.ptr; } -}; - -template T SwigValueInit() { - return T(); -} -#endif - -/* ----------------------------------------------------------------------------- - * This section contains generic SWIG labels for method/variable - * declarations/attributes, and other compiler dependent labels. - * ----------------------------------------------------------------------------- */ - -/* template workaround for compilers that cannot correctly implement the C++ standard */ -#ifndef SWIGTEMPLATEDISAMBIGUATOR -# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) -# define SWIGTEMPLATEDISAMBIGUATOR template -# elif defined(__HP_aCC) -/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ -/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ -# define SWIGTEMPLATEDISAMBIGUATOR template -# else -# define SWIGTEMPLATEDISAMBIGUATOR -# endif -#endif - -/* inline attribute */ -#ifndef SWIGINLINE -# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) -# define SWIGINLINE inline -# else -# define SWIGINLINE -# endif -#endif - -/* attribute recognised by some compilers to avoid 'unused' warnings */ -#ifndef SWIGUNUSED -# if defined(__GNUC__) -# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) -# define SWIGUNUSED __attribute__ ((__unused__)) -# else -# define SWIGUNUSED -# endif -# elif defined(__ICC) -# define SWIGUNUSED __attribute__ ((__unused__)) -# else -# define SWIGUNUSED -# endif -#endif - -#ifndef SWIG_MSC_UNSUPPRESS_4505 -# if defined(_MSC_VER) -# pragma warning(disable : 4505) /* unreferenced local function has been removed */ -# endif -#endif - -#ifndef SWIGUNUSEDPARM -# ifdef __cplusplus -# define SWIGUNUSEDPARM(p) -# else -# define SWIGUNUSEDPARM(p) p SWIGUNUSED -# endif -#endif - -/* internal SWIG method */ -#ifndef SWIGINTERN -# define SWIGINTERN static SWIGUNUSED -#endif - -/* internal inline SWIG method */ -#ifndef SWIGINTERNINLINE -# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE -#endif - -/* exporting methods */ -#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) -# ifndef GCC_HASCLASSVISIBILITY -# define GCC_HASCLASSVISIBILITY -# endif -#endif - -#ifndef SWIGEXPORT -# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# if defined(STATIC_LINKED) -# define SWIGEXPORT -# else -# define SWIGEXPORT __declspec(dllexport) -# endif -# else -# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) -# define SWIGEXPORT __attribute__ ((visibility("default"))) -# else -# define SWIGEXPORT -# endif -# endif -#endif - -/* calling conventions for Windows */ -#ifndef SWIGSTDCALL -# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# define SWIGSTDCALL __stdcall -# else -# define SWIGSTDCALL -# endif -#endif - -/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ -#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) -# define _CRT_SECURE_NO_DEPRECATE -#endif - -/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ -#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) -# define _SCL_SECURE_NO_DEPRECATE -#endif - - - -#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG) -/* Use debug wrappers with the Python release dll */ -# undef _DEBUG -# include -# define _DEBUG -#else -# include -#endif - -/* ----------------------------------------------------------------------------- - * swigrun.swg - * - * This file contains generic C API SWIG runtime support for pointer - * type checking. - * ----------------------------------------------------------------------------- */ - -/* This should only be incremented when either the layout of swig_type_info changes, - or for whatever reason, the runtime changes incompatibly */ -#define SWIG_RUNTIME_VERSION "4" - -/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ -#ifdef SWIG_TYPE_TABLE -# define SWIG_QUOTE_STRING(x) #x -# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) -# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) -#else -# define SWIG_TYPE_TABLE_NAME -#endif - -/* - You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for - creating a static or dynamic library from the SWIG runtime code. - In 99.9% of the cases, SWIG just needs to declare them as 'static'. - - But only do this if strictly necessary, ie, if you have problems - with your compiler or suchlike. -*/ - -#ifndef SWIGRUNTIME -# define SWIGRUNTIME SWIGINTERN -#endif - -#ifndef SWIGRUNTIMEINLINE -# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE -#endif - -/* Generic buffer size */ -#ifndef SWIG_BUFFER_SIZE -# define SWIG_BUFFER_SIZE 1024 -#endif - -/* Flags for pointer conversions */ -#define SWIG_POINTER_DISOWN 0x1 -#define SWIG_CAST_NEW_MEMORY 0x2 - -/* Flags for new pointer objects */ -#define SWIG_POINTER_OWN 0x1 - - -/* - Flags/methods for returning states. - - The SWIG conversion methods, as ConvertPtr, return an integer - that tells if the conversion was successful or not. And if not, - an error code can be returned (see swigerrors.swg for the codes). - - Use the following macros/flags to set or process the returning - states. - - In old versions of SWIG, code such as the following was usually written: - - if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { - // success code - } else { - //fail code - } - - Now you can be more explicit: - - int res = SWIG_ConvertPtr(obj,vptr,ty.flags); - if (SWIG_IsOK(res)) { - // success code - } else { - // fail code - } - - which is the same really, but now you can also do - - Type *ptr; - int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); - if (SWIG_IsOK(res)) { - // success code - if (SWIG_IsNewObj(res) { - ... - delete *ptr; - } else { - ... - } - } else { - // fail code - } - - I.e., now SWIG_ConvertPtr can return new objects and you can - identify the case and take care of the deallocation. Of course that - also requires SWIG_ConvertPtr to return new result values, such as - - int SWIG_ConvertPtr(obj, ptr,...) { - if () { - if () { - *ptr = ; - return SWIG_NEWOBJ; - } else { - *ptr = ; - return SWIG_OLDOBJ; - } - } else { - return SWIG_BADOBJ; - } - } - - Of course, returning the plain '0(success)/-1(fail)' still works, but you can be - more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the - SWIG errors code. - - Finally, if the SWIG_CASTRANK_MODE is enabled, the result code - allows to return the 'cast rank', for example, if you have this - - int food(double) - int fooi(int); - - and you call - - food(1) // cast rank '1' (1 -> 1.0) - fooi(1) // cast rank '0' - - just use the SWIG_AddCast()/SWIG_CheckState() -*/ - -#define SWIG_OK (0) -#define SWIG_ERROR (-1) -#define SWIG_IsOK(r) (r >= 0) -#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) - -/* The CastRankLimit says how many bits are used for the cast rank */ -#define SWIG_CASTRANKLIMIT (1 << 8) -/* The NewMask denotes the object was created (using new/malloc) */ -#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) -/* The TmpMask is for in/out typemaps that use temporal objects */ -#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) -/* Simple returning values */ -#define SWIG_BADOBJ (SWIG_ERROR) -#define SWIG_OLDOBJ (SWIG_OK) -#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) -#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) -/* Check, add and del mask methods */ -#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) -#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) -#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) -#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) -#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) -#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) - -/* Cast-Rank Mode */ -#if defined(SWIG_CASTRANK_MODE) -# ifndef SWIG_TypeRank -# define SWIG_TypeRank unsigned long -# endif -# ifndef SWIG_MAXCASTRANK /* Default cast allowed */ -# define SWIG_MAXCASTRANK (2) -# endif -# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) -# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) -SWIGINTERNINLINE int SWIG_AddCast(int r) { - return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; -} -SWIGINTERNINLINE int SWIG_CheckState(int r) { - return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; -} -#else /* no cast-rank mode */ -# define SWIG_AddCast(r) (r) -# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) -#endif - - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -typedef void *(*swig_converter_func)(void *, int *); -typedef struct swig_type_info *(*swig_dycast_func)(void **); - -/* Structure to store information on one type */ -typedef struct swig_type_info { - const char *name; /* mangled name of this type */ - const char *str; /* human readable name of this type */ - swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ - struct swig_cast_info *cast; /* linked list of types that can cast into this type */ - void *clientdata; /* language specific type data */ - int owndata; /* flag if the structure owns the clientdata */ -} swig_type_info; - -/* Structure to store a type and conversion function used for casting */ -typedef struct swig_cast_info { - swig_type_info *type; /* pointer to type that is equivalent to this type */ - swig_converter_func converter; /* function to cast the void pointers */ - struct swig_cast_info *next; /* pointer to next cast in linked list */ - struct swig_cast_info *prev; /* pointer to the previous cast */ -} swig_cast_info; - -/* Structure used to store module information - * Each module generates one structure like this, and the runtime collects - * all of these structures and stores them in a circularly linked list.*/ -typedef struct swig_module_info { - swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ - size_t size; /* Number of types in this module */ - struct swig_module_info *next; /* Pointer to next element in circularly linked list */ - swig_type_info **type_initial; /* Array of initially generated type structures */ - swig_cast_info **cast_initial; /* Array of initially generated casting structures */ - void *clientdata; /* Language specific module data */ -} swig_module_info; - -/* - Compare two type names skipping the space characters, therefore - "char*" == "char *" and "Class" == "Class", etc. - - Return 0 when the two name types are equivalent, as in - strncmp, but skipping ' '. -*/ -SWIGRUNTIME int -SWIG_TypeNameComp(const char *f1, const char *l1, - const char *f2, const char *l2) { - for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { - while ((*f1 == ' ') && (f1 != l1)) ++f1; - while ((*f2 == ' ') && (f2 != l2)) ++f2; - if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; - } - return (int)((l1 - f1) - (l2 - f2)); -} - -/* - Check type equivalence in a name list like ||... - Return 0 if equal, -1 if nb < tb, 1 if nb > tb -*/ -SWIGRUNTIME int -SWIG_TypeCmp(const char *nb, const char *tb) { - int equiv = 1; - const char* te = tb + strlen(tb); - const char* ne = nb; - while (equiv != 0 && *ne) { - for (nb = ne; *ne; ++ne) { - if (*ne == '|') break; - } - equiv = SWIG_TypeNameComp(nb, ne, tb, te); - if (*ne) ++ne; - } - return equiv; -} - -/* - Check type equivalence in a name list like ||... - Return 0 if not equal, 1 if equal -*/ -SWIGRUNTIME int -SWIG_TypeEquiv(const char *nb, const char *tb) { - return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; -} - -/* - Check the typename -*/ -SWIGRUNTIME swig_cast_info * -SWIG_TypeCheck(const char *c, swig_type_info *ty) { - if (ty) { - swig_cast_info *iter = ty->cast; - while (iter) { - if (strcmp(iter->type->name, c) == 0) { - if (iter == ty->cast) - return iter; - /* Move iter to the top of the linked list */ - iter->prev->next = iter->next; - if (iter->next) - iter->next->prev = iter->prev; - iter->next = ty->cast; - iter->prev = 0; - if (ty->cast) ty->cast->prev = iter; - ty->cast = iter; - return iter; - } - iter = iter->next; - } - } - return 0; -} - -/* - Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison -*/ -SWIGRUNTIME swig_cast_info * -SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { - if (ty) { - swig_cast_info *iter = ty->cast; - while (iter) { - if (iter->type == from) { - if (iter == ty->cast) - return iter; - /* Move iter to the top of the linked list */ - iter->prev->next = iter->next; - if (iter->next) - iter->next->prev = iter->prev; - iter->next = ty->cast; - iter->prev = 0; - if (ty->cast) ty->cast->prev = iter; - ty->cast = iter; - return iter; - } - iter = iter->next; - } - } - return 0; -} - -/* - Cast a pointer up an inheritance hierarchy -*/ -SWIGRUNTIMEINLINE void * -SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { - return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); -} - -/* - Dynamic pointer casting. Down an inheritance hierarchy -*/ -SWIGRUNTIME swig_type_info * -SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { - swig_type_info *lastty = ty; - if (!ty || !ty->dcast) return ty; - while (ty && (ty->dcast)) { - ty = (*ty->dcast)(ptr); - if (ty) lastty = ty; - } - return lastty; -} - -/* - Return the name associated with this type -*/ -SWIGRUNTIMEINLINE const char * -SWIG_TypeName(const swig_type_info *ty) { - return ty->name; -} - -/* - Return the pretty name associated with this type, - that is an unmangled type name in a form presentable to the user. -*/ -SWIGRUNTIME const char * -SWIG_TypePrettyName(const swig_type_info *type) { - /* The "str" field contains the equivalent pretty names of the - type, separated by vertical-bar characters. We choose - to print the last name, as it is often (?) the most - specific. */ - if (!type) return NULL; - if (type->str != NULL) { - const char *last_name = type->str; - const char *s; - for (s = type->str; *s; s++) - if (*s == '|') last_name = s+1; - return last_name; - } - else - return type->name; -} - -/* - Set the clientdata field for a type -*/ -SWIGRUNTIME void -SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { - swig_cast_info *cast = ti->cast; - /* if (ti->clientdata == clientdata) return; */ - ti->clientdata = clientdata; - - while (cast) { - if (!cast->converter) { - swig_type_info *tc = cast->type; - if (!tc->clientdata) { - SWIG_TypeClientData(tc, clientdata); - } - } - cast = cast->next; - } -} -SWIGRUNTIME void -SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { - SWIG_TypeClientData(ti, clientdata); - ti->owndata = 1; -} - -/* - Search for a swig_type_info structure only by mangled name - Search is a O(log #types) - - We start searching at module start, and finish searching when start == end. - Note: if start == end at the beginning of the function, we go all the way around - the circular list. -*/ -SWIGRUNTIME swig_type_info * -SWIG_MangledTypeQueryModule(swig_module_info *start, - swig_module_info *end, - const char *name) { - swig_module_info *iter = start; - do { - if (iter->size) { - register size_t l = 0; - register size_t r = iter->size - 1; - do { - /* since l+r >= 0, we can (>> 1) instead (/ 2) */ - register size_t i = (l + r) >> 1; - const char *iname = iter->types[i]->name; - if (iname) { - register int compare = strcmp(name, iname); - if (compare == 0) { - return iter->types[i]; - } else if (compare < 0) { - if (i) { - r = i - 1; - } else { - break; - } - } else if (compare > 0) { - l = i + 1; - } - } else { - break; /* should never happen */ - } - } while (l <= r); - } - iter = iter->next; - } while (iter != end); - return 0; -} - -/* - Search for a swig_type_info structure for either a mangled name or a human readable name. - It first searches the mangled names of the types, which is a O(log #types) - If a type is not found it then searches the human readable names, which is O(#types). - - We start searching at module start, and finish searching when start == end. - Note: if start == end at the beginning of the function, we go all the way around - the circular list. -*/ -SWIGRUNTIME swig_type_info * -SWIG_TypeQueryModule(swig_module_info *start, - swig_module_info *end, - const char *name) { - /* STEP 1: Search the name field using binary search */ - swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); - if (ret) { - return ret; - } else { - /* STEP 2: If the type hasn't been found, do a complete search - of the str field (the human readable name) */ - swig_module_info *iter = start; - do { - register size_t i = 0; - for (; i < iter->size; ++i) { - if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) - return iter->types[i]; - } - iter = iter->next; - } while (iter != end); - } - - /* neither found a match */ - return 0; -} - -/* - Pack binary data into a string -*/ -SWIGRUNTIME char * -SWIG_PackData(char *c, void *ptr, size_t sz) { - static const char hex[17] = "0123456789abcdef"; - register const unsigned char *u = (unsigned char *) ptr; - register const unsigned char *eu = u + sz; - for (; u != eu; ++u) { - register unsigned char uu = *u; - *(c++) = hex[(uu & 0xf0) >> 4]; - *(c++) = hex[uu & 0xf]; - } - return c; -} - -/* - Unpack binary data from a string -*/ -SWIGRUNTIME const char * -SWIG_UnpackData(const char *c, void *ptr, size_t sz) { - register unsigned char *u = (unsigned char *) ptr; - register const unsigned char *eu = u + sz; - for (; u != eu; ++u) { - register char d = *(c++); - register unsigned char uu; - if ((d >= '0') && (d <= '9')) - uu = ((d - '0') << 4); - else if ((d >= 'a') && (d <= 'f')) - uu = ((d - ('a'-10)) << 4); - else - return (char *) 0; - d = *(c++); - if ((d >= '0') && (d <= '9')) - uu |= (d - '0'); - else if ((d >= 'a') && (d <= 'f')) - uu |= (d - ('a'-10)); - else - return (char *) 0; - *u = uu; - } - return c; -} - -/* - Pack 'void *' into a string buffer. -*/ -SWIGRUNTIME char * -SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { - char *r = buff; - if ((2*sizeof(void *) + 2) > bsz) return 0; - *(r++) = '_'; - r = SWIG_PackData(r,&ptr,sizeof(void *)); - if (strlen(name) + 1 > (bsz - (r - buff))) return 0; - strcpy(r,name); - return buff; -} - -SWIGRUNTIME const char * -SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { - if (*c != '_') { - if (strcmp(c,"NULL") == 0) { - *ptr = (void *) 0; - return name; - } else { - return 0; - } - } - return SWIG_UnpackData(++c,ptr,sizeof(void *)); -} - -SWIGRUNTIME char * -SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { - char *r = buff; - size_t lname = (name ? strlen(name) : 0); - if ((2*sz + 2 + lname) > bsz) return 0; - *(r++) = '_'; - r = SWIG_PackData(r,ptr,sz); - if (lname) { - strncpy(r,name,lname+1); - } else { - *r = 0; - } - return buff; -} - -SWIGRUNTIME const char * -SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { - if (*c != '_') { - if (strcmp(c,"NULL") == 0) { - memset(ptr,0,sz); - return name; - } else { - return 0; - } - } - return SWIG_UnpackData(++c,ptr,sz); -} - -#ifdef __cplusplus -} -#endif - -/* Errors in SWIG */ -#define SWIG_UnknownError -1 -#define SWIG_IOError -2 -#define SWIG_RuntimeError -3 -#define SWIG_IndexError -4 -#define SWIG_TypeError -5 -#define SWIG_DivisionByZero -6 -#define SWIG_OverflowError -7 -#define SWIG_SyntaxError -8 -#define SWIG_ValueError -9 -#define SWIG_SystemError -10 -#define SWIG_AttributeError -11 -#define SWIG_MemoryError -12 -#define SWIG_NullReferenceError -13 - - - -/* Compatibility macros for Python 3 */ -#if PY_VERSION_HEX >= 0x03000000 - -#define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type) -#define PyInt_Check(x) PyLong_Check(x) -#define PyInt_AsLong(x) PyLong_AsLong(x) -#define PyInt_FromLong(x) PyLong_FromLong(x) -#define PyInt_FromSize_t(x) PyLong_FromSize_t(x) -#define PyString_Check(name) PyBytes_Check(name) -#define PyString_FromString(x) PyUnicode_FromString(x) -#define PyString_Format(fmt, args) PyUnicode_Format(fmt, args) -#define PyString_AsString(str) PyBytes_AsString(str) -#define PyString_Size(str) PyBytes_Size(str) -#define PyString_InternFromString(key) PyUnicode_InternFromString(key) -#define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE -#define PyString_AS_STRING(x) PyUnicode_AS_STRING(x) -#define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x) - -#endif - -#ifndef Py_TYPE -# define Py_TYPE(op) ((op)->ob_type) -#endif - -/* SWIG APIs for compatibility of both Python 2 & 3 */ - -#if PY_VERSION_HEX >= 0x03000000 -# define SWIG_Python_str_FromFormat PyUnicode_FromFormat -#else -# define SWIG_Python_str_FromFormat PyString_FromFormat -#endif - - -/* Warning: This function will allocate a new string in Python 3, - * so please call SWIG_Python_str_DelForPy3(x) to free the space. - */ -SWIGINTERN char* -SWIG_Python_str_AsChar(PyObject *str) -{ -#if PY_VERSION_HEX >= 0x03000000 - char *cstr; - char *newstr; - Py_ssize_t len; - str = PyUnicode_AsUTF8String(str); - PyBytes_AsStringAndSize(str, &cstr, &len); - newstr = (char *) malloc(len+1); - memcpy(newstr, cstr, len+1); - Py_XDECREF(str); - return newstr; -#else - return PyString_AsString(str); -#endif -} - -#if PY_VERSION_HEX >= 0x03000000 -# define SWIG_Python_str_DelForPy3(x) free( (void*) (x) ) -#else -# define SWIG_Python_str_DelForPy3(x) -#endif - - -SWIGINTERN PyObject* -SWIG_Python_str_FromChar(const char *c) -{ -#if PY_VERSION_HEX >= 0x03000000 - return PyUnicode_FromString(c); -#else - return PyString_FromString(c); -#endif -} - -/* Add PyOS_snprintf for old Pythons */ -#if PY_VERSION_HEX < 0x02020000 -# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) -# define PyOS_snprintf _snprintf -# else -# define PyOS_snprintf snprintf -# endif -#endif - -/* A crude PyString_FromFormat implementation for old Pythons */ -#if PY_VERSION_HEX < 0x02020000 - -#ifndef SWIG_PYBUFFER_SIZE -# define SWIG_PYBUFFER_SIZE 1024 -#endif - -static PyObject * -PyString_FromFormat(const char *fmt, ...) { - va_list ap; - char buf[SWIG_PYBUFFER_SIZE * 2]; - int res; - va_start(ap, fmt); - res = vsnprintf(buf, sizeof(buf), fmt, ap); - va_end(ap); - return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); -} -#endif - -/* Add PyObject_Del for old Pythons */ -#if PY_VERSION_HEX < 0x01060000 -# define PyObject_Del(op) PyMem_DEL((op)) -#endif -#ifndef PyObject_DEL -# define PyObject_DEL PyObject_Del -#endif - -/* A crude PyExc_StopIteration exception for old Pythons */ -#if PY_VERSION_HEX < 0x02020000 -# ifndef PyExc_StopIteration -# define PyExc_StopIteration PyExc_RuntimeError -# endif -# ifndef PyObject_GenericGetAttr -# define PyObject_GenericGetAttr 0 -# endif -#endif - -/* Py_NotImplemented is defined in 2.1 and up. */ -#if PY_VERSION_HEX < 0x02010000 -# ifndef Py_NotImplemented -# define Py_NotImplemented PyExc_RuntimeError -# endif -#endif - -/* A crude PyString_AsStringAndSize implementation for old Pythons */ -#if PY_VERSION_HEX < 0x02010000 -# ifndef PyString_AsStringAndSize -# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} -# endif -#endif - -/* PySequence_Size for old Pythons */ -#if PY_VERSION_HEX < 0x02000000 -# ifndef PySequence_Size -# define PySequence_Size PySequence_Length -# endif -#endif - -/* PyBool_FromLong for old Pythons */ -#if PY_VERSION_HEX < 0x02030000 -static -PyObject *PyBool_FromLong(long ok) -{ - PyObject *result = ok ? Py_True : Py_False; - Py_INCREF(result); - return result; -} -#endif - -/* Py_ssize_t for old Pythons */ -/* This code is as recommended by: */ -/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */ -#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) -typedef int Py_ssize_t; -# define PY_SSIZE_T_MAX INT_MAX -# define PY_SSIZE_T_MIN INT_MIN -typedef inquiry lenfunc; -typedef intargfunc ssizeargfunc; -typedef intintargfunc ssizessizeargfunc; -typedef intobjargproc ssizeobjargproc; -typedef intintobjargproc ssizessizeobjargproc; -typedef getreadbufferproc readbufferproc; -typedef getwritebufferproc writebufferproc; -typedef getsegcountproc segcountproc; -typedef getcharbufferproc charbufferproc; -static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc)) -{ - long result = 0; - PyObject *i = PyNumber_Int(x); - if (i) { - result = PyInt_AsLong(i); - Py_DECREF(i); - } - return result; -} -#endif - -#if PY_VERSION_HEX < 0x02050000 -#define PyInt_FromSize_t(x) PyInt_FromLong((long)x) -#endif - -#if PY_VERSION_HEX < 0x02040000 -#define Py_VISIT(op) \ - do { \ - if (op) { \ - int vret = visit((op), arg); \ - if (vret) \ - return vret; \ - } \ - } while (0) -#endif - -#if PY_VERSION_HEX < 0x02030000 -typedef struct { - PyTypeObject type; - PyNumberMethods as_number; - PyMappingMethods as_mapping; - PySequenceMethods as_sequence; - PyBufferProcs as_buffer; - PyObject *name, *slots; -} PyHeapTypeObject; -#endif - -#if PY_VERSION_HEX < 0x02030000 -typedef destructor freefunc; -#endif - -#if ((PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION > 6) || \ - (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION > 0) || \ - (PY_MAJOR_VERSION > 3)) -# define SWIGPY_USE_CAPSULE -# define SWIGPY_CAPSULE_NAME ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME) -#endif - -#if PY_VERSION_HEX < 0x03020000 -#define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type) -#define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name) -#endif - -/* ----------------------------------------------------------------------------- - * error manipulation - * ----------------------------------------------------------------------------- */ - -SWIGRUNTIME PyObject* -SWIG_Python_ErrorType(int code) { - PyObject* type = 0; - switch(code) { - case SWIG_MemoryError: - type = PyExc_MemoryError; - break; - case SWIG_IOError: - type = PyExc_IOError; - break; - case SWIG_RuntimeError: - type = PyExc_RuntimeError; - break; - case SWIG_IndexError: - type = PyExc_IndexError; - break; - case SWIG_TypeError: - type = PyExc_TypeError; - break; - case SWIG_DivisionByZero: - type = PyExc_ZeroDivisionError; - break; - case SWIG_OverflowError: - type = PyExc_OverflowError; - break; - case SWIG_SyntaxError: - type = PyExc_SyntaxError; - break; - case SWIG_ValueError: - type = PyExc_ValueError; - break; - case SWIG_SystemError: - type = PyExc_SystemError; - break; - case SWIG_AttributeError: - type = PyExc_AttributeError; - break; - default: - type = PyExc_RuntimeError; - } - return type; -} - - -SWIGRUNTIME void -SWIG_Python_AddErrorMsg(const char* mesg) -{ - PyObject *type = 0; - PyObject *value = 0; - PyObject *traceback = 0; - - if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); - if (value) { - char *tmp; - PyObject *old_str = PyObject_Str(value); - PyErr_Clear(); - Py_XINCREF(type); - - PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); - SWIG_Python_str_DelForPy3(tmp); - Py_DECREF(old_str); - Py_DECREF(value); - } else { - PyErr_SetString(PyExc_RuntimeError, mesg); - } -} - -#if defined(SWIG_PYTHON_NO_THREADS) -# if defined(SWIG_PYTHON_THREADS) -# undef SWIG_PYTHON_THREADS -# endif -#endif -#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ -# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) -# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ -# define SWIG_PYTHON_USE_GIL -# endif -# endif -# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ -# ifndef SWIG_PYTHON_INITIALIZE_THREADS -# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() -# endif -# ifdef __cplusplus /* C++ code */ - class SWIG_Python_Thread_Block { - bool status; - PyGILState_STATE state; - public: - void end() { if (status) { PyGILState_Release(state); status = false;} } - SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} - ~SWIG_Python_Thread_Block() { end(); } - }; - class SWIG_Python_Thread_Allow { - bool status; - PyThreadState *save; - public: - void end() { if (status) { PyEval_RestoreThread(save); status = false; }} - SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} - ~SWIG_Python_Thread_Allow() { end(); } - }; -# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block -# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() -# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow -# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() -# else /* C code */ -# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() -# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) -# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() -# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) -# endif -# else /* Old thread way, not implemented, user must provide it */ -# if !defined(SWIG_PYTHON_INITIALIZE_THREADS) -# define SWIG_PYTHON_INITIALIZE_THREADS -# endif -# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) -# define SWIG_PYTHON_THREAD_BEGIN_BLOCK -# endif -# if !defined(SWIG_PYTHON_THREAD_END_BLOCK) -# define SWIG_PYTHON_THREAD_END_BLOCK -# endif -# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) -# define SWIG_PYTHON_THREAD_BEGIN_ALLOW -# endif -# if !defined(SWIG_PYTHON_THREAD_END_ALLOW) -# define SWIG_PYTHON_THREAD_END_ALLOW -# endif -# endif -#else /* No thread support */ -# define SWIG_PYTHON_INITIALIZE_THREADS -# define SWIG_PYTHON_THREAD_BEGIN_BLOCK -# define SWIG_PYTHON_THREAD_END_BLOCK -# define SWIG_PYTHON_THREAD_BEGIN_ALLOW -# define SWIG_PYTHON_THREAD_END_ALLOW -#endif - -/* ----------------------------------------------------------------------------- - * Python API portion that goes into the runtime - * ----------------------------------------------------------------------------- */ - -#ifdef __cplusplus -extern "C" { -#endif - -/* ----------------------------------------------------------------------------- - * Constant declarations - * ----------------------------------------------------------------------------- */ - -/* Constant Types */ -#define SWIG_PY_POINTER 4 -#define SWIG_PY_BINARY 5 - -/* Constant information structure */ -typedef struct swig_const_info { - int type; - char *name; - long lvalue; - double dvalue; - void *pvalue; - swig_type_info **ptype; -} swig_const_info; - - -/* ----------------------------------------------------------------------------- - * Wrapper of PyInstanceMethod_New() used in Python 3 - * It is exported to the generated module, used for -fastproxy - * ----------------------------------------------------------------------------- */ -#if PY_VERSION_HEX >= 0x03000000 -SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) -{ - return PyInstanceMethod_New(func); -} -#else -SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func)) -{ - return NULL; -} -#endif - -#ifdef __cplusplus -} -#endif - - -/* ----------------------------------------------------------------------------- - * pyrun.swg - * - * This file contains the runtime support for Python modules - * and includes code for managing global variables and pointer - * type checking. - * - * ----------------------------------------------------------------------------- */ - -/* Common SWIG API */ - -/* for raw pointers */ -#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) -#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) -#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) - -#ifdef SWIGPYTHON_BUILTIN -#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags) -#else -#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) -#endif - -#define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) - -#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) -#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) -#define swig_owntype int - -/* for raw packed data */ -#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) -#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) - -/* for class or struct pointers */ -#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) -#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) - -/* for C or C++ function pointers */ -#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) -#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(NULL, ptr, type, 0) - -/* for C++ member pointers, ie, member methods */ -#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) -#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) - - -/* Runtime API */ - -#define SWIG_GetModule(clientdata) SWIG_Python_GetModule(clientdata) -#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) -#define SWIG_NewClientData(obj) SwigPyClientData_New(obj) - -#define SWIG_SetErrorObj SWIG_Python_SetErrorObj -#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg -#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) -#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) -#define SWIG_fail goto fail - - -/* Runtime API implementation */ - -/* Error manipulation */ - -SWIGINTERN void -SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { - SWIG_PYTHON_THREAD_BEGIN_BLOCK; - PyErr_SetObject(errtype, obj); - Py_DECREF(obj); - SWIG_PYTHON_THREAD_END_BLOCK; -} - -SWIGINTERN void -SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { - SWIG_PYTHON_THREAD_BEGIN_BLOCK; - PyErr_SetString(errtype, msg); - SWIG_PYTHON_THREAD_END_BLOCK; -} - -#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) - -/* Set a constant value */ - -#if defined(SWIGPYTHON_BUILTIN) - -SWIGINTERN void -SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) { - PyObject *s = PyString_InternFromString(key); - PyList_Append(seq, s); - Py_DECREF(s); -} - -SWIGINTERN void -SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) { -#if PY_VERSION_HEX < 0x02030000 - PyDict_SetItemString(d, (char *)name, obj); -#else - PyDict_SetItemString(d, name, obj); -#endif - Py_DECREF(obj); - if (public_interface) - SwigPyBuiltin_AddPublicSymbol(public_interface, name); -} - -#else - -SWIGINTERN void -SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { -#if PY_VERSION_HEX < 0x02030000 - PyDict_SetItemString(d, (char *)name, obj); -#else - PyDict_SetItemString(d, name, obj); -#endif - Py_DECREF(obj); -} - -#endif - -/* Append a value to the result obj */ - -SWIGINTERN PyObject* -SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { -#if !defined(SWIG_PYTHON_OUTPUT_TUPLE) - if (!result) { - result = obj; - } else if (result == Py_None) { - Py_DECREF(result); - result = obj; - } else { - if (!PyList_Check(result)) { - PyObject *o2 = result; - result = PyList_New(1); - PyList_SetItem(result, 0, o2); - } - PyList_Append(result,obj); - Py_DECREF(obj); - } - return result; -#else - PyObject* o2; - PyObject* o3; - if (!result) { - result = obj; - } else if (result == Py_None) { - Py_DECREF(result); - result = obj; - } else { - if (!PyTuple_Check(result)) { - o2 = result; - result = PyTuple_New(1); - PyTuple_SET_ITEM(result, 0, o2); - } - o3 = PyTuple_New(1); - PyTuple_SET_ITEM(o3, 0, obj); - o2 = result; - result = PySequence_Concat(o2, o3); - Py_DECREF(o2); - Py_DECREF(o3); - } - return result; -#endif -} - -/* Unpack the argument tuple */ - -SWIGINTERN int -SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs) -{ - if (!args) { - if (!min && !max) { - return 1; - } else { - PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", - name, (min == max ? "" : "at least "), (int)min); - return 0; - } - } - if (!PyTuple_Check(args)) { - if (min <= 1 && max >= 1) { - register int i; - objs[0] = args; - for (i = 1; i < max; ++i) { - objs[i] = 0; - } - return 2; - } - PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); - return 0; - } else { - register Py_ssize_t l = PyTuple_GET_SIZE(args); - if (l < min) { - PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", - name, (min == max ? "" : "at least "), (int)min, (int)l); - return 0; - } else if (l > max) { - PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", - name, (min == max ? "" : "at most "), (int)max, (int)l); - return 0; - } else { - register int i; - for (i = 0; i < l; ++i) { - objs[i] = PyTuple_GET_ITEM(args, i); - } - for (; l < max; ++l) { - objs[l] = 0; - } - return i + 1; - } - } -} - -/* A functor is a function object with one single object argument */ -#if PY_VERSION_HEX >= 0x02020000 -#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); -#else -#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); -#endif - -/* - Helper for static pointer initialization for both C and C++ code, for example - static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); -*/ -#ifdef __cplusplus -#define SWIG_STATIC_POINTER(var) var -#else -#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var -#endif - -/* ----------------------------------------------------------------------------- - * Pointer declarations - * ----------------------------------------------------------------------------- */ - -/* Flags for new pointer objects */ -#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) -#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) - -#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) - -#define SWIG_BUILTIN_TP_INIT (SWIG_POINTER_OWN << 2) -#define SWIG_BUILTIN_INIT (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN) - -#ifdef __cplusplus -extern "C" { -#endif - -/* How to access Py_None */ -#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# ifndef SWIG_PYTHON_NO_BUILD_NONE -# ifndef SWIG_PYTHON_BUILD_NONE -# define SWIG_PYTHON_BUILD_NONE -# endif -# endif -#endif - -#ifdef SWIG_PYTHON_BUILD_NONE -# ifdef Py_None -# undef Py_None -# define Py_None SWIG_Py_None() -# endif -SWIGRUNTIMEINLINE PyObject * -_SWIG_Py_None(void) -{ - PyObject *none = Py_BuildValue((char*)""); - Py_DECREF(none); - return none; -} -SWIGRUNTIME PyObject * -SWIG_Py_None(void) -{ - static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); - return none; -} -#endif - -/* The python void return value */ - -SWIGRUNTIMEINLINE PyObject * -SWIG_Py_Void(void) -{ - PyObject *none = Py_None; - Py_INCREF(none); - return none; -} - -/* SwigPyClientData */ - -typedef struct { - PyObject *klass; - PyObject *newraw; - PyObject *newargs; - PyObject *destroy; - int delargs; - int implicitconv; - PyTypeObject *pytype; -} SwigPyClientData; - -SWIGRUNTIMEINLINE int -SWIG_Python_CheckImplicit(swig_type_info *ty) -{ - SwigPyClientData *data = (SwigPyClientData *)ty->clientdata; - return data ? data->implicitconv : 0; -} - -SWIGRUNTIMEINLINE PyObject * -SWIG_Python_ExceptionType(swig_type_info *desc) { - SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0; - PyObject *klass = data ? data->klass : 0; - return (klass ? klass : PyExc_RuntimeError); -} - - -SWIGRUNTIME SwigPyClientData * -SwigPyClientData_New(PyObject* obj) -{ - if (!obj) { - return 0; - } else { - SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData)); - /* the klass element */ - data->klass = obj; - Py_INCREF(data->klass); - /* the newraw method and newargs arguments used to create a new raw instance */ - if (PyClass_Check(obj)) { - data->newraw = 0; - data->newargs = obj; - Py_INCREF(obj); - } else { -#if (PY_VERSION_HEX < 0x02020000) - data->newraw = 0; -#else - data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); -#endif - if (data->newraw) { - Py_INCREF(data->newraw); - data->newargs = PyTuple_New(1); - PyTuple_SetItem(data->newargs, 0, obj); - } else { - data->newargs = obj; - } - Py_INCREF(data->newargs); - } - /* the destroy method, aka as the C++ delete method */ - data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); - if (PyErr_Occurred()) { - PyErr_Clear(); - data->destroy = 0; - } - if (data->destroy) { - int flags; - Py_INCREF(data->destroy); - flags = PyCFunction_GET_FLAGS(data->destroy); -#ifdef METH_O - data->delargs = !(flags & (METH_O)); -#else - data->delargs = 0; -#endif - } else { - data->delargs = 0; - } - data->implicitconv = 0; - data->pytype = 0; - return data; - } -} - -SWIGRUNTIME void -SwigPyClientData_Del(SwigPyClientData *data) { - Py_XDECREF(data->newraw); - Py_XDECREF(data->newargs); - Py_XDECREF(data->destroy); -} - -/* =============== SwigPyObject =====================*/ - -typedef struct { - PyObject_HEAD - void *ptr; - swig_type_info *ty; - int own; - PyObject *next; -#ifdef SWIGPYTHON_BUILTIN - PyObject *dict; -#endif -} SwigPyObject; - -SWIGRUNTIME PyObject * -SwigPyObject_long(SwigPyObject *v) -{ - return PyLong_FromVoidPtr(v->ptr); -} - -SWIGRUNTIME PyObject * -SwigPyObject_format(const char* fmt, SwigPyObject *v) -{ - PyObject *res = NULL; - PyObject *args = PyTuple_New(1); - if (args) { - if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) { - PyObject *ofmt = SWIG_Python_str_FromChar(fmt); - if (ofmt) { -#if PY_VERSION_HEX >= 0x03000000 - res = PyUnicode_Format(ofmt,args); -#else - res = PyString_Format(ofmt,args); -#endif - Py_DECREF(ofmt); - } - Py_DECREF(args); - } - } - return res; -} - -SWIGRUNTIME PyObject * -SwigPyObject_oct(SwigPyObject *v) -{ - return SwigPyObject_format("%o",v); -} - -SWIGRUNTIME PyObject * -SwigPyObject_hex(SwigPyObject *v) -{ - return SwigPyObject_format("%x",v); -} - -SWIGRUNTIME PyObject * -#ifdef METH_NOARGS -SwigPyObject_repr(SwigPyObject *v) -#else -SwigPyObject_repr(SwigPyObject *v, PyObject *args) -#endif -{ - const char *name = SWIG_TypePrettyName(v->ty); - PyObject *repr = SWIG_Python_str_FromFormat("", (name ? name : "unknown"), (void *)v); - if (v->next) { -# ifdef METH_NOARGS - PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next); -# else - PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args); -# endif -# if PY_VERSION_HEX >= 0x03000000 - PyObject *joined = PyUnicode_Concat(repr, nrep); - Py_DecRef(repr); - Py_DecRef(nrep); - repr = joined; -# else - PyString_ConcatAndDel(&repr,nrep); -# endif - } - return repr; -} - -SWIGRUNTIME int -SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w) -{ - void *i = v->ptr; - void *j = w->ptr; - return (i < j) ? -1 : ((i > j) ? 1 : 0); -} - -/* Added for Python 3.x, would it also be useful for Python 2.x? */ -SWIGRUNTIME PyObject* -SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op) -{ - PyObject* res; - if( op != Py_EQ && op != Py_NE ) { - Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; - } - res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0); - return res; -} - - -SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void); - -#ifdef SWIGPYTHON_BUILTIN -static swig_type_info *SwigPyObject_stype = 0; -SWIGRUNTIME PyTypeObject* -SwigPyObject_type(void) { - SwigPyClientData *cd; - assert(SwigPyObject_stype); - cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; - assert(cd); - assert(cd->pytype); - return cd->pytype; -} -#else -SWIGRUNTIME PyTypeObject* -SwigPyObject_type(void) { - static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce(); - return type; -} -#endif - -SWIGRUNTIMEINLINE int -SwigPyObject_Check(PyObject *op) { -#ifdef SWIGPYTHON_BUILTIN - PyTypeObject *target_tp = SwigPyObject_type(); - if (PyType_IsSubtype(op->ob_type, target_tp)) - return 1; - return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0); -#else - return (Py_TYPE(op) == SwigPyObject_type()) - || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0); -#endif -} - -SWIGRUNTIME PyObject * -SwigPyObject_New(void *ptr, swig_type_info *ty, int own); - -SWIGRUNTIME void -SwigPyObject_dealloc(PyObject *v) -{ - SwigPyObject *sobj = (SwigPyObject *) v; - PyObject *next = sobj->next; - if (sobj->own == SWIG_POINTER_OWN) { - swig_type_info *ty = sobj->ty; - SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; - PyObject *destroy = data ? data->destroy : 0; - if (destroy) { - /* destroy is always a VARARGS method */ - PyObject *res; - if (data->delargs) { - /* we need to create a temporary object to carry the destroy operation */ - PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); - res = SWIG_Python_CallFunctor(destroy, tmp); - Py_DECREF(tmp); - } else { - PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); - PyObject *mself = PyCFunction_GET_SELF(destroy); - res = ((*meth)(mself, v)); - } - Py_XDECREF(res); - } -#if !defined(SWIG_PYTHON_SILENT_MEMLEAK) - else { - const char *name = SWIG_TypePrettyName(ty); - printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown")); - } -#endif - } - Py_XDECREF(next); - PyObject_DEL(v); -} - -SWIGRUNTIME PyObject* -SwigPyObject_append(PyObject* v, PyObject* next) -{ - SwigPyObject *sobj = (SwigPyObject *) v; -#ifndef METH_O - PyObject *tmp = 0; - if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; - next = tmp; -#endif - if (!SwigPyObject_Check(next)) { - return NULL; - } - sobj->next = next; - Py_INCREF(next); - return SWIG_Py_Void(); -} - -SWIGRUNTIME PyObject* -#ifdef METH_NOARGS -SwigPyObject_next(PyObject* v) -#else -SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) -#endif -{ - SwigPyObject *sobj = (SwigPyObject *) v; - if (sobj->next) { - Py_INCREF(sobj->next); - return sobj->next; - } else { - return SWIG_Py_Void(); - } -} - -SWIGINTERN PyObject* -#ifdef METH_NOARGS -SwigPyObject_disown(PyObject *v) -#else -SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) -#endif -{ - SwigPyObject *sobj = (SwigPyObject *)v; - sobj->own = 0; - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject* -#ifdef METH_NOARGS -SwigPyObject_acquire(PyObject *v) -#else -SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) -#endif -{ - SwigPyObject *sobj = (SwigPyObject *)v; - sobj->own = SWIG_POINTER_OWN; - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject* -SwigPyObject_own(PyObject *v, PyObject *args) -{ - PyObject *val = 0; -#if (PY_VERSION_HEX < 0x02020000) - if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) -#elif (PY_VERSION_HEX < 0x02050000) - if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) -#else - if (!PyArg_UnpackTuple(args, "own", 0, 1, &val)) -#endif - { - return NULL; - } - else - { - SwigPyObject *sobj = (SwigPyObject *)v; - PyObject *obj = PyBool_FromLong(sobj->own); - if (val) { -#ifdef METH_NOARGS - if (PyObject_IsTrue(val)) { - SwigPyObject_acquire(v); - } else { - SwigPyObject_disown(v); - } -#else - if (PyObject_IsTrue(val)) { - SwigPyObject_acquire(v,args); - } else { - SwigPyObject_disown(v,args); - } -#endif - } - return obj; - } -} - -#ifdef METH_O -static PyMethodDef -swigobject_methods[] = { - {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, - {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"acquires ownership of the pointer"}, - {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, - {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O, (char *)"appends another 'this' object"}, - {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, - {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS, (char *)"returns object representation"}, - {0, 0, 0, 0} -}; -#else -static PyMethodDef -swigobject_methods[] = { - {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, - {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, - {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, - {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, - {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, - {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS, (char *)"returns object representation"}, - {0, 0, 0, 0} -}; -#endif - -#if PY_VERSION_HEX < 0x02020000 -SWIGINTERN PyObject * -SwigPyObject_getattr(SwigPyObject *sobj,char *name) -{ - return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); -} -#endif - -SWIGRUNTIME PyTypeObject* -SwigPyObject_TypeOnce(void) { - static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; - - static PyNumberMethods SwigPyObject_as_number = { - (binaryfunc)0, /*nb_add*/ - (binaryfunc)0, /*nb_subtract*/ - (binaryfunc)0, /*nb_multiply*/ - /* nb_divide removed in Python 3 */ -#if PY_VERSION_HEX < 0x03000000 - (binaryfunc)0, /*nb_divide*/ -#endif - (binaryfunc)0, /*nb_remainder*/ - (binaryfunc)0, /*nb_divmod*/ - (ternaryfunc)0,/*nb_power*/ - (unaryfunc)0, /*nb_negative*/ - (unaryfunc)0, /*nb_positive*/ - (unaryfunc)0, /*nb_absolute*/ - (inquiry)0, /*nb_nonzero*/ - 0, /*nb_invert*/ - 0, /*nb_lshift*/ - 0, /*nb_rshift*/ - 0, /*nb_and*/ - 0, /*nb_xor*/ - 0, /*nb_or*/ -#if PY_VERSION_HEX < 0x03000000 - 0, /*nb_coerce*/ -#endif - (unaryfunc)SwigPyObject_long, /*nb_int*/ -#if PY_VERSION_HEX < 0x03000000 - (unaryfunc)SwigPyObject_long, /*nb_long*/ -#else - 0, /*nb_reserved*/ -#endif - (unaryfunc)0, /*nb_float*/ -#if PY_VERSION_HEX < 0x03000000 - (unaryfunc)SwigPyObject_oct, /*nb_oct*/ - (unaryfunc)SwigPyObject_hex, /*nb_hex*/ -#endif -#if PY_VERSION_HEX >= 0x03000000 /* 3.0 */ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */ -#elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */ -#elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ -#elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */ - 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ -#endif - }; - - static PyTypeObject swigpyobject_type; - static int type_init = 0; - if (!type_init) { - const PyTypeObject tmp = { - /* PyObject header changed in Python 3 */ -#if PY_VERSION_HEX >= 0x03000000 - PyVarObject_HEAD_INIT(NULL, 0) -#else - PyObject_HEAD_INIT(NULL) - 0, /* ob_size */ -#endif - (char *)"SwigPyObject", /* tp_name */ - sizeof(SwigPyObject), /* tp_basicsize */ - 0, /* tp_itemsize */ - (destructor)SwigPyObject_dealloc, /* tp_dealloc */ - 0, /* tp_print */ -#if PY_VERSION_HEX < 0x02020000 - (getattrfunc)SwigPyObject_getattr, /* tp_getattr */ -#else - (getattrfunc)0, /* tp_getattr */ -#endif - (setattrfunc)0, /* tp_setattr */ -#if PY_VERSION_HEX >= 0x03000000 - 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */ -#else - (cmpfunc)SwigPyObject_compare, /* tp_compare */ -#endif - (reprfunc)SwigPyObject_repr, /* tp_repr */ - &SwigPyObject_as_number, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - (hashfunc)0, /* tp_hash */ - (ternaryfunc)0, /* tp_call */ - 0, /* tp_str */ - PyObject_GenericGetAttr, /* tp_getattro */ - 0, /* tp_setattro */ - 0, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT, /* tp_flags */ - swigobject_doc, /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */ - 0, /* tp_weaklistoffset */ -#if PY_VERSION_HEX >= 0x02020000 - 0, /* tp_iter */ - 0, /* tp_iternext */ - swigobject_methods, /* tp_methods */ - 0, /* tp_members */ - 0, /* tp_getset */ - 0, /* tp_base */ - 0, /* tp_dict */ - 0, /* tp_descr_get */ - 0, /* tp_descr_set */ - 0, /* tp_dictoffset */ - 0, /* tp_init */ - 0, /* tp_alloc */ - 0, /* tp_new */ - 0, /* tp_free */ - 0, /* tp_is_gc */ - 0, /* tp_bases */ - 0, /* tp_mro */ - 0, /* tp_cache */ - 0, /* tp_subclasses */ - 0, /* tp_weaklist */ -#endif -#if PY_VERSION_HEX >= 0x02030000 - 0, /* tp_del */ -#endif -#if PY_VERSION_HEX >= 0x02060000 - 0, /* tp_version */ -#endif -#ifdef COUNT_ALLOCS - 0,0,0,0 /* tp_alloc -> tp_next */ -#endif - }; - swigpyobject_type = tmp; - type_init = 1; -#if PY_VERSION_HEX < 0x02020000 - swigpyobject_type.ob_type = &PyType_Type; -#else - if (PyType_Ready(&swigpyobject_type) < 0) - return NULL; -#endif - } - return &swigpyobject_type; -} - -SWIGRUNTIME PyObject * -SwigPyObject_New(void *ptr, swig_type_info *ty, int own) -{ - SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type()); - if (sobj) { - sobj->ptr = ptr; - sobj->ty = ty; - sobj->own = own; - sobj->next = 0; - } - return (PyObject *)sobj; -} - -/* ----------------------------------------------------------------------------- - * Implements a simple Swig Packed type, and use it instead of string - * ----------------------------------------------------------------------------- */ - -typedef struct { - PyObject_HEAD - void *pack; - swig_type_info *ty; - size_t size; -} SwigPyPacked; - -SWIGRUNTIME int -SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) -{ - char result[SWIG_BUFFER_SIZE]; - fputs("pack, v->size, 0, sizeof(result))) { - fputs("at ", fp); - fputs(result, fp); - } - fputs(v->ty->name,fp); - fputs(">", fp); - return 0; -} - -SWIGRUNTIME PyObject * -SwigPyPacked_repr(SwigPyPacked *v) -{ - char result[SWIG_BUFFER_SIZE]; - if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { - return SWIG_Python_str_FromFormat("", result, v->ty->name); - } else { - return SWIG_Python_str_FromFormat("", v->ty->name); - } -} - -SWIGRUNTIME PyObject * -SwigPyPacked_str(SwigPyPacked *v) -{ - char result[SWIG_BUFFER_SIZE]; - if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ - return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name); - } else { - return SWIG_Python_str_FromChar(v->ty->name); - } -} - -SWIGRUNTIME int -SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w) -{ - size_t i = v->size; - size_t j = w->size; - int s = (i < j) ? -1 : ((i > j) ? 1 : 0); - return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); -} - -SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void); - -SWIGRUNTIME PyTypeObject* -SwigPyPacked_type(void) { - static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce(); - return type; -} - -SWIGRUNTIMEINLINE int -SwigPyPacked_Check(PyObject *op) { - return ((op)->ob_type == SwigPyPacked_TypeOnce()) - || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0); -} - -SWIGRUNTIME void -SwigPyPacked_dealloc(PyObject *v) -{ - if (SwigPyPacked_Check(v)) { - SwigPyPacked *sobj = (SwigPyPacked *) v; - free(sobj->pack); - } - PyObject_DEL(v); -} - -SWIGRUNTIME PyTypeObject* -SwigPyPacked_TypeOnce(void) { - static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; - static PyTypeObject swigpypacked_type; - static int type_init = 0; - if (!type_init) { - const PyTypeObject tmp = { - /* PyObject header changed in Python 3 */ -#if PY_VERSION_HEX>=0x03000000 - PyVarObject_HEAD_INIT(NULL, 0) -#else - PyObject_HEAD_INIT(NULL) - 0, /* ob_size */ -#endif - (char *)"SwigPyPacked", /* tp_name */ - sizeof(SwigPyPacked), /* tp_basicsize */ - 0, /* tp_itemsize */ - (destructor)SwigPyPacked_dealloc, /* tp_dealloc */ - (printfunc)SwigPyPacked_print, /* tp_print */ - (getattrfunc)0, /* tp_getattr */ - (setattrfunc)0, /* tp_setattr */ -#if PY_VERSION_HEX>=0x03000000 - 0, /* tp_reserved in 3.0.1 */ -#else - (cmpfunc)SwigPyPacked_compare, /* tp_compare */ -#endif - (reprfunc)SwigPyPacked_repr, /* tp_repr */ - 0, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - (hashfunc)0, /* tp_hash */ - (ternaryfunc)0, /* tp_call */ - (reprfunc)SwigPyPacked_str, /* tp_str */ - PyObject_GenericGetAttr, /* tp_getattro */ - 0, /* tp_setattro */ - 0, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT, /* tp_flags */ - swigpacked_doc, /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - 0, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ -#if PY_VERSION_HEX >= 0x02020000 - 0, /* tp_iter */ - 0, /* tp_iternext */ - 0, /* tp_methods */ - 0, /* tp_members */ - 0, /* tp_getset */ - 0, /* tp_base */ - 0, /* tp_dict */ - 0, /* tp_descr_get */ - 0, /* tp_descr_set */ - 0, /* tp_dictoffset */ - 0, /* tp_init */ - 0, /* tp_alloc */ - 0, /* tp_new */ - 0, /* tp_free */ - 0, /* tp_is_gc */ - 0, /* tp_bases */ - 0, /* tp_mro */ - 0, /* tp_cache */ - 0, /* tp_subclasses */ - 0, /* tp_weaklist */ -#endif -#if PY_VERSION_HEX >= 0x02030000 - 0, /* tp_del */ -#endif -#if PY_VERSION_HEX >= 0x02060000 - 0, /* tp_version */ -#endif -#ifdef COUNT_ALLOCS - 0,0,0,0 /* tp_alloc -> tp_next */ -#endif - }; - swigpypacked_type = tmp; - type_init = 1; -#if PY_VERSION_HEX < 0x02020000 - swigpypacked_type.ob_type = &PyType_Type; -#else - if (PyType_Ready(&swigpypacked_type) < 0) - return NULL; -#endif - } - return &swigpypacked_type; -} - -SWIGRUNTIME PyObject * -SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty) -{ - SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type()); - if (sobj) { - void *pack = malloc(size); - if (pack) { - memcpy(pack, ptr, size); - sobj->pack = pack; - sobj->ty = ty; - sobj->size = size; - } else { - PyObject_DEL((PyObject *) sobj); - sobj = 0; - } - } - return (PyObject *) sobj; -} - -SWIGRUNTIME swig_type_info * -SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size) -{ - if (SwigPyPacked_Check(obj)) { - SwigPyPacked *sobj = (SwigPyPacked *)obj; - if (sobj->size != size) return 0; - memcpy(ptr, sobj->pack, size); - return sobj->ty; - } else { - return 0; - } -} - -/* ----------------------------------------------------------------------------- - * pointers/data manipulation - * ----------------------------------------------------------------------------- */ - -SWIGRUNTIMEINLINE PyObject * -_SWIG_This(void) -{ - return SWIG_Python_str_FromChar("this"); -} - -static PyObject *swig_this = NULL; - -SWIGRUNTIME PyObject * -SWIG_This(void) -{ - if (swig_this == NULL) - swig_this = _SWIG_This(); - return swig_this; -} - -/* #define SWIG_PYTHON_SLOW_GETSET_THIS */ - -/* TODO: I don't know how to implement the fast getset in Python 3 right now */ -#if PY_VERSION_HEX>=0x03000000 -#define SWIG_PYTHON_SLOW_GETSET_THIS -#endif - -SWIGRUNTIME SwigPyObject * -SWIG_Python_GetSwigThis(PyObject *pyobj) -{ - PyObject *obj; - - if (SwigPyObject_Check(pyobj)) - return (SwigPyObject *) pyobj; - -#ifdef SWIGPYTHON_BUILTIN - (void)obj; -# ifdef PyWeakref_CheckProxy - if (PyWeakref_CheckProxy(pyobj)) { - pyobj = PyWeakref_GET_OBJECT(pyobj); - if (pyobj && SwigPyObject_Check(pyobj)) - return (SwigPyObject*) pyobj; - } -# endif - return NULL; -#else - - obj = 0; - -#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) - if (PyInstance_Check(pyobj)) { - obj = _PyInstance_Lookup(pyobj, SWIG_This()); - } else { - PyObject **dictptr = _PyObject_GetDictPtr(pyobj); - if (dictptr != NULL) { - PyObject *dict = *dictptr; - obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; - } else { -#ifdef PyWeakref_CheckProxy - if (PyWeakref_CheckProxy(pyobj)) { - PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); - return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; - } -#endif - obj = PyObject_GetAttr(pyobj,SWIG_This()); - if (obj) { - Py_DECREF(obj); - } else { - if (PyErr_Occurred()) PyErr_Clear(); - return 0; - } - } - } -#else - obj = PyObject_GetAttr(pyobj,SWIG_This()); - if (obj) { - Py_DECREF(obj); - } else { - if (PyErr_Occurred()) PyErr_Clear(); - return 0; - } -#endif - if (obj && !SwigPyObject_Check(obj)) { - /* a PyObject is called 'this', try to get the 'real this' - SwigPyObject from it */ - return SWIG_Python_GetSwigThis(obj); - } - return (SwigPyObject *)obj; -#endif -} - -/* Acquire a pointer value */ - -SWIGRUNTIME int -SWIG_Python_AcquirePtr(PyObject *obj, int own) { - if (own == SWIG_POINTER_OWN) { - SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj); - if (sobj) { - int oldown = sobj->own; - sobj->own = own; - return oldown; - } - } - return 0; -} - -/* Convert a pointer value */ - -SWIGRUNTIME int -SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { - int res; - SwigPyObject *sobj; - int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0; - - if (!obj) - return SWIG_ERROR; - if (obj == Py_None && !implicit_conv) { - if (ptr) - *ptr = 0; - return SWIG_OK; - } - - res = SWIG_ERROR; - - sobj = SWIG_Python_GetSwigThis(obj); - if (own) - *own = 0; - while (sobj) { - void *vptr = sobj->ptr; - if (ty) { - swig_type_info *to = sobj->ty; - if (to == ty) { - /* no type cast needed */ - if (ptr) *ptr = vptr; - break; - } else { - swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); - if (!tc) { - sobj = (SwigPyObject *)sobj->next; - } else { - if (ptr) { - int newmemory = 0; - *ptr = SWIG_TypeCast(tc,vptr,&newmemory); - if (newmemory == SWIG_CAST_NEW_MEMORY) { - assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */ - if (own) - *own = *own | SWIG_CAST_NEW_MEMORY; - } - } - break; - } - } - } else { - if (ptr) *ptr = vptr; - break; - } - } - if (sobj) { - if (own) - *own = *own | sobj->own; - if (flags & SWIG_POINTER_DISOWN) { - sobj->own = 0; - } - res = SWIG_OK; - } else { - if (implicit_conv) { - SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; - if (data && !data->implicitconv) { - PyObject *klass = data->klass; - if (klass) { - PyObject *impconv; - data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ - impconv = SWIG_Python_CallFunctor(klass, obj); - data->implicitconv = 0; - if (PyErr_Occurred()) { - PyErr_Clear(); - impconv = 0; - } - if (impconv) { - SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv); - if (iobj) { - void *vptr; - res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); - if (SWIG_IsOK(res)) { - if (ptr) { - *ptr = vptr; - /* transfer the ownership to 'ptr' */ - iobj->own = 0; - res = SWIG_AddCast(res); - res = SWIG_AddNewMask(res); - } else { - res = SWIG_AddCast(res); - } - } - } - Py_DECREF(impconv); - } - } - } - } - if (!SWIG_IsOK(res) && obj == Py_None) { - if (ptr) - *ptr = 0; - if (PyErr_Occurred()) - PyErr_Clear(); - res = SWIG_OK; - } - } - return res; -} - -/* Convert a function ptr value */ - -SWIGRUNTIME int -SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { - if (!PyCFunction_Check(obj)) { - return SWIG_ConvertPtr(obj, ptr, ty, 0); - } else { - void *vptr = 0; - - /* here we get the method pointer for callbacks */ - const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); - const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; - if (desc) - desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; - if (!desc) - return SWIG_ERROR; - if (ty) { - swig_cast_info *tc = SWIG_TypeCheck(desc,ty); - if (tc) { - int newmemory = 0; - *ptr = SWIG_TypeCast(tc,vptr,&newmemory); - assert(!newmemory); /* newmemory handling not yet implemented */ - } else { - return SWIG_ERROR; - } - } else { - *ptr = vptr; - } - return SWIG_OK; - } -} - -/* Convert a packed value value */ - -SWIGRUNTIME int -SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { - swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz); - if (!to) return SWIG_ERROR; - if (ty) { - if (to != ty) { - /* check type cast? */ - swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); - if (!tc) return SWIG_ERROR; - } - } - return SWIG_OK; -} - -/* ----------------------------------------------------------------------------- - * Create a new pointer object - * ----------------------------------------------------------------------------- */ - -/* - Create a new instance object, without calling __init__, and set the - 'this' attribute. -*/ - -SWIGRUNTIME PyObject* -SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this) -{ -#if (PY_VERSION_HEX >= 0x02020000) - PyObject *inst = 0; - PyObject *newraw = data->newraw; - if (newraw) { - inst = PyObject_Call(newraw, data->newargs, NULL); - if (inst) { -#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) - PyObject **dictptr = _PyObject_GetDictPtr(inst); - if (dictptr != NULL) { - PyObject *dict = *dictptr; - if (dict == NULL) { - dict = PyDict_New(); - *dictptr = dict; - PyDict_SetItem(dict, SWIG_This(), swig_this); - } - } -#else - PyObject *key = SWIG_This(); - PyObject_SetAttr(inst, key, swig_this); -#endif - } - } else { -#if PY_VERSION_HEX >= 0x03000000 - inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None, Py_None); - if (inst) { - PyObject_SetAttr(inst, SWIG_This(), swig_this); - Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; - } -#else - PyObject *dict = PyDict_New(); - if (dict) { - PyDict_SetItem(dict, SWIG_This(), swig_this); - inst = PyInstance_NewRaw(data->newargs, dict); - Py_DECREF(dict); - } -#endif - } - return inst; -#else -#if (PY_VERSION_HEX >= 0x02010000) - PyObject *inst = 0; - PyObject *dict = PyDict_New(); - if (dict) { - PyDict_SetItem(dict, SWIG_This(), swig_this); - inst = PyInstance_NewRaw(data->newargs, dict); - Py_DECREF(dict); - } - return (PyObject *) inst; -#else - PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); - if (inst == NULL) { - return NULL; - } - inst->in_class = (PyClassObject *)data->newargs; - Py_INCREF(inst->in_class); - inst->in_dict = PyDict_New(); - if (inst->in_dict == NULL) { - Py_DECREF(inst); - return NULL; - } -#ifdef Py_TPFLAGS_HAVE_WEAKREFS - inst->in_weakreflist = NULL; -#endif -#ifdef Py_TPFLAGS_GC - PyObject_GC_Init(inst); -#endif - PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); - return (PyObject *) inst; -#endif -#endif -} - -SWIGRUNTIME void -SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) -{ - PyObject *dict; -#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) - PyObject **dictptr = _PyObject_GetDictPtr(inst); - if (dictptr != NULL) { - dict = *dictptr; - if (dict == NULL) { - dict = PyDict_New(); - *dictptr = dict; - } - PyDict_SetItem(dict, SWIG_This(), swig_this); - return; - } -#endif - dict = PyObject_GetAttrString(inst, (char*)"__dict__"); - PyDict_SetItem(dict, SWIG_This(), swig_this); - Py_DECREF(dict); -} - - -SWIGINTERN PyObject * -SWIG_Python_InitShadowInstance(PyObject *args) { - PyObject *obj[2]; - if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) { - return NULL; - } else { - SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]); - if (sthis) { - SwigPyObject_append((PyObject*) sthis, obj[1]); - } else { - SWIG_Python_SetSwigThis(obj[0], obj[1]); - } - return SWIG_Py_Void(); - } -} - -/* Create a new pointer object */ - -SWIGRUNTIME PyObject * -SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) { - SwigPyClientData *clientdata; - PyObject * robj; - int own; - - if (!ptr) - return SWIG_Py_Void(); - - clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0; - own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; - if (clientdata && clientdata->pytype) { - SwigPyObject *newobj; - if (flags & SWIG_BUILTIN_TP_INIT) { - newobj = (SwigPyObject*) self; - if (newobj->ptr) { - PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0); - while (newobj->next) - newobj = (SwigPyObject *) newobj->next; - newobj->next = next_self; - newobj = (SwigPyObject *)next_self; - } - } else { - newobj = PyObject_New(SwigPyObject, clientdata->pytype); - } - if (newobj) { - newobj->ptr = ptr; - newobj->ty = type; - newobj->own = own; - newobj->next = 0; -#ifdef SWIGPYTHON_BUILTIN - newobj->dict = 0; -#endif - return (PyObject*) newobj; - } - return SWIG_Py_Void(); - } - - assert(!(flags & SWIG_BUILTIN_TP_INIT)); - - robj = SwigPyObject_New(ptr, type, own); - if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { - PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); - Py_DECREF(robj); - robj = inst; - } - return robj; -} - -/* Create a new packed object */ - -SWIGRUNTIMEINLINE PyObject * -SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { - return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); -} - -/* -----------------------------------------------------------------------------* - * Get type list - * -----------------------------------------------------------------------------*/ - -#ifdef SWIG_LINK_RUNTIME -void *SWIG_ReturnGlobalTypeList(void *); -#endif - -SWIGRUNTIME swig_module_info * -SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) { - static void *type_pointer = (void *)0; - /* first check if module already created */ - if (!type_pointer) { -#ifdef SWIG_LINK_RUNTIME - type_pointer = SWIG_ReturnGlobalTypeList((void *)0); -#else -# ifdef SWIGPY_USE_CAPSULE - type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0); -# else - type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, - (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); -# endif - if (PyErr_Occurred()) { - PyErr_Clear(); - type_pointer = (void *)0; - } -#endif - } - return (swig_module_info *) type_pointer; -} - -#if PY_MAJOR_VERSION < 2 -/* PyModule_AddObject function was introduced in Python 2.0. The following function - is copied out of Python/modsupport.c in python version 2.3.4 */ -SWIGINTERN int -PyModule_AddObject(PyObject *m, char *name, PyObject *o) -{ - PyObject *dict; - if (!PyModule_Check(m)) { - PyErr_SetString(PyExc_TypeError, - "PyModule_AddObject() needs module as first arg"); - return SWIG_ERROR; - } - if (!o) { - PyErr_SetString(PyExc_TypeError, - "PyModule_AddObject() needs non-NULL value"); - return SWIG_ERROR; - } - - dict = PyModule_GetDict(m); - if (dict == NULL) { - /* Internal error -- modules must have a dict! */ - PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", - PyModule_GetName(m)); - return SWIG_ERROR; - } - if (PyDict_SetItemString(dict, name, o)) - return SWIG_ERROR; - Py_DECREF(o); - return SWIG_OK; -} -#endif - -SWIGRUNTIME void -#ifdef SWIGPY_USE_CAPSULE -SWIG_Python_DestroyModule(PyObject *obj) -#else -SWIG_Python_DestroyModule(void *vptr) -#endif -{ -#ifdef SWIGPY_USE_CAPSULE - swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME); -#else - swig_module_info *swig_module = (swig_module_info *) vptr; -#endif - swig_type_info **types = swig_module->types; - size_t i; - for (i =0; i < swig_module->size; ++i) { - swig_type_info *ty = types[i]; - if (ty->owndata) { - SwigPyClientData *data = (SwigPyClientData *) ty->clientdata; - if (data) SwigPyClientData_Del(data); - } - } - Py_DECREF(SWIG_This()); - swig_this = NULL; -} - -SWIGRUNTIME void -SWIG_Python_SetModule(swig_module_info *swig_module) { -#if PY_VERSION_HEX >= 0x03000000 - /* Add a dummy module object into sys.modules */ - PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION); -#else - static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */ - PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table); -#endif -#ifdef SWIGPY_USE_CAPSULE - PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule); - if (pointer && module) { - PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer); - } else { - Py_XDECREF(pointer); - } -#else - PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); - if (pointer && module) { - PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); - } else { - Py_XDECREF(pointer); - } -#endif -} - -/* The python cached type query */ -SWIGRUNTIME PyObject * -SWIG_Python_TypeCache(void) { - static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); - return cache; -} - -SWIGRUNTIME swig_type_info * -SWIG_Python_TypeQuery(const char *type) -{ - PyObject *cache = SWIG_Python_TypeCache(); - PyObject *key = SWIG_Python_str_FromChar(type); - PyObject *obj = PyDict_GetItem(cache, key); - swig_type_info *descriptor; - if (obj) { -#ifdef SWIGPY_USE_CAPSULE - descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL); -#else - descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); -#endif - } else { - swig_module_info *swig_module = SWIG_GetModule(0); - descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); - if (descriptor) { -#ifdef SWIGPY_USE_CAPSULE - obj = PyCapsule_New((void*) descriptor, NULL, NULL); -#else - obj = PyCObject_FromVoidPtr(descriptor, NULL); -#endif - PyDict_SetItem(cache, key, obj); - Py_DECREF(obj); - } - } - Py_DECREF(key); - return descriptor; -} - -/* - For backward compatibility only -*/ -#define SWIG_POINTER_EXCEPTION 0 -#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) -#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) - -SWIGRUNTIME int -SWIG_Python_AddErrMesg(const char* mesg, int infront) -{ - if (PyErr_Occurred()) { - PyObject *type = 0; - PyObject *value = 0; - PyObject *traceback = 0; - PyErr_Fetch(&type, &value, &traceback); - if (value) { - char *tmp; - PyObject *old_str = PyObject_Str(value); - Py_XINCREF(type); - PyErr_Clear(); - if (infront) { - PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str)); - } else { - PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); - } - SWIG_Python_str_DelForPy3(tmp); - Py_DECREF(old_str); - } - return 1; - } else { - return 0; - } -} - -SWIGRUNTIME int -SWIG_Python_ArgFail(int argnum) -{ - if (PyErr_Occurred()) { - /* add information about failing argument */ - char mesg[256]; - PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); - return SWIG_Python_AddErrMesg(mesg, 1); - } else { - return 0; - } -} - -SWIGRUNTIMEINLINE const char * -SwigPyObject_GetDesc(PyObject *self) -{ - SwigPyObject *v = (SwigPyObject *)self; - swig_type_info *ty = v ? v->ty : 0; - return ty ? ty->str : ""; -} - -SWIGRUNTIME void -SWIG_Python_TypeError(const char *type, PyObject *obj) -{ - if (type) { -#if defined(SWIG_COBJECT_TYPES) - if (obj && SwigPyObject_Check(obj)) { - const char *otype = (const char *) SwigPyObject_GetDesc(obj); - if (otype) { - PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received", - type, otype); - return; - } - } else -#endif - { - const char *otype = (obj ? obj->ob_type->tp_name : 0); - if (otype) { - PyObject *str = PyObject_Str(obj); - const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0; - if (cstr) { - PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", - type, otype, cstr); - SWIG_Python_str_DelForPy3(cstr); - } else { - PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", - type, otype); - } - Py_XDECREF(str); - return; - } - } - PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); - } else { - PyErr_Format(PyExc_TypeError, "unexpected type is received"); - } -} - - -/* Convert a pointer value, signal an exception on a type mismatch */ -SWIGRUNTIME void * -SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) { - void *result; - if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { - PyErr_Clear(); -#if SWIG_POINTER_EXCEPTION - if (flags) { - SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); - SWIG_Python_ArgFail(argnum); - } -#endif - } - return result; -} - -#ifdef SWIGPYTHON_BUILTIN -SWIGRUNTIME int -SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { - PyTypeObject *tp = obj->ob_type; - PyObject *descr; - PyObject *encoded_name; - descrsetfunc f; - int res = -1; - -# ifdef Py_USING_UNICODE - if (PyString_Check(name)) { - name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL); - if (!name) - return -1; - } else if (!PyUnicode_Check(name)) -# else - if (!PyString_Check(name)) -# endif - { - PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name); - return -1; - } else { - Py_INCREF(name); - } - - if (!tp->tp_dict) { - if (PyType_Ready(tp) < 0) - goto done; - } - - descr = _PyType_Lookup(tp, name); - f = NULL; - if (descr != NULL) - f = descr->ob_type->tp_descr_set; - if (!f) { - if (PyString_Check(name)) { - encoded_name = name; - Py_INCREF(name); - } else { - encoded_name = PyUnicode_AsUTF8String(name); - } - PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name)); - Py_DECREF(encoded_name); - } else { - res = f(descr, obj, value); - } - - done: - Py_DECREF(name); - return res; -} -#endif - - -#ifdef __cplusplus -} -#endif - - - -#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) - -#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else - - - -/* -------- TYPES TABLE (BEGIN) -------- */ - -#define SWIGTYPE_p_FILE swig_types[0] -#define SWIGTYPE_p_FloatArray swig_types[1] -#define SWIGTYPE_p_GLuint swig_types[2] -#define SWIGTYPE_p_IntegerArray swig_types[3] -#define SWIGTYPE_p_PARSE_EVENT_STRUCT swig_types[4] -#define SWIGTYPE_p_QSqlDatabase swig_types[5] -#define SWIGTYPE_p_QSqlError swig_types[6] -#define SWIGTYPE_p_QSqlQuery swig_types[7] -#define SWIGTYPE_p__PARAM_ swig_types[8] -#define SWIGTYPE_p_char swig_types[9] -#define SWIGTYPE_p_double swig_types[10] -#define SWIGTYPE_p_f_p__PARAM___int swig_types[11] -#define SWIGTYPE_p_f_p__PARAM__p_void__int swig_types[12] -#define SWIGTYPE_p_f_p_void__int swig_types[13] -#define SWIGTYPE_p_float swig_types[14] -#define SWIGTYPE_p_glFont swig_types[15] -#define SWIGTYPE_p_int swig_types[16] -#define SWIGTYPE_p_p_char swig_types[17] -#define SWIGTYPE_p_pvAddressTable swig_types[18] -#define SWIGTYPE_p_pvAddressTableItem swig_types[19] -#define SWIGTYPE_p_pvTime swig_types[20] -#define SWIGTYPE_p_pvWidgetIdManager swig_types[21] -#define SWIGTYPE_p_qtDatabase swig_types[22] -#define SWIGTYPE_p_unsigned_char swig_types[23] -#define SWIGTYPE_p_void swig_types[24] -static swig_type_info *swig_types[26]; -static swig_module_info swig_module = {swig_types, 25, 0, 0, 0, 0}; -#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) -#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) - -/* -------- TYPES TABLE (END) -------- */ - -#if (PY_VERSION_HEX <= 0x02000000) -# if !defined(SWIG_PYTHON_CLASSIC) -# error "This python version requires swig to be run with the '-classic' option" -# endif -#endif - -/*----------------------------------------------- - @(target):= _pv.so - ------------------------------------------------*/ -#if PY_VERSION_HEX >= 0x03000000 -# define SWIG_init PyInit__pv - -#else -# define SWIG_init init_pv - -#endif -#define SWIG_name "_pv" - -#define SWIGVERSION 0x020012 -#define SWIG_VERSION SWIGVERSION - - -#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) -#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) - - -#include - - -namespace swig { - class SwigPtr_PyObject { - protected: - PyObject *_obj; - - public: - SwigPtr_PyObject() :_obj(0) - { - } - - SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj) - { - Py_XINCREF(_obj); - } - - SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) - { - if (initial_ref) { - Py_XINCREF(_obj); - } - } - - SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) - { - Py_XINCREF(item._obj); - Py_XDECREF(_obj); - _obj = item._obj; - return *this; - } - - ~SwigPtr_PyObject() - { - Py_XDECREF(_obj); - } - - operator PyObject *() const - { - return _obj; - } - - PyObject *operator->() const - { - return _obj; - } - }; -} - - -namespace swig { - struct SwigVar_PyObject : SwigPtr_PyObject { - SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { } - - SwigVar_PyObject & operator = (PyObject* obj) - { - Py_XDECREF(_obj); - _obj = obj; - return *this; - } - }; -} - - -/* Put headers and other declarations here */ -#include "../pvserver/processviewserver.h" -#include "sql/qtdatabase.h" -PARAM *getParam(unsigned long p); -int pvQImageScript(PARAM *p, int id, int parent, const char *imagename); -int *new_int(int ivalue); -int get_int(int *i); -void delete_int(int *i); - - -SWIGINTERN swig_type_info* -SWIG_pchar_descriptor(void) -{ - static int init = 0; - static swig_type_info* info = 0; - if (!init) { - info = SWIG_TypeQuery("_p_char"); - init = 1; - } - return info; -} - - -SWIGINTERNINLINE PyObject * -SWIG_FromCharPtrAndSize(const char* carray, size_t size) -{ - if (carray) { - if (size > INT_MAX) { - swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); - return pchar_descriptor ? - SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void(); - } else { -#if PY_VERSION_HEX >= 0x03000000 - return PyUnicode_FromStringAndSize(carray, static_cast< int >(size)); -#else - return PyString_FromStringAndSize(carray, static_cast< int >(size)); -#endif - } - } else { - return SWIG_Py_Void(); - } -} - - -SWIGINTERNINLINE PyObject * -SWIG_FromCharPtr(const char *cptr) -{ - return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); -} - - -SWIGINTERNINLINE PyObject* - SWIG_From_int (int value) -{ - return PyInt_FromLong((long) value); -} - - -#include -#if !defined(SWIG_NO_LLONG_MAX) -# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) -# define LLONG_MAX __LONG_LONG_MAX__ -# define LLONG_MIN (-LLONG_MAX - 1LL) -# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) -# endif -#endif - - -SWIGINTERN int -SWIG_AsVal_double (PyObject *obj, double *val) -{ - int res = SWIG_TypeError; - if (PyFloat_Check(obj)) { - if (val) *val = PyFloat_AsDouble(obj); - return SWIG_OK; - } else if (PyInt_Check(obj)) { - if (val) *val = PyInt_AsLong(obj); - return SWIG_OK; - } else if (PyLong_Check(obj)) { - double v = PyLong_AsDouble(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_OK; - } else { - PyErr_Clear(); - } - } -#ifdef SWIG_PYTHON_CAST_MODE - { - int dispatch = 0; - double d = PyFloat_AsDouble(obj); - if (!PyErr_Occurred()) { - if (val) *val = d; - return SWIG_AddCast(SWIG_OK); - } else { - PyErr_Clear(); - } - if (!dispatch) { - long v = PyLong_AsLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_AddCast(SWIG_AddCast(SWIG_OK)); - } else { - PyErr_Clear(); - } - } - } -#endif - return res; -} - - -#include - - -#include - - -SWIGINTERNINLINE int -SWIG_CanCastAsInteger(double *d, double min, double max) { - double x = *d; - if ((min <= x && x <= max)) { - double fx = floor(x); - double cx = ceil(x); - double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ - if ((errno == EDOM) || (errno == ERANGE)) { - errno = 0; - } else { - double summ, reps, diff; - if (rd < x) { - diff = x - rd; - } else if (rd > x) { - diff = rd - x; - } else { - return 1; - } - summ = rd + x; - reps = diff/summ; - if (reps < 8*DBL_EPSILON) { - *d = rd; - return 1; - } - } - } - return 0; -} - - -SWIGINTERN int -SWIG_AsVal_long (PyObject *obj, long* val) -{ - if (PyInt_Check(obj)) { - if (val) *val = PyInt_AsLong(obj); - return SWIG_OK; - } else if (PyLong_Check(obj)) { - long v = PyLong_AsLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_OK; - } else { - PyErr_Clear(); - } - } -#ifdef SWIG_PYTHON_CAST_MODE - { - int dispatch = 0; - long v = PyInt_AsLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_AddCast(SWIG_OK); - } else { - PyErr_Clear(); - } - if (!dispatch) { - double d; - int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); - if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) { - if (val) *val = (long)(d); - return res; - } - } - } -#endif - return SWIG_TypeError; -} - - -SWIGINTERN int -SWIG_AsVal_int (PyObject * obj, int *val) -{ - long v; - int res = SWIG_AsVal_long (obj, &v); - if (SWIG_IsOK(res)) { - if ((v < INT_MIN || v > INT_MAX)) { - return SWIG_OverflowError; - } else { - if (val) *val = static_cast< int >(v); - } - } - return res; -} - - -SWIGINTERN int -SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) -{ -#if PY_VERSION_HEX>=0x03000000 - if (PyUnicode_Check(obj)) -#else - if (PyString_Check(obj)) -#endif - { - char *cstr; Py_ssize_t len; -#if PY_VERSION_HEX>=0x03000000 - if (!alloc && cptr) { - /* We can't allow converting without allocation, since the internal - representation of string in Python 3 is UCS-2/UCS-4 but we require - a UTF-8 representation. - TODO(bhy) More detailed explanation */ - return SWIG_RuntimeError; - } - obj = PyUnicode_AsUTF8String(obj); - PyBytes_AsStringAndSize(obj, &cstr, &len); - if(alloc) *alloc = SWIG_NEWOBJ; -#else - PyString_AsStringAndSize(obj, &cstr, &len); -#endif - if (cptr) { - if (alloc) { - /* - In python the user should not be able to modify the inner - string representation. To warranty that, if you define - SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string - buffer is always returned. - - The default behavior is just to return the pointer value, - so, be careful. - */ -#if defined(SWIG_PYTHON_SAFE_CSTRINGS) - if (*alloc != SWIG_OLDOBJ) -#else - if (*alloc == SWIG_NEWOBJ) -#endif - { - *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1))); - *alloc = SWIG_NEWOBJ; - } - else { - *cptr = cstr; - *alloc = SWIG_OLDOBJ; - } - } else { - #if PY_VERSION_HEX>=0x03000000 - assert(0); /* Should never reach here in Python 3 */ - #endif - *cptr = SWIG_Python_str_AsChar(obj); - } - } - if (psize) *psize = len + 1; -#if PY_VERSION_HEX>=0x03000000 - Py_XDECREF(obj); -#endif - return SWIG_OK; - } else { - swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); - if (pchar_descriptor) { - void* vptr = 0; - if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) { - if (cptr) *cptr = (char *) vptr; - if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; - if (alloc) *alloc = SWIG_OLDOBJ; - return SWIG_OK; - } - } - } - return SWIG_TypeError; -} - - -SWIGINTERN int -SWIG_AsCharArray(PyObject * obj, char *val, size_t size) -{ - char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ; - int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc); - if (SWIG_IsOK(res)) { - if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize; - if (csize <= size) { - if (val) { - if (csize) memcpy(val, cptr, csize*sizeof(char)); - if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char)); - } - if (alloc == SWIG_NEWOBJ) { - delete[] cptr; - res = SWIG_DelNewMask(res); - } - return res; - } - if (alloc == SWIG_NEWOBJ) delete[] cptr; - } - return SWIG_TypeError; -} - - - - - - #define SWIG_From_long PyLong_FromLong - - -/* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */ -#ifndef SWIG_isfinite -# if defined(isfinite) -# define SWIG_isfinite(X) (isfinite(X)) -# elif defined(_MSC_VER) -# define SWIG_isfinite(X) (_finite(X)) -# elif defined(__sun) && defined(__SVR4) -# include -# define SWIG_isfinite(X) (finite(X)) -# endif -#endif - - -/* Accept infinite as a valid float value unless we are unable to check if a value is finite */ -#ifdef SWIG_isfinite -# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX) && SWIG_isfinite(X)) -#else -# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX)) -#endif - - -SWIGINTERN int -SWIG_AsVal_float (PyObject * obj, float *val) -{ - double v; - int res = SWIG_AsVal_double (obj, &v); - if (SWIG_IsOK(res)) { - if (SWIG_Float_Overflow_Check(v)) { - return SWIG_OverflowError; - } else { - if (val) *val = static_cast< float >(v); - } - } - return res; -} - - -SWIGINTERN int -SWIG_AsVal_char (PyObject * obj, char *val) -{ - int res = SWIG_AsCharArray(obj, val, 1); - if (!SWIG_IsOK(res)) { - long v; - res = SWIG_AddCast(SWIG_AsVal_long (obj, &v)); - if (SWIG_IsOK(res)) { - if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) { - if (val) *val = static_cast< char >(v); - } else { - res = SWIG_OverflowError; - } - } - } - return res; -} - - -SWIGINTERN int -SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) -{ -#if PY_VERSION_HEX < 0x03000000 - if (PyInt_Check(obj)) { - long v = PyInt_AsLong(obj); - if (v >= 0) { - if (val) *val = v; - return SWIG_OK; - } else { - return SWIG_OverflowError; - } - } else -#endif - if (PyLong_Check(obj)) { - unsigned long v = PyLong_AsUnsignedLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_OK; - } else { - PyErr_Clear(); -#if PY_VERSION_HEX >= 0x03000000 - { - long v = PyLong_AsLong(obj); - if (!PyErr_Occurred()) { - if (v < 0) { - return SWIG_OverflowError; - } - } else { - PyErr_Clear(); - } - } -#endif - } - } -#ifdef SWIG_PYTHON_CAST_MODE - { - int dispatch = 0; - unsigned long v = PyLong_AsUnsignedLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_AddCast(SWIG_OK); - } else { - PyErr_Clear(); - } - if (!dispatch) { - double d; - int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); - if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { - if (val) *val = (unsigned long)(d); - return res; - } - } - } -#endif - return SWIG_TypeError; -} - - -SWIGINTERN int -SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val) -{ - unsigned long v; - int res = SWIG_AsVal_unsigned_SS_long (obj, &v); - if (SWIG_IsOK(res)) { - if ((v > UCHAR_MAX)) { - return SWIG_OverflowError; - } else { - if (val) *val = static_cast< unsigned char >(v); - } - } - return res; -} - - - #define SWIG_From_double PyFloat_FromDouble - - -SWIGINTERNINLINE PyObject * -SWIG_From_float (float value) -{ - return SWIG_From_double (value); -} - -#ifdef __cplusplus -extern "C" { -#endif -SWIGINTERN int Swig_var_pvserver_version_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable pvserver_version is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_pvserver_version_get(void) { - PyObject *pyobj = 0; - - pyobj = SWIG_FromCharPtr(pvserver_version); - return pyobj; -} - - -SWIGINTERN PyObject *_wrap_PARSE_EVENT_STRUCT_event_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARSE_EVENT_STRUCT *arg1 = (PARSE_EVENT_STRUCT *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARSE_EVENT_STRUCT_event_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PARSE_EVENT_STRUCT, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARSE_EVENT_STRUCT_event_set" "', argument " "1"" of type '" "PARSE_EVENT_STRUCT *""'"); - } - arg1 = reinterpret_cast< PARSE_EVENT_STRUCT * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARSE_EVENT_STRUCT_event_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->event = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARSE_EVENT_STRUCT_event_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARSE_EVENT_STRUCT *arg1 = (PARSE_EVENT_STRUCT *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARSE_EVENT_STRUCT_event_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PARSE_EVENT_STRUCT, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARSE_EVENT_STRUCT_event_get" "', argument " "1"" of type '" "PARSE_EVENT_STRUCT *""'"); - } - arg1 = reinterpret_cast< PARSE_EVENT_STRUCT * >(argp1); - result = (int) ((arg1)->event); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARSE_EVENT_STRUCT_i_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARSE_EVENT_STRUCT *arg1 = (PARSE_EVENT_STRUCT *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARSE_EVENT_STRUCT_i_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PARSE_EVENT_STRUCT, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARSE_EVENT_STRUCT_i_set" "', argument " "1"" of type '" "PARSE_EVENT_STRUCT *""'"); - } - arg1 = reinterpret_cast< PARSE_EVENT_STRUCT * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARSE_EVENT_STRUCT_i_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->i = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARSE_EVENT_STRUCT_i_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARSE_EVENT_STRUCT *arg1 = (PARSE_EVENT_STRUCT *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARSE_EVENT_STRUCT_i_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PARSE_EVENT_STRUCT, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARSE_EVENT_STRUCT_i_get" "', argument " "1"" of type '" "PARSE_EVENT_STRUCT *""'"); - } - arg1 = reinterpret_cast< PARSE_EVENT_STRUCT * >(argp1); - result = (int) ((arg1)->i); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARSE_EVENT_STRUCT_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARSE_EVENT_STRUCT *arg1 = (PARSE_EVENT_STRUCT *) 0 ; - char *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - char temp2[1024] ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARSE_EVENT_STRUCT_text_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PARSE_EVENT_STRUCT, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARSE_EVENT_STRUCT_text_set" "', argument " "1"" of type '" "PARSE_EVENT_STRUCT *""'"); - } - arg1 = reinterpret_cast< PARSE_EVENT_STRUCT * >(argp1); - res2 = SWIG_AsCharArray(obj1, temp2, 1024); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARSE_EVENT_STRUCT_text_set" "', argument " "2"" of type '" "char [1024]""'"); - } - arg2 = reinterpret_cast< char * >(temp2); - if (arg2) memcpy(arg1->text,arg2,1024*sizeof(char)); - else memset(arg1->text,0,1024*sizeof(char)); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARSE_EVENT_STRUCT_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARSE_EVENT_STRUCT *arg1 = (PARSE_EVENT_STRUCT *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARSE_EVENT_STRUCT_text_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PARSE_EVENT_STRUCT, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARSE_EVENT_STRUCT_text_get" "', argument " "1"" of type '" "PARSE_EVENT_STRUCT *""'"); - } - arg1 = reinterpret_cast< PARSE_EVENT_STRUCT * >(argp1); - result = (char *)(char *) ((arg1)->text); - { - size_t size = 1024; - - while (size && (result[size - 1] == '\0')) --size; - - resultobj = SWIG_FromCharPtrAndSize(result, size); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_PARSE_EVENT_STRUCT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARSE_EVENT_STRUCT *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_PARSE_EVENT_STRUCT")) SWIG_fail; - result = (PARSE_EVENT_STRUCT *)new PARSE_EVENT_STRUCT(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PARSE_EVENT_STRUCT, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_PARSE_EVENT_STRUCT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARSE_EVENT_STRUCT *arg1 = (PARSE_EVENT_STRUCT *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_PARSE_EVENT_STRUCT",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PARSE_EVENT_STRUCT, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PARSE_EVENT_STRUCT" "', argument " "1"" of type '" "PARSE_EVENT_STRUCT *""'"); - } - arg1 = reinterpret_cast< PARSE_EVENT_STRUCT * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *PARSE_EVENT_STRUCT_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_PARSE_EVENT_STRUCT, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_PARAM_s_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_s_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_s_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_s_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->s = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_s_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_s_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_s_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->s); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_os_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_os_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_os_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_os_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->os = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_os_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_os_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_os_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->os); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_port_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_port_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_port_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_port_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->port = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_port_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_port_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_port_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->port); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_language_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_language_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_language_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->language = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_language_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_language_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->language); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_convert_units_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_convert_units_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_convert_units_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_convert_units_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->convert_units = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_convert_units_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_convert_units_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_convert_units_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->convert_units); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_fp_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - FILE *arg2 = (FILE *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_fp_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_fp_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_FILE, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_fp_set" "', argument " "2"" of type '" "FILE *""'"); - } - arg2 = reinterpret_cast< FILE * >(argp2); - if (arg1) (arg1)->fp = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_fp_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - FILE *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_fp_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_fp_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (FILE *) ((arg1)->fp); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FILE, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_sleep_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_sleep_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_sleep_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_sleep_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->sleep = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_sleep_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_sleep_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_sleep_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->sleep); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_cleanup_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int (*arg2)(void *) = (int (*)(void *)) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_cleanup_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_cleanup_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - { - int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_void__int); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "PARAM_cleanup_set" "', argument " "2"" of type '" "int (*)(void *)""'"); - } - } - if (arg1) (arg1)->cleanup = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_cleanup_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int (*result)(void *) = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_cleanup_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_cleanup_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int (*)(void *)) ((arg1)->cleanup); - resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void__int); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_app_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_app_data_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_app_data_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_app_data_set" "', argument " "2"" of type '" "void *""'"); - } - if (arg1) (arg1)->app_data = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_app_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - void *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_app_data_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_app_data_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (void *) ((arg1)->app_data); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_user_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_user_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_user_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_user_set" "', argument " "2"" of type '" "void *""'"); - } - if (arg1) (arg1)->user = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_user_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - void *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_user_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_user_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (void *) ((arg1)->user); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_clipboard_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_clipboard_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_clipboard_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_clipboard_set" "', argument " "2"" of type '" "char *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - if (arg1->clipboard) delete[] arg1->clipboard; - if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->clipboard = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); - } else { - arg1->clipboard = 0; - } - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_clipboard_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_clipboard_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_clipboard_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (char *) ((arg1)->clipboard); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_clipboard_length_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - long arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_clipboard_length_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_clipboard_length_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_clipboard_length_set" "', argument " "2"" of type '" "long""'"); - } - arg2 = static_cast< long >(val2); - if (arg1) (arg1)->clipboard_length = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_clipboard_length_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - long result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_clipboard_length_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_clipboard_length_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (long) ((arg1)->clipboard_length); - resultobj = SWIG_From_long(static_cast< long >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_modal_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_modal_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_modal_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_modal_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->modal = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_modal_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_modal_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_modal_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->modal); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_readData_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int (*arg2)(void *) = (int (*)(void *)) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_readData_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_readData_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - { - int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_void__int); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "PARAM_readData_set" "', argument " "2"" of type '" "int (*)(void *)""'"); - } - } - if (arg1) (arg1)->readData = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_readData_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int (*result)(void *) = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_readData_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_readData_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int (*)(void *)) ((arg1)->readData); - resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void__int); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_showData_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int (*arg2)(_PARAM_ *,void *) = (int (*)(_PARAM_ *,void *)) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_showData_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_showData_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - { - int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p__PARAM__p_void__int); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "PARAM_showData_set" "', argument " "2"" of type '" "int (*)(_PARAM_ *,void *)""'"); - } - } - if (arg1) (arg1)->showData = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_showData_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int (*result)(_PARAM_ *,void *) = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_showData_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_showData_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int (*)(_PARAM_ *,void *)) ((arg1)->showData); - resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p__PARAM__p_void__int); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_modal_d_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_modal_d_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_modal_d_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_modal_d_set" "', argument " "2"" of type '" "void *""'"); - } - if (arg1) (arg1)->modal_d = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_modal_d_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - void *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_modal_d_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_modal_d_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (void *) ((arg1)->modal_d); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_modalUserData_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_modalUserData_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_modalUserData_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_modalUserData_set" "', argument " "2"" of type '" "void *""'"); - } - if (arg1) (arg1)->modalUserData = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_modalUserData_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - void *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_modalUserData_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_modalUserData_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (void *) ((arg1)->modalUserData); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_parse_event_struct_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - PARSE_EVENT_STRUCT *arg2 = (PARSE_EVENT_STRUCT *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_parse_event_struct_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_parse_event_struct_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_PARSE_EVENT_STRUCT, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_parse_event_struct_set" "', argument " "2"" of type '" "PARSE_EVENT_STRUCT *""'"); - } - arg2 = reinterpret_cast< PARSE_EVENT_STRUCT * >(argp2); - if (arg1) (arg1)->parse_event_struct = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_parse_event_struct_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PARSE_EVENT_STRUCT *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_parse_event_struct_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_parse_event_struct_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (PARSE_EVENT_STRUCT *)& ((arg1)->parse_event_struct); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PARSE_EVENT_STRUCT, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - float *arg2 = (float *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_x_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_x_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_x_set" "', argument " "2"" of type '" "float *""'"); - } - arg2 = reinterpret_cast< float * >(argp2); - if (arg1) (arg1)->x = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - float *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_x_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_x_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (float *) ((arg1)->x); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - float *arg2 = (float *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_y_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_y_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_y_set" "', argument " "2"" of type '" "float *""'"); - } - arg2 = reinterpret_cast< float * >(argp2); - if (arg1) (arg1)->y = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - float *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_y_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_y_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (float *) ((arg1)->y); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_nxy_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_nxy_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_nxy_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_nxy_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->nxy = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_nxy_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_nxy_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_nxy_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->nxy); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_url_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - char *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - char temp2[1024] ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_url_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_url_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_AsCharArray(obj1, temp2, 1024); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_url_set" "', argument " "2"" of type '" "char [1024]""'"); - } - arg2 = reinterpret_cast< char * >(temp2); - if (arg2) memcpy(arg1->url,arg2,1024*sizeof(char)); - else memset(arg1->url,0,1024*sizeof(char)); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_url_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_url_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_url_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (char *)(char *) ((arg1)->url); - { - size_t size = 1024; - - while (size && (result[size - 1] == '\0')) --size; - - resultobj = SWIG_FromCharPtrAndSize(result, size); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_initial_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - char *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - char temp2[1024] ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_initial_mask_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_initial_mask_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_AsCharArray(obj1, temp2, 1024); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_initial_mask_set" "', argument " "2"" of type '" "char [1024]""'"); - } - arg2 = reinterpret_cast< char * >(temp2); - if (arg2) memcpy(arg1->initial_mask,arg2,1024*sizeof(char)); - else memset(arg1->initial_mask,0,1024*sizeof(char)); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_initial_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_initial_mask_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_initial_mask_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (char *)(char *) ((arg1)->initial_mask); - { - size_t size = 1024; - - while (size && (result[size - 1] == '\0')) --size; - - resultobj = SWIG_FromCharPtrAndSize(result, size); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_file_prefix_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - char *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - char temp2[32] ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_file_prefix_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_file_prefix_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_AsCharArray(obj1, temp2, 32); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_file_prefix_set" "', argument " "2"" of type '" "char [32]""'"); - } - arg2 = reinterpret_cast< char * >(temp2); - if (arg2) memcpy(arg1->file_prefix,arg2,32*sizeof(char)); - else memset(arg1->file_prefix,0,32*sizeof(char)); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_file_prefix_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_file_prefix_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_file_prefix_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (char *)(char *) ((arg1)->file_prefix); - { - size_t size = 32; - - while (size && (result[size - 1] == '\0')) --size; - - resultobj = SWIG_FromCharPtrAndSize(result, size); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_free_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_free_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_free_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_free_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->free = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_free_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_free_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_free_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->free); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - char *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - char temp2[32] ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_version_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_version_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_AsCharArray(obj1, temp2, 32); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_version_set" "', argument " "2"" of type '" "char [32]""'"); - } - arg2 = reinterpret_cast< char * >(temp2); - if (arg2) memcpy(arg1->version,arg2,32*sizeof(char)); - else memset(arg1->version,0,32*sizeof(char)); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_version_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_version_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (char *)(char *) ((arg1)->version); - { - size_t size = 32; - - while (size && (result[size - 1] == '\0')) --size; - - resultobj = SWIG_FromCharPtrAndSize(result, size); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_pvserver_version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - char *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - char temp2[32] ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_pvserver_version_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_pvserver_version_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_AsCharArray(obj1, temp2, 32); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_pvserver_version_set" "', argument " "2"" of type '" "char [32]""'"); - } - arg2 = reinterpret_cast< char * >(temp2); - if (arg2) memcpy(arg1->pvserver_version,arg2,32*sizeof(char)); - else memset(arg1->pvserver_version,0,32*sizeof(char)); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_pvserver_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_pvserver_version_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_pvserver_version_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (char *)(char *) ((arg1)->pvserver_version); - { - size_t size = 32; - - while (size && (result[size - 1] == '\0')) --size; - - resultobj = SWIG_FromCharPtrAndSize(result, size); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_exit_on_bind_error_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_exit_on_bind_error_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_exit_on_bind_error_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_exit_on_bind_error_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->exit_on_bind_error = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_exit_on_bind_error_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_exit_on_bind_error_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_exit_on_bind_error_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->exit_on_bind_error); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_hello_counter_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_hello_counter_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_hello_counter_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_hello_counter_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->hello_counter = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_hello_counter_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_hello_counter_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_hello_counter_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->hello_counter); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_local_milliseconds_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_local_milliseconds_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_local_milliseconds_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_local_milliseconds_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->local_milliseconds = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_local_milliseconds_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_local_milliseconds_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_local_milliseconds_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->local_milliseconds); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_force_null_event_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_force_null_event_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_force_null_event_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_force_null_event_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->force_null_event = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_force_null_event_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_force_null_event_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_force_null_event_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->force_null_event); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_allow_pause_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_allow_pause_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_allow_pause_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_allow_pause_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->allow_pause = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_allow_pause_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_allow_pause_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_allow_pause_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->allow_pause); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_pause_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_pause_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_pause_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_pause_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->pause = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_pause_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_pause_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_pause_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->pause); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_my_pvlock_count_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_my_pvlock_count_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_my_pvlock_count_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_my_pvlock_count_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->my_pvlock_count = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_my_pvlock_count_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_my_pvlock_count_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_my_pvlock_count_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->my_pvlock_count); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_num_additional_widgets_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_num_additional_widgets_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_num_additional_widgets_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_num_additional_widgets_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->num_additional_widgets = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_num_additional_widgets_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_num_additional_widgets_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_num_additional_widgets_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->num_additional_widgets); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_mouse_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_mouse_x_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_mouse_x_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_mouse_x_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->mouse_x = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_mouse_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_mouse_x_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_mouse_x_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->mouse_x); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_mouse_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_mouse_y_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_mouse_y_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_mouse_y_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->mouse_y = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_mouse_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_mouse_y_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_mouse_y_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->mouse_y); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_mytext_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_mytext_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_mytext_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_mytext_set" "', argument " "2"" of type '" "char *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - if (arg1->mytext) delete[] arg1->mytext; - if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->mytext = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); - } else { - arg1->mytext = 0; - } - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_mytext_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_mytext_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_mytext_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (char *) ((arg1)->mytext); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_communication_plugin_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_communication_plugin_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_communication_plugin_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_communication_plugin_set" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(reinterpret_cast< const char * >(arg2))) + 1; - arg1->communication_plugin = (char const *)reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); - } else { - arg1->communication_plugin = 0; - } - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_communication_plugin_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_communication_plugin_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_communication_plugin_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (char *) ((arg1)->communication_plugin); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_use_communication_plugin_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_use_communication_plugin_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_use_communication_plugin_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_use_communication_plugin_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->use_communication_plugin = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_use_communication_plugin_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_use_communication_plugin_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_use_communication_plugin_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->use_communication_plugin); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_lang_section_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - char *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - char temp2[32] ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_lang_section_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_lang_section_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_AsCharArray(obj1, temp2, 32); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_lang_section_set" "', argument " "2"" of type '" "char [32]""'"); - } - arg2 = reinterpret_cast< char * >(temp2); - if (arg2) memcpy(arg1->lang_section,arg2,32*sizeof(char)); - else memset(arg1->lang_section,0,32*sizeof(char)); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_lang_section_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_lang_section_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_lang_section_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (char *)(char *) ((arg1)->lang_section); - { - size_t size = 32; - - while (size && (result[size - 1] == '\0')) --size; - - resultobj = SWIG_FromCharPtrAndSize(result, size); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_mytext2_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_mytext2_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_mytext2_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_mytext2_set" "', argument " "2"" of type '" "char *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - if (arg1->mytext2) delete[] arg1->mytext2; - if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->mytext2 = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); - } else { - arg1->mytext2 = 0; - } - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_mytext2_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_mytext2_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_mytext2_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (char *) ((arg1)->mytext2); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_http_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_http_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_http_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_http_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->http = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_http_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_http_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_http_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->http); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_fptmp_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - FILE *arg2 = (FILE *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_fptmp_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_fptmp_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_FILE, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_fptmp_set" "', argument " "2"" of type '" "FILE *""'"); - } - arg2 = reinterpret_cast< FILE * >(argp2); - if (arg1) (arg1)->fptmp = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_fptmp_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - FILE *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_fptmp_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_fptmp_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (FILE *) ((arg1)->fptmp); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FILE, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_fhdltmp_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_fhdltmp_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_fhdltmp_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_fhdltmp_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->fhdltmp = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_fhdltmp_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_fhdltmp_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_fhdltmp_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->fhdltmp); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_PARAM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_PARAM")) SWIG_fail; - result = (_PARAM_ *)new _PARAM_(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__PARAM_, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_PARAM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_PARAM",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PARAM" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *PARAM_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p__PARAM_, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN int Swig_var_null_string_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable null_string is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_null_string_get(void) { - PyObject *pyobj = 0; - - pyobj = SWIG_FromCharPtr(null_string); - return pyobj; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - int *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:IntegerArray_i_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i_set" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntegerArray_i_set" "', argument " "2"" of type '" "int [10]""'"); - } - arg2 = reinterpret_cast< int * >(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)10; ++ii) arg1->i[ii] = arg2[ii]; - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""i""' of type '""int [10]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:IntegerArray_i_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i_get" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - result = (int *)(int *) ((arg1)->i); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i0_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:IntegerArray_i0_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i0_set" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntegerArray_i0_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->i0 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i0_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:IntegerArray_i0_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i0_get" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - result = (int) ((arg1)->i0); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i1_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:IntegerArray_i1_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i1_set" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntegerArray_i1_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->i1 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i1_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:IntegerArray_i1_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i1_get" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - result = (int) ((arg1)->i1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i2_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:IntegerArray_i2_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i2_set" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntegerArray_i2_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->i2 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i2_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:IntegerArray_i2_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i2_get" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - result = (int) ((arg1)->i2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i3_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:IntegerArray_i3_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i3_set" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntegerArray_i3_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->i3 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i3_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:IntegerArray_i3_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i3_get" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - result = (int) ((arg1)->i3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i4_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:IntegerArray_i4_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i4_set" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntegerArray_i4_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->i4 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i4_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:IntegerArray_i4_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i4_get" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - result = (int) ((arg1)->i4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i5_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:IntegerArray_i5_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i5_set" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntegerArray_i5_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->i5 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i5_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:IntegerArray_i5_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i5_get" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - result = (int) ((arg1)->i5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i6_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:IntegerArray_i6_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i6_set" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntegerArray_i6_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->i6 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i6_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:IntegerArray_i6_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i6_get" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - result = (int) ((arg1)->i6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i7_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:IntegerArray_i7_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i7_set" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntegerArray_i7_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->i7 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i7_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:IntegerArray_i7_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i7_get" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - result = (int) ((arg1)->i7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i8_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:IntegerArray_i8_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i8_set" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntegerArray_i8_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->i8 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i8_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:IntegerArray_i8_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i8_get" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - result = (int) ((arg1)->i8); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i9_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:IntegerArray_i9_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i9_set" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntegerArray_i9_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->i9 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i9_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:IntegerArray_i9_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i9_get" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - result = (int) ((arg1)->i9); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_IntegerArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_IntegerArray")) SWIG_fail; - result = (IntegerArray *)new IntegerArray(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IntegerArray, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_IntegerArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_IntegerArray",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IntegerArray" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *IntegerArray_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_IntegerArray, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_FloatArray_f_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - float *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:FloatArray_f_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f_set" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FloatArray_f_set" "', argument " "2"" of type '" "float [10]""'"); - } - arg2 = reinterpret_cast< float * >(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)10; ++ii) arg1->f[ii] = arg2[ii]; - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""f""' of type '""float [10]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - float *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:FloatArray_f_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f_get" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - result = (float *)(float *) ((arg1)->f); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f0_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:FloatArray_f0_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f0_set" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatArray_f0_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->f0 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f0_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:FloatArray_f0_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f0_get" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - result = (int) ((arg1)->f0); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f1_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:FloatArray_f1_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f1_set" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatArray_f1_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->f1 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f1_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:FloatArray_f1_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f1_get" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - result = (int) ((arg1)->f1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f2_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:FloatArray_f2_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f2_set" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatArray_f2_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->f2 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f2_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:FloatArray_f2_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f2_get" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - result = (int) ((arg1)->f2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f3_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:FloatArray_f3_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f3_set" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatArray_f3_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->f3 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f3_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:FloatArray_f3_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f3_get" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - result = (int) ((arg1)->f3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f4_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:FloatArray_f4_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f4_set" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatArray_f4_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->f4 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f4_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:FloatArray_f4_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f4_get" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - result = (int) ((arg1)->f4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f5_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:FloatArray_f5_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f5_set" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatArray_f5_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->f5 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f5_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:FloatArray_f5_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f5_get" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - result = (int) ((arg1)->f5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f6_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:FloatArray_f6_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f6_set" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatArray_f6_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->f6 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f6_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:FloatArray_f6_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f6_get" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - result = (int) ((arg1)->f6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f7_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:FloatArray_f7_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f7_set" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatArray_f7_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->f7 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f7_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:FloatArray_f7_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f7_get" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - result = (int) ((arg1)->f7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f8_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:FloatArray_f8_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f8_set" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatArray_f8_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->f8 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f8_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:FloatArray_f8_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f8_get" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - result = (int) ((arg1)->f8); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f9_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:FloatArray_f9_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f9_set" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatArray_f9_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->f9 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f9_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:FloatArray_f9_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f9_get" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - result = (int) ((arg1)->f9); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_FloatArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_FloatArray")) SWIG_fail; - result = (FloatArray *)new FloatArray(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FloatArray, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_FloatArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_FloatArray",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FloatArray" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *FloatArray_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_FloatArray, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_pvTime_millisecond_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvTime_millisecond_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_millisecond_set" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvTime_millisecond_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->millisecond = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTime_millisecond_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvTime_millisecond_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_millisecond_get" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - result = (int) ((arg1)->millisecond); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTime_second_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvTime_second_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_second_set" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvTime_second_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->second = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTime_second_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvTime_second_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_second_get" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - result = (int) ((arg1)->second); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTime_minute_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvTime_minute_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_minute_set" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvTime_minute_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->minute = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTime_minute_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvTime_minute_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_minute_get" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - result = (int) ((arg1)->minute); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTime_hour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvTime_hour_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_hour_set" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvTime_hour_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->hour = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTime_hour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvTime_hour_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_hour_get" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - result = (int) ((arg1)->hour); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTime_day_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvTime_day_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_day_set" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvTime_day_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->day = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTime_day_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvTime_day_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_day_get" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - result = (int) ((arg1)->day); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTime_month_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvTime_month_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_month_set" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvTime_month_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->month = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTime_month_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvTime_month_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_month_get" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - result = (int) ((arg1)->month); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTime_year_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvTime_year_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_year_set" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvTime_year_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->year = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTime_year_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvTime_year_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_year_get" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - result = (int) ((arg1)->year); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_pvTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_pvTime")) SWIG_fail; - result = (pvTime *)new pvTime(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pvTime, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_pvTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_pvTime",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_pvTime" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *pvTime_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_pvTime, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_pvAddressTableItem_s_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvAddressTableItem *arg1 = (pvAddressTableItem *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvAddressTableItem_s_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvAddressTableItem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddressTableItem_s_set" "', argument " "1"" of type '" "pvAddressTableItem *""'"); - } - arg1 = reinterpret_cast< pvAddressTableItem * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvAddressTableItem_s_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->s = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddressTableItem_s_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvAddressTableItem *arg1 = (pvAddressTableItem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvAddressTableItem_s_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvAddressTableItem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddressTableItem_s_get" "', argument " "1"" of type '" "pvAddressTableItem *""'"); - } - arg1 = reinterpret_cast< pvAddressTableItem * >(argp1); - result = (int) ((arg1)->s); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddressTableItem_version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvAddressTableItem *arg1 = (pvAddressTableItem *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvAddressTableItem_version_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvAddressTableItem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddressTableItem_version_set" "', argument " "1"" of type '" "pvAddressTableItem *""'"); - } - arg1 = reinterpret_cast< pvAddressTableItem * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvAddressTableItem_version_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->version = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddressTableItem_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvAddressTableItem *arg1 = (pvAddressTableItem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvAddressTableItem_version_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvAddressTableItem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddressTableItem_version_get" "', argument " "1"" of type '" "pvAddressTableItem *""'"); - } - arg1 = reinterpret_cast< pvAddressTableItem * >(argp1); - result = (int) ((arg1)->version); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddressTableItem_adr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvAddressTableItem *arg1 = (pvAddressTableItem *) 0 ; - unsigned char *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvAddressTableItem_adr_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvAddressTableItem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddressTableItem_adr_set" "', argument " "1"" of type '" "pvAddressTableItem *""'"); - } - arg1 = reinterpret_cast< pvAddressTableItem * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvAddressTableItem_adr_set" "', argument " "2"" of type '" "unsigned char [16]""'"); - } - arg2 = reinterpret_cast< unsigned char * >(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)16; ++ii) arg1->adr[ii] = arg2[ii]; - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""adr""' of type '""unsigned char [16]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddressTableItem_adr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvAddressTableItem *arg1 = (pvAddressTableItem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - unsigned char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:pvAddressTableItem_adr_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvAddressTableItem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddressTableItem_adr_get" "', argument " "1"" of type '" "pvAddressTableItem *""'"); - } - arg1 = reinterpret_cast< pvAddressTableItem * >(argp1); - result = (unsigned char *)(unsigned char *) ((arg1)->adr); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_pvAddressTableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvAddressTableItem *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_pvAddressTableItem")) SWIG_fail; - result = (pvAddressTableItem *)new pvAddressTableItem(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pvAddressTableItem, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_pvAddressTableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvAddressTableItem *arg1 = (pvAddressTableItem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_pvAddressTableItem",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvAddressTableItem, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_pvAddressTableItem" "', argument " "1"" of type '" "pvAddressTableItem *""'"); - } - arg1 = reinterpret_cast< pvAddressTableItem * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *pvAddressTableItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_pvAddressTableItem, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_pvAddressTable_adr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvAddressTable *arg1 = (pvAddressTable *) 0 ; - pvAddressTableItem *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvAddressTable_adr_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvAddressTable, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddressTable_adr_set" "', argument " "1"" of type '" "pvAddressTable *""'"); - } - arg1 = reinterpret_cast< pvAddressTable * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_pvAddressTableItem, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvAddressTable_adr_set" "', argument " "2"" of type '" "pvAddressTableItem [100]""'"); - } - arg2 = reinterpret_cast< pvAddressTableItem * >(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)100; ++ii) arg1->adr[ii] = arg2[ii]; - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""adr""' of type '""pvAddressTableItem [100]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddressTable_adr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvAddressTable *arg1 = (pvAddressTable *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - pvAddressTableItem *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:pvAddressTable_adr_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvAddressTable, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddressTable_adr_get" "', argument " "1"" of type '" "pvAddressTable *""'"); - } - arg1 = reinterpret_cast< pvAddressTable * >(argp1); - result = (pvAddressTableItem *)(pvAddressTableItem *) ((arg1)->adr); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pvAddressTableItem, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_pvAddressTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvAddressTable *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_pvAddressTable")) SWIG_fail; - result = (pvAddressTable *)new pvAddressTable(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pvAddressTable, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_pvAddressTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvAddressTable *arg1 = (pvAddressTable *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_pvAddressTable",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvAddressTable, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_pvAddressTable" "', argument " "1"" of type '" "pvAddressTable *""'"); - } - arg1 = reinterpret_cast< pvAddressTable * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *pvAddressTable_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_pvAddressTable, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_glencode_set_param(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:glencode_set_param",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "glencode_set_param" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)glencode_set_param(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvlock",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvlock" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvlock(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvunlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvunlock",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvunlock" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvunlock(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvsystem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvsystem",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvsystem" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (int)pvsystem((char const *)arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvGetLocalTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:pvGetLocalTime",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvGetLocalTime" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - pvGetLocalTime(arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvIsAccessAllowed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int arg2 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvIsAccessAllowed",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvIsAccessAllowed" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvIsAccessAllowed" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvIsAccessAllowed((char const *)arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSendVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvSendVersion",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSendVersion" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvSendVersion(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvXYAllocate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvXYAllocate",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvXYAllocate" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvXYAllocate" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvXYAllocate(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_getIntegers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - IntegerArray *arg2 = (IntegerArray *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:getIntegers",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getIntegers" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "getIntegers" "', argument " "2"" of type '" "IntegerArray *""'"); - } - arg2 = reinterpret_cast< IntegerArray * >(argp2); - result = (int)getIntegers((char const *)arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_getFloats(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - FloatArray *arg2 = (FloatArray *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:getFloats",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getFloats" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "getFloats" "', argument " "2"" of type '" "FloatArray *""'"); - } - arg2 = reinterpret_cast< FloatArray * >(argp2); - result = (int)getFloats((char const *)arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_getTextFromText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:getTextFromText",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getTextFromText" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (char *)getTextFromText((char const *)arg1); - resultobj = SWIG_FromCharPtr((const char *)result); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetXY",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetXY" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetXY" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetXY" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetXY" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - result = (int)pvSetXY(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvGetSocketPointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:pvGetSocketPointer",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvGetSocketPointer" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int *)pvGetSocketPointer(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvInitInternal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvInitInternal",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvInitInternal" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvInitInternal(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvInit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - char **arg2 = (char **) 0 ; - PARAM *arg3 = (PARAM *) 0 ; - int val1 ; - int ecode1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvInit",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pvInit" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvInit" "', argument " "2"" of type '" "char **""'"); - } - arg2 = reinterpret_cast< char ** >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvInit" "', argument " "3"" of type '" "PARAM *""'"); - } - arg3 = reinterpret_cast< PARAM * >(argp3); - result = (int)pvInit(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAccept(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvAccept",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAccept" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvAccept(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvCreateThread(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvCreateThread",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvCreateThread" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvCreateThread" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvCreateThread(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvGetInitialMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvGetInitialMask",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvGetInitialMask" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvGetInitialMask(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvMain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvMain",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvMain" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvMain(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetCleanup(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int (*arg2)(void *) = (int (*)(void *)) 0 ; - void *arg3 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetCleanup",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetCleanup" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - { - int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_void__int); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "pvSetCleanup" "', argument " "2"" of type '" "int (*)(void *)""'"); - } - } - res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetCleanup" "', argument " "3"" of type '" "void *""'"); - } - result = (int)pvSetCleanup(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvGetEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:pvGetEvent",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvGetEvent" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (char *)pvGetEvent(arg1); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPollEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvPollEvent",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvPollEvent" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvPollEvent" "', argument " "2"" of type '" "char *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvPollEvent(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWait(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvWait",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWait" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvWait" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvWait(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvGlUpdate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvGlUpdate",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvGlUpdate" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvGlUpdate" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvGlUpdate(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSleep(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvSleep",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pvSleep" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (int)pvSleep(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWarning(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvWarning",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWarning" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvWarning" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvWarning(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvMainFatal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvMainFatal",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvMainFatal" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvMainFatal" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvMainFatal(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvThreadFatal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvThreadFatal",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvThreadFatal" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvThreadFatal" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvThreadFatal(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvScreenHint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvScreenHint",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvScreenHint" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvScreenHint" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvScreenHint" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvScreenHint(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMouseShape(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvSetMouseShape",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMouseShape" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMouseShape" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvSetMouseShape(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetWhatsThis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetWhatsThis",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetWhatsThis" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetWhatsThis" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetWhatsThis" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvSetWhatsThis(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWhatsThisPrintf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvWhatsThisPrintf",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWhatsThisPrintf" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvWhatsThisPrintf" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvWhatsThisPrintf" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvWhatsThisPrintf(arg1,arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWhatsThisPrintf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,3); - varargs = PyTuple_GetSlice(args,3,PyTuple_Size(args)); - resultobj = _wrap_pvWhatsThisPrintf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_pvClientCommand__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvClientCommand",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvClientCommand" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvClientCommand" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvClientCommand" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvClientCommand" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvClientCommand(arg1,(char const *)arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvClientCommand__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvClientCommand",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvClientCommand" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvClientCommand" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvClientCommand" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvClientCommand(arg1,(char const *)arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvClientCommand(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvClientCommand__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvClientCommand__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvClientCommand'.\n" - " Possible C/C++ prototypes are:\n" - " pvClientCommand(PARAM *,char const *,char const *,int)\n" - " pvClientCommand(PARAM *,char const *,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvWriteTextToFileAtClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvWriteTextToFileAtClient",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWriteTextToFileAtClient" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvWriteTextToFileAtClient" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvWriteTextToFileAtClient" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvWriteTextToFileAtClient(arg1,(char const *)arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvZoomMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvZoomMask",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvZoomMask" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvZoomMask" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvZoomMask(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetManualUrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvSetManualUrl",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetManualUrl" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvSetManualUrl" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvSetManualUrl(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSelectLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvSelectLanguage",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSelectLanguage" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvSelectLanguage" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvSelectLanguage(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvStartDefinition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvStartDefinition",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvStartDefinition" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvStartDefinition" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvStartDefinition(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQWidget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQWidget",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQWidget" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQWidget(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQLayoutVbox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQLayoutVbox",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQLayoutVbox" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQLayoutVbox" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQLayoutVbox" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQLayoutVbox(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQLayoutHbox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQLayoutHbox",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQLayoutHbox" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQLayoutHbox" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQLayoutHbox" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQLayoutHbox(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQLayoutGrid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQLayoutGrid",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQLayoutGrid" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQLayoutGrid" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQLayoutGrid" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQLayoutGrid(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQLabel",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQLabel" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQLabel" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQLabel" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQLabel(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvQComboBox",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQComboBox" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQComboBox" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQComboBox" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQComboBox" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvQComboBox" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvQComboBox(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQLineEdit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQLineEdit",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQLineEdit" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQLineEdit" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQLineEdit" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQLineEdit(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQPushButton",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQPushButton" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQPushButton" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQPushButton" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQPushButton(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQLCDNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvQLCDNumber",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQLCDNumber" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQLCDNumber" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQLCDNumber" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQLCDNumber" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvQLCDNumber" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvQLCDNumber" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvQLCDNumber(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:pvQSlider",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQSlider" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQSlider" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQSlider" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQSlider" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvQSlider" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvQSlider" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "pvQSlider" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "pvQSlider" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - result = (int)pvQSlider(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQButtonGroup(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - char *arg6 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int res6 ; - char *buf6 = 0 ; - int alloc6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvQButtonGroup",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQButtonGroup" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQButtonGroup" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQButtonGroup" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQButtonGroup" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvQButtonGroup" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - res6 = SWIG_AsCharPtrAndSize(obj5, &buf6, NULL, &alloc6); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "pvQButtonGroup" "', argument " "6"" of type '" "char const *""'"); - } - arg6 = reinterpret_cast< char * >(buf6); - result = (int)pvQButtonGroup(arg1,arg2,arg3,arg4,arg5,(char const *)arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc6 == SWIG_NEWOBJ) delete[] buf6; - return resultobj; -fail: - if (alloc6 == SWIG_NEWOBJ) delete[] buf6; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQRadioButton",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQRadioButton" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQRadioButton" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQRadioButton" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQRadioButton(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQCheckBox",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQCheckBox" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQCheckBox" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQCheckBox" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQCheckBox(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:pvQFrame",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQFrame" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQFrame" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQFrame" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQFrame" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvQFrame" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvQFrame" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "pvQFrame" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - result = (int)pvQFrame(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQDraw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQDraw",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQDraw" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQDraw" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQDraw" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQDraw(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - int *arg5 = (int *) 0 ; - int *arg6 = (int *) 0 ; - int *arg7 = (int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; - void *argp7 = 0 ; - int res7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:pvQImage",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQImage" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQImage" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQImage" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvQImage" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvQImage" "', argument " "5"" of type '" "int *""'"); - } - arg5 = reinterpret_cast< int * >(argp5); - res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "pvQImage" "', argument " "6"" of type '" "int *""'"); - } - arg6 = reinterpret_cast< int * >(argp6); - res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "pvQImage" "', argument " "7"" of type '" "int *""'"); - } - arg7 = reinterpret_cast< int * >(argp7); - result = (int)pvQImage(arg1,arg2,arg3,(char const *)arg4,arg5,arg6,arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - int *arg5 = (int *) 0 ; - int *arg6 = (int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvQImage",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQImage" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQImage" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQImage" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvQImage" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvQImage" "', argument " "5"" of type '" "int *""'"); - } - arg5 = reinterpret_cast< int * >(argp5); - res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "pvQImage" "', argument " "6"" of type '" "int *""'"); - } - arg6 = reinterpret_cast< int * >(argp6); - result = (int)pvQImage(arg1,arg2,arg3,(char const *)arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - int *arg5 = (int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvQImage",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQImage" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQImage" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQImage" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvQImage" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvQImage" "', argument " "5"" of type '" "int *""'"); - } - arg5 = reinterpret_cast< int * >(argp5); - result = (int)pvQImage(arg1,arg2,arg3,(char const *)arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQImage__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvQImage",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQImage" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQImage" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQImage" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvQImage" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)pvQImage(arg1,arg2,arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQImage(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[8]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 7) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvQImage__SWIG_3(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvQImage__SWIG_2(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvQImage__SWIG_1(self, args); - } - } - } - } - } - } - } - if (argc == 7) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvQImage__SWIG_0(self, args); - } - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvQImage'.\n" - " Possible C/C++ prototypes are:\n" - " pvQImage(PARAM *,int,int,char const *,int *,int *,int *)\n" - " pvQImage(PARAM *,int,int,char const *,int *,int *)\n" - " pvQImage(PARAM *,int,int,char const *,int *)\n" - " pvQImage(PARAM *,int,int,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvQGL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQGL",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQGL" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQGL" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQGL" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQGL(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQTabWidget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQTabWidget",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQTabWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQTabWidget" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQTabWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQTabWidget(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQToolBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQToolBox",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQToolBox" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQToolBox" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQToolBox" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQToolBox(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQGroupBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - char *arg6 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int res6 ; - char *buf6 = 0 ; - int alloc6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvQGroupBox",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQGroupBox" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQGroupBox" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQGroupBox" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQGroupBox" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvQGroupBox" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - res6 = SWIG_AsCharPtrAndSize(obj5, &buf6, NULL, &alloc6); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "pvQGroupBox" "', argument " "6"" of type '" "char const *""'"); - } - arg6 = reinterpret_cast< char * >(buf6); - result = (int)pvQGroupBox(arg1,arg2,arg3,arg4,arg5,(char const *)arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc6 == SWIG_NEWOBJ) delete[] buf6; - return resultobj; -fail: - if (alloc6 == SWIG_NEWOBJ) delete[] buf6; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQListBox",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQListBox" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQListBox" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQListBox" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQListBox(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvQTable",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQTable" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQTable" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQTable" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQTable" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvQTable" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvQTable(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQSpinBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvQSpinBox",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQSpinBox" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQSpinBox" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQSpinBox" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQSpinBox" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvQSpinBox" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvQSpinBox" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvQSpinBox(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQDial(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:pvQDial",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQDial" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQDial" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQDial" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQDial" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvQDial" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvQDial" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "pvQDial" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - result = (int)pvQDial(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQProgressBar__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvQProgressBar",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQProgressBar" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQProgressBar" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQProgressBar" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQProgressBar" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvQProgressBar" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvQProgressBar(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQProgressBar__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvQProgressBar",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQProgressBar" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQProgressBar" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQProgressBar" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQProgressBar" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvQProgressBar(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQProgressBar(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvQProgressBar__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvQProgressBar__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvQProgressBar'.\n" - " Possible C/C++ prototypes are:\n" - " pvQProgressBar(PARAM *,int,int,int,int)\n" - " pvQProgressBar(PARAM *,int,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvQMultiLineEdit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvQMultiLineEdit",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQMultiLineEdit" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQMultiLineEdit" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQMultiLineEdit" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQMultiLineEdit" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvQMultiLineEdit" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvQMultiLineEdit(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQTextBrowser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQTextBrowser",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQTextBrowser" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQTextBrowser" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQTextBrowser" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQTextBrowser(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQListView",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQListView" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQListView" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQListView" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQListView(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQIconView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQIconView",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQIconView" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQIconView" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQIconView" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQIconView(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQVtkTclWidget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQVtkTclWidget",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQVtkTclWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQVtkTclWidget" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQVtkTclWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQVtkTclWidget(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQwtPlotWidget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvQwtPlotWidget",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQwtPlotWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQwtPlotWidget" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQwtPlotWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQwtPlotWidget" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvQwtPlotWidget" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvQwtPlotWidget(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQwtScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvQwtScale",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQwtScale" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQwtScale" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQwtScale" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQwtScale" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvQwtScale(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQwtThermo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQwtThermo",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQwtThermo" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQwtThermo" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQwtThermo" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQwtThermo(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQwtKnob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQwtKnob",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQwtKnob" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQwtKnob" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQwtKnob" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQwtKnob(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQwtCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQwtCounter",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQwtCounter" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQwtCounter" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQwtCounter" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQwtCounter(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQwtWheel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQwtWheel",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQwtWheel" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQwtWheel" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQwtWheel" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQwtWheel(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQwtSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQwtSlider",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQwtSlider" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQwtSlider" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQwtSlider" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQwtSlider(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQwtDial(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQwtDial",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQwtDial" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQwtDial" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQwtDial" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQwtDial(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQwtCompass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQwtCompass",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQwtCompass" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQwtCompass" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQwtCompass" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQwtCompass(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQwtAnalogClock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQwtAnalogClock",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQwtAnalogClock" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQwtAnalogClock" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQwtAnalogClock" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQwtAnalogClock(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQDateEdit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQDateEdit",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQDateEdit" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQDateEdit" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQDateEdit" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQDateEdit(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQTimeEdit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQTimeEdit",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQTimeEdit" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQTimeEdit" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQTimeEdit" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQTimeEdit(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQDateTimeEdit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQDateTimeEdit",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQDateTimeEdit" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQDateTimeEdit" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQDateTimeEdit" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQDateTimeEdit(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQCustomWidget__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvQCustomWidget",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQCustomWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQCustomWidget" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQCustomWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvQCustomWidget" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvQCustomWidget" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - result = (int)pvQCustomWidget(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQCustomWidget__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvQCustomWidget",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQCustomWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQCustomWidget" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQCustomWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvQCustomWidget" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)pvQCustomWidget(arg1,arg2,arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQCustomWidget(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvQCustomWidget__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[4], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvQCustomWidget__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvQCustomWidget'.\n" - " Possible C/C++ prototypes are:\n" - " pvQCustomWidget(PARAM *,int,int,char const *,char const *)\n" - " pvQCustomWidget(PARAM *,int,int,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvEndDefinition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvEndDefinition",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvEndDefinition" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvEndDefinition(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddWidgetOrLayout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvAddWidgetOrLayout",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddWidgetOrLayout" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvAddWidgetOrLayout" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvAddWidgetOrLayout" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvAddWidgetOrLayout" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvAddWidgetOrLayout" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvAddWidgetOrLayout(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddStretch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvAddStretch",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddStretch" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvAddStretch" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvAddStretch" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvAddStretch(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTabOrder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvTabOrder",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTabOrder" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvTabOrder" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvTabOrder" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvTabOrder(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvDeleteWidget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvDeleteWidget",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvDeleteWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvDeleteWidget" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvDeleteWidget(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetCaption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvSetCaption",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetCaption" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvSetCaption" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvSetCaption(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPlaySound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvPlaySound",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvPlaySound" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvPlaySound" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvPlaySound(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvBeep(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvBeep",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvBeep" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvBeep(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvStatusMessage__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - char *arg5 = (char *) 0 ; - void *arg6 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvStatusMessage",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvStatusMessage" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvStatusMessage" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvStatusMessage" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvStatusMessage" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvStatusMessage" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - result = (int)pvStatusMessage(arg1,arg2,arg3,arg4,(char const *)arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvStatusMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,5); - varargs = PyTuple_GetSlice(args,5,PyTuple_Size(args)); - resultobj = _wrap_pvStatusMessage__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_pvToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvToolTip",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvToolTip" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvToolTip" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvToolTip" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvToolTip(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTextEx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetTextEx",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTextEx" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTextEx" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetTextEx" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetTextEx" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSetTextEx(arg1,arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetText",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetText" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetText" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetText" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvSetText(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPrintf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvPrintf",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvPrintf" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvPrintf" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvPrintf" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvPrintf(arg1,arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPrintf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,3); - varargs = PyTuple_GetSlice(args,3,PyTuple_Size(args)); - resultobj = _wrap_pvPrintf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_pvSetStyleSheet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetStyleSheet",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetStyleSheet" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetStyleSheet" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetStyleSheet" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvSetStyleSheet(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPrintfStyleSheet__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvPrintfStyleSheet",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvPrintfStyleSheet" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvPrintfStyleSheet" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvPrintfStyleSheet" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvPrintfStyleSheet(arg1,arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPrintfStyleSheet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,3); - varargs = PyTuple_GetSlice(args,3,PyTuple_Size(args)); - resultobj = _wrap_pvPrintfStyleSheet__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_pvSetMinValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetMinValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMinValue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMinValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMinValue" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetMinValue(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMaxValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetMaxValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMaxValue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMaxValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMaxValue" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetMaxValue(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetValue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetValue" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetValue(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvClear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvClear",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvClear" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvClear" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvClear(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvChangeItem__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvChangeItem",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvChangeItem" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvChangeItem" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvChangeItem" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvChangeItem" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvChangeItem" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvChangeItem" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvChangeItem(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvChangeItem__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvChangeItem",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvChangeItem" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvChangeItem" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvChangeItem" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvChangeItem" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvChangeItem" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - result = (int)pvChangeItem(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvChangeItem(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[4], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvChangeItem__SWIG_1(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[4], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvChangeItem__SWIG_0(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvChangeItem'.\n" - " Possible C/C++ prototypes are:\n" - " pvChangeItem(PARAM *,int,int,char const *,char const *,int)\n" - " pvChangeItem(PARAM *,int,int,char const *,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvInsertItem__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvInsertItem",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvInsertItem" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvInsertItem" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvInsertItem" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvInsertItem" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvInsertItem" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvInsertItem" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvInsertItem(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvInsertItem__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvInsertItem",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvInsertItem" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvInsertItem" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvInsertItem" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvInsertItem" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvInsertItem" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - result = (int)pvInsertItem(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvInsertItem(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[4], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvInsertItem__SWIG_1(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[4], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvInsertItem__SWIG_0(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvInsertItem'.\n" - " Possible C/C++ prototypes are:\n" - " pvInsertItem(PARAM *,int,int,char const *,char const *,int)\n" - " pvInsertItem(PARAM *,int,int,char const *,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvRemoveItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvRemoveItem",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRemoveItem" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRemoveItem" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvRemoveItem" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvRemoveItem(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvRemoveItemByName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvRemoveItemByName",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRemoveItemByName" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRemoveItemByName" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvRemoveItemByName" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvRemoveItemByName(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvAddColumn",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddColumn" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvAddColumn" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvAddColumn" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvAddColumn" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvAddColumn(arg1,arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvRemoveAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvRemoveAllColumns",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRemoveAllColumns" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRemoveAllColumns" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvRemoveAllColumns(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTableText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - char *arg5 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetTableText",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTableText" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTableText" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetTableText" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetTableText" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvSetTableText" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - result = (int)pvSetTableText(arg1,arg2,arg3,arg4,(char const *)arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTableButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - char *arg5 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetTableButton",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTableButton" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTableButton" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetTableButton" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetTableButton" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvSetTableButton" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - result = (int)pvSetTableButton(arg1,arg2,arg3,arg4,(char const *)arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTableCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - char *arg6 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int res6 ; - char *buf6 = 0 ; - int alloc6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvSetTableCheckBox",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTableCheckBox" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTableCheckBox" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetTableCheckBox" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetTableCheckBox" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetTableCheckBox" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - res6 = SWIG_AsCharPtrAndSize(obj5, &buf6, NULL, &alloc6); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "pvSetTableCheckBox" "', argument " "6"" of type '" "char const *""'"); - } - arg6 = reinterpret_cast< char * >(buf6); - result = (int)pvSetTableCheckBox(arg1,arg2,arg3,arg4,arg5,(char const *)arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc6 == SWIG_NEWOBJ) delete[] buf6; - return resultobj; -fail: - if (alloc6 == SWIG_NEWOBJ) delete[] buf6; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTableComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - char *arg6 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int res6 ; - char *buf6 = 0 ; - int alloc6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvSetTableComboBox",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTableComboBox" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTableComboBox" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetTableComboBox" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetTableComboBox" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetTableComboBox" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - res6 = SWIG_AsCharPtrAndSize(obj5, &buf6, NULL, &alloc6); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "pvSetTableComboBox" "', argument " "6"" of type '" "char const *""'"); - } - arg6 = reinterpret_cast< char * >(buf6); - result = (int)pvSetTableComboBox(arg1,arg2,arg3,arg4,arg5,(char const *)arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc6 == SWIG_NEWOBJ) delete[] buf6; - return resultobj; -fail: - if (alloc6 == SWIG_NEWOBJ) delete[] buf6; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTableLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - char *arg5 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetTableLabel",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTableLabel" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTableLabel" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetTableLabel" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetTableLabel" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvSetTableLabel" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - result = (int)pvSetTableLabel(arg1,arg2,arg3,arg4,(char const *)arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTablePrintf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - char *arg5 = (char *) 0 ; - void *arg6 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvTablePrintf",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTablePrintf" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvTablePrintf" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvTablePrintf" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvTablePrintf" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvTablePrintf" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - result = (int)pvTablePrintf(arg1,arg2,arg3,arg4,(char const *)arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTablePrintf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,5); - varargs = PyTuple_GetSlice(args,5,PyTuple_Size(args)); - resultobj = _wrap_pvTablePrintf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_pvSetTableTextAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetTableTextAlignment",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTableTextAlignment" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTableTextAlignment" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetTableTextAlignment" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetTableTextAlignment" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetTableTextAlignment" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetTableTextAlignment(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvMysqldump(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvMysqldump",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvMysqldump" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvMysqldump" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvMysqldump" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvMysqldump(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvCSVdump__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - char arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - char val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvCSVdump",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvCSVdump" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvCSVdump" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvCSVdump" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - ecode4 = SWIG_AsVal_char(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvCSVdump" "', argument " "4"" of type '" "char""'"); - } - arg4 = static_cast< char >(val4); - result = (int)pvCSVdump(arg1,arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvCSVdump__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvCSVdump",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvCSVdump" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvCSVdump" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvCSVdump" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvCSVdump(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvCSVdump(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvCSVdump__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_char(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvCSVdump__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvCSVdump'.\n" - " Possible C/C++ prototypes are:\n" - " pvCSVdump(PARAM *,int,char const *,char)\n" - " pvCSVdump(PARAM *,int,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvCSVcreate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvCSVcreate",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvCSVcreate" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvCSVcreate" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvCSVcreate" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvCSVcreate(arg1,(char const *)arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvCSV__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - char arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - char val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvCSV",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvCSV" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvCSV" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvCSV" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - ecode4 = SWIG_AsVal_char(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvCSV" "', argument " "4"" of type '" "char""'"); - } - arg4 = static_cast< char >(val4); - result = (int)pvCSV(arg1,arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvCSV__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvCSV",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvCSV" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvCSV" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvCSV" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvCSV(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvCSV(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvCSV__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_char(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvCSV__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvCSV'.\n" - " Possible C/C++ prototypes are:\n" - " pvCSV(PARAM *,int,char const *,char)\n" - " pvCSV(PARAM *,int,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvSetListViewText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - int arg4 ; - char *arg5 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetListViewText",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetListViewText" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetListViewText" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetListViewText" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetListViewText" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvSetListViewText" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - result = (int)pvSetListViewText(arg1,arg2,(char const *)arg3,arg4,(char const *)arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvListViewPrintf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - int arg4 ; - char *arg5 = (char *) 0 ; - void *arg6 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvListViewPrintf",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvListViewPrintf" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvListViewPrintf" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvListViewPrintf" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvListViewPrintf" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvListViewPrintf" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - result = (int)pvListViewPrintf(arg1,arg2,(char const *)arg3,arg4,(char const *)arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvListViewPrintf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,5); - varargs = PyTuple_GetSlice(args,5,PyTuple_Size(args)); - resultobj = _wrap_pvListViewPrintf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_pvListViewSetSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvListViewSetSelected",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvListViewSetSelected" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvListViewSetSelected" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvListViewSetSelected" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvListViewSetSelected" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvListViewSetSelected" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvListViewSetSelected(arg1,arg2,(char const *)arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvListBoxSetSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvListBoxSetSelected",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvListBoxSetSelected" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvListBoxSetSelected" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvListBoxSetSelected" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvListBoxSetSelected" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvListBoxSetSelected(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetColumnWidth",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetColumnWidth" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetColumnWidth" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetColumnWidth" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetColumnWidth" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSetColumnWidth(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetRowHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetRowHeight",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetRowHeight" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetRowHeight" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetRowHeight" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetRowHeight" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSetRowHeight(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetWordWrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetWordWrap",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetWordWrap" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetWordWrap" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetWordWrap" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetWordWrap(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetPixmap__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetPixmap",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetPixmap" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetPixmap" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetPixmap" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetPixmap" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSetPixmap(arg1,arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetPixmap__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetPixmap",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetPixmap" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetPixmap" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetPixmap" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvSetPixmap(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetPixmap(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvSetPixmap__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetPixmap__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvSetPixmap'.\n" - " Possible C/C++ prototypes are:\n" - " pvSetPixmap(PARAM *,int,char const *,int)\n" - " pvSetPixmap(PARAM *,int,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvSetTablePixmap__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - char *arg5 = (char *) 0 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvSetTablePixmap",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTablePixmap" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTablePixmap" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetTablePixmap" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetTablePixmap" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvSetTablePixmap" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvSetTablePixmap" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvSetTablePixmap(arg1,arg2,arg3,arg4,(char const *)arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTablePixmap__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - char *arg5 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetTablePixmap",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTablePixmap" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTablePixmap" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetTablePixmap" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetTablePixmap" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvSetTablePixmap" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - result = (int)pvSetTablePixmap(arg1,arg2,arg3,arg4,(char const *)arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTablePixmap(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[4], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvSetTablePixmap__SWIG_1(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[4], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetTablePixmap__SWIG_0(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvSetTablePixmap'.\n" - " Possible C/C++ prototypes are:\n" - " pvSetTablePixmap(PARAM *,int,int,int,char const *,int)\n" - " pvSetTablePixmap(PARAM *,int,int,int,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvSetSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetSource",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetSource" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetSource" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetSource" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvSetSource(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetImage",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetImage" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetImage" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetImage" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetImage" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSetImage(arg1,arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetImage",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetImage" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetImage" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetImage" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvSetImage(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetImage(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvSetImage__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetImage__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvSetImage'.\n" - " Possible C/C++ prototypes are:\n" - " pvSetImage(PARAM *,int,char const *,int)\n" - " pvSetImage(PARAM *,int,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvSetBufferedJpgImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - unsigned char *arg3 = (unsigned char *) 0 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetBufferedJpgImage",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetBufferedJpgImage" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetBufferedJpgImage" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetBufferedJpgImage" "', argument " "3"" of type '" "unsigned char const *""'"); - } - arg3 = reinterpret_cast< unsigned char * >(argp3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetBufferedJpgImage" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetBufferedJpgImage" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetBufferedJpgImage(arg1,arg2,(unsigned char const *)arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetBufferedJpgImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - unsigned char *arg3 = (unsigned char *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetBufferedJpgImage",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetBufferedJpgImage" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetBufferedJpgImage" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetBufferedJpgImage" "', argument " "3"" of type '" "unsigned char const *""'"); - } - arg3 = reinterpret_cast< unsigned char * >(argp3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetBufferedJpgImage" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSetBufferedJpgImage(arg1,arg2,(unsigned char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetBufferedJpgImage(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetBufferedJpgImage__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetBufferedJpgImage__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvSetBufferedJpgImage'.\n" - " Possible C/C++ prototypes are:\n" - " pvSetBufferedJpgImage(PARAM *,int,unsigned char const *,int,int)\n" - " pvSetBufferedJpgImage(PARAM *,int,unsigned char const *,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvSetBufferTransparency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetBufferTransparency",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetBufferTransparency" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetBufferTransparency" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetBufferTransparency" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetBufferTransparency(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetBackgroundColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetBackgroundColor",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetBackgroundColor" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetBackgroundColor" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetBackgroundColor" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetBackgroundColor" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetBackgroundColor" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetBackgroundColor(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetPaletteBackgroundColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetPaletteBackgroundColor",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetPaletteBackgroundColor" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetPaletteBackgroundColor" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetPaletteBackgroundColor" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetPaletteBackgroundColor" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetPaletteBackgroundColor" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetPaletteBackgroundColor(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetPaletteForegroundColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetPaletteForegroundColor",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetPaletteForegroundColor" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetPaletteForegroundColor" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetPaletteForegroundColor" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetPaletteForegroundColor" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetPaletteForegroundColor" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetPaletteForegroundColor(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetFontColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetFontColor",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetFontColor" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetFontColor" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetFontColor" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetFontColor" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetFontColor" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetFontColor(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:pvSetFont",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetFont" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetFont" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetFont" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetFont" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetFont" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvSetFont" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "pvSetFont" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "pvSetFont" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - result = (int)pvSetFont(arg1,arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvDisplayNum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvDisplayNum",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvDisplayNum" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvDisplayNum" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvDisplayNum" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvDisplayNum(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvDisplayFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvDisplayFloat",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvDisplayFloat" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvDisplayFloat" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvDisplayFloat" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)pvDisplayFloat(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvDisplayStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvDisplayStr",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvDisplayStr" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvDisplayStr" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvDisplayStr" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvDisplayStr(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddTab(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvAddTab",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddTab" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvAddTab" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvAddTab" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvAddTab" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)pvAddTab(arg1,arg2,arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetListViewPixmap__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvSetListViewPixmap",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetListViewPixmap" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetListViewPixmap" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetListViewPixmap" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvSetListViewPixmap" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetListViewPixmap" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvSetListViewPixmap" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvSetListViewPixmap(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetListViewPixmap__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetListViewPixmap",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetListViewPixmap" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetListViewPixmap" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetListViewPixmap" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvSetListViewPixmap" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetListViewPixmap" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetListViewPixmap(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetListViewPixmap(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetListViewPixmap__SWIG_1(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetListViewPixmap__SWIG_0(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvSetListViewPixmap'.\n" - " Possible C/C++ prototypes are:\n" - " pvSetListViewPixmap(PARAM *,int,char const *,char const *,int,int)\n" - " pvSetListViewPixmap(PARAM *,int,char const *,char const *,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvRemoveListViewItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvRemoveListViewItem",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRemoveListViewItem" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRemoveListViewItem" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvRemoveListViewItem" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvRemoveListViewItem(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvRemoveIconViewItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvRemoveIconViewItem",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRemoveIconViewItem" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRemoveIconViewItem" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvRemoveIconViewItem" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvRemoveIconViewItem(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetIconViewItem__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetIconViewItem",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetIconViewItem" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetIconViewItem" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetIconViewItem" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvSetIconViewItem" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetIconViewItem" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetIconViewItem(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetIconViewItem__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetIconViewItem",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetIconViewItem" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetIconViewItem" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetIconViewItem" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvSetIconViewItem" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)pvSetIconViewItem(arg1,arg2,(char const *)arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetIconViewItem(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvSetIconViewItem__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetIconViewItem__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvSetIconViewItem'.\n" - " Possible C/C++ prototypes are:\n" - " pvSetIconViewItem(PARAM *,int,char const *,char const *,int)\n" - " pvSetIconViewItem(PARAM *,int,char const *,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvSetDateOrder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetDateOrder",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetDateOrder" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetDateOrder" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetDateOrder" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetDateOrder(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetDate",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetDate" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetDate" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetDate" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetDate" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetDate" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetDate(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMinDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetMinDate",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMinDate" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMinDate" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMinDate" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetMinDate" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetMinDate" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetMinDate(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMaxDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetMaxDate",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMaxDate" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMaxDate" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMaxDate" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetMaxDate" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetMaxDate" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetMaxDate(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTime__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvSetTime",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTime" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTime" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetTime" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetTime" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetTime" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvSetTime" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvSetTime(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTime__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetTime",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTime" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTime" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetTime" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetTime" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetTime" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetTime(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTime__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetTime",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTime" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTime" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetTime" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetTime" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSetTime(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTime(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetTime__SWIG_2(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetTime__SWIG_1(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetTime__SWIG_0(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvSetTime'.\n" - " Possible C/C++ prototypes are:\n" - " pvSetTime(PARAM *,int,int,int,int,int)\n" - " pvSetTime(PARAM *,int,int,int,int)\n" - " pvSetTime(PARAM *,int,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvSetMinTime__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvSetMinTime",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMinTime" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMinTime" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMinTime" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetMinTime" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetMinTime" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvSetMinTime" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvSetMinTime(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMinTime__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetMinTime",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMinTime" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMinTime" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMinTime" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetMinTime" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetMinTime" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetMinTime(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMinTime__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetMinTime",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMinTime" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMinTime" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMinTime" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetMinTime" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSetMinTime(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMinTime(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetMinTime__SWIG_2(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetMinTime__SWIG_1(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetMinTime__SWIG_0(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvSetMinTime'.\n" - " Possible C/C++ prototypes are:\n" - " pvSetMinTime(PARAM *,int,int,int,int,int)\n" - " pvSetMinTime(PARAM *,int,int,int,int)\n" - " pvSetMinTime(PARAM *,int,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvSetMaxTime__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvSetMaxTime",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMaxTime" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMaxTime" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMaxTime" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetMaxTime" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetMaxTime" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvSetMaxTime" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvSetMaxTime(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMaxTime__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetMaxTime",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMaxTime" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMaxTime" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMaxTime" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetMaxTime" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetMaxTime" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetMaxTime(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMaxTime__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetMaxTime",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMaxTime" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMaxTime" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMaxTime" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetMaxTime" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSetMaxTime(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMaxTime(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetMaxTime__SWIG_2(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetMaxTime__SWIG_1(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetMaxTime__SWIG_0(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvSetMaxTime'.\n" - " Possible C/C++ prototypes are:\n" - " pvSetMaxTime(PARAM *,int,int,int,int,int)\n" - " pvSetMaxTime(PARAM *,int,int,int,int)\n" - " pvSetMaxTime(PARAM *,int,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvEnsureCellVisible__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvEnsureCellVisible",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvEnsureCellVisible" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvEnsureCellVisible" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvEnsureCellVisible" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvEnsureCellVisible" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvEnsureCellVisible(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvEnsureCellVisible__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvEnsureCellVisible",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvEnsureCellVisible" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvEnsureCellVisible" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvEnsureCellVisible" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvEnsureCellVisible(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvEnsureCellVisible(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvEnsureCellVisible__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvEnsureCellVisible__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvEnsureCellVisible'.\n" - " Possible C/C++ prototypes are:\n" - " pvEnsureCellVisible(PARAM *,int,int,int)\n" - " pvEnsureCellVisible(PARAM *,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvMoveCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvMoveCursor",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvMoveCursor" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvMoveCursor" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvMoveCursor" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvMoveCursor(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvScrollToAnchor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvScrollToAnchor",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvScrollToAnchor" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvScrollToAnchor" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvScrollToAnchor" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvScrollToAnchor(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetZoomFactor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetZoomFactor",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetZoomFactor" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetZoomFactor" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetZoomFactor" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)pvSetZoomFactor(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPrintHtmlOnPrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvPrintHtmlOnPrinter",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvPrintHtmlOnPrinter" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvPrintHtmlOnPrinter" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvPrintHtmlOnPrinter(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetWidgetProperty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetWidgetProperty",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetWidgetProperty" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetWidgetProperty" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetWidgetProperty" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvSetWidgetProperty" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)pvSetWidgetProperty(arg1,arg2,(char const *)arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPassThroughOneJpegFrame__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvPassThroughOneJpegFrame",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvPassThroughOneJpegFrame" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvPassThroughOneJpegFrame" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvPassThroughOneJpegFrame" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvPassThroughOneJpegFrame" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvPassThroughOneJpegFrame" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvPassThroughOneJpegFrame(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPassThroughOneJpegFrame__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvPassThroughOneJpegFrame",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvPassThroughOneJpegFrame" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvPassThroughOneJpegFrame" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvPassThroughOneJpegFrame" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvPassThroughOneJpegFrame" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvPassThroughOneJpegFrame(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPassThroughOneJpegFrame__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvPassThroughOneJpegFrame",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvPassThroughOneJpegFrame" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvPassThroughOneJpegFrame" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvPassThroughOneJpegFrame" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvPassThroughOneJpegFrame(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPassThroughOneJpegFrame(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvPassThroughOneJpegFrame__SWIG_2(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvPassThroughOneJpegFrame__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvPassThroughOneJpegFrame__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvPassThroughOneJpegFrame'.\n" - " Possible C/C++ prototypes are:\n" - " pvPassThroughOneJpegFrame(PARAM *,int,int,int,int)\n" - " pvPassThroughOneJpegFrame(PARAM *,int,int,int)\n" - " pvPassThroughOneJpegFrame(PARAM *,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvSendJpegFrame__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - unsigned char *arg3 = (unsigned char *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSendJpegFrame",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSendJpegFrame" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSendJpegFrame" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSendJpegFrame" "', argument " "3"" of type '" "unsigned char *""'"); - } - arg3 = reinterpret_cast< unsigned char * >(argp3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSendJpegFrame" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSendJpegFrame(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSendJpegFrame__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - unsigned char *arg3 = (unsigned char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSendJpegFrame",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSendJpegFrame" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSendJpegFrame" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSendJpegFrame" "', argument " "3"" of type '" "unsigned char *""'"); - } - arg3 = reinterpret_cast< unsigned char * >(argp3); - result = (int)pvSendJpegFrame(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSendJpegFrame(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvSendJpegFrame__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSendJpegFrame__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvSendJpegFrame'.\n" - " Possible C/C++ prototypes are:\n" - " pvSendJpegFrame(PARAM *,int,unsigned char *,int)\n" - " pvSendJpegFrame(PARAM *,int,unsigned char *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvSendRGBA__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - unsigned char *arg3 = (unsigned char *) 0 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvSendRGBA",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSendRGBA" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSendRGBA" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSendRGBA" "', argument " "3"" of type '" "unsigned char const *""'"); - } - arg3 = reinterpret_cast< unsigned char * >(argp3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSendRGBA" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSendRGBA" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvSendRGBA" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvSendRGBA(arg1,arg2,(unsigned char const *)arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSendRGBA__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - unsigned char *arg3 = (unsigned char *) 0 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSendRGBA",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSendRGBA" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSendRGBA" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSendRGBA" "', argument " "3"" of type '" "unsigned char const *""'"); - } - arg3 = reinterpret_cast< unsigned char * >(argp3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSendRGBA" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSendRGBA" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSendRGBA(arg1,arg2,(unsigned char const *)arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSendRGBA(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSendRGBA__SWIG_1(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSendRGBA__SWIG_0(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvSendRGBA'.\n" - " Possible C/C++ prototypes are:\n" - " pvSendRGBA(PARAM *,int,unsigned char const *,int,int,int)\n" - " pvSendRGBA(PARAM *,int,unsigned char const *,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvSaveDrawBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSaveDrawBuffer",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSaveDrawBuffer" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSaveDrawBuffer" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSaveDrawBuffer" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvSaveDrawBuffer(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvText",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvText" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvText" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvText(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvRequestJpeg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvRequestJpeg",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRequestJpeg" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRequestJpeg" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvRequestJpeg(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvRequestGeometry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvRequestGeometry",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRequestGeometry" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRequestGeometry" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvRequestGeometry(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvRequestParentWidgetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvRequestParentWidgetId",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRequestParentWidgetId" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRequestParentWidgetId" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvRequestParentWidgetId(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvSelection",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSelection" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSelection" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvSelection(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvRequestSvgBoundsOnElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvRequestSvgBoundsOnElement",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRequestSvgBoundsOnElement" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRequestSvgBoundsOnElement" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvRequestSvgBoundsOnElement" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvRequestSvgBoundsOnElement(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvRequestSvgMatrixForElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvRequestSvgMatrixForElement",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRequestSvgMatrixForElement" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRequestSvgMatrixForElement" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvRequestSvgMatrixForElement" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvRequestSvgMatrixForElement(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvMoveContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvMoveContent",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvMoveContent" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvMoveContent" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvMoveContent" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvMoveContent(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetGeometry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvSetGeometry",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetGeometry" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetGeometry" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetGeometry" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetGeometry" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetGeometry" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvSetGeometry" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvSetGeometry(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMinSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetMinSize",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMinSize" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMinSize" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMinSize" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetMinSize" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSetMinSize(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMaxSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetMaxSize",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMaxSize" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMaxSize" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMaxSize" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetMaxSize" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSetMaxSize(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetAlignment",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetAlignment" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetAlignment" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetAlignment" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetAlignment(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetChecked",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetChecked" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetChecked" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetChecked" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetChecked(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvMove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvMove",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvMove" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvMove" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvMove" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvMove" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvMove(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvResize",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvResize" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvResize" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvResize" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvResize" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvResize(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvHide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvHide",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvHide" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvHide" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvHide(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvShow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvShow",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvShow" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvShow" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvShow(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetParent",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetParent" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetParent" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetParent" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetParent(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMultiSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetMultiSelection",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMultiSelection" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMultiSelection" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMultiSelection" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetMultiSelection(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetEchoMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetEchoMode",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetEchoMode" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetEchoMode" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetEchoMode" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetEchoMode(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetEditable",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetEditable" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetEditable" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetEditable" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetEditable(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetEnabled",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetEnabled" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetEnabled" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetEnabled" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetEnabled(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvSetFocus",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetFocus" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetFocus" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvSetFocus(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTableSetEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvTableSetEnabled",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTableSetEnabled" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvTableSetEnabled" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvTableSetEnabled" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvTableSetEnabled" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvTableSetEnabled" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvTableSetEnabled(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTableSetHeaderResizeEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvTableSetHeaderResizeEnabled",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTableSetHeaderResizeEnabled" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvTableSetHeaderResizeEnabled" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvTableSetHeaderResizeEnabled" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvTableSetHeaderResizeEnabled" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvTableSetHeaderResizeEnabled" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvTableSetHeaderResizeEnabled(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetSorting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetSorting",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetSorting" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetSorting" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetSorting" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetSorting" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSetSorting(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTabPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetTabPosition",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTabPosition" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTabPosition" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetTabPosition" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetTabPosition(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvEnableTabBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvEnableTabBar",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvEnableTabBar" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvEnableTabBar" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvEnableTabBar" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvEnableTabBar(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetNumRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetNumRows",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetNumRows" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetNumRows" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetNumRows" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetNumRows(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetNumCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetNumCols",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetNumCols" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetNumCols" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetNumCols" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetNumCols(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvInsertRows__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvInsertRows",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvInsertRows" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvInsertRows" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvInsertRows" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvInsertRows" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvInsertRows(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvInsertRows__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvInsertRows",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvInsertRows" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvInsertRows" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvInsertRows" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvInsertRows(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvInsertRows(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvInsertRows__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvInsertRows__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvInsertRows'.\n" - " Possible C/C++ prototypes are:\n" - " pvInsertRows(PARAM *,int,int,int)\n" - " pvInsertRows(PARAM *,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvInsertColumns__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvInsertColumns",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvInsertColumns" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvInsertColumns" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvInsertColumns" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvInsertColumns" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvInsertColumns(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvInsertColumns__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvInsertColumns",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvInsertColumns" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvInsertColumns" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvInsertColumns" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvInsertColumns(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvInsertColumns(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvInsertColumns__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvInsertColumns__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvInsertColumns'.\n" - " Possible C/C++ prototypes are:\n" - " pvInsertColumns(PARAM *,int,int,int)\n" - " pvInsertColumns(PARAM *,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvRemoveRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvRemoveRow",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRemoveRow" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRemoveRow" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvRemoveRow" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvRemoveRow(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvRemoveColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvRemoveColumn",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRemoveColumn" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRemoveColumn" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvRemoveColumn" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvRemoveColumn(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetCurrentItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetCurrentItem",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetCurrentItem" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetCurrentItem" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetCurrentItem" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetCurrentItem(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTimeEditDisplay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvSetTimeEditDisplay",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTimeEditDisplay" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTimeEditDisplay" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetTimeEditDisplay" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetTimeEditDisplay" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetTimeEditDisplay" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvSetTimeEditDisplay" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvSetTimeEditDisplay(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvListViewEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvListViewEnsureVisible",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvListViewEnsureVisible" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvListViewEnsureVisible" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvListViewEnsureVisible" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvListViewEnsureVisible(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvListViewSetOpen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvListViewSetOpen",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvListViewSetOpen" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvListViewSetOpen" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvListViewSetOpen" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvListViewSetOpen" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvListViewSetOpen(arg1,arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvListViewSetHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvListViewSetHidden",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvListViewSetHidden" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvListViewSetHidden" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvListViewSetHidden" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvListViewSetHidden" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvListViewSetHidden(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvListViewSetStandardPopupMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvListViewSetStandardPopupMenu",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvListViewSetStandardPopupMenu" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvListViewSetStandardPopupMenu" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvListViewSetStandardPopupMenu" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvListViewSetStandardPopupMenu(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvSetStyle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetStyle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetStyle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetStyle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetStyle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetStyle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvSetStyle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvSetStyle(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMovie(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetMovie",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMovie" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMovie" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMovie" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvSetMovie" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)pvSetMovie(arg1,arg2,arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvMovieControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvMovieControl",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvMovieControl" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvMovieControl" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvMovieControl" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvMovieControl(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvMovieSpeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvMovieSpeed",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvMovieSpeed" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvMovieSpeed" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvMovieSpeed" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvMovieSpeed(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddTabIcon__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvAddTabIcon",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddTabIcon" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvAddTabIcon" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvAddTabIcon" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvAddTabIcon" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvAddTabIcon" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvAddTabIcon(arg1,arg2,arg3,(char const *)arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddTabIcon__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvAddTabIcon",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddTabIcon" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvAddTabIcon" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvAddTabIcon" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvAddTabIcon" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)pvAddTabIcon(arg1,arg2,arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddTabIcon(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvAddTabIcon__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvAddTabIcon__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvAddTabIcon'.\n" - " Possible C/C++ prototypes are:\n" - " pvAddTabIcon(PARAM *,int,int,char const *,int)\n" - " pvAddTabIcon(PARAM *,int,int,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvSetCellWidget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetCellWidget",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetCellWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetCellWidget" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetCellWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetCellWidget" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetCellWidget" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetCellWidget(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetContentsMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvSetContentsMargins",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetContentsMargins" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetContentsMargins" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetContentsMargins" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetContentsMargins" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetContentsMargins" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvSetContentsMargins" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvSetContentsMargins(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetSpacing",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetSpacing" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetSpacing" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetSpacing" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetSpacing(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvVtkTcl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvVtkTcl",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvVtkTcl" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvVtkTcl" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvVtkTcl" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvVtkTcl(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvVtkTclPrintf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvVtkTclPrintf",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvVtkTclPrintf" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvVtkTclPrintf" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvVtkTclPrintf" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvVtkTclPrintf(arg1,arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvVtkTclPrintf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,3); - varargs = PyTuple_GetSlice(args,3,PyTuple_Size(args)); - resultobj = _wrap_pvVtkTclPrintf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_pvVtkTclScript(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvVtkTclScript",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvVtkTclScript" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvVtkTclScript" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvVtkTclScript" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvVtkTclScript(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvHyperlink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvHyperlink",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvHyperlink" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvHyperlink" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvHyperlink(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSendUserEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSendUserEvent",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSendUserEvent" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSendUserEvent" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSendUserEvent" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvSendUserEvent(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWriteFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvWriteFile",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWriteFile" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvWriteFile" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvWriteFile" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvWriteFile" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvWriteFile(arg1,(char const *)arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvCloseFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvCloseFile",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvCloseFile" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvCloseFile(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvGetTextParam(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvGetTextParam",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvGetTextParam" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvGetTextParam" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (char *)pvGetTextParam(arg1,(char const *)arg2); - resultobj = SWIG_FromCharPtr((const char *)result); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvGetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvGetText",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvGetText" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvGetText" "', argument " "2"" of type '" "char *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvGetText((char const *)arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvParseEventStruct(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PARSE_EVENT_STRUCT *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvParseEventStruct",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvParseEventStruct" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvParseEventStruct" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (PARSE_EVENT_STRUCT *)pvParseEventStruct(arg1,(char const *)arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PARSE_EVENT_STRUCT, 0 | 0 ); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvParseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int *arg2 = (int *) 0 ; - char *arg3 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvParseEvent",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvParseEvent" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvParseEvent" "', argument " "2"" of type '" "int *""'"); - } - arg2 = reinterpret_cast< int * >(argp2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvParseEvent" "', argument " "3"" of type '" "char *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvParseEvent((char const *)arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvCopyToClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvCopyToClipboard",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvCopyToClipboard" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvCopyToClipboard" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvCopyToClipboard(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPrint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvPrint",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvPrint" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvPrint" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvPrint(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSave__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvSave",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSave" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSave" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvSave(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSave__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSave",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSave" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSave" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSave" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvSave(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSave(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSave__SWIG_0(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvSave__SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvSave'.\n" - " Possible C/C++ prototypes are:\n" - " pvSave(PARAM *,int)\n" - " pvSave(PARAM *,int,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvSaveAsBmp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSaveAsBmp",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSaveAsBmp" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSaveAsBmp" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSaveAsBmp" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvSaveAsBmp(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvHtmlOrSvgDump(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvHtmlOrSvgDump",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvHtmlOrSvgDump" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvHtmlOrSvgDump" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvHtmlOrSvgDump" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvHtmlOrSvgDump(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvRenderTreeDump(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvRenderTreeDump",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRenderTreeDump" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRenderTreeDump" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvRenderTreeDump" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvRenderTreeDump(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSendFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvSendFile",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSendFile" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvSendFile" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvSendFile(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvDownloadFileAs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvDownloadFileAs",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvDownloadFileAs" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvDownloadFileAs" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvDownloadFileAs" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvDownloadFileAs(arg1,(char const *)arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvDownloadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvDownloadFile",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvDownloadFile" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvDownloadFile" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvDownloadFile(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSendHttpChunks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvSendHttpChunks",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSendHttpChunks" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvSendHttpChunks" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvSendHttpChunks(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSendHttpContentLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvSendHttpContentLength",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSendHttpContentLength" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvSendHttpContentLength" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvSendHttpContentLength(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMaxClientsPerIpAdr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvSetMaxClientsPerIpAdr",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pvSetMaxClientsPerIpAdr" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (int)pvSetMaxClientsPerIpAdr(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvMaxClientsPerIpAdr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int result; - - if (!PyArg_ParseTuple(args,(char *)":pvMaxClientsPerIpAdr")) SWIG_fail; - result = (int)pvMaxClientsPerIpAdr(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMaxClients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvSetMaxClients",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pvSetMaxClients" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (int)pvSetMaxClients(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvMaxClients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int result; - - if (!PyArg_ParseTuple(args,(char *)":pvMaxClients")) SWIG_fail; - result = (int)pvMaxClients(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvGetAdrTableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvAddressTableItem *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":pvGetAdrTableItem")) SWIG_fail; - result = (pvAddressTableItem *)pvGetAdrTableItem(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pvAddressTableItem, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvClearMessageQueue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvClearMessageQueue",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvClearMessageQueue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvClearMessageQueue(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvtcpsend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvtcpsend",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvtcpsend" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvtcpsend" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvtcpsend" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvtcpsend(arg1,(char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvtcpsendstring(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvtcpsendstring",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvtcpsendstring" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvtcpsendstring" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvtcpsendstring(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvtcpsend_binary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvtcpsend_binary",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvtcpsend_binary" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvtcpsend_binary" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvtcpsend_binary" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvtcpsend_binary(arg1,(char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvtcpreceive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvtcpreceive",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvtcpreceive" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvtcpreceive" "', argument " "2"" of type '" "char *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvtcpreceive" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvtcpreceive(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvtcpreceive_binary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvtcpreceive_binary",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvtcpreceive_binary" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvtcpreceive_binary" "', argument " "2"" of type '" "char *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvtcpreceive_binary" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvtcpreceive_binary(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvGlBegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvGlBegin",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvGlBegin" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvGlBegin" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvGlBegin(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_glFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - glFont *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_glFont")) SWIG_fail; - result = (glFont *)new glFont(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_glFont, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_glFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - glFont *arg1 = (glFont *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_glFont",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_glFont, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_glFont" "', argument " "1"" of type '" "glFont *""'"); - } - arg1 = reinterpret_cast< glFont * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_glFont_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - glFont *arg1 = (glFont *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:glFont_read",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_glFont, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "glFont_read" "', argument " "1"" of type '" "glFont *""'"); - } - arg1 = reinterpret_cast< glFont * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "glFont_read" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->read((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_glFont_lineHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - glFont *arg1 = (glFont *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:glFont_lineHeight",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_glFont, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "glFont_lineHeight" "', argument " "1"" of type '" "glFont *""'"); - } - arg1 = reinterpret_cast< glFont * >(argp1); - result = (int)(arg1)->lineHeight(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_glFont_charWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - glFont *arg1 = (glFont *) 0 ; - unsigned char arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned char val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:glFont_charWidth",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_glFont, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "glFont_charWidth" "', argument " "1"" of type '" "glFont *""'"); - } - arg1 = reinterpret_cast< glFont * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "glFont_charWidth" "', argument " "2"" of type '" "unsigned char""'"); - } - arg2 = static_cast< unsigned char >(val2); - result = (int)(arg1)->charWidth(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_glFont_stringWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - glFont *arg1 = (glFont *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:glFont_stringWidth",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_glFont, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "glFont_stringWidth" "', argument " "1"" of type '" "glFont *""'"); - } - arg1 = reinterpret_cast< glFont * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "glFont_stringWidth" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->stringWidth((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_glFont_drawString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - glFont *arg1 = (glFont *) 0 ; - float arg2 ; - float arg3 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:glFont_drawString",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_glFont, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "glFont_drawString" "', argument " "1"" of type '" "glFont *""'"); - } - arg1 = reinterpret_cast< glFont * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "glFont_drawString" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "glFont_drawString" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "glFont_drawString" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - (arg1)->drawString(arg2,arg3,(char const *)arg4); - resultobj = SWIG_Py_Void(); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_glFont_setZoom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - glFont *arg1 = (glFont *) 0 ; - float arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:glFont_setZoom",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_glFont, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "glFont_setZoom" "', argument " "1"" of type '" "glFont *""'"); - } - arg1 = reinterpret_cast< glFont * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "glFont_setZoom" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - (arg1)->setZoom(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_glFont_setRotation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - glFont *arg1 = (glFont *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:glFont_setRotation",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_glFont, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "glFont_setRotation" "', argument " "1"" of type '" "glFont *""'"); - } - arg1 = reinterpret_cast< glFont * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "glFont_setRotation" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - (arg1)->setRotation(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_glFont_setFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - glFont *arg1 = (glFont *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:glFont_setFontSize",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_glFont, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "glFont_setFontSize" "', argument " "1"" of type '" "glFont *""'"); - } - arg1 = reinterpret_cast< glFont * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "glFont_setFontSize" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "glFont_setFontSize" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - (arg1)->setFontSize(arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *glFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_glFont, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_pvSendOpenGL__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - GLuint *arg3 = (GLuint *) 0 ; - int arg4 ; - glFont *arg5 = (glFont *) 0 ; - glFont *arg6 = (glFont *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int val4 ; - int ecode4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvSendOpenGL",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSendOpenGL" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvSendOpenGL" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_GLuint, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSendOpenGL" "', argument " "3"" of type '" "GLuint *""'"); - } - arg3 = reinterpret_cast< GLuint * >(argp3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSendOpenGL" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_glFont, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvSendOpenGL" "', argument " "5"" of type '" "glFont *""'"); - } - arg5 = reinterpret_cast< glFont * >(argp5); - res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_glFont, 0 | 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "pvSendOpenGL" "', argument " "6"" of type '" "glFont *""'"); - } - arg6 = reinterpret_cast< glFont * >(argp6); - result = (int)pvSendOpenGL(arg1,(char const *)arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSendOpenGL__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - GLuint *arg3 = (GLuint *) 0 ; - int arg4 ; - glFont *arg5 = (glFont *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int val4 ; - int ecode4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSendOpenGL",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSendOpenGL" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvSendOpenGL" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_GLuint, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSendOpenGL" "', argument " "3"" of type '" "GLuint *""'"); - } - arg3 = reinterpret_cast< GLuint * >(argp3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSendOpenGL" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_glFont, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvSendOpenGL" "', argument " "5"" of type '" "glFont *""'"); - } - arg5 = reinterpret_cast< glFont * >(argp5); - result = (int)pvSendOpenGL(arg1,(char const *)arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSendOpenGL__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - GLuint *arg3 = (GLuint *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSendOpenGL",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSendOpenGL" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvSendOpenGL" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_GLuint, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSendOpenGL" "', argument " "3"" of type '" "GLuint *""'"); - } - arg3 = reinterpret_cast< GLuint * >(argp3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSendOpenGL" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSendOpenGL(arg1,(char const *)arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSendOpenGL(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_GLuint, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSendOpenGL__SWIG_2(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_GLuint, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_glFont, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvSendOpenGL__SWIG_1(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_GLuint, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_glFont, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_glFont, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvSendOpenGL__SWIG_0(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvSendOpenGL'.\n" - " Possible C/C++ prototypes are:\n" - " pvSendOpenGL(PARAM *,char const *,GLuint *,int,glFont *,glFont *)\n" - " pvSendOpenGL(PARAM *,char const *,GLuint *,int,glFont *)\n" - " pvSendOpenGL(PARAM *,char const *,GLuint *,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvGlEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvGlEnd",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvGlEnd" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvGlEnd(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvFileDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvFileDialog",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvFileDialog" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvFileDialog" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvFileDialog" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvFileDialog(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPopupMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvPopupMenu",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvPopupMenu" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvPopupMenu" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvPopupMenu" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvPopupMenu(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvMessageBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - int arg5 ; - int arg6 ; - int arg7 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:pvMessageBox",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvMessageBox" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvMessageBox" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvMessageBox" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvMessageBox" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvMessageBox" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvMessageBox" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "pvMessageBox" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - result = (int)pvMessageBox(arg1,arg2,arg3,(char const *)arg4,arg5,arg6,arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvInputDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvInputDialog",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvInputDialog" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvInputDialog" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvInputDialog" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvInputDialog" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)pvInputDialog(arg1,arg2,(char const *)arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvRunModalDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int (*arg4)(PARAM *) = (int (*)(PARAM *)) 0 ; - void *arg5 = (void *) 0 ; - int (*arg6)(void *) = (int (*)(void *)) 0 ; - int (*arg7)(PARAM *,void *) = (int (*)(PARAM *,void *)) 0 ; - void *arg8 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res5 ; - int res8 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:pvRunModalDialog",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRunModalDialog" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRunModalDialog" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvRunModalDialog" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - { - int res = SWIG_ConvertFunctionPtr(obj3, (void**)(&arg4), SWIGTYPE_p_f_p__PARAM___int); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "pvRunModalDialog" "', argument " "4"" of type '" "int (*)(PARAM *)""'"); - } - } - res5 = SWIG_ConvertPtr(obj4,SWIG_as_voidptrptr(&arg5), 0, 0); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvRunModalDialog" "', argument " "5"" of type '" "void *""'"); - } - { - int res = SWIG_ConvertFunctionPtr(obj5, (void**)(&arg6), SWIGTYPE_p_f_p_void__int); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "pvRunModalDialog" "', argument " "6"" of type '" "int (*)(void *)""'"); - } - } - { - int res = SWIG_ConvertFunctionPtr(obj6, (void**)(&arg7), SWIGTYPE_p_f_p__PARAM__p_void__int); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "pvRunModalDialog" "', argument " "7"" of type '" "int (*)(PARAM *,void *)""'"); - } - } - res8 = SWIG_ConvertPtr(obj7,SWIG_as_voidptrptr(&arg8), 0, 0); - if (!SWIG_IsOK(res8)) { - SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "pvRunModalDialog" "', argument " "8"" of type '" "void *""'"); - } - result = (int)pvRunModalDialog(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvRunModalDialogScript(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvRunModalDialogScript",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRunModalDialogScript" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRunModalDialogScript" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvRunModalDialogScript" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvRunModalDialogScript(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTerminateModalDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvTerminateModalDialog",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTerminateModalDialog" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvTerminateModalDialog(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvUpdateBaseWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvUpdateBaseWindow",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvUpdateBaseWindow" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvUpdateBaseWindow(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvUpdateBaseWindowOnOff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvUpdateBaseWindowOnOff",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvUpdateBaseWindowOnOff" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvUpdateBaseWindowOnOff" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvUpdateBaseWindowOnOff(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddDockWidget__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - int arg10 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - int val10 ; - int ecode10 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:pvAddDockWidget",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddDockWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvAddDockWidget" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvAddDockWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvAddDockWidget" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvAddDockWidget" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvAddDockWidget" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "pvAddDockWidget" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "pvAddDockWidget" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "pvAddDockWidget" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - ecode10 = SWIG_AsVal_int(obj9, &val10); - if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "pvAddDockWidget" "', argument " "10"" of type '" "int""'"); - } - arg10 = static_cast< int >(val10); - result = (int)pvAddDockWidget(arg1,(char const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddDockWidget__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:pvAddDockWidget",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddDockWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvAddDockWidget" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvAddDockWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvAddDockWidget" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvAddDockWidget" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvAddDockWidget" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "pvAddDockWidget" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "pvAddDockWidget" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "pvAddDockWidget" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - result = (int)pvAddDockWidget(arg1,(char const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddDockWidget__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:pvAddDockWidget",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddDockWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvAddDockWidget" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvAddDockWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvAddDockWidget" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvAddDockWidget" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvAddDockWidget" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "pvAddDockWidget" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "pvAddDockWidget" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - result = (int)pvAddDockWidget(arg1,(char const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddDockWidget__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:pvAddDockWidget",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddDockWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvAddDockWidget" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvAddDockWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvAddDockWidget" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvAddDockWidget" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvAddDockWidget" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "pvAddDockWidget" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - result = (int)pvAddDockWidget(arg1,(char const *)arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddDockWidget__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvAddDockWidget",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddDockWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvAddDockWidget" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvAddDockWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvAddDockWidget" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvAddDockWidget" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvAddDockWidget" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvAddDockWidget(arg1,(char const *)arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddDockWidget__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvAddDockWidget",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddDockWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvAddDockWidget" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvAddDockWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvAddDockWidget" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvAddDockWidget" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvAddDockWidget(arg1,(char const *)arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddDockWidget__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvAddDockWidget",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddDockWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvAddDockWidget" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvAddDockWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvAddDockWidget" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvAddDockWidget(arg1,(char const *)arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddDockWidget(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[11]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 10) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvAddDockWidget__SWIG_6(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvAddDockWidget__SWIG_5(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvAddDockWidget__SWIG_4(self, args); - } - } - } - } - } - } - } - if (argc == 7) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvAddDockWidget__SWIG_3(self, args); - } - } - } - } - } - } - } - } - if (argc == 8) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvAddDockWidget__SWIG_2(self, args); - } - } - } - } - } - } - } - } - } - if (argc == 9) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvAddDockWidget__SWIG_1(self, args); - } - } - } - } - } - } - } - } - } - } - if (argc == 10) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[9], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvAddDockWidget__SWIG_0(self, args); - } - } - } - } - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvAddDockWidget'.\n" - " Possible C/C++ prototypes are:\n" - " pvAddDockWidget(PARAM *,char const *,int,int,int,int,int,int,int,int)\n" - " pvAddDockWidget(PARAM *,char const *,int,int,int,int,int,int,int)\n" - " pvAddDockWidget(PARAM *,char const *,int,int,int,int,int,int)\n" - " pvAddDockWidget(PARAM *,char const *,int,int,int,int,int)\n" - " pvAddDockWidget(PARAM *,char const *,int,int,int,int)\n" - " pvAddDockWidget(PARAM *,char const *,int,int,int)\n" - " pvAddDockWidget(PARAM *,char const *,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvDeleteDockWidget__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvDeleteDockWidget",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvDeleteDockWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvDeleteDockWidget" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvDeleteDockWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvDeleteDockWidget(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvDeleteDockWidget__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvDeleteDockWidget",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvDeleteDockWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvDeleteDockWidget" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvDeleteDockWidget(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvDeleteDockWidget(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvDeleteDockWidget__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvDeleteDockWidget__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvDeleteDockWidget'.\n" - " Possible C/C++ prototypes are:\n" - " pvDeleteDockWidget(PARAM *,int,int)\n" - " pvDeleteDockWidget(PARAM *,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_qpwSetCurveData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - double *arg5 = (double *) 0 ; - double *arg6 = (double *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:qpwSetCurveData",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetCurveData" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetCurveData" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetCurveData" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetCurveData" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_double, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "qpwSetCurveData" "', argument " "5"" of type '" "double *""'"); - } - arg5 = reinterpret_cast< double * >(argp5); - res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_double, 0 | 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "qpwSetCurveData" "', argument " "6"" of type '" "double *""'"); - } - arg6 = reinterpret_cast< double * >(argp6); - result = (int)qpwSetCurveData(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetBufferedCurveData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qpwSetBufferedCurveData",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetBufferedCurveData" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetBufferedCurveData" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetBufferedCurveData" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qpwSetBufferedCurveData(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwReplot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:qpwReplot",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwReplot" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwReplot" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)qpwReplot(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qpwSetTitle",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetTitle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetTitle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "qpwSetTitle" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)qpwSetTitle(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetCanvasBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qpwSetCanvasBackground",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetCanvasBackground" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetCanvasBackground" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetCanvasBackground" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetCanvasBackground" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwSetCanvasBackground" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)qpwSetCanvasBackground(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwEnableOutline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qpwEnableOutline",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwEnableOutline" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwEnableOutline" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwEnableOutline" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qpwEnableOutline(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetOutlinePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qpwSetOutlinePen",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetOutlinePen" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetOutlinePen" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetOutlinePen" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetOutlinePen" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwSetOutlinePen" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)qpwSetOutlinePen(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetAutoLegend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qpwSetAutoLegend",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetAutoLegend" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetAutoLegend" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetAutoLegend" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qpwSetAutoLegend(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwEnableLegend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qpwEnableLegend",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwEnableLegend" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwEnableLegend" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwEnableLegend" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qpwEnableLegend(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetLegendPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qpwSetLegendPos",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetLegendPos" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetLegendPos" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetLegendPos" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qpwSetLegendPos(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetLegendFrameStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qpwSetLegendFrameStyle",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetLegendFrameStyle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetLegendFrameStyle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetLegendFrameStyle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qpwSetLegendFrameStyle(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwEnableGridXMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:qpwEnableGridXMin",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwEnableGridXMin" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwEnableGridXMin" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)qpwEnableGridXMin(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetGridMajPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:qpwSetGridMajPen",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetGridMajPen" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetGridMajPen" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetGridMajPen" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetGridMajPen" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwSetGridMajPen" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qpwSetGridMajPen" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)qpwSetGridMajPen(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetGridMinPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:qpwSetGridMinPen",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetGridMinPen" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetGridMinPen" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetGridMinPen" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetGridMinPen" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwSetGridMinPen" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qpwSetGridMinPen" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)qpwSetGridMinPen(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwEnableAxis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qpwEnableAxis",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwEnableAxis" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwEnableAxis" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwEnableAxis" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qpwEnableAxis(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetAxisTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qpwSetAxisTitle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetAxisTitle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetAxisTitle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetAxisTitle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "qpwSetAxisTitle" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)qpwSetAxisTitle(arg1,arg2,arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetAxisOptions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qpwSetAxisOptions",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetAxisOptions" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetAxisOptions" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetAxisOptions" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetAxisOptions" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qpwSetAxisOptions(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetAxisMaxMajor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qpwSetAxisMaxMajor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetAxisMaxMajor" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetAxisMaxMajor" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetAxisMaxMajor" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetAxisMaxMajor" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qpwSetAxisMaxMajor(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetAxisMaxMinor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qpwSetAxisMaxMinor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetAxisMaxMinor" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetAxisMaxMinor" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetAxisMaxMinor" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetAxisMaxMinor" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qpwSetAxisMaxMinor(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwInsertCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qpwInsertCurve",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwInsertCurve" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwInsertCurve" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwInsertCurve" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "qpwInsertCurve" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)qpwInsertCurve(arg1,arg2,arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwRemoveCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qpwRemoveCurve",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwRemoveCurve" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwRemoveCurve" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwRemoveCurve" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qpwRemoveCurve(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetCurvePen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:qpwSetCurvePen",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetCurvePen" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetCurvePen" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetCurvePen" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetCurvePen" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwSetCurvePen" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qpwSetCurvePen" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qpwSetCurvePen" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qpwSetCurvePen" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - result = (int)qpwSetCurvePen(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetCurvePen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:qpwSetCurvePen",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetCurvePen" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetCurvePen" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetCurvePen" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetCurvePen" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwSetCurvePen" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qpwSetCurvePen" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qpwSetCurvePen" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - result = (int)qpwSetCurvePen(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetCurvePen__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:qpwSetCurvePen",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetCurvePen" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetCurvePen" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetCurvePen" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetCurvePen" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwSetCurvePen" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qpwSetCurvePen" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)qpwSetCurvePen(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetCurvePen(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[9]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 8) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qpwSetCurvePen__SWIG_2(self, args); - } - } - } - } - } - } - } - if (argc == 7) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qpwSetCurvePen__SWIG_1(self, args); - } - } - } - } - } - } - } - } - if (argc == 8) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qpwSetCurvePen__SWIG_0(self, args); - } - } - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'qpwSetCurvePen'.\n" - " Possible C/C++ prototypes are:\n" - " qpwSetCurvePen(PARAM *,int,int,int,int,int,int,int)\n" - " qpwSetCurvePen(PARAM *,int,int,int,int,int,int)\n" - " qpwSetCurvePen(PARAM *,int,int,int,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_qpwSetCurveSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - int arg10 ; - int arg11 ; - int arg12 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - int val10 ; - int ecode10 = 0 ; - int val11 ; - int ecode11 = 0 ; - int val12 ; - int ecode12 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - PyObject * obj10 = 0 ; - PyObject * obj11 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOO:qpwSetCurveSymbol",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetCurveSymbol" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetCurveSymbol" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetCurveSymbol" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetCurveSymbol" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwSetCurveSymbol" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qpwSetCurveSymbol" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qpwSetCurveSymbol" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qpwSetCurveSymbol" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qpwSetCurveSymbol" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - ecode10 = SWIG_AsVal_int(obj9, &val10); - if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "qpwSetCurveSymbol" "', argument " "10"" of type '" "int""'"); - } - arg10 = static_cast< int >(val10); - ecode11 = SWIG_AsVal_int(obj10, &val11); - if (!SWIG_IsOK(ecode11)) { - SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "qpwSetCurveSymbol" "', argument " "11"" of type '" "int""'"); - } - arg11 = static_cast< int >(val11); - ecode12 = SWIG_AsVal_int(obj11, &val12); - if (!SWIG_IsOK(ecode12)) { - SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "qpwSetCurveSymbol" "', argument " "12"" of type '" "int""'"); - } - arg12 = static_cast< int >(val12); - result = (int)qpwSetCurveSymbol(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetCurveYAxis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qpwSetCurveYAxis",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetCurveYAxis" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetCurveYAxis" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetCurveYAxis" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetCurveYAxis" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qpwSetCurveYAxis(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwInsertMarker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qpwInsertMarker",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwInsertMarker" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwInsertMarker" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwInsertMarker" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qpwInsertMarker(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetMarkerLineStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qpwSetMarkerLineStyle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetMarkerLineStyle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetMarkerLineStyle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetMarkerLineStyle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetMarkerLineStyle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qpwSetMarkerLineStyle(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetMarkerPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - float arg4 ; - float arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - float val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qpwSetMarkerPos",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetMarkerPos" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetMarkerPos" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetMarkerPos" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetMarkerPos" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - ecode5 = SWIG_AsVal_float(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwSetMarkerPos" "', argument " "5"" of type '" "float""'"); - } - arg5 = static_cast< float >(val5); - result = (int)qpwSetMarkerPos(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetMarkerLabelAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qpwSetMarkerLabelAlign",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetMarkerLabelAlign" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetMarkerLabelAlign" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetMarkerLabelAlign" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetMarkerLabelAlign" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qpwSetMarkerLabelAlign(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetMarkerPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:qpwSetMarkerPen",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetMarkerPen" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetMarkerPen" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetMarkerPen" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetMarkerPen" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwSetMarkerPen" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qpwSetMarkerPen" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qpwSetMarkerPen" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - result = (int)qpwSetMarkerPen(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetMarkerLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qpwSetMarkerLabel",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetMarkerLabel" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetMarkerLabel" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetMarkerLabel" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "qpwSetMarkerLabel" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)qpwSetMarkerLabel(arg1,arg2,arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetMarkerFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:qpwSetMarkerFont",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetMarkerFont" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetMarkerFont" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetMarkerFont" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "qpwSetMarkerFont" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwSetMarkerFont" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qpwSetMarkerFont" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)qpwSetMarkerFont(arg1,arg2,arg3,(char const *)arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetMarkerSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - int arg10 ; - int arg11 ; - int arg12 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - int val10 ; - int ecode10 = 0 ; - int val11 ; - int ecode11 = 0 ; - int val12 ; - int ecode12 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - PyObject * obj10 = 0 ; - PyObject * obj11 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOO:qpwSetMarkerSymbol",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetMarkerSymbol" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetMarkerSymbol" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetMarkerSymbol" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetMarkerSymbol" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwSetMarkerSymbol" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qpwSetMarkerSymbol" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qpwSetMarkerSymbol" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qpwSetMarkerSymbol" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qpwSetMarkerSymbol" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - ecode10 = SWIG_AsVal_int(obj9, &val10); - if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "qpwSetMarkerSymbol" "', argument " "10"" of type '" "int""'"); - } - arg10 = static_cast< int >(val10); - ecode11 = SWIG_AsVal_int(obj10, &val11); - if (!SWIG_IsOK(ecode11)) { - SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "qpwSetMarkerSymbol" "', argument " "11"" of type '" "int""'"); - } - arg11 = static_cast< int >(val11); - ecode12 = SWIG_AsVal_int(obj11, &val12); - if (!SWIG_IsOK(ecode12)) { - SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "qpwSetMarkerSymbol" "', argument " "12"" of type '" "int""'"); - } - arg12 = static_cast< int >(val12); - result = (int)qpwSetMarkerSymbol(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwInsertLineMarker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qpwInsertLineMarker",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwInsertLineMarker" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwInsertLineMarker" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwInsertLineMarker" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "qpwInsertLineMarker" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwInsertLineMarker" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)qpwInsertLineMarker(arg1,arg2,arg3,(char const *)arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetAxisScaleDraw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qpwSetAxisScaleDraw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetAxisScaleDraw" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetAxisScaleDraw" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetAxisScaleDraw" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "qpwSetAxisScaleDraw" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)qpwSetAxisScaleDraw(arg1,arg2,arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetAxisScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - float arg4 ; - float arg5 ; - float arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - float val5 ; - int ecode5 = 0 ; - float val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:qpwSetAxisScale",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetAxisScale" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetAxisScale" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetAxisScale" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetAxisScale" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - ecode5 = SWIG_AsVal_float(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwSetAxisScale" "', argument " "5"" of type '" "float""'"); - } - arg5 = static_cast< float >(val5); - ecode6 = SWIG_AsVal_float(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qpwSetAxisScale" "', argument " "6"" of type '" "float""'"); - } - arg6 = static_cast< float >(val6); - result = (int)qpwSetAxisScale(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetZoomX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetZoomX",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetZoomX" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetZoomX" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetZoomX" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)pvSetZoomX(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetZoomY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetZoomY",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetZoomY" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetZoomY" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetZoomY" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)pvSetZoomY(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gWriteFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:gWriteFile",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gWriteFile" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (int)gWriteFile((char const *)arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gCloseFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int result; - - if (!PyArg_ParseTuple(args,(char *)":gCloseFile")) SWIG_fail; - result = (int)gCloseFile(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gBeginDraw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:gBeginDraw",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gBeginDraw" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gBeginDraw" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)gBeginDraw(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:gBox",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gBox" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gBox" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gBox" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gBox" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gBox" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)gBox(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:gRect",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gRect" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gRect" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gRect" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gRect" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gRect" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)gRect(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gEndDraw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:gEndDraw",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gEndDraw" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)gEndDraw(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gLineTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:gLineTo",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gLineTo" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gLineTo" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gLineTo" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)gLineTo(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gBufferedLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:gBufferedLine",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gBufferedLine" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)gBufferedLine(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - float *arg2 = (float *) 0 ; - float *arg3 = (float *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:gLine",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gLine" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gLine" "', argument " "2"" of type '" "float *""'"); - } - arg2 = reinterpret_cast< float * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gLine" "', argument " "3"" of type '" "float *""'"); - } - arg3 = reinterpret_cast< float * >(argp3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gLine" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)gLine(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gMoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:gMoveTo",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gMoveTo" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gMoveTo" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gMoveTo" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)gMoveTo(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gRightYAxis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - float arg2 ; - float arg3 ; - float arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:gRightYAxis",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gRightYAxis" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gRightYAxis" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gRightYAxis" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gRightYAxis" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gRightYAxis" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)gRightYAxis(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gSetColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:gSetColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gSetColor" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gSetColor" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gSetColor" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gSetColor" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)gSetColor(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gSetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:gSetWidth",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gSetWidth" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gSetWidth" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)gSetWidth(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gSetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:gSetStyle",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gSetStyle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gSetStyle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)gSetStyle(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gDrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:gDrawArc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gDrawArc" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gDrawArc" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gDrawArc" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gDrawArc" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gDrawArc" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gDrawArc" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "gDrawArc" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - result = (int)gDrawArc(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gDrawPie(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:gDrawPie",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gDrawPie" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gDrawPie" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gDrawPie" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gDrawPie" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gDrawPie" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gDrawPie" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "gDrawPie" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - result = (int)gDrawPie(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gDrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:gDrawPolygon",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gDrawPolygon" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gDrawPolygon" "', argument " "2"" of type '" "int *""'"); - } - arg2 = reinterpret_cast< int * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gDrawPolygon" "', argument " "3"" of type '" "int *""'"); - } - arg3 = reinterpret_cast< int * >(argp3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gDrawPolygon" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)gDrawPolygon(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gSetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:gSetFont",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gSetFont" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gSetFont" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gSetFont" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gSetFont" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gSetFont" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)gSetFont(arg1,(char const *)arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gSetLinestyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:gSetLinestyle",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gSetLinestyle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gSetLinestyle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)gSetLinestyle(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:gText",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gText" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gText" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gText" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gText" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gText" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)gText(arg1,arg2,arg3,(char const *)arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gTextInAxis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - float arg2 ; - float arg3 ; - char *arg4 = (char *) 0 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:gTextInAxis",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gTextInAxis" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gTextInAxis" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gTextInAxis" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gTextInAxis" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gTextInAxis" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)gTextInAxis(arg1,arg2,arg3,(char const *)arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gSetFloatFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:gSetFloatFormat",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gSetFloatFormat" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gSetFloatFormat" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)gSetFloatFormat(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gXAxis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - float arg2 ; - float arg3 ; - float arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:gXAxis",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gXAxis" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gXAxis" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gXAxis" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gXAxis" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gXAxis" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)gXAxis(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gYAxis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - float arg2 ; - float arg3 ; - float arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:gYAxis",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gYAxis" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gYAxis" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gYAxis" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gYAxis" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gYAxis" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)gYAxis(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gXGrid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:gXGrid",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gXGrid" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)gXGrid(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gYGrid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:gYGrid",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gYGrid" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)gYGrid(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gBoxWithText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - char *arg7 = (char *) 0 ; - char *arg8 = (char *) 0 ; - char *arg9 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int res7 ; - char *buf7 = 0 ; - int alloc7 = 0 ; - int res8 ; - char *buf8 = 0 ; - int alloc8 = 0 ; - int res9 ; - char *buf9 = 0 ; - int alloc9 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:gBoxWithText",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gBoxWithText" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gBoxWithText" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gBoxWithText" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gBoxWithText" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gBoxWithText" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gBoxWithText" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - res7 = SWIG_AsCharPtrAndSize(obj6, &buf7, NULL, &alloc7); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "gBoxWithText" "', argument " "7"" of type '" "char const *""'"); - } - arg7 = reinterpret_cast< char * >(buf7); - res8 = SWIG_AsCharPtrAndSize(obj7, &buf8, NULL, &alloc8); - if (!SWIG_IsOK(res8)) { - SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "gBoxWithText" "', argument " "8"" of type '" "char const *""'"); - } - arg8 = reinterpret_cast< char * >(buf8); - res9 = SWIG_AsCharPtrAndSize(obj8, &buf9, NULL, &alloc9); - if (!SWIG_IsOK(res9)) { - SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "gBoxWithText" "', argument " "9"" of type '" "char const *""'"); - } - arg9 = reinterpret_cast< char * >(buf9); - result = (int)gBoxWithText(arg1,arg2,arg3,arg4,arg5,arg6,(char const *)arg7,(char const *)arg8,(char const *)arg9); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc7 == SWIG_NEWOBJ) delete[] buf7; - if (alloc8 == SWIG_NEWOBJ) delete[] buf8; - if (alloc9 == SWIG_NEWOBJ) delete[] buf9; - return resultobj; -fail: - if (alloc7 == SWIG_NEWOBJ) delete[] buf7; - if (alloc8 == SWIG_NEWOBJ) delete[] buf8; - if (alloc9 == SWIG_NEWOBJ) delete[] buf9; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gComment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:gComment",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gComment" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gComment" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)gComment(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gPlaySVG(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:gPlaySVG",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gPlaySVG" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gPlaySVG" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)gPlaySVG(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gSocketPlaySVG(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:gSocketPlaySVG",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gSocketPlaySVG" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gSocketPlaySVG" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)gSocketPlaySVG(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gTranslate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - float arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:gTranslate",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gTranslate" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gTranslate" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gTranslate" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)gTranslate(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gRotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - float arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:gRotate",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gRotate" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gRotate" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - result = (int)gRotate(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - float arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:gScale",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gScale" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gScale" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gScale" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)gScale(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetSelector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetSelector",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetSelector" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetSelector" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetSelector" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetSelector(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPrintSvgOnPrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvPrintSvgOnPrinter",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvPrintSvgOnPrinter" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvPrintSvgOnPrinter" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvPrintSvgOnPrinter(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtScaleSetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtScaleSetTitle",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtScaleSetTitle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtScaleSetTitle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "qwtScaleSetTitle" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)qwtScaleSetTitle(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtScaleSetTitleColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtScaleSetTitleColor",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtScaleSetTitleColor" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtScaleSetTitleColor" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtScaleSetTitleColor" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtScaleSetTitleColor" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtScaleSetTitleColor" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)qwtScaleSetTitleColor(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtScaleSetTitleFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:qwtScaleSetTitleFont",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtScaleSetTitleFont" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtScaleSetTitleFont" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "qwtScaleSetTitleFont" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtScaleSetTitleFont" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtScaleSetTitleFont" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtScaleSetTitleFont" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtScaleSetTitleFont" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtScaleSetTitleFont" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - result = (int)qwtScaleSetTitleFont(arg1,arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtScaleSetTitleAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtScaleSetTitleAlignment",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtScaleSetTitleAlignment" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtScaleSetTitleAlignment" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtScaleSetTitleAlignment" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtScaleSetTitleAlignment(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtScaleSetBorderDist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtScaleSetBorderDist",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtScaleSetBorderDist" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtScaleSetBorderDist" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtScaleSetBorderDist" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtScaleSetBorderDist" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qwtScaleSetBorderDist(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtScaleSetBaselineDist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtScaleSetBaselineDist",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtScaleSetBaselineDist" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtScaleSetBaselineDist" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtScaleSetBaselineDist" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtScaleSetBaselineDist(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtScaleSetScaleDiv(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - float arg8 ; - int arg9 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - float val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:qwtScaleSetScaleDiv",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtScaleSetScaleDiv" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtScaleSetScaleDiv" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtScaleSetScaleDiv" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtScaleSetScaleDiv" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtScaleSetScaleDiv" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtScaleSetScaleDiv" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtScaleSetScaleDiv" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_float(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtScaleSetScaleDiv" "', argument " "8"" of type '" "float""'"); - } - arg8 = static_cast< float >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qwtScaleSetScaleDiv" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - result = (int)qwtScaleSetScaleDiv(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtScaleSetLabelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtScaleSetLabelFormat",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtScaleSetLabelFormat" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtScaleSetLabelFormat" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtScaleSetLabelFormat" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtScaleSetLabelFormat" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtScaleSetLabelFormat" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)qwtScaleSetLabelFormat(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtScaleSetLabelAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtScaleSetLabelAlignment",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtScaleSetLabelAlignment" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtScaleSetLabelAlignment" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtScaleSetLabelAlignment" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtScaleSetLabelAlignment(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtScaleSetLabelRotation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtScaleSetLabelRotation",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtScaleSetLabelRotation" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtScaleSetLabelRotation" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtScaleSetLabelRotation" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtScaleSetLabelRotation(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtScaleSetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtScaleSetPosition",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtScaleSetPosition" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtScaleSetPosition" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtScaleSetPosition" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtScaleSetPosition(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtThermoSetScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - float arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - float val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:qwtThermoSetScale",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtThermoSetScale" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtThermoSetScale" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtThermoSetScale" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtThermoSetScale" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - ecode5 = SWIG_AsVal_float(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtThermoSetScale" "', argument " "5"" of type '" "float""'"); - } - arg5 = static_cast< float >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtThermoSetScale" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)qwtThermoSetScale(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtThermoSetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtThermoSetOrientation",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtThermoSetOrientation" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtThermoSetOrientation" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtThermoSetOrientation" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtThermoSetOrientation" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qwtThermoSetOrientation(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtThermoSetBorderWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtThermoSetBorderWidth",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtThermoSetBorderWidth" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtThermoSetBorderWidth" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtThermoSetBorderWidth" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtThermoSetBorderWidth(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtThermoSetFillColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtThermoSetFillColor",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtThermoSetFillColor" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtThermoSetFillColor" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtThermoSetFillColor" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtThermoSetFillColor" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtThermoSetFillColor" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)qwtThermoSetFillColor(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtThermoSetAlarmColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtThermoSetAlarmColor",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtThermoSetAlarmColor" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtThermoSetAlarmColor" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtThermoSetAlarmColor" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtThermoSetAlarmColor" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtThermoSetAlarmColor" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)qwtThermoSetAlarmColor(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtThermoSetAlarmLevel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtThermoSetAlarmLevel",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtThermoSetAlarmLevel" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtThermoSetAlarmLevel" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtThermoSetAlarmLevel" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtThermoSetAlarmLevel(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtThermoSetAlarmEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtThermoSetAlarmEnabled",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtThermoSetAlarmEnabled" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtThermoSetAlarmEnabled" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtThermoSetAlarmEnabled" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtThermoSetAlarmEnabled(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtThermoSetPipeWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtThermoSetPipeWidth",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtThermoSetPipeWidth" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtThermoSetPipeWidth" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtThermoSetPipeWidth" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtThermoSetPipeWidth(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtThermoSetRange__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - float arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - float val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtThermoSetRange",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtThermoSetRange" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtThermoSetRange" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtThermoSetRange" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtThermoSetRange" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - ecode5 = SWIG_AsVal_float(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtThermoSetRange" "', argument " "5"" of type '" "float""'"); - } - arg5 = static_cast< float >(val5); - result = (int)qwtThermoSetRange(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtThermoSetRange__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtThermoSetRange",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtThermoSetRange" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtThermoSetRange" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtThermoSetRange" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtThermoSetRange" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - result = (int)qwtThermoSetRange(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtThermoSetRange(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtThermoSetRange__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtThermoSetRange__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'qwtThermoSetRange'.\n" - " Possible C/C++ prototypes are:\n" - " qwtThermoSetRange(PARAM *,int,float,float,float)\n" - " qwtThermoSetRange(PARAM *,int,float,float)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_qwtThermoSetMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtThermoSetMargin",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtThermoSetMargin" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtThermoSetMargin" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtThermoSetMargin" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtThermoSetMargin(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtThermoSetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtThermoSetValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtThermoSetValue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtThermoSetValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtThermoSetValue" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtThermoSetValue(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtKnobSetScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - float arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - float val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:qwtKnobSetScale",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtKnobSetScale" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtKnobSetScale" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtKnobSetScale" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtKnobSetScale" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - ecode5 = SWIG_AsVal_float(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtKnobSetScale" "', argument " "5"" of type '" "float""'"); - } - arg5 = static_cast< float >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtKnobSetScale" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)qwtKnobSetScale(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtKnobSetMass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtKnobSetMass",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtKnobSetMass" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtKnobSetMass" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtKnobSetMass" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtKnobSetMass(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtKnobSetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtKnobSetOrientation",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtKnobSetOrientation" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtKnobSetOrientation" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtKnobSetOrientation" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtKnobSetOrientation(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtKnobSetReadOnly(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtKnobSetReadOnly",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtKnobSetReadOnly" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtKnobSetReadOnly" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtKnobSetReadOnly" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtKnobSetReadOnly(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtKnobSetKnobWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtKnobSetKnobWidth",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtKnobSetKnobWidth" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtKnobSetKnobWidth" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtKnobSetKnobWidth" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtKnobSetKnobWidth(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtKnobSetTotalAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtKnobSetTotalAngle",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtKnobSetTotalAngle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtKnobSetTotalAngle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtKnobSetTotalAngle" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtKnobSetTotalAngle(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtKnobSetBorderWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtKnobSetBorderWidth",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtKnobSetBorderWidth" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtKnobSetBorderWidth" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtKnobSetBorderWidth" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtKnobSetBorderWidth(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtKnobSetSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtKnobSetSymbol",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtKnobSetSymbol" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtKnobSetSymbol" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtKnobSetSymbol" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtKnobSetSymbol(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtKnobSetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtKnobSetValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtKnobSetValue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtKnobSetValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtKnobSetValue" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtKnobSetValue(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCounterSetStep(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCounterSetStep",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCounterSetStep" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCounterSetStep" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCounterSetStep" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtCounterSetStep(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCounterSetMinValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCounterSetMinValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCounterSetMinValue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCounterSetMinValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCounterSetMinValue" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtCounterSetMinValue(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCounterSetMaxValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCounterSetMaxValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCounterSetMaxValue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCounterSetMaxValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCounterSetMaxValue" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtCounterSetMaxValue(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCounterSetStepButton1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCounterSetStepButton1",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCounterSetStepButton1" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCounterSetStepButton1" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCounterSetStepButton1" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtCounterSetStepButton1(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCounterSetStepButton2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCounterSetStepButton2",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCounterSetStepButton2" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCounterSetStepButton2" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCounterSetStepButton2" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtCounterSetStepButton2(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCounterSetStepButton3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCounterSetStepButton3",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCounterSetStepButton3" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCounterSetStepButton3" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCounterSetStepButton3" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtCounterSetStepButton3(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCounterSetNumButtons(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCounterSetNumButtons",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCounterSetNumButtons" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCounterSetNumButtons" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCounterSetNumButtons" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtCounterSetNumButtons(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCounterSetIncSteps(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtCounterSetIncSteps",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCounterSetIncSteps" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCounterSetIncSteps" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCounterSetIncSteps" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCounterSetIncSteps" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qwtCounterSetIncSteps(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCounterSetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCounterSetValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCounterSetValue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCounterSetValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCounterSetValue" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtCounterSetValue(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtWheelSetMass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtWheelSetMass",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtWheelSetMass" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtWheelSetMass" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtWheelSetMass" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtWheelSetMass(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtWheelSetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtWheelSetOrientation",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtWheelSetOrientation" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtWheelSetOrientation" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtWheelSetOrientation" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtWheelSetOrientation(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtWheelSetReadOnly(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtWheelSetReadOnly",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtWheelSetReadOnly" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtWheelSetReadOnly" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtWheelSetReadOnly" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtWheelSetReadOnly(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtWheelSetTotalAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtWheelSetTotalAngle",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtWheelSetTotalAngle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtWheelSetTotalAngle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtWheelSetTotalAngle" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtWheelSetTotalAngle(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtWheelSetTickCnt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtWheelSetTickCnt",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtWheelSetTickCnt" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtWheelSetTickCnt" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtWheelSetTickCnt" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtWheelSetTickCnt(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtWheelSetViewAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtWheelSetViewAngle",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtWheelSetViewAngle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtWheelSetViewAngle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtWheelSetViewAngle" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtWheelSetViewAngle(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtWheelSetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtWheelSetInternalBorder",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtWheelSetInternalBorder" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtWheelSetInternalBorder" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtWheelSetInternalBorder" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtWheelSetInternalBorder(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtWheelSetWheelWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtWheelSetWheelWidth",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtWheelSetWheelWidth" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtWheelSetWheelWidth" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtWheelSetWheelWidth" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtWheelSetWheelWidth(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtWheelSetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtWheelSetValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtWheelSetValue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtWheelSetValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtWheelSetValue" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtWheelSetValue(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtSliderSetScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - float arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - float val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:qwtSliderSetScale",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtSliderSetScale" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtSliderSetScale" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtSliderSetScale" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtSliderSetScale" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - ecode5 = SWIG_AsVal_float(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtSliderSetScale" "', argument " "5"" of type '" "float""'"); - } - arg5 = static_cast< float >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtSliderSetScale" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)qwtSliderSetScale(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtSliderSetMass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtSliderSetMass",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtSliderSetMass" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtSliderSetMass" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtSliderSetMass" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtSliderSetMass(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtSliderSetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtSliderSetOrientation",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtSliderSetOrientation" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtSliderSetOrientation" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtSliderSetOrientation" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtSliderSetOrientation(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtSliderSetReadOnly(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtSliderSetReadOnly",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtSliderSetReadOnly" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtSliderSetReadOnly" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtSliderSetReadOnly" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtSliderSetReadOnly(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtSliderSetBgStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtSliderSetBgStyle",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtSliderSetBgStyle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtSliderSetBgStyle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtSliderSetBgStyle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtSliderSetBgStyle(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtSliderSetScalePos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtSliderSetScalePos",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtSliderSetScalePos" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtSliderSetScalePos" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtSliderSetScalePos" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtSliderSetScalePos(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtSliderSetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtSliderSetThumbLength",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtSliderSetThumbLength" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtSliderSetThumbLength" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtSliderSetThumbLength" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtSliderSetThumbLength(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtSliderSetThumbWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtSliderSetThumbWidth",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtSliderSetThumbWidth" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtSliderSetThumbWidth" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtSliderSetThumbWidth" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtSliderSetThumbWidth(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtSliderSetBorderWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtSliderSetBorderWidth",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtSliderSetBorderWidth" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtSliderSetBorderWidth" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtSliderSetBorderWidth" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtSliderSetBorderWidth(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtSliderSetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtSliderSetMargins",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtSliderSetMargins" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtSliderSetMargins" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtSliderSetMargins" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtSliderSetMargins" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qwtSliderSetMargins(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtSliderSetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtSliderSetValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtSliderSetValue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtSliderSetValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtSliderSetValue" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtSliderSetValue(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetSimpleCompassRose__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - float arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - float val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtCompassSetSimpleCompassRose",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetSimpleCompassRose" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetSimpleCompassRose" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetSimpleCompassRose" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetSimpleCompassRose" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_float(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtCompassSetSimpleCompassRose" "', argument " "5"" of type '" "float""'"); - } - arg5 = static_cast< float >(val5); - result = (int)qwtCompassSetSimpleCompassRose(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetSimpleCompassRose__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtCompassSetSimpleCompassRose",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetSimpleCompassRose" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetSimpleCompassRose" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetSimpleCompassRose" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetSimpleCompassRose" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qwtCompassSetSimpleCompassRose(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetSimpleCompassRose(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetSimpleCompassRose__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetSimpleCompassRose__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'qwtCompassSetSimpleCompassRose'.\n" - " Possible C/C++ prototypes are:\n" - " qwtCompassSetSimpleCompassRose(PARAM *,int,int,int,float)\n" - " qwtCompassSetSimpleCompassRose(PARAM *,int,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetRange__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - float arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - float val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtCompassSetRange",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetRange" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetRange" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetRange" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetRange" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - ecode5 = SWIG_AsVal_float(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtCompassSetRange" "', argument " "5"" of type '" "float""'"); - } - arg5 = static_cast< float >(val5); - result = (int)qwtCompassSetRange(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetRange__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtCompassSetRange",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetRange" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetRange" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetRange" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetRange" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - result = (int)qwtCompassSetRange(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetRange(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetRange__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetRange__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'qwtCompassSetRange'.\n" - " Possible C/C++ prototypes are:\n" - " qwtCompassSetRange(PARAM *,int,float,float,float)\n" - " qwtCompassSetRange(PARAM *,int,float,float)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetMass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCompassSetMass",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetMass" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetMass" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetMass" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtCompassSetMass(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetReadOnly(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCompassSetReadOnly",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetReadOnly" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetReadOnly" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetReadOnly" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtCompassSetReadOnly(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetFrameShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCompassSetFrameShadow",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetFrameShadow" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetFrameShadow" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetFrameShadow" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtCompassSetFrameShadow(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassShowBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCompassShowBackground",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassShowBackground" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassShowBackground" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassShowBackground" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtCompassShowBackground(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetLineWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCompassSetLineWidth",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetLineWidth" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetLineWidth" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetLineWidth" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtCompassSetLineWidth(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCompassSetMode",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetMode" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetMode" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetMode" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtCompassSetMode(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetWrapping(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCompassSetWrapping",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetWrapping" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetWrapping" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetWrapping" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtCompassSetWrapping(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - float arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - float val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtCompassSetScale",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetScale" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetScale" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetScale" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetScale" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_float(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtCompassSetScale" "', argument " "5"" of type '" "float""'"); - } - arg5 = static_cast< float >(val5); - result = (int)qwtCompassSetScale(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetScaleArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtCompassSetScaleArc",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetScaleArc" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetScaleArc" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetScaleArc" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetScaleArc" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - result = (int)qwtCompassSetScaleArc(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCompassSetOrigin",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetOrigin" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetOrigin" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetOrigin" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtCompassSetOrigin(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetNeedle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - int arg10 ; - int arg11 ; - int arg12 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - int val10 ; - int ecode10 = 0 ; - int val11 ; - int ecode11 = 0 ; - int val12 ; - int ecode12 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - PyObject * obj10 = 0 ; - PyObject * obj11 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOO:qwtCompassSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtCompassSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtCompassSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtCompassSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtCompassSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qwtCompassSetNeedle" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - ecode10 = SWIG_AsVal_int(obj9, &val10); - if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "qwtCompassSetNeedle" "', argument " "10"" of type '" "int""'"); - } - arg10 = static_cast< int >(val10); - ecode11 = SWIG_AsVal_int(obj10, &val11); - if (!SWIG_IsOK(ecode11)) { - SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "qwtCompassSetNeedle" "', argument " "11"" of type '" "int""'"); - } - arg11 = static_cast< int >(val11); - ecode12 = SWIG_AsVal_int(obj11, &val12); - if (!SWIG_IsOK(ecode12)) { - SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "qwtCompassSetNeedle" "', argument " "12"" of type '" "int""'"); - } - arg12 = static_cast< int >(val12); - result = (int)qwtCompassSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetNeedle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - int arg10 ; - int arg11 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - int val10 ; - int ecode10 = 0 ; - int val11 ; - int ecode11 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - PyObject * obj10 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOO:qwtCompassSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtCompassSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtCompassSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtCompassSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtCompassSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qwtCompassSetNeedle" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - ecode10 = SWIG_AsVal_int(obj9, &val10); - if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "qwtCompassSetNeedle" "', argument " "10"" of type '" "int""'"); - } - arg10 = static_cast< int >(val10); - ecode11 = SWIG_AsVal_int(obj10, &val11); - if (!SWIG_IsOK(ecode11)) { - SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "qwtCompassSetNeedle" "', argument " "11"" of type '" "int""'"); - } - arg11 = static_cast< int >(val11); - result = (int)qwtCompassSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetNeedle__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - int arg10 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - int val10 ; - int ecode10 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:qwtCompassSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtCompassSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtCompassSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtCompassSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtCompassSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qwtCompassSetNeedle" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - ecode10 = SWIG_AsVal_int(obj9, &val10); - if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "qwtCompassSetNeedle" "', argument " "10"" of type '" "int""'"); - } - arg10 = static_cast< int >(val10); - result = (int)qwtCompassSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetNeedle__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:qwtCompassSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtCompassSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtCompassSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtCompassSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtCompassSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qwtCompassSetNeedle" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - result = (int)qwtCompassSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetNeedle__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:qwtCompassSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtCompassSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtCompassSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtCompassSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtCompassSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - result = (int)qwtCompassSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetNeedle__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:qwtCompassSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtCompassSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtCompassSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtCompassSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - result = (int)qwtCompassSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetNeedle__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:qwtCompassSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtCompassSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtCompassSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)qwtCompassSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetNeedle__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtCompassSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtCompassSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)qwtCompassSetNeedle(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetNeedle__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtCompassSetNeedle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qwtCompassSetNeedle(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetNeedle__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCompassSetNeedle",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtCompassSetNeedle(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetNeedle(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[13]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 12) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetNeedle__SWIG_9(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetNeedle__SWIG_8(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetNeedle__SWIG_7(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetNeedle__SWIG_6(self, args); - } - } - } - } - } - } - } - if (argc == 7) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetNeedle__SWIG_5(self, args); - } - } - } - } - } - } - } - } - if (argc == 8) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetNeedle__SWIG_4(self, args); - } - } - } - } - } - } - } - } - } - if (argc == 9) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetNeedle__SWIG_3(self, args); - } - } - } - } - } - } - } - } - } - } - if (argc == 10) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[9], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetNeedle__SWIG_2(self, args); - } - } - } - } - } - } - } - } - } - } - } - if (argc == 11) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[9], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[10], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetNeedle__SWIG_1(self, args); - } - } - } - } - } - } - } - } - } - } - } - } - if (argc == 12) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[9], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[10], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[11], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetNeedle__SWIG_0(self, args); - } - } - } - } - } - } - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'qwtCompassSetNeedle'.\n" - " Possible C/C++ prototypes are:\n" - " qwtCompassSetNeedle(PARAM *,int,int,int,int,int,int,int,int,int,int,int)\n" - " qwtCompassSetNeedle(PARAM *,int,int,int,int,int,int,int,int,int,int)\n" - " qwtCompassSetNeedle(PARAM *,int,int,int,int,int,int,int,int,int)\n" - " qwtCompassSetNeedle(PARAM *,int,int,int,int,int,int,int,int)\n" - " qwtCompassSetNeedle(PARAM *,int,int,int,int,int,int,int)\n" - " qwtCompassSetNeedle(PARAM *,int,int,int,int,int,int)\n" - " qwtCompassSetNeedle(PARAM *,int,int,int,int,int)\n" - " qwtCompassSetNeedle(PARAM *,int,int,int,int)\n" - " qwtCompassSetNeedle(PARAM *,int,int,int)\n" - " qwtCompassSetNeedle(PARAM *,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCompassSetValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetValue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetValue" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtCompassSetValue(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetRange__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - float arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - float val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtDialSetRange",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetRange" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetRange" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetRange" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtDialSetRange" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - ecode5 = SWIG_AsVal_float(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtDialSetRange" "', argument " "5"" of type '" "float""'"); - } - arg5 = static_cast< float >(val5); - result = (int)qwtDialSetRange(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetRange__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtDialSetRange",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetRange" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetRange" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetRange" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtDialSetRange" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - result = (int)qwtDialSetRange(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetRange(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtDialSetRange__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtDialSetRange__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'qwtDialSetRange'.\n" - " Possible C/C++ prototypes are:\n" - " qwtDialSetRange(PARAM *,int,float,float,float)\n" - " qwtDialSetRange(PARAM *,int,float,float)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetMass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtDialSetMass",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetMass" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetMass" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetMass" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtDialSetMass(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetReadOnly(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtDialSetReadOnly",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetReadOnly" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetReadOnly" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetReadOnly" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtDialSetReadOnly(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetFrameShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtDialSetFrameShadow",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetFrameShadow" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetFrameShadow" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetFrameShadow" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtDialSetFrameShadow(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialShowBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtDialShowBackground",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialShowBackground" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialShowBackground" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialShowBackground" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtDialShowBackground(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetLineWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtDialSetLineWidth",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetLineWidth" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetLineWidth" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetLineWidth" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtDialSetLineWidth(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtDialSetMode",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetMode" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetMode" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetMode" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtDialSetMode(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetWrapping(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtDialSetWrapping",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetWrapping" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetWrapping" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetWrapping" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtDialSetWrapping(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - float arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - float val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtDialSetScale",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetScale" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetScale" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetScale" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtDialSetScale" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_float(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtDialSetScale" "', argument " "5"" of type '" "float""'"); - } - arg5 = static_cast< float >(val5); - result = (int)qwtDialSetScale(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetScaleArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtDialSetScaleArc",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetScaleArc" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetScaleArc" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetScaleArc" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtDialSetScaleArc" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - result = (int)qwtDialSetScaleArc(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtDialSetOrigin",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetOrigin" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetOrigin" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetOrigin" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtDialSetOrigin(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetNeedle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - int arg10 ; - int arg11 ; - int arg12 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - int val10 ; - int ecode10 = 0 ; - int val11 ; - int ecode11 = 0 ; - int val12 ; - int ecode12 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - PyObject * obj10 = 0 ; - PyObject * obj11 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOO:qwtDialSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtDialSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtDialSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtDialSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtDialSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtDialSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qwtDialSetNeedle" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - ecode10 = SWIG_AsVal_int(obj9, &val10); - if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "qwtDialSetNeedle" "', argument " "10"" of type '" "int""'"); - } - arg10 = static_cast< int >(val10); - ecode11 = SWIG_AsVal_int(obj10, &val11); - if (!SWIG_IsOK(ecode11)) { - SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "qwtDialSetNeedle" "', argument " "11"" of type '" "int""'"); - } - arg11 = static_cast< int >(val11); - ecode12 = SWIG_AsVal_int(obj11, &val12); - if (!SWIG_IsOK(ecode12)) { - SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "qwtDialSetNeedle" "', argument " "12"" of type '" "int""'"); - } - arg12 = static_cast< int >(val12); - result = (int)qwtDialSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetNeedle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - int arg10 ; - int arg11 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - int val10 ; - int ecode10 = 0 ; - int val11 ; - int ecode11 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - PyObject * obj10 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOO:qwtDialSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtDialSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtDialSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtDialSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtDialSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtDialSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qwtDialSetNeedle" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - ecode10 = SWIG_AsVal_int(obj9, &val10); - if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "qwtDialSetNeedle" "', argument " "10"" of type '" "int""'"); - } - arg10 = static_cast< int >(val10); - ecode11 = SWIG_AsVal_int(obj10, &val11); - if (!SWIG_IsOK(ecode11)) { - SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "qwtDialSetNeedle" "', argument " "11"" of type '" "int""'"); - } - arg11 = static_cast< int >(val11); - result = (int)qwtDialSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetNeedle__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - int arg10 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - int val10 ; - int ecode10 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:qwtDialSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtDialSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtDialSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtDialSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtDialSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtDialSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qwtDialSetNeedle" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - ecode10 = SWIG_AsVal_int(obj9, &val10); - if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "qwtDialSetNeedle" "', argument " "10"" of type '" "int""'"); - } - arg10 = static_cast< int >(val10); - result = (int)qwtDialSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetNeedle__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:qwtDialSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtDialSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtDialSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtDialSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtDialSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtDialSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qwtDialSetNeedle" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - result = (int)qwtDialSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetNeedle__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:qwtDialSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtDialSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtDialSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtDialSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtDialSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtDialSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - result = (int)qwtDialSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetNeedle__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:qwtDialSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtDialSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtDialSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtDialSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtDialSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - result = (int)qwtDialSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetNeedle__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:qwtDialSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtDialSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtDialSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtDialSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)qwtDialSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetNeedle__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtDialSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtDialSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtDialSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)qwtDialSetNeedle(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetNeedle__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtDialSetNeedle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtDialSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qwtDialSetNeedle(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetNeedle__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtDialSetNeedle",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtDialSetNeedle(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetNeedle(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[13]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 12) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtDialSetNeedle__SWIG_9(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtDialSetNeedle__SWIG_8(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtDialSetNeedle__SWIG_7(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtDialSetNeedle__SWIG_6(self, args); - } - } - } - } - } - } - } - if (argc == 7) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtDialSetNeedle__SWIG_5(self, args); - } - } - } - } - } - } - } - } - if (argc == 8) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtDialSetNeedle__SWIG_4(self, args); - } - } - } - } - } - } - } - } - } - if (argc == 9) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtDialSetNeedle__SWIG_3(self, args); - } - } - } - } - } - } - } - } - } - } - if (argc == 10) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[9], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtDialSetNeedle__SWIG_2(self, args); - } - } - } - } - } - } - } - } - } - } - } - if (argc == 11) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[9], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[10], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtDialSetNeedle__SWIG_1(self, args); - } - } - } - } - } - } - } - } - } - } - } - } - if (argc == 12) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[9], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[10], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[11], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtDialSetNeedle__SWIG_0(self, args); - } - } - } - } - } - } - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'qwtDialSetNeedle'.\n" - " Possible C/C++ prototypes are:\n" - " qwtDialSetNeedle(PARAM *,int,int,int,int,int,int,int,int,int,int,int)\n" - " qwtDialSetNeedle(PARAM *,int,int,int,int,int,int,int,int,int,int)\n" - " qwtDialSetNeedle(PARAM *,int,int,int,int,int,int,int,int,int)\n" - " qwtDialSetNeedle(PARAM *,int,int,int,int,int,int,int,int)\n" - " qwtDialSetNeedle(PARAM *,int,int,int,int,int,int,int)\n" - " qwtDialSetNeedle(PARAM *,int,int,int,int,int,int)\n" - " qwtDialSetNeedle(PARAM *,int,int,int,int,int)\n" - " qwtDialSetNeedle(PARAM *,int,int,int,int)\n" - " qwtDialSetNeedle(PARAM *,int,int,int)\n" - " qwtDialSetNeedle(PARAM *,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtDialSetValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetValue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetValue" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtDialSetValue(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtAnalogClockSetTime",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetTime" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetTime" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetTime" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtAnalogClockSetTime" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtAnalogClockSetTime" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)qwtAnalogClockSetTime(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetMass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtAnalogClockSetMass",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetMass" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetMass" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetMass" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtAnalogClockSetMass(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetReadOnly(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtAnalogClockSetReadOnly",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetReadOnly" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetReadOnly" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetReadOnly" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtAnalogClockSetReadOnly(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetFrameShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtAnalogClockSetFrameShadow",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetFrameShadow" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetFrameShadow" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetFrameShadow" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtAnalogClockSetFrameShadow(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockShowBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtAnalogClockShowBackground",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockShowBackground" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockShowBackground" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockShowBackground" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtAnalogClockShowBackground(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetLineWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtAnalogClockSetLineWidth",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetLineWidth" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetLineWidth" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetLineWidth" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtAnalogClockSetLineWidth(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtAnalogClockSetMode",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetMode" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetMode" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetMode" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtAnalogClockSetMode(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetWrapping(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtAnalogClockSetWrapping",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetWrapping" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetWrapping" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetWrapping" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtAnalogClockSetWrapping(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - float arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - float val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtAnalogClockSetScale",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetScale" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetScale" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetScale" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtAnalogClockSetScale" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_float(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtAnalogClockSetScale" "', argument " "5"" of type '" "float""'"); - } - arg5 = static_cast< float >(val5); - result = (int)qwtAnalogClockSetScale(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetScaleArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtAnalogClockSetScaleArc",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetScaleArc" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetScaleArc" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetScaleArc" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtAnalogClockSetScaleArc" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - result = (int)qwtAnalogClockSetScaleArc(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtAnalogClockSetOrigin",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetOrigin" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetOrigin" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetOrigin" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtAnalogClockSetOrigin(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetNeedle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - int arg10 ; - int arg11 ; - int arg12 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - int val10 ; - int ecode10 = 0 ; - int val11 ; - int ecode11 = 0 ; - int val12 ; - int ecode12 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - PyObject * obj10 = 0 ; - PyObject * obj11 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOO:qwtAnalogClockSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtAnalogClockSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtAnalogClockSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtAnalogClockSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtAnalogClockSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtAnalogClockSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qwtAnalogClockSetNeedle" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - ecode10 = SWIG_AsVal_int(obj9, &val10); - if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "qwtAnalogClockSetNeedle" "', argument " "10"" of type '" "int""'"); - } - arg10 = static_cast< int >(val10); - ecode11 = SWIG_AsVal_int(obj10, &val11); - if (!SWIG_IsOK(ecode11)) { - SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "qwtAnalogClockSetNeedle" "', argument " "11"" of type '" "int""'"); - } - arg11 = static_cast< int >(val11); - ecode12 = SWIG_AsVal_int(obj11, &val12); - if (!SWIG_IsOK(ecode12)) { - SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "qwtAnalogClockSetNeedle" "', argument " "12"" of type '" "int""'"); - } - arg12 = static_cast< int >(val12); - result = (int)qwtAnalogClockSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetNeedle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - int arg10 ; - int arg11 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - int val10 ; - int ecode10 = 0 ; - int val11 ; - int ecode11 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - PyObject * obj10 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOO:qwtAnalogClockSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtAnalogClockSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtAnalogClockSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtAnalogClockSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtAnalogClockSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtAnalogClockSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qwtAnalogClockSetNeedle" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - ecode10 = SWIG_AsVal_int(obj9, &val10); - if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "qwtAnalogClockSetNeedle" "', argument " "10"" of type '" "int""'"); - } - arg10 = static_cast< int >(val10); - ecode11 = SWIG_AsVal_int(obj10, &val11); - if (!SWIG_IsOK(ecode11)) { - SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "qwtAnalogClockSetNeedle" "', argument " "11"" of type '" "int""'"); - } - arg11 = static_cast< int >(val11); - result = (int)qwtAnalogClockSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetNeedle__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - int arg10 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - int val10 ; - int ecode10 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:qwtAnalogClockSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtAnalogClockSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtAnalogClockSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtAnalogClockSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtAnalogClockSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtAnalogClockSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qwtAnalogClockSetNeedle" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - ecode10 = SWIG_AsVal_int(obj9, &val10); - if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "qwtAnalogClockSetNeedle" "', argument " "10"" of type '" "int""'"); - } - arg10 = static_cast< int >(val10); - result = (int)qwtAnalogClockSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetNeedle__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:qwtAnalogClockSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtAnalogClockSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtAnalogClockSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtAnalogClockSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtAnalogClockSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtAnalogClockSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qwtAnalogClockSetNeedle" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - result = (int)qwtAnalogClockSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetNeedle__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:qwtAnalogClockSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtAnalogClockSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtAnalogClockSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtAnalogClockSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtAnalogClockSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtAnalogClockSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - result = (int)qwtAnalogClockSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetNeedle__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:qwtAnalogClockSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtAnalogClockSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtAnalogClockSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtAnalogClockSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtAnalogClockSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - result = (int)qwtAnalogClockSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetNeedle__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:qwtAnalogClockSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtAnalogClockSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtAnalogClockSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtAnalogClockSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)qwtAnalogClockSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetNeedle__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtAnalogClockSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtAnalogClockSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtAnalogClockSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)qwtAnalogClockSetNeedle(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetNeedle__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtAnalogClockSetNeedle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtAnalogClockSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qwtAnalogClockSetNeedle(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetNeedle__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtAnalogClockSetNeedle",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtAnalogClockSetNeedle(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetNeedle(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[13]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 12) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtAnalogClockSetNeedle__SWIG_9(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtAnalogClockSetNeedle__SWIG_8(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtAnalogClockSetNeedle__SWIG_7(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtAnalogClockSetNeedle__SWIG_6(self, args); - } - } - } - } - } - } - } - if (argc == 7) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtAnalogClockSetNeedle__SWIG_5(self, args); - } - } - } - } - } - } - } - } - if (argc == 8) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtAnalogClockSetNeedle__SWIG_4(self, args); - } - } - } - } - } - } - } - } - } - if (argc == 9) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtAnalogClockSetNeedle__SWIG_3(self, args); - } - } - } - } - } - } - } - } - } - } - if (argc == 10) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[9], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtAnalogClockSetNeedle__SWIG_2(self, args); - } - } - } - } - } - } - } - } - } - } - } - if (argc == 11) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[9], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[10], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtAnalogClockSetNeedle__SWIG_1(self, args); - } - } - } - } - } - } - } - } - } - } - } - } - if (argc == 12) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[9], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[10], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[11], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtAnalogClockSetNeedle__SWIG_0(self, args); - } - } - } - } - } - } - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'qwtAnalogClockSetNeedle'.\n" - " Possible C/C++ prototypes are:\n" - " qwtAnalogClockSetNeedle(PARAM *,int,int,int,int,int,int,int,int,int,int,int)\n" - " qwtAnalogClockSetNeedle(PARAM *,int,int,int,int,int,int,int,int,int,int)\n" - " qwtAnalogClockSetNeedle(PARAM *,int,int,int,int,int,int,int,int,int)\n" - " qwtAnalogClockSetNeedle(PARAM *,int,int,int,int,int,int,int,int)\n" - " qwtAnalogClockSetNeedle(PARAM *,int,int,int,int,int,int,int)\n" - " qwtAnalogClockSetNeedle(PARAM *,int,int,int,int,int,int)\n" - " qwtAnalogClockSetNeedle(PARAM *,int,int,int,int,int)\n" - " qwtAnalogClockSetNeedle(PARAM *,int,int,int,int)\n" - " qwtAnalogClockSetNeedle(PARAM *,int,int,int)\n" - " qwtAnalogClockSetNeedle(PARAM *,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtAnalogClockSetValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetValue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetValue" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtAnalogClockSetValue(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_unit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - float arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:unit",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "unit" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "unit" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "unit" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (float)unit(arg1,arg2,arg3); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_textEventType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:textEventType",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "textEventType" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (int)textEventType((char const *)arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_svgObjectName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:svgObjectName",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "svgObjectName" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (char *)svgObjectName((char const *)arg1); - resultobj = SWIG_FromCharPtr((const char *)result); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_getSvgBoundsOnElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - float *arg2 = (float *) 0 ; - float *arg3 = (float *) 0 ; - float *arg4 = (float *) 0 ; - float *arg5 = (float *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:getSvgBoundsOnElement",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getSvgBoundsOnElement" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "getSvgBoundsOnElement" "', argument " "2"" of type '" "float *""'"); - } - arg2 = reinterpret_cast< float * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "getSvgBoundsOnElement" "', argument " "3"" of type '" "float *""'"); - } - arg3 = reinterpret_cast< float * >(argp3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "getSvgBoundsOnElement" "', argument " "4"" of type '" "float *""'"); - } - arg4 = reinterpret_cast< float * >(argp4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "getSvgBoundsOnElement" "', argument " "5"" of type '" "float *""'"); - } - arg5 = reinterpret_cast< float * >(argp5); - result = (int)getSvgBoundsOnElement((char const *)arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_getSvgMatrixForElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - float *arg2 = (float *) 0 ; - float *arg3 = (float *) 0 ; - float *arg4 = (float *) 0 ; - float *arg5 = (float *) 0 ; - float *arg6 = (float *) 0 ; - float *arg7 = (float *) 0 ; - float *arg8 = (float *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; - void *argp7 = 0 ; - int res7 = 0 ; - void *argp8 = 0 ; - int res8 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:getSvgMatrixForElement",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getSvgMatrixForElement" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "getSvgMatrixForElement" "', argument " "2"" of type '" "float *""'"); - } - arg2 = reinterpret_cast< float * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "getSvgMatrixForElement" "', argument " "3"" of type '" "float *""'"); - } - arg3 = reinterpret_cast< float * >(argp3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "getSvgMatrixForElement" "', argument " "4"" of type '" "float *""'"); - } - arg4 = reinterpret_cast< float * >(argp4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "getSvgMatrixForElement" "', argument " "5"" of type '" "float *""'"); - } - arg5 = reinterpret_cast< float * >(argp5); - res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "getSvgMatrixForElement" "', argument " "6"" of type '" "float *""'"); - } - arg6 = reinterpret_cast< float * >(argp6); - res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "getSvgMatrixForElement" "', argument " "7"" of type '" "float *""'"); - } - arg7 = reinterpret_cast< float * >(argp7); - res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res8)) { - SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "getSvgMatrixForElement" "', argument " "8"" of type '" "float *""'"); - } - arg8 = reinterpret_cast< float * >(argp8); - result = (int)getSvgMatrixForElement((char const *)arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_getGeometry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int *arg4 = (int *) 0 ; - int *arg5 = (int *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:getGeometry",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getGeometry" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "getGeometry" "', argument " "2"" of type '" "int *""'"); - } - arg2 = reinterpret_cast< int * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "getGeometry" "', argument " "3"" of type '" "int *""'"); - } - arg3 = reinterpret_cast< int * >(argp3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "getGeometry" "', argument " "4"" of type '" "int *""'"); - } - arg4 = reinterpret_cast< int * >(argp4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "getGeometry" "', argument " "5"" of type '" "int *""'"); - } - arg5 = reinterpret_cast< int * >(argp5); - result = (int)getGeometry((char const *)arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_getParentWidgetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int *arg2 = (int *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:getParentWidgetId",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getParentWidgetId" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "getParentWidgetId" "', argument " "2"" of type '" "int *""'"); - } - arg2 = reinterpret_cast< int * >(argp2); - result = (int)getParentWidgetId((char const *)arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_pvWidgetIdManager(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_pvWidgetIdManager")) SWIG_fail; - result = (pvWidgetIdManager *)new pvWidgetIdManager(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pvWidgetIdManager, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_pvWidgetIdManager(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *arg1 = (pvWidgetIdManager *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_pvWidgetIdManager",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvWidgetIdManager, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_pvWidgetIdManager" "', argument " "1"" of type '" "pvWidgetIdManager *""'"); - } - arg1 = reinterpret_cast< pvWidgetIdManager * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWidgetIdManager_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *arg1 = (pvWidgetIdManager *) 0 ; - PARAM *arg2 = (PARAM *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvWidgetIdManager_init",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvWidgetIdManager, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWidgetIdManager_init" "', argument " "1"" of type '" "pvWidgetIdManager *""'"); - } - arg1 = reinterpret_cast< pvWidgetIdManager * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvWidgetIdManager_init" "', argument " "2"" of type '" "PARAM *""'"); - } - arg2 = reinterpret_cast< PARAM * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvWidgetIdManager_init" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->init(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWidgetIdManager_newId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *arg1 = (pvWidgetIdManager *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvWidgetIdManager_newId",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvWidgetIdManager, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWidgetIdManager_newId" "', argument " "1"" of type '" "pvWidgetIdManager *""'"); - } - arg1 = reinterpret_cast< pvWidgetIdManager * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvWidgetIdManager_newId" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->newId((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWidgetIdManager_deleteWidget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *arg1 = (pvWidgetIdManager *) 0 ; - PARAM *arg2 = (PARAM *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvWidgetIdManager_deleteWidget",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvWidgetIdManager, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWidgetIdManager_deleteWidget" "', argument " "1"" of type '" "pvWidgetIdManager *""'"); - } - arg1 = reinterpret_cast< pvWidgetIdManager * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvWidgetIdManager_deleteWidget" "', argument " "2"" of type '" "PARAM *""'"); - } - arg2 = reinterpret_cast< PARAM * >(argp2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvWidgetIdManager_deleteWidget" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)(arg1)->deleteWidget(arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWidgetIdManager_id(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *arg1 = (pvWidgetIdManager *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvWidgetIdManager_id",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvWidgetIdManager, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWidgetIdManager_id" "', argument " "1"" of type '" "pvWidgetIdManager *""'"); - } - arg1 = reinterpret_cast< pvWidgetIdManager * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvWidgetIdManager_id" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->id((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWidgetIdManager_isInMap__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *arg1 = (pvWidgetIdManager *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvWidgetIdManager_isInMap",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvWidgetIdManager, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWidgetIdManager_isInMap" "', argument " "1"" of type '" "pvWidgetIdManager *""'"); - } - arg1 = reinterpret_cast< pvWidgetIdManager * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvWidgetIdManager_isInMap" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->isInMap((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWidgetIdManager_isInMap__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *arg1 = (pvWidgetIdManager *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvWidgetIdManager_isInMap",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvWidgetIdManager, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWidgetIdManager_isInMap" "', argument " "1"" of type '" "pvWidgetIdManager *""'"); - } - arg1 = reinterpret_cast< pvWidgetIdManager * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvWidgetIdManager_isInMap" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->isInMap(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWidgetIdManager_isInMap(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_pvWidgetIdManager, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvWidgetIdManager_isInMap__SWIG_1(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_pvWidgetIdManager, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvWidgetIdManager_isInMap__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvWidgetIdManager_isInMap'.\n" - " Possible C/C++ prototypes are:\n" - " pvWidgetIdManager::isInMap(char const *)\n" - " pvWidgetIdManager::isInMap(int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvWidgetIdManager_firstId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *arg1 = (pvWidgetIdManager *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvWidgetIdManager_firstId",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvWidgetIdManager, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWidgetIdManager_firstId" "', argument " "1"" of type '" "pvWidgetIdManager *""'"); - } - arg1 = reinterpret_cast< pvWidgetIdManager * >(argp1); - result = (int)(arg1)->firstId(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWidgetIdManager_nextId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *arg1 = (pvWidgetIdManager *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvWidgetIdManager_nextId",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvWidgetIdManager, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWidgetIdManager_nextId" "', argument " "1"" of type '" "pvWidgetIdManager *""'"); - } - arg1 = reinterpret_cast< pvWidgetIdManager * >(argp1); - result = (int)(arg1)->nextId(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWidgetIdManager_endId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *arg1 = (pvWidgetIdManager *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvWidgetIdManager_endId",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvWidgetIdManager, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWidgetIdManager_endId" "', argument " "1"" of type '" "pvWidgetIdManager *""'"); - } - arg1 = reinterpret_cast< pvWidgetIdManager * >(argp1); - result = (int)(arg1)->endId(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWidgetIdManager_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *arg1 = (pvWidgetIdManager *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvWidgetIdManager_name",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvWidgetIdManager, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWidgetIdManager_name" "', argument " "1"" of type '" "pvWidgetIdManager *""'"); - } - arg1 = reinterpret_cast< pvWidgetIdManager * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvWidgetIdManager_name" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (char *)(arg1)->name(arg2); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWidgetIdManager_idStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *arg1 = (pvWidgetIdManager *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvWidgetIdManager_idStart",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvWidgetIdManager, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWidgetIdManager_idStart" "', argument " "1"" of type '" "pvWidgetIdManager *""'"); - } - arg1 = reinterpret_cast< pvWidgetIdManager * >(argp1); - result = (int)(arg1)->idStart(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWidgetIdManager_readEnumFromMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *arg1 = (pvWidgetIdManager *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvWidgetIdManager_readEnumFromMask",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvWidgetIdManager, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWidgetIdManager_readEnumFromMask" "', argument " "1"" of type '" "pvWidgetIdManager *""'"); - } - arg1 = reinterpret_cast< pvWidgetIdManager * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvWidgetIdManager_readEnumFromMask" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->readEnumFromMask((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *pvWidgetIdManager_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_pvWidgetIdManager, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_qtDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_qtDatabase")) SWIG_fail; - result = (qtDatabase *)new qtDatabase(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_qtDatabase, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_qtDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_qtDatabase",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_qtDatabase" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_open(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - char *arg6 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - int res6 ; - char *buf6 = 0 ; - int alloc6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:qtDatabase_open",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_open" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qtDatabase_open" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "qtDatabase_open" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "qtDatabase_open" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "qtDatabase_open" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - res6 = SWIG_AsCharPtrAndSize(obj5, &buf6, NULL, &alloc6); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "qtDatabase_open" "', argument " "6"" of type '" "char const *""'"); - } - arg6 = reinterpret_cast< char * >(buf6); - result = (int)(arg1)->open((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - if (alloc6 == SWIG_NEWOBJ) delete[] buf6; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - if (alloc6 == SWIG_NEWOBJ) delete[] buf6; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:qtDatabase_close",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_close" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - result = (int)(arg1)->close(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_query(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - PARAM *arg2 = (PARAM *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qtDatabase_query",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_query" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qtDatabase_query" "', argument " "2"" of type '" "PARAM *""'"); - } - arg2 = reinterpret_cast< PARAM * >(argp2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "qtDatabase_query" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)(arg1)->query(arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_populateTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - PARAM *arg2 = (PARAM *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qtDatabase_populateTable",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_populateTable" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qtDatabase_populateTable" "', argument " "2"" of type '" "PARAM *""'"); - } - arg2 = reinterpret_cast< PARAM * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qtDatabase_populateTable" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->populateTable(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_recordFieldValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - PARAM *arg2 = (PARAM *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qtDatabase_recordFieldValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_recordFieldValue" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qtDatabase_recordFieldValue" "', argument " "2"" of type '" "PARAM *""'"); - } - arg2 = reinterpret_cast< PARAM * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qtDatabase_recordFieldValue" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (char *)(arg1)->recordFieldValue(arg2,arg3); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_dbQuery(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:qtDatabase_dbQuery",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_dbQuery" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qtDatabase_dbQuery" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (char *)(arg1)->dbQuery((char const *)arg2); - resultobj = SWIG_FromCharPtr((const char *)result); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_dbRecordFieldValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:qtDatabase_dbRecordFieldValue",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_dbRecordFieldValue" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qtDatabase_dbRecordFieldValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (char *)(arg1)->dbRecordFieldValue(arg2); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_nextRecord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:qtDatabase_nextRecord",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_nextRecord" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - result = (int)(arg1)->nextRecord(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_connectionName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - char *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - char temp2[50] ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:qtDatabase_connectionName_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_connectionName_set" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - res2 = SWIG_AsCharArray(obj1, temp2, 50); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qtDatabase_connectionName_set" "', argument " "2"" of type '" "char [50]""'"); - } - arg2 = reinterpret_cast< char * >(temp2); - if (arg2) memcpy(arg1->connectionName,arg2,50*sizeof(char)); - else memset(arg1->connectionName,0,50*sizeof(char)); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_connectionName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:qtDatabase_connectionName_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_connectionName_get" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - result = (char *)(char *) ((arg1)->connectionName); - { - size_t size = 50; - - while (size && (result[size - 1] == '\0')) --size; - - resultobj = SWIG_FromCharPtrAndSize(result, size); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_db_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - QSqlDatabase *arg2 = (QSqlDatabase *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:qtDatabase_db_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_db_set" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_QSqlDatabase, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qtDatabase_db_set" "', argument " "2"" of type '" "QSqlDatabase *""'"); - } - arg2 = reinterpret_cast< QSqlDatabase * >(argp2); - if (arg1) (arg1)->db = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_db_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - QSqlDatabase *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:qtDatabase_db_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_db_get" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - result = (QSqlDatabase *) ((arg1)->db); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QSqlDatabase, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_result_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - QSqlQuery *arg2 = (QSqlQuery *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:qtDatabase_result_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_result_set" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_QSqlQuery, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qtDatabase_result_set" "', argument " "2"" of type '" "QSqlQuery *""'"); - } - arg2 = reinterpret_cast< QSqlQuery * >(argp2); - if (arg1) (arg1)->result = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_result_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - QSqlQuery *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:qtDatabase_result_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_result_get" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - result = (QSqlQuery *) ((arg1)->result); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QSqlQuery, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_error_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - QSqlError *arg2 = (QSqlError *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:qtDatabase_error_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_error_set" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_QSqlError, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qtDatabase_error_set" "', argument " "2"" of type '" "QSqlError *""'"); - } - arg2 = reinterpret_cast< QSqlError * >(argp2); - if (arg1) (arg1)->error = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_error_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - QSqlError *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:qtDatabase_error_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_error_get" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - result = (QSqlError *) ((arg1)->error); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QSqlError, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *qtDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_qtDatabase, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_getParam(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - unsigned long arg1 ; - unsigned long val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - PARAM *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:getParam",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "getParam" "', argument " "1"" of type '" "unsigned long""'"); - } - arg1 = static_cast< unsigned long >(val1); - result = (PARAM *)getParam(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__PARAM_, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQImageScript(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvQImageScript",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQImageScript" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQImageScript" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQImageScript" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvQImageScript" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)pvQImageScript(arg1,arg2,arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_int(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - int *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_int",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_int" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (int *)new_int(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_get_int(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int *arg1 = (int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:get_int",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get_int" "', argument " "1"" of type '" "int *""'"); - } - arg1 = reinterpret_cast< int * >(argp1); - result = (int)get_int(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_int(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int *arg1 = (int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_int",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_int" "', argument " "1"" of type '" "int *""'"); - } - arg1 = reinterpret_cast< int * >(argp1); - delete_int(arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -static PyMethodDef SwigMethods[] = { - { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL}, - { (char *)"PARSE_EVENT_STRUCT_event_set", _wrap_PARSE_EVENT_STRUCT_event_set, METH_VARARGS, NULL}, - { (char *)"PARSE_EVENT_STRUCT_event_get", _wrap_PARSE_EVENT_STRUCT_event_get, METH_VARARGS, NULL}, - { (char *)"PARSE_EVENT_STRUCT_i_set", _wrap_PARSE_EVENT_STRUCT_i_set, METH_VARARGS, NULL}, - { (char *)"PARSE_EVENT_STRUCT_i_get", _wrap_PARSE_EVENT_STRUCT_i_get, METH_VARARGS, NULL}, - { (char *)"PARSE_EVENT_STRUCT_text_set", _wrap_PARSE_EVENT_STRUCT_text_set, METH_VARARGS, NULL}, - { (char *)"PARSE_EVENT_STRUCT_text_get", _wrap_PARSE_EVENT_STRUCT_text_get, METH_VARARGS, NULL}, - { (char *)"new_PARSE_EVENT_STRUCT", _wrap_new_PARSE_EVENT_STRUCT, METH_VARARGS, NULL}, - { (char *)"delete_PARSE_EVENT_STRUCT", _wrap_delete_PARSE_EVENT_STRUCT, METH_VARARGS, NULL}, - { (char *)"PARSE_EVENT_STRUCT_swigregister", PARSE_EVENT_STRUCT_swigregister, METH_VARARGS, NULL}, - { (char *)"PARAM_s_set", _wrap_PARAM_s_set, METH_VARARGS, NULL}, - { (char *)"PARAM_s_get", _wrap_PARAM_s_get, METH_VARARGS, NULL}, - { (char *)"PARAM_os_set", _wrap_PARAM_os_set, METH_VARARGS, NULL}, - { (char *)"PARAM_os_get", _wrap_PARAM_os_get, METH_VARARGS, NULL}, - { (char *)"PARAM_port_set", _wrap_PARAM_port_set, METH_VARARGS, NULL}, - { (char *)"PARAM_port_get", _wrap_PARAM_port_get, METH_VARARGS, NULL}, - { (char *)"PARAM_language_set", _wrap_PARAM_language_set, METH_VARARGS, NULL}, - { (char *)"PARAM_language_get", _wrap_PARAM_language_get, METH_VARARGS, NULL}, - { (char *)"PARAM_convert_units_set", _wrap_PARAM_convert_units_set, METH_VARARGS, NULL}, - { (char *)"PARAM_convert_units_get", _wrap_PARAM_convert_units_get, METH_VARARGS, NULL}, - { (char *)"PARAM_fp_set", _wrap_PARAM_fp_set, METH_VARARGS, NULL}, - { (char *)"PARAM_fp_get", _wrap_PARAM_fp_get, METH_VARARGS, NULL}, - { (char *)"PARAM_sleep_set", _wrap_PARAM_sleep_set, METH_VARARGS, NULL}, - { (char *)"PARAM_sleep_get", _wrap_PARAM_sleep_get, METH_VARARGS, NULL}, - { (char *)"PARAM_cleanup_set", _wrap_PARAM_cleanup_set, METH_VARARGS, NULL}, - { (char *)"PARAM_cleanup_get", _wrap_PARAM_cleanup_get, METH_VARARGS, NULL}, - { (char *)"PARAM_app_data_set", _wrap_PARAM_app_data_set, METH_VARARGS, NULL}, - { (char *)"PARAM_app_data_get", _wrap_PARAM_app_data_get, METH_VARARGS, NULL}, - { (char *)"PARAM_user_set", _wrap_PARAM_user_set, METH_VARARGS, NULL}, - { (char *)"PARAM_user_get", _wrap_PARAM_user_get, METH_VARARGS, NULL}, - { (char *)"PARAM_clipboard_set", _wrap_PARAM_clipboard_set, METH_VARARGS, NULL}, - { (char *)"PARAM_clipboard_get", _wrap_PARAM_clipboard_get, METH_VARARGS, NULL}, - { (char *)"PARAM_clipboard_length_set", _wrap_PARAM_clipboard_length_set, METH_VARARGS, NULL}, - { (char *)"PARAM_clipboard_length_get", _wrap_PARAM_clipboard_length_get, METH_VARARGS, NULL}, - { (char *)"PARAM_modal_set", _wrap_PARAM_modal_set, METH_VARARGS, NULL}, - { (char *)"PARAM_modal_get", _wrap_PARAM_modal_get, METH_VARARGS, NULL}, - { (char *)"PARAM_readData_set", _wrap_PARAM_readData_set, METH_VARARGS, NULL}, - { (char *)"PARAM_readData_get", _wrap_PARAM_readData_get, METH_VARARGS, NULL}, - { (char *)"PARAM_showData_set", _wrap_PARAM_showData_set, METH_VARARGS, NULL}, - { (char *)"PARAM_showData_get", _wrap_PARAM_showData_get, METH_VARARGS, NULL}, - { (char *)"PARAM_modal_d_set", _wrap_PARAM_modal_d_set, METH_VARARGS, NULL}, - { (char *)"PARAM_modal_d_get", _wrap_PARAM_modal_d_get, METH_VARARGS, NULL}, - { (char *)"PARAM_modalUserData_set", _wrap_PARAM_modalUserData_set, METH_VARARGS, NULL}, - { (char *)"PARAM_modalUserData_get", _wrap_PARAM_modalUserData_get, METH_VARARGS, NULL}, - { (char *)"PARAM_parse_event_struct_set", _wrap_PARAM_parse_event_struct_set, METH_VARARGS, NULL}, - { (char *)"PARAM_parse_event_struct_get", _wrap_PARAM_parse_event_struct_get, METH_VARARGS, NULL}, - { (char *)"PARAM_x_set", _wrap_PARAM_x_set, METH_VARARGS, NULL}, - { (char *)"PARAM_x_get", _wrap_PARAM_x_get, METH_VARARGS, NULL}, - { (char *)"PARAM_y_set", _wrap_PARAM_y_set, METH_VARARGS, NULL}, - { (char *)"PARAM_y_get", _wrap_PARAM_y_get, METH_VARARGS, NULL}, - { (char *)"PARAM_nxy_set", _wrap_PARAM_nxy_set, METH_VARARGS, NULL}, - { (char *)"PARAM_nxy_get", _wrap_PARAM_nxy_get, METH_VARARGS, NULL}, - { (char *)"PARAM_url_set", _wrap_PARAM_url_set, METH_VARARGS, NULL}, - { (char *)"PARAM_url_get", _wrap_PARAM_url_get, METH_VARARGS, NULL}, - { (char *)"PARAM_initial_mask_set", _wrap_PARAM_initial_mask_set, METH_VARARGS, NULL}, - { (char *)"PARAM_initial_mask_get", _wrap_PARAM_initial_mask_get, METH_VARARGS, NULL}, - { (char *)"PARAM_file_prefix_set", _wrap_PARAM_file_prefix_set, METH_VARARGS, NULL}, - { (char *)"PARAM_file_prefix_get", _wrap_PARAM_file_prefix_get, METH_VARARGS, NULL}, - { (char *)"PARAM_free_set", _wrap_PARAM_free_set, METH_VARARGS, NULL}, - { (char *)"PARAM_free_get", _wrap_PARAM_free_get, METH_VARARGS, NULL}, - { (char *)"PARAM_version_set", _wrap_PARAM_version_set, METH_VARARGS, NULL}, - { (char *)"PARAM_version_get", _wrap_PARAM_version_get, METH_VARARGS, NULL}, - { (char *)"PARAM_pvserver_version_set", _wrap_PARAM_pvserver_version_set, METH_VARARGS, NULL}, - { (char *)"PARAM_pvserver_version_get", _wrap_PARAM_pvserver_version_get, METH_VARARGS, NULL}, - { (char *)"PARAM_exit_on_bind_error_set", _wrap_PARAM_exit_on_bind_error_set, METH_VARARGS, NULL}, - { (char *)"PARAM_exit_on_bind_error_get", _wrap_PARAM_exit_on_bind_error_get, METH_VARARGS, NULL}, - { (char *)"PARAM_hello_counter_set", _wrap_PARAM_hello_counter_set, METH_VARARGS, NULL}, - { (char *)"PARAM_hello_counter_get", _wrap_PARAM_hello_counter_get, METH_VARARGS, NULL}, - { (char *)"PARAM_local_milliseconds_set", _wrap_PARAM_local_milliseconds_set, METH_VARARGS, NULL}, - { (char *)"PARAM_local_milliseconds_get", _wrap_PARAM_local_milliseconds_get, METH_VARARGS, NULL}, - { (char *)"PARAM_force_null_event_set", _wrap_PARAM_force_null_event_set, METH_VARARGS, NULL}, - { (char *)"PARAM_force_null_event_get", _wrap_PARAM_force_null_event_get, METH_VARARGS, NULL}, - { (char *)"PARAM_allow_pause_set", _wrap_PARAM_allow_pause_set, METH_VARARGS, NULL}, - { (char *)"PARAM_allow_pause_get", _wrap_PARAM_allow_pause_get, METH_VARARGS, NULL}, - { (char *)"PARAM_pause_set", _wrap_PARAM_pause_set, METH_VARARGS, NULL}, - { (char *)"PARAM_pause_get", _wrap_PARAM_pause_get, METH_VARARGS, NULL}, - { (char *)"PARAM_my_pvlock_count_set", _wrap_PARAM_my_pvlock_count_set, METH_VARARGS, NULL}, - { (char *)"PARAM_my_pvlock_count_get", _wrap_PARAM_my_pvlock_count_get, METH_VARARGS, NULL}, - { (char *)"PARAM_num_additional_widgets_set", _wrap_PARAM_num_additional_widgets_set, METH_VARARGS, NULL}, - { (char *)"PARAM_num_additional_widgets_get", _wrap_PARAM_num_additional_widgets_get, METH_VARARGS, NULL}, - { (char *)"PARAM_mouse_x_set", _wrap_PARAM_mouse_x_set, METH_VARARGS, NULL}, - { (char *)"PARAM_mouse_x_get", _wrap_PARAM_mouse_x_get, METH_VARARGS, NULL}, - { (char *)"PARAM_mouse_y_set", _wrap_PARAM_mouse_y_set, METH_VARARGS, NULL}, - { (char *)"PARAM_mouse_y_get", _wrap_PARAM_mouse_y_get, METH_VARARGS, NULL}, - { (char *)"PARAM_mytext_set", _wrap_PARAM_mytext_set, METH_VARARGS, NULL}, - { (char *)"PARAM_mytext_get", _wrap_PARAM_mytext_get, METH_VARARGS, NULL}, - { (char *)"PARAM_communication_plugin_set", _wrap_PARAM_communication_plugin_set, METH_VARARGS, NULL}, - { (char *)"PARAM_communication_plugin_get", _wrap_PARAM_communication_plugin_get, METH_VARARGS, NULL}, - { (char *)"PARAM_use_communication_plugin_set", _wrap_PARAM_use_communication_plugin_set, METH_VARARGS, NULL}, - { (char *)"PARAM_use_communication_plugin_get", _wrap_PARAM_use_communication_plugin_get, METH_VARARGS, NULL}, - { (char *)"PARAM_lang_section_set", _wrap_PARAM_lang_section_set, METH_VARARGS, NULL}, - { (char *)"PARAM_lang_section_get", _wrap_PARAM_lang_section_get, METH_VARARGS, NULL}, - { (char *)"PARAM_mytext2_set", _wrap_PARAM_mytext2_set, METH_VARARGS, NULL}, - { (char *)"PARAM_mytext2_get", _wrap_PARAM_mytext2_get, METH_VARARGS, NULL}, - { (char *)"PARAM_http_set", _wrap_PARAM_http_set, METH_VARARGS, NULL}, - { (char *)"PARAM_http_get", _wrap_PARAM_http_get, METH_VARARGS, NULL}, - { (char *)"PARAM_fptmp_set", _wrap_PARAM_fptmp_set, METH_VARARGS, NULL}, - { (char *)"PARAM_fptmp_get", _wrap_PARAM_fptmp_get, METH_VARARGS, NULL}, - { (char *)"PARAM_fhdltmp_set", _wrap_PARAM_fhdltmp_set, METH_VARARGS, NULL}, - { (char *)"PARAM_fhdltmp_get", _wrap_PARAM_fhdltmp_get, METH_VARARGS, NULL}, - { (char *)"new_PARAM", _wrap_new_PARAM, METH_VARARGS, NULL}, - { (char *)"delete_PARAM", _wrap_delete_PARAM, METH_VARARGS, NULL}, - { (char *)"PARAM_swigregister", PARAM_swigregister, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i_set", _wrap_IntegerArray_i_set, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i_get", _wrap_IntegerArray_i_get, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i0_set", _wrap_IntegerArray_i0_set, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i0_get", _wrap_IntegerArray_i0_get, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i1_set", _wrap_IntegerArray_i1_set, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i1_get", _wrap_IntegerArray_i1_get, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i2_set", _wrap_IntegerArray_i2_set, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i2_get", _wrap_IntegerArray_i2_get, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i3_set", _wrap_IntegerArray_i3_set, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i3_get", _wrap_IntegerArray_i3_get, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i4_set", _wrap_IntegerArray_i4_set, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i4_get", _wrap_IntegerArray_i4_get, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i5_set", _wrap_IntegerArray_i5_set, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i5_get", _wrap_IntegerArray_i5_get, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i6_set", _wrap_IntegerArray_i6_set, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i6_get", _wrap_IntegerArray_i6_get, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i7_set", _wrap_IntegerArray_i7_set, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i7_get", _wrap_IntegerArray_i7_get, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i8_set", _wrap_IntegerArray_i8_set, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i8_get", _wrap_IntegerArray_i8_get, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i9_set", _wrap_IntegerArray_i9_set, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i9_get", _wrap_IntegerArray_i9_get, METH_VARARGS, NULL}, - { (char *)"new_IntegerArray", _wrap_new_IntegerArray, METH_VARARGS, NULL}, - { (char *)"delete_IntegerArray", _wrap_delete_IntegerArray, METH_VARARGS, NULL}, - { (char *)"IntegerArray_swigregister", IntegerArray_swigregister, METH_VARARGS, NULL}, - { (char *)"FloatArray_f_set", _wrap_FloatArray_f_set, METH_VARARGS, NULL}, - { (char *)"FloatArray_f_get", _wrap_FloatArray_f_get, METH_VARARGS, NULL}, - { (char *)"FloatArray_f0_set", _wrap_FloatArray_f0_set, METH_VARARGS, NULL}, - { (char *)"FloatArray_f0_get", _wrap_FloatArray_f0_get, METH_VARARGS, NULL}, - { (char *)"FloatArray_f1_set", _wrap_FloatArray_f1_set, METH_VARARGS, NULL}, - { (char *)"FloatArray_f1_get", _wrap_FloatArray_f1_get, METH_VARARGS, NULL}, - { (char *)"FloatArray_f2_set", _wrap_FloatArray_f2_set, METH_VARARGS, NULL}, - { (char *)"FloatArray_f2_get", _wrap_FloatArray_f2_get, METH_VARARGS, NULL}, - { (char *)"FloatArray_f3_set", _wrap_FloatArray_f3_set, METH_VARARGS, NULL}, - { (char *)"FloatArray_f3_get", _wrap_FloatArray_f3_get, METH_VARARGS, NULL}, - { (char *)"FloatArray_f4_set", _wrap_FloatArray_f4_set, METH_VARARGS, NULL}, - { (char *)"FloatArray_f4_get", _wrap_FloatArray_f4_get, METH_VARARGS, NULL}, - { (char *)"FloatArray_f5_set", _wrap_FloatArray_f5_set, METH_VARARGS, NULL}, - { (char *)"FloatArray_f5_get", _wrap_FloatArray_f5_get, METH_VARARGS, NULL}, - { (char *)"FloatArray_f6_set", _wrap_FloatArray_f6_set, METH_VARARGS, NULL}, - { (char *)"FloatArray_f6_get", _wrap_FloatArray_f6_get, METH_VARARGS, NULL}, - { (char *)"FloatArray_f7_set", _wrap_FloatArray_f7_set, METH_VARARGS, NULL}, - { (char *)"FloatArray_f7_get", _wrap_FloatArray_f7_get, METH_VARARGS, NULL}, - { (char *)"FloatArray_f8_set", _wrap_FloatArray_f8_set, METH_VARARGS, NULL}, - { (char *)"FloatArray_f8_get", _wrap_FloatArray_f8_get, METH_VARARGS, NULL}, - { (char *)"FloatArray_f9_set", _wrap_FloatArray_f9_set, METH_VARARGS, NULL}, - { (char *)"FloatArray_f9_get", _wrap_FloatArray_f9_get, METH_VARARGS, NULL}, - { (char *)"new_FloatArray", _wrap_new_FloatArray, METH_VARARGS, NULL}, - { (char *)"delete_FloatArray", _wrap_delete_FloatArray, METH_VARARGS, NULL}, - { (char *)"FloatArray_swigregister", FloatArray_swigregister, METH_VARARGS, NULL}, - { (char *)"pvTime_millisecond_set", _wrap_pvTime_millisecond_set, METH_VARARGS, NULL}, - { (char *)"pvTime_millisecond_get", _wrap_pvTime_millisecond_get, METH_VARARGS, NULL}, - { (char *)"pvTime_second_set", _wrap_pvTime_second_set, METH_VARARGS, NULL}, - { (char *)"pvTime_second_get", _wrap_pvTime_second_get, METH_VARARGS, NULL}, - { (char *)"pvTime_minute_set", _wrap_pvTime_minute_set, METH_VARARGS, NULL}, - { (char *)"pvTime_minute_get", _wrap_pvTime_minute_get, METH_VARARGS, NULL}, - { (char *)"pvTime_hour_set", _wrap_pvTime_hour_set, METH_VARARGS, NULL}, - { (char *)"pvTime_hour_get", _wrap_pvTime_hour_get, METH_VARARGS, NULL}, - { (char *)"pvTime_day_set", _wrap_pvTime_day_set, METH_VARARGS, NULL}, - { (char *)"pvTime_day_get", _wrap_pvTime_day_get, METH_VARARGS, NULL}, - { (char *)"pvTime_month_set", _wrap_pvTime_month_set, METH_VARARGS, NULL}, - { (char *)"pvTime_month_get", _wrap_pvTime_month_get, METH_VARARGS, NULL}, - { (char *)"pvTime_year_set", _wrap_pvTime_year_set, METH_VARARGS, NULL}, - { (char *)"pvTime_year_get", _wrap_pvTime_year_get, METH_VARARGS, NULL}, - { (char *)"new_pvTime", _wrap_new_pvTime, METH_VARARGS, NULL}, - { (char *)"delete_pvTime", _wrap_delete_pvTime, METH_VARARGS, NULL}, - { (char *)"pvTime_swigregister", pvTime_swigregister, METH_VARARGS, NULL}, - { (char *)"pvAddressTableItem_s_set", _wrap_pvAddressTableItem_s_set, METH_VARARGS, NULL}, - { (char *)"pvAddressTableItem_s_get", _wrap_pvAddressTableItem_s_get, METH_VARARGS, NULL}, - { (char *)"pvAddressTableItem_version_set", _wrap_pvAddressTableItem_version_set, METH_VARARGS, NULL}, - { (char *)"pvAddressTableItem_version_get", _wrap_pvAddressTableItem_version_get, METH_VARARGS, NULL}, - { (char *)"pvAddressTableItem_adr_set", _wrap_pvAddressTableItem_adr_set, METH_VARARGS, NULL}, - { (char *)"pvAddressTableItem_adr_get", _wrap_pvAddressTableItem_adr_get, METH_VARARGS, NULL}, - { (char *)"new_pvAddressTableItem", _wrap_new_pvAddressTableItem, METH_VARARGS, NULL}, - { (char *)"delete_pvAddressTableItem", _wrap_delete_pvAddressTableItem, METH_VARARGS, NULL}, - { (char *)"pvAddressTableItem_swigregister", pvAddressTableItem_swigregister, METH_VARARGS, NULL}, - { (char *)"pvAddressTable_adr_set", _wrap_pvAddressTable_adr_set, METH_VARARGS, NULL}, - { (char *)"pvAddressTable_adr_get", _wrap_pvAddressTable_adr_get, METH_VARARGS, NULL}, - { (char *)"new_pvAddressTable", _wrap_new_pvAddressTable, METH_VARARGS, NULL}, - { (char *)"delete_pvAddressTable", _wrap_delete_pvAddressTable, METH_VARARGS, NULL}, - { (char *)"pvAddressTable_swigregister", pvAddressTable_swigregister, METH_VARARGS, NULL}, - { (char *)"glencode_set_param", _wrap_glencode_set_param, METH_VARARGS, NULL}, - { (char *)"pvlock", _wrap_pvlock, METH_VARARGS, NULL}, - { (char *)"pvunlock", _wrap_pvunlock, METH_VARARGS, NULL}, - { (char *)"pvsystem", _wrap_pvsystem, METH_VARARGS, NULL}, - { (char *)"pvGetLocalTime", _wrap_pvGetLocalTime, METH_VARARGS, NULL}, - { (char *)"pvIsAccessAllowed", _wrap_pvIsAccessAllowed, METH_VARARGS, NULL}, - { (char *)"pvSendVersion", _wrap_pvSendVersion, METH_VARARGS, NULL}, - { (char *)"pvXYAllocate", _wrap_pvXYAllocate, METH_VARARGS, NULL}, - { (char *)"getIntegers", _wrap_getIntegers, METH_VARARGS, NULL}, - { (char *)"getFloats", _wrap_getFloats, METH_VARARGS, NULL}, - { (char *)"getTextFromText", _wrap_getTextFromText, METH_VARARGS, NULL}, - { (char *)"pvSetXY", _wrap_pvSetXY, METH_VARARGS, NULL}, - { (char *)"pvGetSocketPointer", _wrap_pvGetSocketPointer, METH_VARARGS, NULL}, - { (char *)"pvInitInternal", _wrap_pvInitInternal, METH_VARARGS, NULL}, - { (char *)"pvInit", _wrap_pvInit, METH_VARARGS, NULL}, - { (char *)"pvAccept", _wrap_pvAccept, METH_VARARGS, NULL}, - { (char *)"pvCreateThread", _wrap_pvCreateThread, METH_VARARGS, NULL}, - { (char *)"pvGetInitialMask", _wrap_pvGetInitialMask, METH_VARARGS, NULL}, - { (char *)"pvMain", _wrap_pvMain, METH_VARARGS, NULL}, - { (char *)"pvSetCleanup", _wrap_pvSetCleanup, METH_VARARGS, NULL}, - { (char *)"pvGetEvent", _wrap_pvGetEvent, METH_VARARGS, NULL}, - { (char *)"pvPollEvent", _wrap_pvPollEvent, METH_VARARGS, NULL}, - { (char *)"pvWait", _wrap_pvWait, METH_VARARGS, NULL}, - { (char *)"pvGlUpdate", _wrap_pvGlUpdate, METH_VARARGS, NULL}, - { (char *)"pvSleep", _wrap_pvSleep, METH_VARARGS, NULL}, - { (char *)"pvWarning", _wrap_pvWarning, METH_VARARGS, NULL}, - { (char *)"pvMainFatal", _wrap_pvMainFatal, METH_VARARGS, NULL}, - { (char *)"pvThreadFatal", _wrap_pvThreadFatal, METH_VARARGS, NULL}, - { (char *)"pvScreenHint", _wrap_pvScreenHint, METH_VARARGS, NULL}, - { (char *)"pvSetMouseShape", _wrap_pvSetMouseShape, METH_VARARGS, NULL}, - { (char *)"pvSetWhatsThis", _wrap_pvSetWhatsThis, METH_VARARGS, NULL}, - { (char *)"pvWhatsThisPrintf", _wrap_pvWhatsThisPrintf, METH_VARARGS, NULL}, - { (char *)"pvClientCommand", _wrap_pvClientCommand, METH_VARARGS, NULL}, - { (char *)"pvWriteTextToFileAtClient", _wrap_pvWriteTextToFileAtClient, METH_VARARGS, NULL}, - { (char *)"pvZoomMask", _wrap_pvZoomMask, METH_VARARGS, NULL}, - { (char *)"pvSetManualUrl", _wrap_pvSetManualUrl, METH_VARARGS, NULL}, - { (char *)"pvSelectLanguage", _wrap_pvSelectLanguage, METH_VARARGS, NULL}, - { (char *)"pvStartDefinition", _wrap_pvStartDefinition, METH_VARARGS, NULL}, - { (char *)"pvQWidget", _wrap_pvQWidget, METH_VARARGS, NULL}, - { (char *)"pvQLayoutVbox", _wrap_pvQLayoutVbox, METH_VARARGS, NULL}, - { (char *)"pvQLayoutHbox", _wrap_pvQLayoutHbox, METH_VARARGS, NULL}, - { (char *)"pvQLayoutGrid", _wrap_pvQLayoutGrid, METH_VARARGS, NULL}, - { (char *)"pvQLabel", _wrap_pvQLabel, METH_VARARGS, NULL}, - { (char *)"pvQComboBox", _wrap_pvQComboBox, METH_VARARGS, NULL}, - { (char *)"pvQLineEdit", _wrap_pvQLineEdit, METH_VARARGS, NULL}, - { (char *)"pvQPushButton", _wrap_pvQPushButton, METH_VARARGS, NULL}, - { (char *)"pvQLCDNumber", _wrap_pvQLCDNumber, METH_VARARGS, NULL}, - { (char *)"pvQSlider", _wrap_pvQSlider, METH_VARARGS, NULL}, - { (char *)"pvQButtonGroup", _wrap_pvQButtonGroup, METH_VARARGS, NULL}, - { (char *)"pvQRadioButton", _wrap_pvQRadioButton, METH_VARARGS, NULL}, - { (char *)"pvQCheckBox", _wrap_pvQCheckBox, METH_VARARGS, NULL}, - { (char *)"pvQFrame", _wrap_pvQFrame, METH_VARARGS, NULL}, - { (char *)"pvQDraw", _wrap_pvQDraw, METH_VARARGS, NULL}, - { (char *)"pvQImage", _wrap_pvQImage, METH_VARARGS, NULL}, - { (char *)"pvQGL", _wrap_pvQGL, METH_VARARGS, NULL}, - { (char *)"pvQTabWidget", _wrap_pvQTabWidget, METH_VARARGS, NULL}, - { (char *)"pvQToolBox", _wrap_pvQToolBox, METH_VARARGS, NULL}, - { (char *)"pvQGroupBox", _wrap_pvQGroupBox, METH_VARARGS, NULL}, - { (char *)"pvQListBox", _wrap_pvQListBox, METH_VARARGS, NULL}, - { (char *)"pvQTable", _wrap_pvQTable, METH_VARARGS, NULL}, - { (char *)"pvQSpinBox", _wrap_pvQSpinBox, METH_VARARGS, NULL}, - { (char *)"pvQDial", _wrap_pvQDial, METH_VARARGS, NULL}, - { (char *)"pvQProgressBar", _wrap_pvQProgressBar, METH_VARARGS, NULL}, - { (char *)"pvQMultiLineEdit", _wrap_pvQMultiLineEdit, METH_VARARGS, NULL}, - { (char *)"pvQTextBrowser", _wrap_pvQTextBrowser, METH_VARARGS, NULL}, - { (char *)"pvQListView", _wrap_pvQListView, METH_VARARGS, NULL}, - { (char *)"pvQIconView", _wrap_pvQIconView, METH_VARARGS, NULL}, - { (char *)"pvQVtkTclWidget", _wrap_pvQVtkTclWidget, METH_VARARGS, NULL}, - { (char *)"pvQwtPlotWidget", _wrap_pvQwtPlotWidget, METH_VARARGS, NULL}, - { (char *)"pvQwtScale", _wrap_pvQwtScale, METH_VARARGS, NULL}, - { (char *)"pvQwtThermo", _wrap_pvQwtThermo, METH_VARARGS, NULL}, - { (char *)"pvQwtKnob", _wrap_pvQwtKnob, METH_VARARGS, NULL}, - { (char *)"pvQwtCounter", _wrap_pvQwtCounter, METH_VARARGS, NULL}, - { (char *)"pvQwtWheel", _wrap_pvQwtWheel, METH_VARARGS, NULL}, - { (char *)"pvQwtSlider", _wrap_pvQwtSlider, METH_VARARGS, NULL}, - { (char *)"pvQwtDial", _wrap_pvQwtDial, METH_VARARGS, NULL}, - { (char *)"pvQwtCompass", _wrap_pvQwtCompass, METH_VARARGS, NULL}, - { (char *)"pvQwtAnalogClock", _wrap_pvQwtAnalogClock, METH_VARARGS, NULL}, - { (char *)"pvQDateEdit", _wrap_pvQDateEdit, METH_VARARGS, NULL}, - { (char *)"pvQTimeEdit", _wrap_pvQTimeEdit, METH_VARARGS, NULL}, - { (char *)"pvQDateTimeEdit", _wrap_pvQDateTimeEdit, METH_VARARGS, NULL}, - { (char *)"pvQCustomWidget", _wrap_pvQCustomWidget, METH_VARARGS, NULL}, - { (char *)"pvEndDefinition", _wrap_pvEndDefinition, METH_VARARGS, NULL}, - { (char *)"pvAddWidgetOrLayout", _wrap_pvAddWidgetOrLayout, METH_VARARGS, NULL}, - { (char *)"pvAddStretch", _wrap_pvAddStretch, METH_VARARGS, NULL}, - { (char *)"pvTabOrder", _wrap_pvTabOrder, METH_VARARGS, NULL}, - { (char *)"pvDeleteWidget", _wrap_pvDeleteWidget, METH_VARARGS, NULL}, - { (char *)"pvSetCaption", _wrap_pvSetCaption, METH_VARARGS, NULL}, - { (char *)"pvPlaySound", _wrap_pvPlaySound, METH_VARARGS, NULL}, - { (char *)"pvBeep", _wrap_pvBeep, METH_VARARGS, NULL}, - { (char *)"pvStatusMessage", _wrap_pvStatusMessage, METH_VARARGS, NULL}, - { (char *)"pvToolTip", _wrap_pvToolTip, METH_VARARGS, NULL}, - { (char *)"pvSetTextEx", _wrap_pvSetTextEx, METH_VARARGS, NULL}, - { (char *)"pvSetText", _wrap_pvSetText, METH_VARARGS, NULL}, - { (char *)"pvPrintf", _wrap_pvPrintf, METH_VARARGS, NULL}, - { (char *)"pvSetStyleSheet", _wrap_pvSetStyleSheet, METH_VARARGS, NULL}, - { (char *)"pvPrintfStyleSheet", _wrap_pvPrintfStyleSheet, METH_VARARGS, NULL}, - { (char *)"pvSetMinValue", _wrap_pvSetMinValue, METH_VARARGS, NULL}, - { (char *)"pvSetMaxValue", _wrap_pvSetMaxValue, METH_VARARGS, NULL}, - { (char *)"pvSetValue", _wrap_pvSetValue, METH_VARARGS, NULL}, - { (char *)"pvClear", _wrap_pvClear, METH_VARARGS, NULL}, - { (char *)"pvChangeItem", _wrap_pvChangeItem, METH_VARARGS, NULL}, - { (char *)"pvInsertItem", _wrap_pvInsertItem, METH_VARARGS, NULL}, - { (char *)"pvRemoveItem", _wrap_pvRemoveItem, METH_VARARGS, NULL}, - { (char *)"pvRemoveItemByName", _wrap_pvRemoveItemByName, METH_VARARGS, NULL}, - { (char *)"pvAddColumn", _wrap_pvAddColumn, METH_VARARGS, NULL}, - { (char *)"pvRemoveAllColumns", _wrap_pvRemoveAllColumns, METH_VARARGS, NULL}, - { (char *)"pvSetTableText", _wrap_pvSetTableText, METH_VARARGS, NULL}, - { (char *)"pvSetTableButton", _wrap_pvSetTableButton, METH_VARARGS, NULL}, - { (char *)"pvSetTableCheckBox", _wrap_pvSetTableCheckBox, METH_VARARGS, NULL}, - { (char *)"pvSetTableComboBox", _wrap_pvSetTableComboBox, METH_VARARGS, NULL}, - { (char *)"pvSetTableLabel", _wrap_pvSetTableLabel, METH_VARARGS, NULL}, - { (char *)"pvTablePrintf", _wrap_pvTablePrintf, METH_VARARGS, NULL}, - { (char *)"pvSetTableTextAlignment", _wrap_pvSetTableTextAlignment, METH_VARARGS, NULL}, - { (char *)"pvMysqldump", _wrap_pvMysqldump, METH_VARARGS, NULL}, - { (char *)"pvCSVdump", _wrap_pvCSVdump, METH_VARARGS, NULL}, - { (char *)"pvCSVcreate", _wrap_pvCSVcreate, METH_VARARGS, NULL}, - { (char *)"pvCSV", _wrap_pvCSV, METH_VARARGS, NULL}, - { (char *)"pvSetListViewText", _wrap_pvSetListViewText, METH_VARARGS, NULL}, - { (char *)"pvListViewPrintf", _wrap_pvListViewPrintf, METH_VARARGS, NULL}, - { (char *)"pvListViewSetSelected", _wrap_pvListViewSetSelected, METH_VARARGS, NULL}, - { (char *)"pvListBoxSetSelected", _wrap_pvListBoxSetSelected, METH_VARARGS, NULL}, - { (char *)"pvSetColumnWidth", _wrap_pvSetColumnWidth, METH_VARARGS, NULL}, - { (char *)"pvSetRowHeight", _wrap_pvSetRowHeight, METH_VARARGS, NULL}, - { (char *)"pvSetWordWrap", _wrap_pvSetWordWrap, METH_VARARGS, NULL}, - { (char *)"pvSetPixmap", _wrap_pvSetPixmap, METH_VARARGS, NULL}, - { (char *)"pvSetTablePixmap", _wrap_pvSetTablePixmap, METH_VARARGS, NULL}, - { (char *)"pvSetSource", _wrap_pvSetSource, METH_VARARGS, NULL}, - { (char *)"pvSetImage", _wrap_pvSetImage, METH_VARARGS, NULL}, - { (char *)"pvSetBufferedJpgImage", _wrap_pvSetBufferedJpgImage, METH_VARARGS, NULL}, - { (char *)"pvSetBufferTransparency", _wrap_pvSetBufferTransparency, METH_VARARGS, NULL}, - { (char *)"pvSetBackgroundColor", _wrap_pvSetBackgroundColor, METH_VARARGS, NULL}, - { (char *)"pvSetPaletteBackgroundColor", _wrap_pvSetPaletteBackgroundColor, METH_VARARGS, NULL}, - { (char *)"pvSetPaletteForegroundColor", _wrap_pvSetPaletteForegroundColor, METH_VARARGS, NULL}, - { (char *)"pvSetFontColor", _wrap_pvSetFontColor, METH_VARARGS, NULL}, - { (char *)"pvSetFont", _wrap_pvSetFont, METH_VARARGS, NULL}, - { (char *)"pvDisplayNum", _wrap_pvDisplayNum, METH_VARARGS, NULL}, - { (char *)"pvDisplayFloat", _wrap_pvDisplayFloat, METH_VARARGS, NULL}, - { (char *)"pvDisplayStr", _wrap_pvDisplayStr, METH_VARARGS, NULL}, - { (char *)"pvAddTab", _wrap_pvAddTab, METH_VARARGS, NULL}, - { (char *)"pvSetListViewPixmap", _wrap_pvSetListViewPixmap, METH_VARARGS, NULL}, - { (char *)"pvRemoveListViewItem", _wrap_pvRemoveListViewItem, METH_VARARGS, NULL}, - { (char *)"pvRemoveIconViewItem", _wrap_pvRemoveIconViewItem, METH_VARARGS, NULL}, - { (char *)"pvSetIconViewItem", _wrap_pvSetIconViewItem, METH_VARARGS, NULL}, - { (char *)"pvSetDateOrder", _wrap_pvSetDateOrder, METH_VARARGS, NULL}, - { (char *)"pvSetDate", _wrap_pvSetDate, METH_VARARGS, NULL}, - { (char *)"pvSetMinDate", _wrap_pvSetMinDate, METH_VARARGS, NULL}, - { (char *)"pvSetMaxDate", _wrap_pvSetMaxDate, METH_VARARGS, NULL}, - { (char *)"pvSetTime", _wrap_pvSetTime, METH_VARARGS, NULL}, - { (char *)"pvSetMinTime", _wrap_pvSetMinTime, METH_VARARGS, NULL}, - { (char *)"pvSetMaxTime", _wrap_pvSetMaxTime, METH_VARARGS, NULL}, - { (char *)"pvEnsureCellVisible", _wrap_pvEnsureCellVisible, METH_VARARGS, NULL}, - { (char *)"pvMoveCursor", _wrap_pvMoveCursor, METH_VARARGS, NULL}, - { (char *)"pvScrollToAnchor", _wrap_pvScrollToAnchor, METH_VARARGS, NULL}, - { (char *)"pvSetZoomFactor", _wrap_pvSetZoomFactor, METH_VARARGS, NULL}, - { (char *)"pvPrintHtmlOnPrinter", _wrap_pvPrintHtmlOnPrinter, METH_VARARGS, NULL}, - { (char *)"pvSetWidgetProperty", _wrap_pvSetWidgetProperty, METH_VARARGS, NULL}, - { (char *)"pvPassThroughOneJpegFrame", _wrap_pvPassThroughOneJpegFrame, METH_VARARGS, NULL}, - { (char *)"pvSendJpegFrame", _wrap_pvSendJpegFrame, METH_VARARGS, NULL}, - { (char *)"pvSendRGBA", _wrap_pvSendRGBA, METH_VARARGS, NULL}, - { (char *)"pvSaveDrawBuffer", _wrap_pvSaveDrawBuffer, METH_VARARGS, NULL}, - { (char *)"pvText", _wrap_pvText, METH_VARARGS, NULL}, - { (char *)"pvRequestJpeg", _wrap_pvRequestJpeg, METH_VARARGS, NULL}, - { (char *)"pvRequestGeometry", _wrap_pvRequestGeometry, METH_VARARGS, NULL}, - { (char *)"pvRequestParentWidgetId", _wrap_pvRequestParentWidgetId, METH_VARARGS, NULL}, - { (char *)"pvSelection", _wrap_pvSelection, METH_VARARGS, NULL}, - { (char *)"pvRequestSvgBoundsOnElement", _wrap_pvRequestSvgBoundsOnElement, METH_VARARGS, NULL}, - { (char *)"pvRequestSvgMatrixForElement", _wrap_pvRequestSvgMatrixForElement, METH_VARARGS, NULL}, - { (char *)"pvMoveContent", _wrap_pvMoveContent, METH_VARARGS, NULL}, - { (char *)"pvSetGeometry", _wrap_pvSetGeometry, METH_VARARGS, NULL}, - { (char *)"pvSetMinSize", _wrap_pvSetMinSize, METH_VARARGS, NULL}, - { (char *)"pvSetMaxSize", _wrap_pvSetMaxSize, METH_VARARGS, NULL}, - { (char *)"pvSetAlignment", _wrap_pvSetAlignment, METH_VARARGS, NULL}, - { (char *)"pvSetChecked", _wrap_pvSetChecked, METH_VARARGS, NULL}, - { (char *)"pvMove", _wrap_pvMove, METH_VARARGS, NULL}, - { (char *)"pvResize", _wrap_pvResize, METH_VARARGS, NULL}, - { (char *)"pvHide", _wrap_pvHide, METH_VARARGS, NULL}, - { (char *)"pvShow", _wrap_pvShow, METH_VARARGS, NULL}, - { (char *)"pvSetParent", _wrap_pvSetParent, METH_VARARGS, NULL}, - { (char *)"pvSetMultiSelection", _wrap_pvSetMultiSelection, METH_VARARGS, NULL}, - { (char *)"pvSetEchoMode", _wrap_pvSetEchoMode, METH_VARARGS, NULL}, - { (char *)"pvSetEditable", _wrap_pvSetEditable, METH_VARARGS, NULL}, - { (char *)"pvSetEnabled", _wrap_pvSetEnabled, METH_VARARGS, NULL}, - { (char *)"pvSetFocus", _wrap_pvSetFocus, METH_VARARGS, NULL}, - { (char *)"pvTableSetEnabled", _wrap_pvTableSetEnabled, METH_VARARGS, NULL}, - { (char *)"pvTableSetHeaderResizeEnabled", _wrap_pvTableSetHeaderResizeEnabled, METH_VARARGS, NULL}, - { (char *)"pvSetSorting", _wrap_pvSetSorting, METH_VARARGS, NULL}, - { (char *)"pvSetTabPosition", _wrap_pvSetTabPosition, METH_VARARGS, NULL}, - { (char *)"pvEnableTabBar", _wrap_pvEnableTabBar, METH_VARARGS, NULL}, - { (char *)"pvSetNumRows", _wrap_pvSetNumRows, METH_VARARGS, NULL}, - { (char *)"pvSetNumCols", _wrap_pvSetNumCols, METH_VARARGS, NULL}, - { (char *)"pvInsertRows", _wrap_pvInsertRows, METH_VARARGS, NULL}, - { (char *)"pvInsertColumns", _wrap_pvInsertColumns, METH_VARARGS, NULL}, - { (char *)"pvRemoveRow", _wrap_pvRemoveRow, METH_VARARGS, NULL}, - { (char *)"pvRemoveColumn", _wrap_pvRemoveColumn, METH_VARARGS, NULL}, - { (char *)"pvSetCurrentItem", _wrap_pvSetCurrentItem, METH_VARARGS, NULL}, - { (char *)"pvSetTimeEditDisplay", _wrap_pvSetTimeEditDisplay, METH_VARARGS, NULL}, - { (char *)"pvListViewEnsureVisible", _wrap_pvListViewEnsureVisible, METH_VARARGS, NULL}, - { (char *)"pvListViewSetOpen", _wrap_pvListViewSetOpen, METH_VARARGS, NULL}, - { (char *)"pvListViewSetHidden", _wrap_pvListViewSetHidden, METH_VARARGS, NULL}, - { (char *)"pvListViewSetStandardPopupMenu", _wrap_pvListViewSetStandardPopupMenu, METH_VARARGS, NULL}, - { (char *)"pvSetStyle", _wrap_pvSetStyle, METH_VARARGS, NULL}, - { (char *)"pvSetMovie", _wrap_pvSetMovie, METH_VARARGS, NULL}, - { (char *)"pvMovieControl", _wrap_pvMovieControl, METH_VARARGS, NULL}, - { (char *)"pvMovieSpeed", _wrap_pvMovieSpeed, METH_VARARGS, NULL}, - { (char *)"pvAddTabIcon", _wrap_pvAddTabIcon, METH_VARARGS, NULL}, - { (char *)"pvSetCellWidget", _wrap_pvSetCellWidget, METH_VARARGS, NULL}, - { (char *)"pvSetContentsMargins", _wrap_pvSetContentsMargins, METH_VARARGS, NULL}, - { (char *)"pvSetSpacing", _wrap_pvSetSpacing, METH_VARARGS, NULL}, - { (char *)"pvVtkTcl", _wrap_pvVtkTcl, METH_VARARGS, NULL}, - { (char *)"pvVtkTclPrintf", _wrap_pvVtkTclPrintf, METH_VARARGS, NULL}, - { (char *)"pvVtkTclScript", _wrap_pvVtkTclScript, METH_VARARGS, NULL}, - { (char *)"pvHyperlink", _wrap_pvHyperlink, METH_VARARGS, NULL}, - { (char *)"pvSendUserEvent", _wrap_pvSendUserEvent, METH_VARARGS, NULL}, - { (char *)"pvWriteFile", _wrap_pvWriteFile, METH_VARARGS, NULL}, - { (char *)"pvCloseFile", _wrap_pvCloseFile, METH_VARARGS, NULL}, - { (char *)"pvGetTextParam", _wrap_pvGetTextParam, METH_VARARGS, NULL}, - { (char *)"pvGetText", _wrap_pvGetText, METH_VARARGS, NULL}, - { (char *)"pvParseEventStruct", _wrap_pvParseEventStruct, METH_VARARGS, NULL}, - { (char *)"pvParseEvent", _wrap_pvParseEvent, METH_VARARGS, NULL}, - { (char *)"pvCopyToClipboard", _wrap_pvCopyToClipboard, METH_VARARGS, NULL}, - { (char *)"pvPrint", _wrap_pvPrint, METH_VARARGS, NULL}, - { (char *)"pvSave", _wrap_pvSave, METH_VARARGS, NULL}, - { (char *)"pvSaveAsBmp", _wrap_pvSaveAsBmp, METH_VARARGS, NULL}, - { (char *)"pvHtmlOrSvgDump", _wrap_pvHtmlOrSvgDump, METH_VARARGS, NULL}, - { (char *)"pvRenderTreeDump", _wrap_pvRenderTreeDump, METH_VARARGS, NULL}, - { (char *)"pvSendFile", _wrap_pvSendFile, METH_VARARGS, NULL}, - { (char *)"pvDownloadFileAs", _wrap_pvDownloadFileAs, METH_VARARGS, NULL}, - { (char *)"pvDownloadFile", _wrap_pvDownloadFile, METH_VARARGS, NULL}, - { (char *)"pvSendHttpChunks", _wrap_pvSendHttpChunks, METH_VARARGS, NULL}, - { (char *)"pvSendHttpContentLength", _wrap_pvSendHttpContentLength, METH_VARARGS, NULL}, - { (char *)"pvSetMaxClientsPerIpAdr", _wrap_pvSetMaxClientsPerIpAdr, METH_VARARGS, NULL}, - { (char *)"pvMaxClientsPerIpAdr", _wrap_pvMaxClientsPerIpAdr, METH_VARARGS, NULL}, - { (char *)"pvSetMaxClients", _wrap_pvSetMaxClients, METH_VARARGS, NULL}, - { (char *)"pvMaxClients", _wrap_pvMaxClients, METH_VARARGS, NULL}, - { (char *)"pvGetAdrTableItem", _wrap_pvGetAdrTableItem, METH_VARARGS, NULL}, - { (char *)"pvClearMessageQueue", _wrap_pvClearMessageQueue, METH_VARARGS, NULL}, - { (char *)"pvtcpsend", _wrap_pvtcpsend, METH_VARARGS, NULL}, - { (char *)"pvtcpsendstring", _wrap_pvtcpsendstring, METH_VARARGS, NULL}, - { (char *)"pvtcpsend_binary", _wrap_pvtcpsend_binary, METH_VARARGS, NULL}, - { (char *)"pvtcpreceive", _wrap_pvtcpreceive, METH_VARARGS, NULL}, - { (char *)"pvtcpreceive_binary", _wrap_pvtcpreceive_binary, METH_VARARGS, NULL}, - { (char *)"pvGlBegin", _wrap_pvGlBegin, METH_VARARGS, NULL}, - { (char *)"new_glFont", _wrap_new_glFont, METH_VARARGS, NULL}, - { (char *)"delete_glFont", _wrap_delete_glFont, METH_VARARGS, NULL}, - { (char *)"glFont_read", _wrap_glFont_read, METH_VARARGS, NULL}, - { (char *)"glFont_lineHeight", _wrap_glFont_lineHeight, METH_VARARGS, NULL}, - { (char *)"glFont_charWidth", _wrap_glFont_charWidth, METH_VARARGS, NULL}, - { (char *)"glFont_stringWidth", _wrap_glFont_stringWidth, METH_VARARGS, NULL}, - { (char *)"glFont_drawString", _wrap_glFont_drawString, METH_VARARGS, NULL}, - { (char *)"glFont_setZoom", _wrap_glFont_setZoom, METH_VARARGS, NULL}, - { (char *)"glFont_setRotation", _wrap_glFont_setRotation, METH_VARARGS, NULL}, - { (char *)"glFont_setFontSize", _wrap_glFont_setFontSize, METH_VARARGS, NULL}, - { (char *)"glFont_swigregister", glFont_swigregister, METH_VARARGS, NULL}, - { (char *)"pvSendOpenGL", _wrap_pvSendOpenGL, METH_VARARGS, NULL}, - { (char *)"pvGlEnd", _wrap_pvGlEnd, METH_VARARGS, NULL}, - { (char *)"pvFileDialog", _wrap_pvFileDialog, METH_VARARGS, NULL}, - { (char *)"pvPopupMenu", _wrap_pvPopupMenu, METH_VARARGS, NULL}, - { (char *)"pvMessageBox", _wrap_pvMessageBox, METH_VARARGS, NULL}, - { (char *)"pvInputDialog", _wrap_pvInputDialog, METH_VARARGS, NULL}, - { (char *)"pvRunModalDialog", _wrap_pvRunModalDialog, METH_VARARGS, NULL}, - { (char *)"pvRunModalDialogScript", _wrap_pvRunModalDialogScript, METH_VARARGS, NULL}, - { (char *)"pvTerminateModalDialog", _wrap_pvTerminateModalDialog, METH_VARARGS, NULL}, - { (char *)"pvUpdateBaseWindow", _wrap_pvUpdateBaseWindow, METH_VARARGS, NULL}, - { (char *)"pvUpdateBaseWindowOnOff", _wrap_pvUpdateBaseWindowOnOff, METH_VARARGS, NULL}, - { (char *)"pvAddDockWidget", _wrap_pvAddDockWidget, METH_VARARGS, NULL}, - { (char *)"pvDeleteDockWidget", _wrap_pvDeleteDockWidget, METH_VARARGS, NULL}, - { (char *)"qpwSetCurveData", _wrap_qpwSetCurveData, METH_VARARGS, NULL}, - { (char *)"qpwSetBufferedCurveData", _wrap_qpwSetBufferedCurveData, METH_VARARGS, NULL}, - { (char *)"qpwReplot", _wrap_qpwReplot, METH_VARARGS, NULL}, - { (char *)"qpwSetTitle", _wrap_qpwSetTitle, METH_VARARGS, NULL}, - { (char *)"qpwSetCanvasBackground", _wrap_qpwSetCanvasBackground, METH_VARARGS, NULL}, - { (char *)"qpwEnableOutline", _wrap_qpwEnableOutline, METH_VARARGS, NULL}, - { (char *)"qpwSetOutlinePen", _wrap_qpwSetOutlinePen, METH_VARARGS, NULL}, - { (char *)"qpwSetAutoLegend", _wrap_qpwSetAutoLegend, METH_VARARGS, NULL}, - { (char *)"qpwEnableLegend", _wrap_qpwEnableLegend, METH_VARARGS, NULL}, - { (char *)"qpwSetLegendPos", _wrap_qpwSetLegendPos, METH_VARARGS, NULL}, - { (char *)"qpwSetLegendFrameStyle", _wrap_qpwSetLegendFrameStyle, METH_VARARGS, NULL}, - { (char *)"qpwEnableGridXMin", _wrap_qpwEnableGridXMin, METH_VARARGS, NULL}, - { (char *)"qpwSetGridMajPen", _wrap_qpwSetGridMajPen, METH_VARARGS, NULL}, - { (char *)"qpwSetGridMinPen", _wrap_qpwSetGridMinPen, METH_VARARGS, NULL}, - { (char *)"qpwEnableAxis", _wrap_qpwEnableAxis, METH_VARARGS, NULL}, - { (char *)"qpwSetAxisTitle", _wrap_qpwSetAxisTitle, METH_VARARGS, NULL}, - { (char *)"qpwSetAxisOptions", _wrap_qpwSetAxisOptions, METH_VARARGS, NULL}, - { (char *)"qpwSetAxisMaxMajor", _wrap_qpwSetAxisMaxMajor, METH_VARARGS, NULL}, - { (char *)"qpwSetAxisMaxMinor", _wrap_qpwSetAxisMaxMinor, METH_VARARGS, NULL}, - { (char *)"qpwInsertCurve", _wrap_qpwInsertCurve, METH_VARARGS, NULL}, - { (char *)"qpwRemoveCurve", _wrap_qpwRemoveCurve, METH_VARARGS, NULL}, - { (char *)"qpwSetCurvePen", _wrap_qpwSetCurvePen, METH_VARARGS, NULL}, - { (char *)"qpwSetCurveSymbol", _wrap_qpwSetCurveSymbol, METH_VARARGS, NULL}, - { (char *)"qpwSetCurveYAxis", _wrap_qpwSetCurveYAxis, METH_VARARGS, NULL}, - { (char *)"qpwInsertMarker", _wrap_qpwInsertMarker, METH_VARARGS, NULL}, - { (char *)"qpwSetMarkerLineStyle", _wrap_qpwSetMarkerLineStyle, METH_VARARGS, NULL}, - { (char *)"qpwSetMarkerPos", _wrap_qpwSetMarkerPos, METH_VARARGS, NULL}, - { (char *)"qpwSetMarkerLabelAlign", _wrap_qpwSetMarkerLabelAlign, METH_VARARGS, NULL}, - { (char *)"qpwSetMarkerPen", _wrap_qpwSetMarkerPen, METH_VARARGS, NULL}, - { (char *)"qpwSetMarkerLabel", _wrap_qpwSetMarkerLabel, METH_VARARGS, NULL}, - { (char *)"qpwSetMarkerFont", _wrap_qpwSetMarkerFont, METH_VARARGS, NULL}, - { (char *)"qpwSetMarkerSymbol", _wrap_qpwSetMarkerSymbol, METH_VARARGS, NULL}, - { (char *)"qpwInsertLineMarker", _wrap_qpwInsertLineMarker, METH_VARARGS, NULL}, - { (char *)"qpwSetAxisScaleDraw", _wrap_qpwSetAxisScaleDraw, METH_VARARGS, NULL}, - { (char *)"qpwSetAxisScale", _wrap_qpwSetAxisScale, METH_VARARGS, NULL}, - { (char *)"pvSetZoomX", _wrap_pvSetZoomX, METH_VARARGS, NULL}, - { (char *)"pvSetZoomY", _wrap_pvSetZoomY, METH_VARARGS, NULL}, - { (char *)"gWriteFile", _wrap_gWriteFile, METH_VARARGS, NULL}, - { (char *)"gCloseFile", _wrap_gCloseFile, METH_VARARGS, NULL}, - { (char *)"gBeginDraw", _wrap_gBeginDraw, METH_VARARGS, NULL}, - { (char *)"gBox", _wrap_gBox, METH_VARARGS, NULL}, - { (char *)"gRect", _wrap_gRect, METH_VARARGS, NULL}, - { (char *)"gEndDraw", _wrap_gEndDraw, METH_VARARGS, NULL}, - { (char *)"gLineTo", _wrap_gLineTo, METH_VARARGS, NULL}, - { (char *)"gBufferedLine", _wrap_gBufferedLine, METH_VARARGS, NULL}, - { (char *)"gLine", _wrap_gLine, METH_VARARGS, NULL}, - { (char *)"gMoveTo", _wrap_gMoveTo, METH_VARARGS, NULL}, - { (char *)"gRightYAxis", _wrap_gRightYAxis, METH_VARARGS, NULL}, - { (char *)"gSetColor", _wrap_gSetColor, METH_VARARGS, NULL}, - { (char *)"gSetWidth", _wrap_gSetWidth, METH_VARARGS, NULL}, - { (char *)"gSetStyle", _wrap_gSetStyle, METH_VARARGS, NULL}, - { (char *)"gDrawArc", _wrap_gDrawArc, METH_VARARGS, NULL}, - { (char *)"gDrawPie", _wrap_gDrawPie, METH_VARARGS, NULL}, - { (char *)"gDrawPolygon", _wrap_gDrawPolygon, METH_VARARGS, NULL}, - { (char *)"gSetFont", _wrap_gSetFont, METH_VARARGS, NULL}, - { (char *)"gSetLinestyle", _wrap_gSetLinestyle, METH_VARARGS, NULL}, - { (char *)"gText", _wrap_gText, METH_VARARGS, NULL}, - { (char *)"gTextInAxis", _wrap_gTextInAxis, METH_VARARGS, NULL}, - { (char *)"gSetFloatFormat", _wrap_gSetFloatFormat, METH_VARARGS, NULL}, - { (char *)"gXAxis", _wrap_gXAxis, METH_VARARGS, NULL}, - { (char *)"gYAxis", _wrap_gYAxis, METH_VARARGS, NULL}, - { (char *)"gXGrid", _wrap_gXGrid, METH_VARARGS, NULL}, - { (char *)"gYGrid", _wrap_gYGrid, METH_VARARGS, NULL}, - { (char *)"gBoxWithText", _wrap_gBoxWithText, METH_VARARGS, NULL}, - { (char *)"gComment", _wrap_gComment, METH_VARARGS, NULL}, - { (char *)"gPlaySVG", _wrap_gPlaySVG, METH_VARARGS, NULL}, - { (char *)"gSocketPlaySVG", _wrap_gSocketPlaySVG, METH_VARARGS, NULL}, - { (char *)"gTranslate", _wrap_gTranslate, METH_VARARGS, NULL}, - { (char *)"gRotate", _wrap_gRotate, METH_VARARGS, NULL}, - { (char *)"gScale", _wrap_gScale, METH_VARARGS, NULL}, - { (char *)"pvSetSelector", _wrap_pvSetSelector, METH_VARARGS, NULL}, - { (char *)"pvPrintSvgOnPrinter", _wrap_pvPrintSvgOnPrinter, METH_VARARGS, NULL}, - { (char *)"qwtScaleSetTitle", _wrap_qwtScaleSetTitle, METH_VARARGS, NULL}, - { (char *)"qwtScaleSetTitleColor", _wrap_qwtScaleSetTitleColor, METH_VARARGS, NULL}, - { (char *)"qwtScaleSetTitleFont", _wrap_qwtScaleSetTitleFont, METH_VARARGS, NULL}, - { (char *)"qwtScaleSetTitleAlignment", _wrap_qwtScaleSetTitleAlignment, METH_VARARGS, NULL}, - { (char *)"qwtScaleSetBorderDist", _wrap_qwtScaleSetBorderDist, METH_VARARGS, NULL}, - { (char *)"qwtScaleSetBaselineDist", _wrap_qwtScaleSetBaselineDist, METH_VARARGS, NULL}, - { (char *)"qwtScaleSetScaleDiv", _wrap_qwtScaleSetScaleDiv, METH_VARARGS, NULL}, - { (char *)"qwtScaleSetLabelFormat", _wrap_qwtScaleSetLabelFormat, METH_VARARGS, NULL}, - { (char *)"qwtScaleSetLabelAlignment", _wrap_qwtScaleSetLabelAlignment, METH_VARARGS, NULL}, - { (char *)"qwtScaleSetLabelRotation", _wrap_qwtScaleSetLabelRotation, METH_VARARGS, NULL}, - { (char *)"qwtScaleSetPosition", _wrap_qwtScaleSetPosition, METH_VARARGS, NULL}, - { (char *)"qwtThermoSetScale", _wrap_qwtThermoSetScale, METH_VARARGS, NULL}, - { (char *)"qwtThermoSetOrientation", _wrap_qwtThermoSetOrientation, METH_VARARGS, NULL}, - { (char *)"qwtThermoSetBorderWidth", _wrap_qwtThermoSetBorderWidth, METH_VARARGS, NULL}, - { (char *)"qwtThermoSetFillColor", _wrap_qwtThermoSetFillColor, METH_VARARGS, NULL}, - { (char *)"qwtThermoSetAlarmColor", _wrap_qwtThermoSetAlarmColor, METH_VARARGS, NULL}, - { (char *)"qwtThermoSetAlarmLevel", _wrap_qwtThermoSetAlarmLevel, METH_VARARGS, NULL}, - { (char *)"qwtThermoSetAlarmEnabled", _wrap_qwtThermoSetAlarmEnabled, METH_VARARGS, NULL}, - { (char *)"qwtThermoSetPipeWidth", _wrap_qwtThermoSetPipeWidth, METH_VARARGS, NULL}, - { (char *)"qwtThermoSetRange", _wrap_qwtThermoSetRange, METH_VARARGS, NULL}, - { (char *)"qwtThermoSetMargin", _wrap_qwtThermoSetMargin, METH_VARARGS, NULL}, - { (char *)"qwtThermoSetValue", _wrap_qwtThermoSetValue, METH_VARARGS, NULL}, - { (char *)"qwtKnobSetScale", _wrap_qwtKnobSetScale, METH_VARARGS, NULL}, - { (char *)"qwtKnobSetMass", _wrap_qwtKnobSetMass, METH_VARARGS, NULL}, - { (char *)"qwtKnobSetOrientation", _wrap_qwtKnobSetOrientation, METH_VARARGS, NULL}, - { (char *)"qwtKnobSetReadOnly", _wrap_qwtKnobSetReadOnly, METH_VARARGS, NULL}, - { (char *)"qwtKnobSetKnobWidth", _wrap_qwtKnobSetKnobWidth, METH_VARARGS, NULL}, - { (char *)"qwtKnobSetTotalAngle", _wrap_qwtKnobSetTotalAngle, METH_VARARGS, NULL}, - { (char *)"qwtKnobSetBorderWidth", _wrap_qwtKnobSetBorderWidth, METH_VARARGS, NULL}, - { (char *)"qwtKnobSetSymbol", _wrap_qwtKnobSetSymbol, METH_VARARGS, NULL}, - { (char *)"qwtKnobSetValue", _wrap_qwtKnobSetValue, METH_VARARGS, NULL}, - { (char *)"qwtCounterSetStep", _wrap_qwtCounterSetStep, METH_VARARGS, NULL}, - { (char *)"qwtCounterSetMinValue", _wrap_qwtCounterSetMinValue, METH_VARARGS, NULL}, - { (char *)"qwtCounterSetMaxValue", _wrap_qwtCounterSetMaxValue, METH_VARARGS, NULL}, - { (char *)"qwtCounterSetStepButton1", _wrap_qwtCounterSetStepButton1, METH_VARARGS, NULL}, - { (char *)"qwtCounterSetStepButton2", _wrap_qwtCounterSetStepButton2, METH_VARARGS, NULL}, - { (char *)"qwtCounterSetStepButton3", _wrap_qwtCounterSetStepButton3, METH_VARARGS, NULL}, - { (char *)"qwtCounterSetNumButtons", _wrap_qwtCounterSetNumButtons, METH_VARARGS, NULL}, - { (char *)"qwtCounterSetIncSteps", _wrap_qwtCounterSetIncSteps, METH_VARARGS, NULL}, - { (char *)"qwtCounterSetValue", _wrap_qwtCounterSetValue, METH_VARARGS, NULL}, - { (char *)"qwtWheelSetMass", _wrap_qwtWheelSetMass, METH_VARARGS, NULL}, - { (char *)"qwtWheelSetOrientation", _wrap_qwtWheelSetOrientation, METH_VARARGS, NULL}, - { (char *)"qwtWheelSetReadOnly", _wrap_qwtWheelSetReadOnly, METH_VARARGS, NULL}, - { (char *)"qwtWheelSetTotalAngle", _wrap_qwtWheelSetTotalAngle, METH_VARARGS, NULL}, - { (char *)"qwtWheelSetTickCnt", _wrap_qwtWheelSetTickCnt, METH_VARARGS, NULL}, - { (char *)"qwtWheelSetViewAngle", _wrap_qwtWheelSetViewAngle, METH_VARARGS, NULL}, - { (char *)"qwtWheelSetInternalBorder", _wrap_qwtWheelSetInternalBorder, METH_VARARGS, NULL}, - { (char *)"qwtWheelSetWheelWidth", _wrap_qwtWheelSetWheelWidth, METH_VARARGS, NULL}, - { (char *)"qwtWheelSetValue", _wrap_qwtWheelSetValue, METH_VARARGS, NULL}, - { (char *)"qwtSliderSetScale", _wrap_qwtSliderSetScale, METH_VARARGS, NULL}, - { (char *)"qwtSliderSetMass", _wrap_qwtSliderSetMass, METH_VARARGS, NULL}, - { (char *)"qwtSliderSetOrientation", _wrap_qwtSliderSetOrientation, METH_VARARGS, NULL}, - { (char *)"qwtSliderSetReadOnly", _wrap_qwtSliderSetReadOnly, METH_VARARGS, NULL}, - { (char *)"qwtSliderSetBgStyle", _wrap_qwtSliderSetBgStyle, METH_VARARGS, NULL}, - { (char *)"qwtSliderSetScalePos", _wrap_qwtSliderSetScalePos, METH_VARARGS, NULL}, - { (char *)"qwtSliderSetThumbLength", _wrap_qwtSliderSetThumbLength, METH_VARARGS, NULL}, - { (char *)"qwtSliderSetThumbWidth", _wrap_qwtSliderSetThumbWidth, METH_VARARGS, NULL}, - { (char *)"qwtSliderSetBorderWidth", _wrap_qwtSliderSetBorderWidth, METH_VARARGS, NULL}, - { (char *)"qwtSliderSetMargins", _wrap_qwtSliderSetMargins, METH_VARARGS, NULL}, - { (char *)"qwtSliderSetValue", _wrap_qwtSliderSetValue, METH_VARARGS, NULL}, - { (char *)"qwtCompassSetSimpleCompassRose", _wrap_qwtCompassSetSimpleCompassRose, METH_VARARGS, NULL}, - { (char *)"qwtCompassSetRange", _wrap_qwtCompassSetRange, METH_VARARGS, NULL}, - { (char *)"qwtCompassSetMass", _wrap_qwtCompassSetMass, METH_VARARGS, NULL}, - { (char *)"qwtCompassSetReadOnly", _wrap_qwtCompassSetReadOnly, METH_VARARGS, NULL}, - { (char *)"qwtCompassSetFrameShadow", _wrap_qwtCompassSetFrameShadow, METH_VARARGS, NULL}, - { (char *)"qwtCompassShowBackground", _wrap_qwtCompassShowBackground, METH_VARARGS, NULL}, - { (char *)"qwtCompassSetLineWidth", _wrap_qwtCompassSetLineWidth, METH_VARARGS, NULL}, - { (char *)"qwtCompassSetMode", _wrap_qwtCompassSetMode, METH_VARARGS, NULL}, - { (char *)"qwtCompassSetWrapping", _wrap_qwtCompassSetWrapping, METH_VARARGS, NULL}, - { (char *)"qwtCompassSetScale", _wrap_qwtCompassSetScale, METH_VARARGS, NULL}, - { (char *)"qwtCompassSetScaleArc", _wrap_qwtCompassSetScaleArc, METH_VARARGS, NULL}, - { (char *)"qwtCompassSetOrigin", _wrap_qwtCompassSetOrigin, METH_VARARGS, NULL}, - { (char *)"qwtCompassSetNeedle", _wrap_qwtCompassSetNeedle, METH_VARARGS, NULL}, - { (char *)"qwtCompassSetValue", _wrap_qwtCompassSetValue, METH_VARARGS, NULL}, - { (char *)"qwtDialSetRange", _wrap_qwtDialSetRange, METH_VARARGS, NULL}, - { (char *)"qwtDialSetMass", _wrap_qwtDialSetMass, METH_VARARGS, NULL}, - { (char *)"qwtDialSetReadOnly", _wrap_qwtDialSetReadOnly, METH_VARARGS, NULL}, - { (char *)"qwtDialSetFrameShadow", _wrap_qwtDialSetFrameShadow, METH_VARARGS, NULL}, - { (char *)"qwtDialShowBackground", _wrap_qwtDialShowBackground, METH_VARARGS, NULL}, - { (char *)"qwtDialSetLineWidth", _wrap_qwtDialSetLineWidth, METH_VARARGS, NULL}, - { (char *)"qwtDialSetMode", _wrap_qwtDialSetMode, METH_VARARGS, NULL}, - { (char *)"qwtDialSetWrapping", _wrap_qwtDialSetWrapping, METH_VARARGS, NULL}, - { (char *)"qwtDialSetScale", _wrap_qwtDialSetScale, METH_VARARGS, NULL}, - { (char *)"qwtDialSetScaleArc", _wrap_qwtDialSetScaleArc, METH_VARARGS, NULL}, - { (char *)"qwtDialSetOrigin", _wrap_qwtDialSetOrigin, METH_VARARGS, NULL}, - { (char *)"qwtDialSetNeedle", _wrap_qwtDialSetNeedle, METH_VARARGS, NULL}, - { (char *)"qwtDialSetValue", _wrap_qwtDialSetValue, METH_VARARGS, NULL}, - { (char *)"qwtAnalogClockSetTime", _wrap_qwtAnalogClockSetTime, METH_VARARGS, NULL}, - { (char *)"qwtAnalogClockSetMass", _wrap_qwtAnalogClockSetMass, METH_VARARGS, NULL}, - { (char *)"qwtAnalogClockSetReadOnly", _wrap_qwtAnalogClockSetReadOnly, METH_VARARGS, NULL}, - { (char *)"qwtAnalogClockSetFrameShadow", _wrap_qwtAnalogClockSetFrameShadow, METH_VARARGS, NULL}, - { (char *)"qwtAnalogClockShowBackground", _wrap_qwtAnalogClockShowBackground, METH_VARARGS, NULL}, - { (char *)"qwtAnalogClockSetLineWidth", _wrap_qwtAnalogClockSetLineWidth, METH_VARARGS, NULL}, - { (char *)"qwtAnalogClockSetMode", _wrap_qwtAnalogClockSetMode, METH_VARARGS, NULL}, - { (char *)"qwtAnalogClockSetWrapping", _wrap_qwtAnalogClockSetWrapping, METH_VARARGS, NULL}, - { (char *)"qwtAnalogClockSetScale", _wrap_qwtAnalogClockSetScale, METH_VARARGS, NULL}, - { (char *)"qwtAnalogClockSetScaleArc", _wrap_qwtAnalogClockSetScaleArc, METH_VARARGS, NULL}, - { (char *)"qwtAnalogClockSetOrigin", _wrap_qwtAnalogClockSetOrigin, METH_VARARGS, NULL}, - { (char *)"qwtAnalogClockSetNeedle", _wrap_qwtAnalogClockSetNeedle, METH_VARARGS, NULL}, - { (char *)"qwtAnalogClockSetValue", _wrap_qwtAnalogClockSetValue, METH_VARARGS, NULL}, - { (char *)"unit", _wrap_unit, METH_VARARGS, NULL}, - { (char *)"textEventType", _wrap_textEventType, METH_VARARGS, NULL}, - { (char *)"svgObjectName", _wrap_svgObjectName, METH_VARARGS, NULL}, - { (char *)"getSvgBoundsOnElement", _wrap_getSvgBoundsOnElement, METH_VARARGS, NULL}, - { (char *)"getSvgMatrixForElement", _wrap_getSvgMatrixForElement, METH_VARARGS, NULL}, - { (char *)"getGeometry", _wrap_getGeometry, METH_VARARGS, NULL}, - { (char *)"getParentWidgetId", _wrap_getParentWidgetId, METH_VARARGS, NULL}, - { (char *)"new_pvWidgetIdManager", _wrap_new_pvWidgetIdManager, METH_VARARGS, NULL}, - { (char *)"delete_pvWidgetIdManager", _wrap_delete_pvWidgetIdManager, METH_VARARGS, NULL}, - { (char *)"pvWidgetIdManager_init", _wrap_pvWidgetIdManager_init, METH_VARARGS, NULL}, - { (char *)"pvWidgetIdManager_newId", _wrap_pvWidgetIdManager_newId, METH_VARARGS, NULL}, - { (char *)"pvWidgetIdManager_deleteWidget", _wrap_pvWidgetIdManager_deleteWidget, METH_VARARGS, NULL}, - { (char *)"pvWidgetIdManager_id", _wrap_pvWidgetIdManager_id, METH_VARARGS, NULL}, - { (char *)"pvWidgetIdManager_isInMap", _wrap_pvWidgetIdManager_isInMap, METH_VARARGS, NULL}, - { (char *)"pvWidgetIdManager_firstId", _wrap_pvWidgetIdManager_firstId, METH_VARARGS, NULL}, - { (char *)"pvWidgetIdManager_nextId", _wrap_pvWidgetIdManager_nextId, METH_VARARGS, NULL}, - { (char *)"pvWidgetIdManager_endId", _wrap_pvWidgetIdManager_endId, METH_VARARGS, NULL}, - { (char *)"pvWidgetIdManager_name", _wrap_pvWidgetIdManager_name, METH_VARARGS, NULL}, - { (char *)"pvWidgetIdManager_idStart", _wrap_pvWidgetIdManager_idStart, METH_VARARGS, NULL}, - { (char *)"pvWidgetIdManager_readEnumFromMask", _wrap_pvWidgetIdManager_readEnumFromMask, METH_VARARGS, NULL}, - { (char *)"pvWidgetIdManager_swigregister", pvWidgetIdManager_swigregister, METH_VARARGS, NULL}, - { (char *)"new_qtDatabase", _wrap_new_qtDatabase, METH_VARARGS, NULL}, - { (char *)"delete_qtDatabase", _wrap_delete_qtDatabase, METH_VARARGS, NULL}, - { (char *)"qtDatabase_open", _wrap_qtDatabase_open, METH_VARARGS, NULL}, - { (char *)"qtDatabase_close", _wrap_qtDatabase_close, METH_VARARGS, NULL}, - { (char *)"qtDatabase_query", _wrap_qtDatabase_query, METH_VARARGS, NULL}, - { (char *)"qtDatabase_populateTable", _wrap_qtDatabase_populateTable, METH_VARARGS, NULL}, - { (char *)"qtDatabase_recordFieldValue", _wrap_qtDatabase_recordFieldValue, METH_VARARGS, NULL}, - { (char *)"qtDatabase_dbQuery", _wrap_qtDatabase_dbQuery, METH_VARARGS, NULL}, - { (char *)"qtDatabase_dbRecordFieldValue", _wrap_qtDatabase_dbRecordFieldValue, METH_VARARGS, NULL}, - { (char *)"qtDatabase_nextRecord", _wrap_qtDatabase_nextRecord, METH_VARARGS, NULL}, - { (char *)"qtDatabase_connectionName_set", _wrap_qtDatabase_connectionName_set, METH_VARARGS, NULL}, - { (char *)"qtDatabase_connectionName_get", _wrap_qtDatabase_connectionName_get, METH_VARARGS, NULL}, - { (char *)"qtDatabase_db_set", _wrap_qtDatabase_db_set, METH_VARARGS, NULL}, - { (char *)"qtDatabase_db_get", _wrap_qtDatabase_db_get, METH_VARARGS, NULL}, - { (char *)"qtDatabase_result_set", _wrap_qtDatabase_result_set, METH_VARARGS, NULL}, - { (char *)"qtDatabase_result_get", _wrap_qtDatabase_result_get, METH_VARARGS, NULL}, - { (char *)"qtDatabase_error_set", _wrap_qtDatabase_error_set, METH_VARARGS, NULL}, - { (char *)"qtDatabase_error_get", _wrap_qtDatabase_error_get, METH_VARARGS, NULL}, - { (char *)"qtDatabase_swigregister", qtDatabase_swigregister, METH_VARARGS, NULL}, - { (char *)"getParam", _wrap_getParam, METH_VARARGS, NULL}, - { (char *)"pvQImageScript", _wrap_pvQImageScript, METH_VARARGS, NULL}, - { (char *)"new_int", _wrap_new_int, METH_VARARGS, NULL}, - { (char *)"get_int", _wrap_get_int, METH_VARARGS, NULL}, - { (char *)"delete_int", _wrap_delete_int, METH_VARARGS, NULL}, - { NULL, NULL, 0, NULL } -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ - -static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_FloatArray = {"_p_FloatArray", "FloatArray *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_GLuint = {"_p_GLuint", "GLuint *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_IntegerArray = {"_p_IntegerArray", "IntegerArray *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_PARSE_EVENT_STRUCT = {"_p_PARSE_EVENT_STRUCT", "PARSE_EVENT_STRUCT *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_QSqlDatabase = {"_p_QSqlDatabase", "QSqlDatabase *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_QSqlError = {"_p_QSqlError", "QSqlError *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_QSqlQuery = {"_p_QSqlQuery", "QSqlQuery *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p__PARAM_ = {"_p__PARAM_", "PARAM *|_PARAM_ *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_f_p__PARAM___int = {"_p_f_p__PARAM___int", "int (*)(PARAM *)|int (*)(_PARAM_ *)", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_f_p__PARAM__p_void__int = {"_p_f_p__PARAM__p_void__int", "int (*)(_PARAM_ *,void *)|int (*)(PARAM *,void *)", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_f_p_void__int = {"_p_f_p_void__int", "int (*)(void *)", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_float = {"_p_float", "float *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_glFont = {"_p_glFont", "glFont *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_pvAddressTable = {"_p_pvAddressTable", "pvAddressTable *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_pvAddressTableItem = {"_p_pvAddressTableItem", "pvAddressTableItem *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_pvTime = {"_p_pvTime", "pvTime *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_pvWidgetIdManager = {"_p_pvWidgetIdManager", "pvWidgetIdManager *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_qtDatabase = {"_p_qtDatabase", "qtDatabase *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; - -static swig_type_info *swig_type_initial[] = { - &_swigt__p_FILE, - &_swigt__p_FloatArray, - &_swigt__p_GLuint, - &_swigt__p_IntegerArray, - &_swigt__p_PARSE_EVENT_STRUCT, - &_swigt__p_QSqlDatabase, - &_swigt__p_QSqlError, - &_swigt__p_QSqlQuery, - &_swigt__p__PARAM_, - &_swigt__p_char, - &_swigt__p_double, - &_swigt__p_f_p__PARAM___int, - &_swigt__p_f_p__PARAM__p_void__int, - &_swigt__p_f_p_void__int, - &_swigt__p_float, - &_swigt__p_glFont, - &_swigt__p_int, - &_swigt__p_p_char, - &_swigt__p_pvAddressTable, - &_swigt__p_pvAddressTableItem, - &_swigt__p_pvTime, - &_swigt__p_pvWidgetIdManager, - &_swigt__p_qtDatabase, - &_swigt__p_unsigned_char, - &_swigt__p_void, -}; - -static swig_cast_info _swigc__p_FILE[] = { {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_FloatArray[] = { {&_swigt__p_FloatArray, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_GLuint[] = { {&_swigt__p_GLuint, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_IntegerArray[] = { {&_swigt__p_IntegerArray, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_PARSE_EVENT_STRUCT[] = { {&_swigt__p_PARSE_EVENT_STRUCT, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_QSqlDatabase[] = { {&_swigt__p_QSqlDatabase, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_QSqlError[] = { {&_swigt__p_QSqlError, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_QSqlQuery[] = { {&_swigt__p_QSqlQuery, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p__PARAM_[] = { {&_swigt__p__PARAM_, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_f_p__PARAM___int[] = { {&_swigt__p_f_p__PARAM___int, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_f_p__PARAM__p_void__int[] = { {&_swigt__p_f_p__PARAM__p_void__int, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_f_p_void__int[] = { {&_swigt__p_f_p_void__int, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_float[] = { {&_swigt__p_float, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_glFont[] = { {&_swigt__p_glFont, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_pvAddressTable[] = { {&_swigt__p_pvAddressTable, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_pvAddressTableItem[] = { {&_swigt__p_pvAddressTableItem, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_pvTime[] = { {&_swigt__p_pvTime, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_pvWidgetIdManager[] = { {&_swigt__p_pvWidgetIdManager, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_qtDatabase[] = { {&_swigt__p_qtDatabase, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; - -static swig_cast_info *swig_cast_initial[] = { - _swigc__p_FILE, - _swigc__p_FloatArray, - _swigc__p_GLuint, - _swigc__p_IntegerArray, - _swigc__p_PARSE_EVENT_STRUCT, - _swigc__p_QSqlDatabase, - _swigc__p_QSqlError, - _swigc__p_QSqlQuery, - _swigc__p__PARAM_, - _swigc__p_char, - _swigc__p_double, - _swigc__p_f_p__PARAM___int, - _swigc__p_f_p__PARAM__p_void__int, - _swigc__p_f_p_void__int, - _swigc__p_float, - _swigc__p_glFont, - _swigc__p_int, - _swigc__p_p_char, - _swigc__p_pvAddressTable, - _swigc__p_pvAddressTableItem, - _swigc__p_pvTime, - _swigc__p_pvWidgetIdManager, - _swigc__p_qtDatabase, - _swigc__p_unsigned_char, - _swigc__p_void, -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ - -static swig_const_info swig_const_table[] = { -{0, 0, 0, 0.0, 0, 0}}; - -#ifdef __cplusplus -} -#endif -/* ----------------------------------------------------------------------------- - * Type initialization: - * This problem is tough by the requirement that no dynamic - * memory is used. Also, since swig_type_info structures store pointers to - * swig_cast_info structures and swig_cast_info structures store pointers back - * to swig_type_info structures, we need some lookup code at initialization. - * The idea is that swig generates all the structures that are needed. - * The runtime then collects these partially filled structures. - * The SWIG_InitializeModule function takes these initial arrays out of - * swig_module, and does all the lookup, filling in the swig_module.types - * array with the correct data and linking the correct swig_cast_info - * structures together. - * - * The generated swig_type_info structures are assigned staticly to an initial - * array. We just loop through that array, and handle each type individually. - * First we lookup if this type has been already loaded, and if so, use the - * loaded structure instead of the generated one. Then we have to fill in the - * cast linked list. The cast data is initially stored in something like a - * two-dimensional array. Each row corresponds to a type (there are the same - * number of rows as there are in the swig_type_initial array). Each entry in - * a column is one of the swig_cast_info structures for that type. - * The cast_initial array is actually an array of arrays, because each row has - * a variable number of columns. So to actually build the cast linked list, - * we find the array of casts associated with the type, and loop through it - * adding the casts to the list. The one last trick we need to do is making - * sure the type pointer in the swig_cast_info struct is correct. - * - * First off, we lookup the cast->type name to see if it is already loaded. - * There are three cases to handle: - * 1) If the cast->type has already been loaded AND the type we are adding - * casting info to has not been loaded (it is in this module), THEN we - * replace the cast->type pointer with the type pointer that has already - * been loaded. - * 2) If BOTH types (the one we are adding casting info to, and the - * cast->type) are loaded, THEN the cast info has already been loaded by - * the previous module so we just ignore it. - * 3) Finally, if cast->type has not already been loaded, then we add that - * swig_cast_info to the linked list (because the cast->type) pointer will - * be correct. - * ----------------------------------------------------------------------------- */ - -#ifdef __cplusplus -extern "C" { -#if 0 -} /* c-mode */ -#endif -#endif - -#if 0 -#define SWIGRUNTIME_DEBUG -#endif - - -SWIGRUNTIME void -SWIG_InitializeModule(void *clientdata) { - size_t i; - swig_module_info *module_head, *iter; - int found, init; - - /* check to see if the circular list has been setup, if not, set it up */ - if (swig_module.next==0) { - /* Initialize the swig_module */ - swig_module.type_initial = swig_type_initial; - swig_module.cast_initial = swig_cast_initial; - swig_module.next = &swig_module; - init = 1; - } else { - init = 0; - } - - /* Try and load any already created modules */ - module_head = SWIG_GetModule(clientdata); - if (!module_head) { - /* This is the first module loaded for this interpreter */ - /* so set the swig module into the interpreter */ - SWIG_SetModule(clientdata, &swig_module); - module_head = &swig_module; - } else { - /* the interpreter has loaded a SWIG module, but has it loaded this one? */ - found=0; - iter=module_head; - do { - if (iter==&swig_module) { - found=1; - break; - } - iter=iter->next; - } while (iter!= module_head); - - /* if the is found in the list, then all is done and we may leave */ - if (found) return; - /* otherwise we must add out module into the list */ - swig_module.next = module_head->next; - module_head->next = &swig_module; - } - - /* When multiple interpreters are used, a module could have already been initialized in - a different interpreter, but not yet have a pointer in this interpreter. - In this case, we do not want to continue adding types... everything should be - set up already */ - if (init == 0) return; - - /* Now work on filling in swig_module.types */ -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: size %d\n", swig_module.size); -#endif - for (i = 0; i < swig_module.size; ++i) { - swig_type_info *type = 0; - swig_type_info *ret; - swig_cast_info *cast; - -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); -#endif - - /* if there is another module already loaded */ - if (swig_module.next != &swig_module) { - type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); - } - if (type) { - /* Overwrite clientdata field */ -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: found type %s\n", type->name); -#endif - if (swig_module.type_initial[i]->clientdata) { - type->clientdata = swig_module.type_initial[i]->clientdata; -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); -#endif - } - } else { - type = swig_module.type_initial[i]; - } - - /* Insert casting types */ - cast = swig_module.cast_initial[i]; - while (cast->type) { - /* Don't need to add information already in the list */ - ret = 0; -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); -#endif - if (swig_module.next != &swig_module) { - ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); -#ifdef SWIGRUNTIME_DEBUG - if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); -#endif - } - if (ret) { - if (type == swig_module.type_initial[i]) { -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: skip old type %s\n", ret->name); -#endif - cast->type = ret; - ret = 0; - } else { - /* Check for casting already in the list */ - swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); -#ifdef SWIGRUNTIME_DEBUG - if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); -#endif - if (!ocast) ret = 0; - } - } - - if (!ret) { -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); -#endif - if (type->cast) { - type->cast->prev = cast; - cast->next = type->cast; - } - type->cast = cast; - } - cast++; - } - /* Set entry in modules->types array equal to the type */ - swig_module.types[i] = type; - } - swig_module.types[i] = 0; - -#ifdef SWIGRUNTIME_DEBUG - printf("**** SWIG_InitializeModule: Cast List ******\n"); - for (i = 0; i < swig_module.size; ++i) { - int j = 0; - swig_cast_info *cast = swig_module.cast_initial[i]; - printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); - while (cast->type) { - printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); - cast++; - ++j; - } - printf("---- Total casts: %d\n",j); - } - printf("**** SWIG_InitializeModule: Cast List ******\n"); -#endif -} - -/* This function will propagate the clientdata field of type to -* any new swig_type_info structures that have been added into the list -* of equivalent types. It is like calling -* SWIG_TypeClientData(type, clientdata) a second time. -*/ -SWIGRUNTIME void -SWIG_PropagateClientData(void) { - size_t i; - swig_cast_info *equiv; - static int init_run = 0; - - if (init_run) return; - init_run = 1; - - for (i = 0; i < swig_module.size; i++) { - if (swig_module.types[i]->clientdata) { - equiv = swig_module.types[i]->cast; - while (equiv) { - if (!equiv->converter) { - if (equiv->type && !equiv->type->clientdata) - SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); - } - equiv = equiv->next; - } - } - } -} - -#ifdef __cplusplus -#if 0 -{ - /* c-mode */ -#endif -} -#endif - - - -#ifdef __cplusplus -extern "C" { -#endif - - /* Python-specific SWIG API */ -#define SWIG_newvarlink() SWIG_Python_newvarlink() -#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) -#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) - - /* ----------------------------------------------------------------------------- - * global variable support code. - * ----------------------------------------------------------------------------- */ - - typedef struct swig_globalvar { - char *name; /* Name of global variable */ - PyObject *(*get_attr)(void); /* Return the current value */ - int (*set_attr)(PyObject *); /* Set the value */ - struct swig_globalvar *next; - } swig_globalvar; - - typedef struct swig_varlinkobject { - PyObject_HEAD - swig_globalvar *vars; - } swig_varlinkobject; - - SWIGINTERN PyObject * - swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { -#if PY_VERSION_HEX >= 0x03000000 - return PyUnicode_InternFromString(""); -#else - return PyString_FromString(""); -#endif - } - - SWIGINTERN PyObject * - swig_varlink_str(swig_varlinkobject *v) { -#if PY_VERSION_HEX >= 0x03000000 - PyObject *str = PyUnicode_InternFromString("("); - PyObject *tail; - PyObject *joined; - swig_globalvar *var; - for (var = v->vars; var; var=var->next) { - tail = PyUnicode_FromString(var->name); - joined = PyUnicode_Concat(str, tail); - Py_DecRef(str); - Py_DecRef(tail); - str = joined; - if (var->next) { - tail = PyUnicode_InternFromString(", "); - joined = PyUnicode_Concat(str, tail); - Py_DecRef(str); - Py_DecRef(tail); - str = joined; - } - } - tail = PyUnicode_InternFromString(")"); - joined = PyUnicode_Concat(str, tail); - Py_DecRef(str); - Py_DecRef(tail); - str = joined; -#else - PyObject *str = PyString_FromString("("); - swig_globalvar *var; - for (var = v->vars; var; var=var->next) { - PyString_ConcatAndDel(&str,PyString_FromString(var->name)); - if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); - } - PyString_ConcatAndDel(&str,PyString_FromString(")")); -#endif - return str; - } - - SWIGINTERN int - swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { - char *tmp; - PyObject *str = swig_varlink_str(v); - fprintf(fp,"Swig global variables "); - fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str)); - SWIG_Python_str_DelForPy3(tmp); - Py_DECREF(str); - return 0; - } - - SWIGINTERN void - swig_varlink_dealloc(swig_varlinkobject *v) { - swig_globalvar *var = v->vars; - while (var) { - swig_globalvar *n = var->next; - free(var->name); - free(var); - var = n; - } - } - - SWIGINTERN PyObject * - swig_varlink_getattr(swig_varlinkobject *v, char *n) { - PyObject *res = NULL; - swig_globalvar *var = v->vars; - while (var) { - if (strcmp(var->name,n) == 0) { - res = (*var->get_attr)(); - break; - } - var = var->next; - } - if (res == NULL && !PyErr_Occurred()) { - PyErr_SetString(PyExc_NameError,"Unknown C global variable"); - } - return res; - } - - SWIGINTERN int - swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { - int res = 1; - swig_globalvar *var = v->vars; - while (var) { - if (strcmp(var->name,n) == 0) { - res = (*var->set_attr)(p); - break; - } - var = var->next; - } - if (res == 1 && !PyErr_Occurred()) { - PyErr_SetString(PyExc_NameError,"Unknown C global variable"); - } - return res; - } - - SWIGINTERN PyTypeObject* - swig_varlink_type(void) { - static char varlink__doc__[] = "Swig var link object"; - static PyTypeObject varlink_type; - static int type_init = 0; - if (!type_init) { - const PyTypeObject tmp = { - /* PyObject header changed in Python 3 */ -#if PY_VERSION_HEX >= 0x03000000 - PyVarObject_HEAD_INIT(NULL, 0) -#else - PyObject_HEAD_INIT(NULL) - 0, /* ob_size */ -#endif - (char *)"swigvarlink", /* tp_name */ - sizeof(swig_varlinkobject), /* tp_basicsize */ - 0, /* tp_itemsize */ - (destructor) swig_varlink_dealloc, /* tp_dealloc */ - (printfunc) swig_varlink_print, /* tp_print */ - (getattrfunc) swig_varlink_getattr, /* tp_getattr */ - (setattrfunc) swig_varlink_setattr, /* tp_setattr */ - 0, /* tp_compare */ - (reprfunc) swig_varlink_repr, /* tp_repr */ - 0, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - 0, /* tp_hash */ - 0, /* tp_call */ - (reprfunc) swig_varlink_str, /* tp_str */ - 0, /* tp_getattro */ - 0, /* tp_setattro */ - 0, /* tp_as_buffer */ - 0, /* tp_flags */ - varlink__doc__, /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - 0, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ -#if PY_VERSION_HEX >= 0x02020000 - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ -#endif -#if PY_VERSION_HEX >= 0x02030000 - 0, /* tp_del */ -#endif -#if PY_VERSION_HEX >= 0x02060000 - 0, /* tp_version */ -#endif -#ifdef COUNT_ALLOCS - 0,0,0,0 /* tp_alloc -> tp_next */ -#endif - }; - varlink_type = tmp; - type_init = 1; -#if PY_VERSION_HEX < 0x02020000 - varlink_type.ob_type = &PyType_Type; -#else - if (PyType_Ready(&varlink_type) < 0) - return NULL; -#endif - } - return &varlink_type; - } - - /* Create a variable linking object for use later */ - SWIGINTERN PyObject * - SWIG_Python_newvarlink(void) { - swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); - if (result) { - result->vars = 0; - } - return ((PyObject*) result); - } - - SWIGINTERN void - SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { - swig_varlinkobject *v = (swig_varlinkobject *) p; - swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); - if (gv) { - size_t size = strlen(name)+1; - gv->name = (char *)malloc(size); - if (gv->name) { - strncpy(gv->name,name,size); - gv->get_attr = get_attr; - gv->set_attr = set_attr; - gv->next = v->vars; - } - } - v->vars = gv; - } - - SWIGINTERN PyObject * - SWIG_globals(void) { - static PyObject *_SWIG_globals = 0; - if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); - return _SWIG_globals; - } - - /* ----------------------------------------------------------------------------- - * constants/methods manipulation - * ----------------------------------------------------------------------------- */ - - /* Install Constants */ - SWIGINTERN void - SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { - PyObject *obj = 0; - size_t i; - for (i = 0; constants[i].type; ++i) { - switch(constants[i].type) { - case SWIG_PY_POINTER: - obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); - break; - case SWIG_PY_BINARY: - obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); - break; - default: - obj = 0; - break; - } - if (obj) { - PyDict_SetItemString(d, constants[i].name, obj); - Py_DECREF(obj); - } - } - } - - /* -----------------------------------------------------------------------------*/ - /* Fix SwigMethods to carry the callback ptrs when needed */ - /* -----------------------------------------------------------------------------*/ - - SWIGINTERN void - SWIG_Python_FixMethods(PyMethodDef *methods, - swig_const_info *const_table, - swig_type_info **types, - swig_type_info **types_initial) { - size_t i; - for (i = 0; methods[i].ml_name; ++i) { - const char *c = methods[i].ml_doc; - if (c && (c = strstr(c, "swig_ptr: "))) { - int j; - swig_const_info *ci = 0; - const char *name = c + 10; - for (j = 0; const_table[j].type; ++j) { - if (strncmp(const_table[j].name, name, - strlen(const_table[j].name)) == 0) { - ci = &(const_table[j]); - break; - } - } - if (ci) { - void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; - if (ptr) { - size_t shift = (ci->ptype) - types; - swig_type_info *ty = types_initial[shift]; - size_t ldoc = (c - methods[i].ml_doc); - size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; - char *ndoc = (char*)malloc(ldoc + lptr + 10); - if (ndoc) { - char *buff = ndoc; - strncpy(buff, methods[i].ml_doc, ldoc); - buff += ldoc; - strncpy(buff, "swig_ptr: ", 10); - buff += 10; - SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); - methods[i].ml_doc = ndoc; - } - } - } - } - } - } - -#ifdef __cplusplus -} -#endif - -/* -----------------------------------------------------------------------------* - * Partial Init method - * -----------------------------------------------------------------------------*/ - -#ifdef __cplusplus -extern "C" -#endif - -SWIGEXPORT -#if PY_VERSION_HEX >= 0x03000000 -PyObject* -#else -void -#endif -SWIG_init(void) { - PyObject *m, *d, *md; -#if PY_VERSION_HEX >= 0x03000000 - static struct PyModuleDef SWIG_module = { -# if PY_VERSION_HEX >= 0x03020000 - PyModuleDef_HEAD_INIT, -# else - { - PyObject_HEAD_INIT(NULL) - NULL, /* m_init */ - 0, /* m_index */ - NULL, /* m_copy */ - }, -# endif - (char *) SWIG_name, - NULL, - -1, - SwigMethods, - NULL, - NULL, - NULL, - NULL - }; -#endif - -#if defined(SWIGPYTHON_BUILTIN) - static SwigPyClientData SwigPyObject_clientdata = { - 0, 0, 0, 0, 0, 0, 0 - }; - static PyGetSetDef this_getset_def = { - (char *)"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL - }; - static SwigPyGetSet thisown_getset_closure = { - (PyCFunction) SwigPyObject_own, - (PyCFunction) SwigPyObject_own - }; - static PyGetSetDef thisown_getset_def = { - (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure - }; - PyObject *metatype_args; - PyTypeObject *builtin_pytype; - int builtin_base_count; - swig_type_info *builtin_basetype; - PyObject *tuple; - PyGetSetDescrObject *static_getset; - PyTypeObject *metatype; - SwigPyClientData *cd; - PyObject *public_interface, *public_symbol; - PyObject *this_descr; - PyObject *thisown_descr; - int i; - - (void)builtin_pytype; - (void)builtin_base_count; - (void)builtin_basetype; - (void)tuple; - (void)static_getset; - - /* metatype is used to implement static member variables. */ - metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type); - assert(metatype_args); - metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL); - assert(metatype); - Py_DECREF(metatype_args); - metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro; - assert(PyType_Ready(metatype) >= 0); -#endif - - /* Fix SwigMethods to carry the callback ptrs when needed */ - SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); - -#if PY_VERSION_HEX >= 0x03000000 - m = PyModule_Create(&SWIG_module); -#else - m = Py_InitModule((char *) SWIG_name, SwigMethods); -#endif - md = d = PyModule_GetDict(m); - (void)md; - - SWIG_InitializeModule(0); - -#ifdef SWIGPYTHON_BUILTIN - SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject"); - assert(SwigPyObject_stype); - cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; - if (!cd) { - SwigPyObject_stype->clientdata = &SwigPyObject_clientdata; - SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce(); - } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) { - PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules."); -# if PY_VERSION_HEX >= 0x03000000 - return NULL; -# else - return; -# endif - } - - /* All objects have a 'this' attribute */ - this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def); - (void)this_descr; - - /* All objects have a 'thisown' attribute */ - thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def); - (void)thisown_descr; - - public_interface = PyList_New(0); - public_symbol = 0; - (void)public_symbol; - - PyDict_SetItemString(md, "__all__", public_interface); - Py_DECREF(public_interface); - for (i = 0; SwigMethods[i].ml_name != NULL; ++i) - SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name); - for (i = 0; swig_const_table[i].name != 0; ++i) - SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name); -#endif - - SWIG_InstallConstants(d,swig_const_table); - - PyDict_SetItemString(md,(char*)"cvar", SWIG_globals()); - SWIG_addvarlink(SWIG_globals(),(char*)"pvserver_version",Swig_var_pvserver_version_get, Swig_var_pvserver_version_set); - SWIG_Python_SetConstant(d, "pv_STDIN",SWIG_From_int(static_cast< int >(0))); - SWIG_Python_SetConstant(d, "pv_STDOUT",SWIG_From_int(static_cast< int >(1))); - SWIG_Python_SetConstant(d, "MAX_PRINTF_LENGTH",SWIG_From_int(static_cast< int >(1024))); - SWIG_Python_SetConstant(d, "MAX_EVENT_LENGTH",SWIG_From_int(static_cast< int >(1024))); - SWIG_Python_SetConstant(d, "MAX_CLIENTS",SWIG_From_int(static_cast< int >(100))); - SWIG_Python_SetConstant(d, "ID_ROOTWIDGET",SWIG_From_int(static_cast< int >(ID_ROOTWIDGET))); - SWIG_Python_SetConstant(d, "ID_EDITBAR",SWIG_From_int(static_cast< int >(ID_EDITBAR))); - SWIG_Python_SetConstant(d, "ID_TOOLBAR",SWIG_From_int(static_cast< int >(ID_TOOLBAR))); - SWIG_Python_SetConstant(d, "ID_STATUSBAR",SWIG_From_int(static_cast< int >(ID_STATUSBAR))); - SWIG_Python_SetConstant(d, "ID_MAINWINDOW",SWIG_From_int(static_cast< int >(ID_MAINWINDOW))); - SWIG_Python_SetConstant(d, "ID_HELP",SWIG_From_int(static_cast< int >(ID_HELP))); - SWIG_Python_SetConstant(d, "ID_COOKIE",SWIG_From_int(static_cast< int >(ID_COOKIE))); - SWIG_Python_SetConstant(d, "ID_TAB",SWIG_From_int(static_cast< int >(ID_TAB))); - SWIG_Python_SetConstant(d, "ID_OPTIONS",SWIG_From_int(static_cast< int >(ID_OPTIONS))); - SWIG_Python_SetConstant(d, "ID_DOCK_WIDGETS",SWIG_From_int(static_cast< int >(ID_DOCK_WIDGETS))); - SWIG_Python_SetConstant(d, "MAX_DOCK_WIDGETS",SWIG_From_int(static_cast< int >(32))); - SWIG_Python_SetConstant(d, "NULL_EVENT",SWIG_From_int(static_cast< int >(NULL_EVENT))); - SWIG_Python_SetConstant(d, "BUTTON_EVENT",SWIG_From_int(static_cast< int >(BUTTON_EVENT))); - SWIG_Python_SetConstant(d, "TEXT_EVENT",SWIG_From_int(static_cast< int >(TEXT_EVENT))); - SWIG_Python_SetConstant(d, "SLIDER_EVENT",SWIG_From_int(static_cast< int >(SLIDER_EVENT))); - SWIG_Python_SetConstant(d, "CHECKBOX_EVENT",SWIG_From_int(static_cast< int >(CHECKBOX_EVENT))); - SWIG_Python_SetConstant(d, "RADIOBUTTON_EVENT",SWIG_From_int(static_cast< int >(RADIOBUTTON_EVENT))); - SWIG_Python_SetConstant(d, "GL_IDLE_EVENT",SWIG_From_int(static_cast< int >(GL_IDLE_EVENT))); - SWIG_Python_SetConstant(d, "GL_PAINT_EVENT",SWIG_From_int(static_cast< int >(GL_PAINT_EVENT))); - SWIG_Python_SetConstant(d, "GL_INITIALIZE_EVENT",SWIG_From_int(static_cast< int >(GL_INITIALIZE_EVENT))); - SWIG_Python_SetConstant(d, "GL_RESIZE_EVENT",SWIG_From_int(static_cast< int >(GL_RESIZE_EVENT))); - SWIG_Python_SetConstant(d, "TAB_EVENT",SWIG_From_int(static_cast< int >(TAB_EVENT))); - SWIG_Python_SetConstant(d, "TABLE_CLICKED_EVENT",SWIG_From_int(static_cast< int >(TABLE_CLICKED_EVENT))); - SWIG_Python_SetConstant(d, "TABLE_TEXT_EVENT",SWIG_From_int(static_cast< int >(TABLE_TEXT_EVENT))); - SWIG_Python_SetConstant(d, "SELECTION_EVENT",SWIG_From_int(static_cast< int >(SELECTION_EVENT))); - SWIG_Python_SetConstant(d, "CLIPBOARD_EVENT",SWIG_From_int(static_cast< int >(CLIPBOARD_EVENT))); - SWIG_Python_SetConstant(d, "BUTTON_PRESSED_EVENT",SWIG_From_int(static_cast< int >(BUTTON_PRESSED_EVENT))); - SWIG_Python_SetConstant(d, "BUTTON_RELEASED_EVENT",SWIG_From_int(static_cast< int >(BUTTON_RELEASED_EVENT))); - SWIG_Python_SetConstant(d, "RIGHT_MOUSE_EVENT",SWIG_From_int(static_cast< int >(RIGHT_MOUSE_EVENT))); - SWIG_Python_SetConstant(d, "KEYBOARD_EVENT",SWIG_From_int(static_cast< int >(KEYBOARD_EVENT))); - SWIG_Python_SetConstant(d, "PLOT_MOUSE_MOVED_EVENT",SWIG_From_int(static_cast< int >(PLOT_MOUSE_MOVED_EVENT))); - SWIG_Python_SetConstant(d, "PLOT_MOUSE_PRESSED_EVENT",SWIG_From_int(static_cast< int >(PLOT_MOUSE_PRESSED_EVENT))); - SWIG_Python_SetConstant(d, "PLOT_MOUSE_RELEASED_EVENT",SWIG_From_int(static_cast< int >(PLOT_MOUSE_RELEASED_EVENT))); - SWIG_Python_SetConstant(d, "USER_EVENT",SWIG_From_int(static_cast< int >(USER_EVENT))); - SWIG_Python_SetConstant(d, "MOUSE_OVER_EVENT",SWIG_From_int(static_cast< int >(MOUSE_OVER_EVENT))); - SWIG_Python_SetConstant(d, "TQWidget",SWIG_From_int(static_cast< int >(TQWidget))); - SWIG_Python_SetConstant(d, "TQPushButton",SWIG_From_int(static_cast< int >(TQPushButton))); - SWIG_Python_SetConstant(d, "TQLabel",SWIG_From_int(static_cast< int >(TQLabel))); - SWIG_Python_SetConstant(d, "TQLineEdit",SWIG_From_int(static_cast< int >(TQLineEdit))); - SWIG_Python_SetConstant(d, "TQComboBox",SWIG_From_int(static_cast< int >(TQComboBox))); - SWIG_Python_SetConstant(d, "TQLCDNumber",SWIG_From_int(static_cast< int >(TQLCDNumber))); - SWIG_Python_SetConstant(d, "TQButtonGroup",SWIG_From_int(static_cast< int >(TQButtonGroup))); - SWIG_Python_SetConstant(d, "TQRadio",SWIG_From_int(static_cast< int >(TQRadio))); - SWIG_Python_SetConstant(d, "TQCheck",SWIG_From_int(static_cast< int >(TQCheck))); - SWIG_Python_SetConstant(d, "TQSlider",SWIG_From_int(static_cast< int >(TQSlider))); - SWIG_Python_SetConstant(d, "TQFrame",SWIG_From_int(static_cast< int >(TQFrame))); - SWIG_Python_SetConstant(d, "TQImage",SWIG_From_int(static_cast< int >(TQImage))); - SWIG_Python_SetConstant(d, "TQDraw",SWIG_From_int(static_cast< int >(TQDraw))); - SWIG_Python_SetConstant(d, "TQGl",SWIG_From_int(static_cast< int >(TQGl))); - SWIG_Python_SetConstant(d, "TQTabWidget",SWIG_From_int(static_cast< int >(TQTabWidget))); - SWIG_Python_SetConstant(d, "TQGroupBox",SWIG_From_int(static_cast< int >(TQGroupBox))); - SWIG_Python_SetConstant(d, "TQListBox",SWIG_From_int(static_cast< int >(TQListBox))); - SWIG_Python_SetConstant(d, "TQTable",SWIG_From_int(static_cast< int >(TQTable))); - SWIG_Python_SetConstant(d, "TQSpinBox",SWIG_From_int(static_cast< int >(TQSpinBox))); - SWIG_Python_SetConstant(d, "TQDial",SWIG_From_int(static_cast< int >(TQDial))); - SWIG_Python_SetConstant(d, "TQProgressBar",SWIG_From_int(static_cast< int >(TQProgressBar))); - SWIG_Python_SetConstant(d, "TQMultiLineEdit",SWIG_From_int(static_cast< int >(TQMultiLineEdit))); - SWIG_Python_SetConstant(d, "TQTextBrowser",SWIG_From_int(static_cast< int >(TQTextBrowser))); - SWIG_Python_SetConstant(d, "TQListView",SWIG_From_int(static_cast< int >(TQListView))); - SWIG_Python_SetConstant(d, "TQIconView",SWIG_From_int(static_cast< int >(TQIconView))); - SWIG_Python_SetConstant(d, "TQVtk",SWIG_From_int(static_cast< int >(TQVtk))); - SWIG_Python_SetConstant(d, "TQwtPlotWidget",SWIG_From_int(static_cast< int >(TQwtPlotWidget))); - SWIG_Python_SetConstant(d, "TQwtScale",SWIG_From_int(static_cast< int >(TQwtScale))); - SWIG_Python_SetConstant(d, "TQwtThermo",SWIG_From_int(static_cast< int >(TQwtThermo))); - SWIG_Python_SetConstant(d, "TQwtKnob",SWIG_From_int(static_cast< int >(TQwtKnob))); - SWIG_Python_SetConstant(d, "TQwtCounter",SWIG_From_int(static_cast< int >(TQwtCounter))); - SWIG_Python_SetConstant(d, "TQwtWheel",SWIG_From_int(static_cast< int >(TQwtWheel))); - SWIG_Python_SetConstant(d, "TQwtSlider",SWIG_From_int(static_cast< int >(TQwtSlider))); - SWIG_Python_SetConstant(d, "TQwtDial",SWIG_From_int(static_cast< int >(TQwtDial))); - SWIG_Python_SetConstant(d, "TQwtCompass",SWIG_From_int(static_cast< int >(TQwtCompass))); - SWIG_Python_SetConstant(d, "TQwtAnalogClock",SWIG_From_int(static_cast< int >(TQwtAnalogClock))); - SWIG_Python_SetConstant(d, "TQDateEdit",SWIG_From_int(static_cast< int >(TQDateEdit))); - SWIG_Python_SetConstant(d, "TQTimeEdit",SWIG_From_int(static_cast< int >(TQTimeEdit))); - SWIG_Python_SetConstant(d, "TQDateTimeEdit",SWIG_From_int(static_cast< int >(TQDateTimeEdit))); - SWIG_Python_SetConstant(d, "TQToolBox",SWIG_From_int(static_cast< int >(TQToolBox))); - SWIG_Python_SetConstant(d, "TQVbox",SWIG_From_int(static_cast< int >(TQVbox))); - SWIG_Python_SetConstant(d, "TQHbox",SWIG_From_int(static_cast< int >(TQHbox))); - SWIG_Python_SetConstant(d, "TQGrid",SWIG_From_int(static_cast< int >(TQGrid))); - SWIG_Python_SetConstant(d, "TQCustomWidget",SWIG_From_int(static_cast< int >(TQCustomWidget))); - SWIG_Python_SetConstant(d, "LINESTYLE_NONE",SWIG_From_int(static_cast< int >(LINESTYLE_NONE))); - SWIG_Python_SetConstant(d, "LINESTYLE_CIRCLE",SWIG_From_int(static_cast< int >(LINESTYLE_CIRCLE))); - SWIG_Python_SetConstant(d, "LINESTYLE_CROSS",SWIG_From_int(static_cast< int >(LINESTYLE_CROSS))); - SWIG_Python_SetConstant(d, "LINESTYLE_RECT",SWIG_From_int(static_cast< int >(LINESTYLE_RECT))); - SWIG_Python_SetConstant(d, "HELVETICA",SWIG_FromCharPtr("Helvetica")); - SWIG_Python_SetConstant(d, "TIMES",SWIG_FromCharPtr("Times")); - SWIG_Python_SetConstant(d, "COURIER",SWIG_FromCharPtr("Courier")); - SWIG_Python_SetConstant(d, "OLDENGLISH",SWIG_FromCharPtr("OldEnglish")); - SWIG_Python_SetConstant(d, "SYSTEM",SWIG_FromCharPtr("System")); - SWIG_Python_SetConstant(d, "ANYSTYLE",SWIG_FromCharPtr("AnyStyle")); - SWIG_Python_SetConstant(d, "Light",SWIG_From_int(static_cast< int >(Light))); - SWIG_Python_SetConstant(d, "Normal",SWIG_From_int(static_cast< int >(Normal))); - SWIG_Python_SetConstant(d, "DemiBold",SWIG_From_int(static_cast< int >(DemiBold))); - SWIG_Python_SetConstant(d, "Bold",SWIG_From_int(static_cast< int >(Bold))); - SWIG_Python_SetConstant(d, "Black",SWIG_From_int(static_cast< int >(Black))); - SWIG_Python_SetConstant(d, "ALIGN_LEFT",SWIG_From_int(static_cast< int >(ALIGN_LEFT))); - SWIG_Python_SetConstant(d, "ALIGN_CENTER",SWIG_From_int(static_cast< int >(ALIGN_CENTER))); - SWIG_Python_SetConstant(d, "ALIGN_RIGHT",SWIG_From_int(static_cast< int >(ALIGN_RIGHT))); - SWIG_Python_SetConstant(d, "ALIGN_VERT_CENTER",SWIG_From_int(static_cast< int >(ALIGN_VERT_CENTER))); - SWIG_Python_SetConstant(d, "AlignAuto",SWIG_From_int(static_cast< int >(AlignAuto))); - SWIG_Python_SetConstant(d, "AlignLeft",SWIG_From_int(static_cast< int >(AlignLeft))); - SWIG_Python_SetConstant(d, "AlignRight",SWIG_From_int(static_cast< int >(AlignRight))); - SWIG_Python_SetConstant(d, "AlignHCenter",SWIG_From_int(static_cast< int >(AlignHCenter))); - SWIG_Python_SetConstant(d, "AlignJustify",SWIG_From_int(static_cast< int >(AlignJustify))); - SWIG_Python_SetConstant(d, "AlignHorizontal_Mask",SWIG_From_int(static_cast< int >(AlignHorizontal_Mask))); - SWIG_Python_SetConstant(d, "AlignTop",SWIG_From_int(static_cast< int >(AlignTop))); - SWIG_Python_SetConstant(d, "AlignBottom",SWIG_From_int(static_cast< int >(AlignBottom))); - SWIG_Python_SetConstant(d, "AlignVCenter",SWIG_From_int(static_cast< int >(AlignVCenter))); - SWIG_Python_SetConstant(d, "AlignVertical_Mask",SWIG_From_int(static_cast< int >(AlignVertical_Mask))); - SWIG_Python_SetConstant(d, "AlignCenter",SWIG_From_int(static_cast< int >(AlignCenter))); - SWIG_Python_SetConstant(d, "SingleLine",SWIG_From_int(static_cast< int >(SingleLine))); - SWIG_Python_SetConstant(d, "DontClip",SWIG_From_int(static_cast< int >(DontClip))); - SWIG_Python_SetConstant(d, "ExpandTabs",SWIG_From_int(static_cast< int >(ExpandTabs))); - SWIG_Python_SetConstant(d, "ShowPrefix",SWIG_From_int(static_cast< int >(ShowPrefix))); - SWIG_Python_SetConstant(d, "WordBreak",SWIG_From_int(static_cast< int >(WordBreak))); - SWIG_Python_SetConstant(d, "BreakAnywhere",SWIG_From_int(static_cast< int >(BreakAnywhere))); - SWIG_Python_SetConstant(d, "DontPrint",SWIG_From_int(static_cast< int >(DontPrint))); - SWIG_Python_SetConstant(d, "Underline",SWIG_From_int(static_cast< int >(Underline))); - SWIG_Python_SetConstant(d, "Overline",SWIG_From_int(static_cast< int >(Overline))); - SWIG_Python_SetConstant(d, "StrikeOut",SWIG_From_int(static_cast< int >(StrikeOut))); - SWIG_Python_SetConstant(d, "IncludeTrailingSpaces",SWIG_From_int(static_cast< int >(IncludeTrailingSpaces))); - SWIG_Python_SetConstant(d, "NoAccel",SWIG_From_int(static_cast< int >(NoAccel))); - SWIG_Python_SetConstant(d, "NoMove",SWIG_From_int(static_cast< int >(NoMove))); - SWIG_Python_SetConstant(d, "Start",SWIG_From_int(static_cast< int >(Start))); - SWIG_Python_SetConstant(d, "StartOfLine",SWIG_From_int(static_cast< int >(StartOfLine))); - SWIG_Python_SetConstant(d, "StartOfBlock",SWIG_From_int(static_cast< int >(StartOfBlock))); - SWIG_Python_SetConstant(d, "StartOfWord",SWIG_From_int(static_cast< int >(StartOfWord))); - SWIG_Python_SetConstant(d, "PreviousBlock",SWIG_From_int(static_cast< int >(PreviousBlock))); - SWIG_Python_SetConstant(d, "PreviousCharacter",SWIG_From_int(static_cast< int >(PreviousCharacter))); - SWIG_Python_SetConstant(d, "PreviousWord",SWIG_From_int(static_cast< int >(PreviousWord))); - SWIG_Python_SetConstant(d, "Up",SWIG_From_int(static_cast< int >(Up))); - SWIG_Python_SetConstant(d, "Left",SWIG_From_int(static_cast< int >(Left))); - SWIG_Python_SetConstant(d, "WordLeft",SWIG_From_int(static_cast< int >(WordLeft))); - SWIG_Python_SetConstant(d, "End",SWIG_From_int(static_cast< int >(End))); - SWIG_Python_SetConstant(d, "EndOfLine",SWIG_From_int(static_cast< int >(EndOfLine))); - SWIG_Python_SetConstant(d, "EndOfWord",SWIG_From_int(static_cast< int >(EndOfWord))); - SWIG_Python_SetConstant(d, "EndOfBlock",SWIG_From_int(static_cast< int >(EndOfBlock))); - SWIG_Python_SetConstant(d, "NextBlock",SWIG_From_int(static_cast< int >(NextBlock))); - SWIG_Python_SetConstant(d, "NextCharacter",SWIG_From_int(static_cast< int >(NextCharacter))); - SWIG_Python_SetConstant(d, "NextWord",SWIG_From_int(static_cast< int >(NextWord))); - SWIG_Python_SetConstant(d, "Down",SWIG_From_int(static_cast< int >(Down))); - SWIG_Python_SetConstant(d, "Right",SWIG_From_int(static_cast< int >(Right))); - SWIG_Python_SetConstant(d, "WordRight",SWIG_From_int(static_cast< int >(WordRight))); - SWIG_Python_SetConstant(d, "NORMAL",SWIG_From_int(static_cast< int >(NORMAL))); - SWIG_Python_SetConstant(d, "ITALIC",SWIG_From_int(static_cast< int >(ITALIC))); - SWIG_Python_SetConstant(d, "NoInsertion",SWIG_From_int(static_cast< int >(NoInsertion))); - SWIG_Python_SetConstant(d, "AtTop",SWIG_From_int(static_cast< int >(AtTop))); - SWIG_Python_SetConstant(d, "AtCurrent",SWIG_From_int(static_cast< int >(AtCurrent))); - SWIG_Python_SetConstant(d, "AtBottom",SWIG_From_int(static_cast< int >(AtBottom))); - SWIG_Python_SetConstant(d, "AfterCurrent",SWIG_From_int(static_cast< int >(AfterCurrent))); - SWIG_Python_SetConstant(d, "BeforeCurrent",SWIG_From_int(static_cast< int >(BeforeCurrent))); - SWIG_Python_SetConstant(d, "HEX",SWIG_From_int(static_cast< int >(HEX))); - SWIG_Python_SetConstant(d, "DEC",SWIG_From_int(static_cast< int >(DEC))); - SWIG_Python_SetConstant(d, "OCT",SWIG_From_int(static_cast< int >(OCT))); - SWIG_Python_SetConstant(d, "BINx",SWIG_From_int(static_cast< int >(BINx))); - SWIG_Python_SetConstant(d, "Hex",SWIG_From_int(static_cast< int >(Hex))); - SWIG_Python_SetConstant(d, "Dec",SWIG_From_int(static_cast< int >(Dec))); - SWIG_Python_SetConstant(d, "Oct",SWIG_From_int(static_cast< int >(Oct))); - SWIG_Python_SetConstant(d, "Bin",SWIG_From_int(static_cast< int >(Bin))); - SWIG_Python_SetConstant(d, "Outline",SWIG_From_int(static_cast< int >(Outline))); - SWIG_Python_SetConstant(d, "Filled",SWIG_From_int(static_cast< int >(Filled))); - SWIG_Python_SetConstant(d, "Flat",SWIG_From_int(static_cast< int >(Flat))); - SWIG_Python_SetConstant(d, "HORIZONTAL",SWIG_From_int(static_cast< int >(HORIZONTAL))); - SWIG_Python_SetConstant(d, "VERTICAL",SWIG_From_int(static_cast< int >(VERTICAL))); - SWIG_Python_SetConstant(d, "Horizontal",SWIG_From_int(static_cast< int >(Horizontal))); - SWIG_Python_SetConstant(d, "Vertical",SWIG_From_int(static_cast< int >(Vertical))); - SWIG_Python_SetConstant(d, "ArrowCursor",SWIG_From_int(static_cast< int >(ArrowCursor))); - SWIG_Python_SetConstant(d, "UpArrowCursor",SWIG_From_int(static_cast< int >(UpArrowCursor))); - SWIG_Python_SetConstant(d, "CrossCursor",SWIG_From_int(static_cast< int >(CrossCursor))); - SWIG_Python_SetConstant(d, "WaitCursor",SWIG_From_int(static_cast< int >(WaitCursor))); - SWIG_Python_SetConstant(d, "IBeamCursor",SWIG_From_int(static_cast< int >(IBeamCursor))); - SWIG_Python_SetConstant(d, "SizeVerCursor",SWIG_From_int(static_cast< int >(SizeVerCursor))); - SWIG_Python_SetConstant(d, "SizeHorCursor",SWIG_From_int(static_cast< int >(SizeHorCursor))); - SWIG_Python_SetConstant(d, "SizeFDiagCursor",SWIG_From_int(static_cast< int >(SizeFDiagCursor))); - SWIG_Python_SetConstant(d, "SizeBDiagCursor",SWIG_From_int(static_cast< int >(SizeBDiagCursor))); - SWIG_Python_SetConstant(d, "SizeAllCursor",SWIG_From_int(static_cast< int >(SizeAllCursor))); - SWIG_Python_SetConstant(d, "BlankCursor",SWIG_From_int(static_cast< int >(BlankCursor))); - SWIG_Python_SetConstant(d, "SplitVCursor",SWIG_From_int(static_cast< int >(SplitVCursor))); - SWIG_Python_SetConstant(d, "SplitHCursor",SWIG_From_int(static_cast< int >(SplitHCursor))); - SWIG_Python_SetConstant(d, "PointingHandCursor",SWIG_From_int(static_cast< int >(PointingHandCursor))); - SWIG_Python_SetConstant(d, "ForbiddenCursor",SWIG_From_int(static_cast< int >(ForbiddenCursor))); - SWIG_Python_SetConstant(d, "OpenHandCursor",SWIG_From_int(static_cast< int >(OpenHandCursor))); - SWIG_Python_SetConstant(d, "ClosedHandCursor",SWIG_From_int(static_cast< int >(ClosedHandCursor))); - SWIG_Python_SetConstant(d, "WhatsThisCursor",SWIG_From_int(static_cast< int >(WhatsThisCursor))); - SWIG_Python_SetConstant(d, "BusyCursor",SWIG_From_int(static_cast< int >(BusyCursor))); - SWIG_Python_SetConstant(d, "NoFrame",SWIG_From_int(static_cast< int >(NoFrame))); - SWIG_Python_SetConstant(d, "Box",SWIG_From_int(static_cast< int >(Box))); - SWIG_Python_SetConstant(d, "Panel",SWIG_From_int(static_cast< int >(Panel))); - SWIG_Python_SetConstant(d, "WinPanel",SWIG_From_int(static_cast< int >(WinPanel))); - SWIG_Python_SetConstant(d, "HLine",SWIG_From_int(static_cast< int >(HLine))); - SWIG_Python_SetConstant(d, "VLine",SWIG_From_int(static_cast< int >(VLine))); - SWIG_Python_SetConstant(d, "StyledPanel",SWIG_From_int(static_cast< int >(StyledPanel))); - SWIG_Python_SetConstant(d, "PopupPanel",SWIG_From_int(static_cast< int >(PopupPanel))); - SWIG_Python_SetConstant(d, "MenuBarPanel",SWIG_From_int(static_cast< int >(MenuBarPanel))); - SWIG_Python_SetConstant(d, "ToolBarPanel",SWIG_From_int(static_cast< int >(ToolBarPanel))); - SWIG_Python_SetConstant(d, "LineEditPanel",SWIG_From_int(static_cast< int >(LineEditPanel))); - SWIG_Python_SetConstant(d, "TabWidgetPanel",SWIG_From_int(static_cast< int >(TabWidgetPanel))); - SWIG_Python_SetConstant(d, "GroupBoxPanel",SWIG_From_int(static_cast< int >(GroupBoxPanel))); - SWIG_Python_SetConstant(d, "MShape",SWIG_From_int(static_cast< int >(MShape))); - SWIG_Python_SetConstant(d, "Plain",SWIG_From_int(static_cast< int >(Plain))); - SWIG_Python_SetConstant(d, "Raised",SWIG_From_int(static_cast< int >(Raised))); - SWIG_Python_SetConstant(d, "Sunken",SWIG_From_int(static_cast< int >(Sunken))); - SWIG_Python_SetConstant(d, "MShadow",SWIG_From_int(static_cast< int >(MShadow))); - SWIG_Python_SetConstant(d, "FileOpenDialog",SWIG_From_int(static_cast< int >(FileOpenDialog))); - SWIG_Python_SetConstant(d, "FileSaveDialog",SWIG_From_int(static_cast< int >(FileSaveDialog))); - SWIG_Python_SetConstant(d, "FindDirectoryDialog",SWIG_From_int(static_cast< int >(FindDirectoryDialog))); - SWIG_Python_SetConstant(d, "BoxInformation",SWIG_From_int(static_cast< int >(BoxInformation))); - SWIG_Python_SetConstant(d, "BoxWarning",SWIG_From_int(static_cast< int >(BoxWarning))); - SWIG_Python_SetConstant(d, "BoxCritical",SWIG_From_int(static_cast< int >(BoxCritical))); - SWIG_Python_SetConstant(d, "MessageBoxOk",SWIG_From_int(static_cast< int >(MessageBoxOk))); - SWIG_Python_SetConstant(d, "MessageBoxOpen",SWIG_From_int(static_cast< int >(MessageBoxOpen))); - SWIG_Python_SetConstant(d, "MessageBoxSave",SWIG_From_int(static_cast< int >(MessageBoxSave))); - SWIG_Python_SetConstant(d, "MessageBoxCancel",SWIG_From_int(static_cast< int >(MessageBoxCancel))); - SWIG_Python_SetConstant(d, "MessageBoxClose",SWIG_From_int(static_cast< int >(MessageBoxClose))); - SWIG_Python_SetConstant(d, "MessageBoxDiscard",SWIG_From_int(static_cast< int >(MessageBoxDiscard))); - SWIG_Python_SetConstant(d, "MessageBoxApply",SWIG_From_int(static_cast< int >(MessageBoxApply))); - SWIG_Python_SetConstant(d, "MessageBoxReset",SWIG_From_int(static_cast< int >(MessageBoxReset))); - SWIG_Python_SetConstant(d, "MessageBoxRestoreDefaults",SWIG_From_int(static_cast< int >(MessageBoxRestoreDefaults))); - SWIG_Python_SetConstant(d, "MessageBoxHelp",SWIG_From_int(static_cast< int >(MessageBoxHelp))); - SWIG_Python_SetConstant(d, "MessageBoxSaveAll",SWIG_From_int(static_cast< int >(MessageBoxSaveAll))); - SWIG_Python_SetConstant(d, "MessageBoxYes",SWIG_From_int(static_cast< int >(MessageBoxYes))); - SWIG_Python_SetConstant(d, "MessageBoxYesToAll",SWIG_From_int(static_cast< int >(MessageBoxYesToAll))); - SWIG_Python_SetConstant(d, "MessageBoxNo",SWIG_From_int(static_cast< int >(MessageBoxNo))); - SWIG_Python_SetConstant(d, "MessageBoxNoToAll",SWIG_From_int(static_cast< int >(MessageBoxNoToAll))); - SWIG_Python_SetConstant(d, "MessageBoxAbort",SWIG_From_int(static_cast< int >(MessageBoxAbort))); - SWIG_Python_SetConstant(d, "MessageBoxRetry",SWIG_From_int(static_cast< int >(MessageBoxRetry))); - SWIG_Python_SetConstant(d, "MessageBoxIgnore",SWIG_From_int(static_cast< int >(MessageBoxIgnore))); - SWIG_Python_SetConstant(d, "MessageBoxNoButton",SWIG_From_int(static_cast< int >(MessageBoxNoButton))); - SWIG_Python_SetConstant(d, "Home",SWIG_From_int(static_cast< int >(Home))); - SWIG_Python_SetConstant(d, "Forward",SWIG_From_int(static_cast< int >(Forward))); - SWIG_Python_SetConstant(d, "Backward",SWIG_From_int(static_cast< int >(Backward))); - SWIG_Python_SetConstant(d, "Reload",SWIG_From_int(static_cast< int >(Reload))); - SWIG_Python_SetConstant(d, "Top",SWIG_From_int(static_cast< int >(Top))); - SWIG_Python_SetConstant(d, "Bottom",SWIG_From_int(static_cast< int >(Bottom))); - SWIG_Python_SetConstant(d, "ShiftButton",SWIG_From_int(static_cast< int >(ShiftButton))); - SWIG_Python_SetConstant(d, "ControlButton",SWIG_From_int(static_cast< int >(ControlButton))); - SWIG_Python_SetConstant(d, "AltButton",SWIG_From_int(static_cast< int >(AltButton))); - SWIG_Python_SetConstant(d, "NormalKey",SWIG_From_int(static_cast< int >(NormalKey))); - SWIG_Python_SetConstant(d, "Key_Escape",SWIG_From_int(static_cast< int >(Key_Escape))); - SWIG_Python_SetConstant(d, "Key_Pause",SWIG_From_int(static_cast< int >(Key_Pause))); - SWIG_Python_SetConstant(d, "Key_Print",SWIG_From_int(static_cast< int >(Key_Print))); - SWIG_Python_SetConstant(d, "Key_SysReq",SWIG_From_int(static_cast< int >(Key_SysReq))); - SWIG_Python_SetConstant(d, "Key_PageUp",SWIG_From_int(static_cast< int >(Key_PageUp))); - SWIG_Python_SetConstant(d, "Key_PageDown",SWIG_From_int(static_cast< int >(Key_PageDown))); - SWIG_Python_SetConstant(d, "Key_F1",SWIG_From_int(static_cast< int >(Key_F1))); - SWIG_Python_SetConstant(d, "Key_F2",SWIG_From_int(static_cast< int >(Key_F2))); - SWIG_Python_SetConstant(d, "Key_F3",SWIG_From_int(static_cast< int >(Key_F3))); - SWIG_Python_SetConstant(d, "Key_F4",SWIG_From_int(static_cast< int >(Key_F4))); - SWIG_Python_SetConstant(d, "Key_F5",SWIG_From_int(static_cast< int >(Key_F5))); - SWIG_Python_SetConstant(d, "Key_F6",SWIG_From_int(static_cast< int >(Key_F6))); - SWIG_Python_SetConstant(d, "Key_F7",SWIG_From_int(static_cast< int >(Key_F7))); - SWIG_Python_SetConstant(d, "Key_F8",SWIG_From_int(static_cast< int >(Key_F8))); - SWIG_Python_SetConstant(d, "Key_F9",SWIG_From_int(static_cast< int >(Key_F9))); - SWIG_Python_SetConstant(d, "Key_F10",SWIG_From_int(static_cast< int >(Key_F10))); - SWIG_Python_SetConstant(d, "Key_F11",SWIG_From_int(static_cast< int >(Key_F11))); - SWIG_Python_SetConstant(d, "Key_F12",SWIG_From_int(static_cast< int >(Key_F12))); - SWIG_Python_SetConstant(d, "BottomLegend",SWIG_From_int(static_cast< int >(BottomLegend))); - SWIG_Python_SetConstant(d, "TopLegend",SWIG_From_int(static_cast< int >(TopLegend))); - SWIG_Python_SetConstant(d, "LeftLegend",SWIG_From_int(static_cast< int >(LeftLegend))); - SWIG_Python_SetConstant(d, "RightLegend",SWIG_From_int(static_cast< int >(RightLegend))); - SWIG_Python_SetConstant(d, "yLeft",SWIG_From_int(static_cast< int >(yLeft))); - SWIG_Python_SetConstant(d, "yRight",SWIG_From_int(static_cast< int >(yRight))); - SWIG_Python_SetConstant(d, "xBottom",SWIG_From_int(static_cast< int >(xBottom))); - SWIG_Python_SetConstant(d, "xTop",SWIG_From_int(static_cast< int >(xTop))); - SWIG_Python_SetConstant(d, "axisCnt",SWIG_From_int(static_cast< int >(axisCnt))); - SWIG_Python_SetConstant(d, "pvNone",SWIG_From_int(static_cast< int >(pvNone))); - SWIG_Python_SetConstant(d, "IncludeRef",SWIG_From_int(static_cast< int >(IncludeRef))); - SWIG_Python_SetConstant(d, "Symmetric",SWIG_From_int(static_cast< int >(Symmetric))); - SWIG_Python_SetConstant(d, "Floating",SWIG_From_int(static_cast< int >(Floating))); - SWIG_Python_SetConstant(d, "Logarithmic",SWIG_From_int(static_cast< int >(Logarithmic))); - SWIG_Python_SetConstant(d, "Inverted",SWIG_From_int(static_cast< int >(Inverted))); - SWIG_Python_SetConstant(d, "ScaleLeft",SWIG_From_int(static_cast< int >(ScaleLeft))); - SWIG_Python_SetConstant(d, "ScaleRight",SWIG_From_int(static_cast< int >(ScaleRight))); - SWIG_Python_SetConstant(d, "ScaleTop",SWIG_From_int(static_cast< int >(ScaleTop))); - SWIG_Python_SetConstant(d, "ScaleBottom",SWIG_From_int(static_cast< int >(ScaleBottom))); - SWIG_Python_SetConstant(d, "ThermoNone",SWIG_From_int(static_cast< int >(ThermoNone))); - SWIG_Python_SetConstant(d, "ThermoLeft",SWIG_From_int(static_cast< int >(ThermoLeft))); - SWIG_Python_SetConstant(d, "ThermoRight",SWIG_From_int(static_cast< int >(ThermoRight))); - SWIG_Python_SetConstant(d, "ThermoTop",SWIG_From_int(static_cast< int >(ThermoTop))); - SWIG_Python_SetConstant(d, "ThermoBottom",SWIG_From_int(static_cast< int >(ThermoBottom))); - SWIG_Python_SetConstant(d, "KnobLine",SWIG_From_int(static_cast< int >(KnobLine))); - SWIG_Python_SetConstant(d, "KnobDot",SWIG_From_int(static_cast< int >(KnobDot))); - SWIG_Python_SetConstant(d, "CounterButton1",SWIG_From_int(static_cast< int >(CounterButton1))); - SWIG_Python_SetConstant(d, "CounterButton2",SWIG_From_int(static_cast< int >(CounterButton2))); - SWIG_Python_SetConstant(d, "CounterButton3",SWIG_From_int(static_cast< int >(CounterButton3))); - SWIG_Python_SetConstant(d, "CounterButtonCnt",SWIG_From_int(static_cast< int >(CounterButtonCnt))); - SWIG_Python_SetConstant(d, "SliderNone",SWIG_From_int(static_cast< int >(SliderNone))); - SWIG_Python_SetConstant(d, "SliderLeft",SWIG_From_int(static_cast< int >(SliderLeft))); - SWIG_Python_SetConstant(d, "SliderRight",SWIG_From_int(static_cast< int >(SliderRight))); - SWIG_Python_SetConstant(d, "SliderTop",SWIG_From_int(static_cast< int >(SliderTop))); - SWIG_Python_SetConstant(d, "SliderBottom",SWIG_From_int(static_cast< int >(SliderBottom))); - SWIG_Python_SetConstant(d, "SliderBgTrough",SWIG_From_int(static_cast< int >(SliderBgTrough))); - SWIG_Python_SetConstant(d, "SliderBgSlot",SWIG_From_int(static_cast< int >(SliderBgSlot))); - SWIG_Python_SetConstant(d, "SliderBgBoth",SWIG_From_int(static_cast< int >(SliderBgBoth))); - SWIG_Python_SetConstant(d, "DialPlain",SWIG_From_int(static_cast< int >(DialPlain))); - SWIG_Python_SetConstant(d, "DialRaised",SWIG_From_int(static_cast< int >(DialRaised))); - SWIG_Python_SetConstant(d, "DialSunken",SWIG_From_int(static_cast< int >(DialSunken))); - SWIG_Python_SetConstant(d, "RotateNeedle",SWIG_From_int(static_cast< int >(RotateNeedle))); - SWIG_Python_SetConstant(d, "RotateScale",SWIG_From_int(static_cast< int >(RotateScale))); - SWIG_Python_SetConstant(d, "QwtDialNeedle1",SWIG_From_int(static_cast< int >(QwtDialNeedle1))); - SWIG_Python_SetConstant(d, "QwtDialNeedle2",SWIG_From_int(static_cast< int >(QwtDialNeedle2))); - SWIG_Python_SetConstant(d, "QwtDialNeedle3",SWIG_From_int(static_cast< int >(QwtDialNeedle3))); - SWIG_Python_SetConstant(d, "QwtDialNeedle4",SWIG_From_int(static_cast< int >(QwtDialNeedle4))); - SWIG_Python_SetConstant(d, "QwtDialLineNeedle",SWIG_From_int(static_cast< int >(QwtDialLineNeedle))); - SWIG_Python_SetConstant(d, "QwtDialArrowNeedle",SWIG_From_int(static_cast< int >(QwtDialArrowNeedle))); - SWIG_Python_SetConstant(d, "QwtCompassNeedle1",SWIG_From_int(static_cast< int >(QwtCompassNeedle1))); - SWIG_Python_SetConstant(d, "QwtCompassNeedle2",SWIG_From_int(static_cast< int >(QwtCompassNeedle2))); - SWIG_Python_SetConstant(d, "QwtCompassNeedle3",SWIG_From_int(static_cast< int >(QwtCompassNeedle3))); - SWIG_Python_SetConstant(d, "QwtCompassNeedle4",SWIG_From_int(static_cast< int >(QwtCompassNeedle4))); - SWIG_Python_SetConstant(d, "QwtCompassLineNeedle",SWIG_From_int(static_cast< int >(QwtCompassLineNeedle))); - SWIG_Python_SetConstant(d, "NoPen",SWIG_From_int(static_cast< int >(NoPen))); - SWIG_Python_SetConstant(d, "SolidLine",SWIG_From_int(static_cast< int >(SolidLine))); - SWIG_Python_SetConstant(d, "DashLine",SWIG_From_int(static_cast< int >(DashLine))); - SWIG_Python_SetConstant(d, "DotLine",SWIG_From_int(static_cast< int >(DotLine))); - SWIG_Python_SetConstant(d, "DashDotLine",SWIG_From_int(static_cast< int >(DashDotLine))); - SWIG_Python_SetConstant(d, "DashDotDotLine",SWIG_From_int(static_cast< int >(DashDotDotLine))); - SWIG_Python_SetConstant(d, "MPenStyle",SWIG_From_int(static_cast< int >(MPenStyle))); - SWIG_Python_SetConstant(d, "MarkerNone",SWIG_From_int(static_cast< int >(MarkerNone))); - SWIG_Python_SetConstant(d, "MarkerEllipse",SWIG_From_int(static_cast< int >(MarkerEllipse))); - SWIG_Python_SetConstant(d, "MarkerRect",SWIG_From_int(static_cast< int >(MarkerRect))); - SWIG_Python_SetConstant(d, "MarkerDiamond",SWIG_From_int(static_cast< int >(MarkerDiamond))); - SWIG_Python_SetConstant(d, "MarkerTriangle",SWIG_From_int(static_cast< int >(MarkerTriangle))); - SWIG_Python_SetConstant(d, "MarkerDTriangle",SWIG_From_int(static_cast< int >(MarkerDTriangle))); - SWIG_Python_SetConstant(d, "MarkerUTriangle",SWIG_From_int(static_cast< int >(MarkerUTriangle))); - SWIG_Python_SetConstant(d, "MarkerLTriangle",SWIG_From_int(static_cast< int >(MarkerLTriangle))); - SWIG_Python_SetConstant(d, "MarkerRTriangle",SWIG_From_int(static_cast< int >(MarkerRTriangle))); - SWIG_Python_SetConstant(d, "MarkerCross",SWIG_From_int(static_cast< int >(MarkerCross))); - SWIG_Python_SetConstant(d, "MarkerXCross",SWIG_From_int(static_cast< int >(MarkerXCross))); - SWIG_Python_SetConstant(d, "MarkerStyleCnt",SWIG_From_int(static_cast< int >(MarkerStyleCnt))); - SWIG_Python_SetConstant(d, "NoButton",SWIG_From_int(static_cast< int >(NoButton))); - SWIG_Python_SetConstant(d, "LeftButton",SWIG_From_int(static_cast< int >(LeftButton))); - SWIG_Python_SetConstant(d, "MiddleButton",SWIG_From_int(static_cast< int >(MiddleButton))); - SWIG_Python_SetConstant(d, "RightButton",SWIG_From_int(static_cast< int >(RightButton))); - SWIG_Python_SetConstant(d, "DMY",SWIG_From_int(static_cast< int >(DMY))); - SWIG_Python_SetConstant(d, "MDY",SWIG_From_int(static_cast< int >(MDY))); - SWIG_Python_SetConstant(d, "YMD",SWIG_From_int(static_cast< int >(YMD))); - SWIG_Python_SetConstant(d, "YDM",SWIG_From_int(static_cast< int >(YDM))); - SWIG_Python_SetConstant(d, "HTML_HEADER",SWIG_From_int(static_cast< int >(HTML_HEADER))); - SWIG_Python_SetConstant(d, "HTML_STYLE",SWIG_From_int(static_cast< int >(HTML_STYLE))); - SWIG_Python_SetConstant(d, "HTML_BODY",SWIG_From_int(static_cast< int >(HTML_BODY))); - SWIG_Python_SetConstant(d, "DEFAULT_LANGUAGE",SWIG_From_int(static_cast< int >(0))); - SWIG_Python_SetConstant(d, "MM2INCH",SWIG_From_int(static_cast< int >(MM2INCH))); - SWIG_Python_SetConstant(d, "INCH2MM",SWIG_From_int(static_cast< int >(INCH2MM))); - SWIG_Python_SetConstant(d, "CM2FOOT",SWIG_From_int(static_cast< int >(CM2FOOT))); - SWIG_Python_SetConstant(d, "FOOT2CM",SWIG_From_int(static_cast< int >(FOOT2CM))); - SWIG_Python_SetConstant(d, "CM2YARD",SWIG_From_int(static_cast< int >(CM2YARD))); - SWIG_Python_SetConstant(d, "YARD2CM",SWIG_From_int(static_cast< int >(YARD2CM))); - SWIG_Python_SetConstant(d, "KM2MILE",SWIG_From_int(static_cast< int >(KM2MILE))); - SWIG_Python_SetConstant(d, "MILE2KM",SWIG_From_int(static_cast< int >(MILE2KM))); - SWIG_Python_SetConstant(d, "KM2NAUTICAL_MILE",SWIG_From_int(static_cast< int >(KM2NAUTICAL_MILE))); - SWIG_Python_SetConstant(d, "NAUTICAL_MILE2KM",SWIG_From_int(static_cast< int >(NAUTICAL_MILE2KM))); - SWIG_Python_SetConstant(d, "QMM2SQINCH",SWIG_From_int(static_cast< int >(QMM2SQINCH))); - SWIG_Python_SetConstant(d, "SQINCH2QMM",SWIG_From_int(static_cast< int >(SQINCH2QMM))); - SWIG_Python_SetConstant(d, "QCM2SQFOOT",SWIG_From_int(static_cast< int >(QCM2SQFOOT))); - SWIG_Python_SetConstant(d, "SQFOOT2QCM",SWIG_From_int(static_cast< int >(SQFOOT2QCM))); - SWIG_Python_SetConstant(d, "QM2SQYARD",SWIG_From_int(static_cast< int >(QM2SQYARD))); - SWIG_Python_SetConstant(d, "SQYARD2QM",SWIG_From_int(static_cast< int >(SQYARD2QM))); - SWIG_Python_SetConstant(d, "QM2ACRE",SWIG_From_int(static_cast< int >(QM2ACRE))); - SWIG_Python_SetConstant(d, "ACRE2QM",SWIG_From_int(static_cast< int >(ACRE2QM))); - SWIG_Python_SetConstant(d, "QKM2SQMILE",SWIG_From_int(static_cast< int >(QKM2SQMILE))); - SWIG_Python_SetConstant(d, "SQMILE2QKM",SWIG_From_int(static_cast< int >(SQMILE2QKM))); - SWIG_Python_SetConstant(d, "ML2TEASPOON",SWIG_From_int(static_cast< int >(ML2TEASPOON))); - SWIG_Python_SetConstant(d, "TEASPOON2ML",SWIG_From_int(static_cast< int >(TEASPOON2ML))); - SWIG_Python_SetConstant(d, "ML2TABLESPOON",SWIG_From_int(static_cast< int >(ML2TABLESPOON))); - SWIG_Python_SetConstant(d, "TABLESPOON2ML",SWIG_From_int(static_cast< int >(TABLESPOON2ML))); - SWIG_Python_SetConstant(d, "ML2OUNCE",SWIG_From_int(static_cast< int >(ML2OUNCE))); - SWIG_Python_SetConstant(d, "OUNCE2ML",SWIG_From_int(static_cast< int >(OUNCE2ML))); - SWIG_Python_SetConstant(d, "L2CUP",SWIG_From_int(static_cast< int >(L2CUP))); - SWIG_Python_SetConstant(d, "CUP2L",SWIG_From_int(static_cast< int >(CUP2L))); - SWIG_Python_SetConstant(d, "L2PINT",SWIG_From_int(static_cast< int >(L2PINT))); - SWIG_Python_SetConstant(d, "PINT2L",SWIG_From_int(static_cast< int >(PINT2L))); - SWIG_Python_SetConstant(d, "L2QUART",SWIG_From_int(static_cast< int >(L2QUART))); - SWIG_Python_SetConstant(d, "QUART2L",SWIG_From_int(static_cast< int >(QUART2L))); - SWIG_Python_SetConstant(d, "L2GALLON",SWIG_From_int(static_cast< int >(L2GALLON))); - SWIG_Python_SetConstant(d, "GALLON2L",SWIG_From_int(static_cast< int >(GALLON2L))); - SWIG_Python_SetConstant(d, "GR2OUNCE",SWIG_From_int(static_cast< int >(GR2OUNCE))); - SWIG_Python_SetConstant(d, "OUNCE2GR",SWIG_From_int(static_cast< int >(OUNCE2GR))); - SWIG_Python_SetConstant(d, "KG2POUND",SWIG_From_int(static_cast< int >(KG2POUND))); - SWIG_Python_SetConstant(d, "POUND2KG",SWIG_From_int(static_cast< int >(POUND2KG))); - SWIG_Python_SetConstant(d, "T2TON",SWIG_From_int(static_cast< int >(T2TON))); - SWIG_Python_SetConstant(d, "TON2T",SWIG_From_int(static_cast< int >(TON2T))); - SWIG_Python_SetConstant(d, "C2FAHRENHEIT",SWIG_From_int(static_cast< int >(C2FAHRENHEIT))); - SWIG_Python_SetConstant(d, "FAHRENHEIT2C",SWIG_From_int(static_cast< int >(FAHRENHEIT2C))); - SWIG_addvarlink(SWIG_globals(),(char*)"null_string",Swig_var_null_string_get, Swig_var_null_string_set); - SWIG_Python_SetConstant(d, "PLAIN_TEXT_EVENT",SWIG_From_int(static_cast< int >(PLAIN_TEXT_EVENT))); - SWIG_Python_SetConstant(d, "SVG_LEFT_BUTTON_PRESSED",SWIG_From_int(static_cast< int >(SVG_LEFT_BUTTON_PRESSED))); - SWIG_Python_SetConstant(d, "SVG_MIDDLE_BUTTON_PRESSED",SWIG_From_int(static_cast< int >(SVG_MIDDLE_BUTTON_PRESSED))); - SWIG_Python_SetConstant(d, "SVG_RIGHT_BUTTON_PRESSED",SWIG_From_int(static_cast< int >(SVG_RIGHT_BUTTON_PRESSED))); - SWIG_Python_SetConstant(d, "SVG_LEFT_BUTTON_RELEASED",SWIG_From_int(static_cast< int >(SVG_LEFT_BUTTON_RELEASED))); - SWIG_Python_SetConstant(d, "SVG_MIDDLE_BUTTON_RELEASED",SWIG_From_int(static_cast< int >(SVG_MIDDLE_BUTTON_RELEASED))); - SWIG_Python_SetConstant(d, "SVG_RIGHT_BUTTON_RELEASED",SWIG_From_int(static_cast< int >(SVG_RIGHT_BUTTON_RELEASED))); - SWIG_Python_SetConstant(d, "SVG_BOUNDS_ON_ELEMENT",SWIG_From_int(static_cast< int >(SVG_BOUNDS_ON_ELEMENT))); - SWIG_Python_SetConstant(d, "SVG_MATRIX_FOR_ELEMENT",SWIG_From_int(static_cast< int >(SVG_MATRIX_FOR_ELEMENT))); - SWIG_Python_SetConstant(d, "WIDGET_GEOMETRY",SWIG_From_int(static_cast< int >(WIDGET_GEOMETRY))); - SWIG_Python_SetConstant(d, "PARENT_WIDGET_ID",SWIG_From_int(static_cast< int >(PARENT_WIDGET_ID))); - SWIG_Python_SetConstant(d, "INITIALIZE_GL",SWIG_FromCharPtr("initializeGL")); - SWIG_Python_SetConstant(d, "RESIZE_GL",SWIG_FromCharPtr("resizeGL")); -#if PY_VERSION_HEX >= 0x03000000 - return m; -#else - return; -#endif -} - diff --git a/language_bindings/language_binding_wrap_lua.cxx b/language_bindings/language_binding_wrap_lua.cxx index fa623dc1..cb086a19 100644 --- a/language_bindings/language_binding_wrap_lua.cxx +++ b/language_bindings/language_binding_wrap_lua.cxx @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.12 + * Version 3.0.12 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make @@ -8,7 +8,11 @@ * interface file instead. * ----------------------------------------------------------------------------- */ + +#ifndef SWIGLUA #define SWIGLUA +#endif + #define SWIG_LUA_TARGET SWIG_LUA_FLAVOR_LUA #define SWIG_LUA_MODULE_GLOBAL @@ -103,9 +107,11 @@ template T SwigValueInit() { #endif /* exporting methods */ -#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) -# ifndef GCC_HASCLASSVISIBILITY -# define GCC_HASCLASSVISIBILITY +#if defined(__GNUC__) +# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) +# ifndef GCC_HASCLASSVISIBILITY +# define GCC_HASCLASSVISIBILITY +# endif # endif #endif @@ -144,6 +150,19 @@ template T SwigValueInit() { # define _SCL_SECURE_NO_DEPRECATE #endif +/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */ +#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) +# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 +#endif + +/* Intel's compiler complains if a variable which was never initialised is + * cast to void, which is a common idiom which we use to indicate that we + * are aware a variable isn't used. So we just silence that warning. + * See: https://github.com/swig/swig/issues/192 for more discussion. + */ +#ifdef __INTEL_COMPILER +# pragma warning disable 592 +#endif /* ----------------------------------------------------------------------------- * swigrun.swg @@ -551,14 +570,14 @@ SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *iter = start; do { if (iter->size) { - register size_t l = 0; - register size_t r = iter->size - 1; + size_t l = 0; + size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ - register size_t i = (l + r) >> 1; + size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { - register int compare = strcmp(name, iname); + int compare = strcmp(name, iname); if (compare == 0) { return iter->types[i]; } else if (compare < 0) { @@ -602,7 +621,7 @@ SWIG_TypeQueryModule(swig_module_info *start, of the str field (the human readable name) */ swig_module_info *iter = start; do { - register size_t i = 0; + size_t i = 0; for (; i < iter->size; ++i) { if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) return iter->types[i]; @@ -621,10 +640,10 @@ SWIG_TypeQueryModule(swig_module_info *start, SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz) { static const char hex[17] = "0123456789abcdef"; - register const unsigned char *u = (unsigned char *) ptr; - register const unsigned char *eu = u + sz; + const unsigned char *u = (unsigned char *) ptr; + const unsigned char *eu = u + sz; for (; u != eu; ++u) { - register unsigned char uu = *u; + unsigned char uu = *u; *(c++) = hex[(uu & 0xf0) >> 4]; *(c++) = hex[uu & 0xf]; } @@ -636,22 +655,22 @@ SWIG_PackData(char *c, void *ptr, size_t sz) { */ SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz) { - register unsigned char *u = (unsigned char *) ptr; - register const unsigned char *eu = u + sz; + unsigned char *u = (unsigned char *) ptr; + const unsigned char *eu = u + sz; for (; u != eu; ++u) { - register char d = *(c++); - register unsigned char uu; + char d = *(c++); + unsigned char uu; if ((d >= '0') && (d <= '9')) - uu = ((d - '0') << 4); + uu = (unsigned char)((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) - uu = ((d - ('a'-10)) << 4); + uu = (unsigned char)((d - ('a'-10)) << 4); else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) - uu |= (d - '0'); + uu |= (unsigned char)(d - '0'); else if ((d >= 'a') && (d <= 'f')) - uu |= (d - ('a'-10)); + uu |= (unsigned char)(d - ('a'-10)); else return (char *) 0; *u = uu; @@ -747,23 +766,110 @@ extern "C" { # error SWIG_LUA_TARGET not defined #endif +#if defined(SWIG_LUA_ELUA_EMULATE) + +struct swig_elua_entry; + +typedef struct swig_elua_key { + int type; + union { + const char* strkey; + lua_Number numkey; + } key; +} swig_elua_key; + +typedef struct swig_elua_val { + int type; + union { + lua_Number number; + const struct swig_elua_entry *table; + const char *string; + lua_CFunction function; + struct { + char member; + long lvalue; + void *pvalue; + swig_type_info **ptype; + } userdata; + } value; +} swig_elua_val; + +typedef struct swig_elua_entry { + swig_elua_key key; + swig_elua_val value; +} swig_elua_entry; + +#define LSTRKEY(x) {LUA_TSTRING, {.strkey = x} } +#define LNUMKEY(x) {LUA_TNUMBER, {.numkey = x} } +#define LNILKEY {LUA_TNIL, {.strkey = 0} } + +#define LNUMVAL(x) {LUA_TNUMBER, {.number = x} } +#define LFUNCVAL(x) {LUA_TFUNCTION, {.function = x} } +#define LROVAL(x) {LUA_TTABLE, {.table = x} } +#define LNILVAL {LUA_TNIL, {.string = 0} } +#define LSTRVAL(x) {LUA_TSTRING, {.string = x} } + +#define LUA_REG_TYPE swig_elua_entry + +#define SWIG_LUA_ELUA_EMUL_METATABLE_KEY "__metatable" + +#define lua_pushrotable(L,p)\ + lua_newtable(L);\ + assert(p);\ + SWIG_Lua_elua_emulate_register(L,(swig_elua_entry*)(p)); + +#define SWIG_LUA_CONSTTAB_POINTER(B,C,D)\ + LSTRKEY(B), {LUA_TUSERDATA, { .userdata={0,0,(void*)(C),&D} } } + +#define SWIG_LUA_CONSTTAB_BINARY(B,S,C,D)\ + LSTRKEY(B), {LUA_TUSERDATA, { .userdata={1,S,(void*)(C),&D} } } +#endif + #if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) # define SWIG_LUA_CONSTTAB_INT(B, C) LSTRKEY(B), LNUMVAL(C) # define SWIG_LUA_CONSTTAB_FLOAT(B, C) LSTRKEY(B), LNUMVAL(C) # define SWIG_LUA_CONSTTAB_STRING(B, C) LSTRKEY(B), LSTRVAL(C) # define SWIG_LUA_CONSTTAB_CHAR(B, C) LSTRKEY(B), LNUMVAL(C) + /* Those two types of constants are not supported in elua */ + +#ifndef SWIG_LUA_CONSTTAB_POINTER +#warning eLua does not support pointers as constants. By default, nil will be used as value +#define SWIG_LUA_CONSTTAB_POINTER(B,C,D) LSTRKEY(B), LNILVAL +#endif + +#ifndef SWIG_LUA_CONSTTAB_BINARY +#warning eLua does not support pointers to member as constants. By default, nil will be used as value +#define SWIG_LUA_CONSTTAB_BINARY(B, S, C, D) LSTRKEY(B), LNILVAL +#endif #else /* SWIG_LUA_FLAVOR_LUA */ # define SWIG_LUA_CONSTTAB_INT(B, C) SWIG_LUA_INT, (char *)B, (long)C, 0, 0, 0 # define SWIG_LUA_CONSTTAB_FLOAT(B, C) SWIG_LUA_FLOAT, (char *)B, 0, (double)C, 0, 0 # define SWIG_LUA_CONSTTAB_STRING(B, C) SWIG_LUA_STRING, (char *)B, 0, 0, (void *)C, 0 # define SWIG_LUA_CONSTTAB_CHAR(B, C) SWIG_LUA_CHAR, (char *)B, (long)C, 0, 0, 0 +# define SWIG_LUA_CONSTTAB_POINTER(B,C,D)\ + SWIG_LUA_POINTER, (char *)B, 0, 0, (void *)C, &D +# define SWIG_LUA_CONSTTAB_BINARY(B, S, C, D)\ + SWIG_LUA_BINARY, (char *)B, S, 0, (void *)C, &D #endif +#ifndef SWIG_LUA_ELUA_EMULATE #if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) # define LRO_STRVAL(v) {{.p = (char *) v}, LUA_TSTRING} # define LSTRVAL LRO_STRVAL #endif +#endif /* SWIG_LUA_ELUA_EMULATE*/ + +#ifndef SWIG_LUA_ELUA_EMULATE +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) + +#ifndef MIN_OPT_LEVEL +#define MIN_OPT_LEVEL 2 +#endif +#include "lrodefs.h" +#include "lrotable.h" +#endif +#endif /* SWIG_LUA_ELUA_EMULATE*/ /* ----------------------------------------------------------------------------- * compatibility defines * ----------------------------------------------------------------------------- */ @@ -790,6 +896,23 @@ extern "C" { # define lua_pushglobaltable(L) lua_pushvalue(L, LUA_GLOBALSINDEX) #endif +/* lua_absindex was introduced in Lua 5.2 */ +#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502 +# define lua_absindex(L,i) ((i)>0 || (i) <= LUA_REGISTRYINDEX ? (i) : lua_gettop(L) + (i) + 1) +#endif + +/* lua_rawsetp was introduced in Lua 5.2 */ +#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502 +#define lua_rawsetp(L,index,ptr)\ + lua_pushlightuserdata(L,(void*)(ptr));\ + lua_insert(L,-2);\ + lua_rawset(L,index); + +#define lua_rawgetp(L,index,ptr)\ + lua_pushlightuserdata(L,(void*)(ptr));\ + lua_rawget(L,index); + +#endif /* -------------------------------------------------------------------------- * Helper functions for error handling @@ -839,6 +962,12 @@ typedef struct { lua_CFunction set; } swig_lua_var_info; +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) +typedef const LUA_REG_TYPE swig_lua_method; +typedef const LUA_REG_TYPE swig_lua_const_info; +#else /* Normal lua */ +typedef luaL_Reg swig_lua_method; + /* Constant information structure */ typedef struct { int type; @@ -849,10 +978,7 @@ typedef struct { swig_type_info **ptype; } swig_lua_const_info; -typedef struct { - const char *name; - lua_CFunction method; -} swig_lua_method; +#endif typedef struct { const char *name; @@ -860,23 +986,28 @@ typedef struct { lua_CFunction setmethod; } swig_lua_attribute; -// Can be used to create namespaces. Currently used to -// wrap class static methods/variables/constants -typedef struct { + +struct swig_lua_class; +/* Can be used to create namespaces. Currently used to wrap class static methods/variables/constants */ +typedef struct swig_lua_namespace { const char *name; swig_lua_method *ns_methods; swig_lua_attribute *ns_attributes; swig_lua_const_info *ns_constants; + struct swig_lua_class **ns_classes; + struct swig_lua_namespace **ns_namespaces; } swig_lua_namespace; typedef struct swig_lua_class { - const char *name; + const char *name; /* Name that this class has in Lua */ + const char *fqname; /* Fully qualified name - Scope + class name */ swig_type_info **type; lua_CFunction constructor; void (*destructor)(void *); swig_lua_method *methods; swig_lua_attribute *attributes; - swig_lua_namespace cls_static; + swig_lua_namespace *cls_static; + swig_lua_method *metatable; /* 0 for -eluac */ struct swig_lua_class **bases; const char **base_names; } swig_lua_class; @@ -940,18 +1071,23 @@ typedef struct { lua_pushcfunction(L, f), \ lua_rawset(L,-3)) +#define SWIG_Lua_add_boolean(L,n,b) \ + (lua_pushstring(L, n), \ + lua_pushboolean(L, b), \ + lua_rawset(L,-3)) + /* special helper for allowing 'nil' for usertypes */ #define SWIG_isptrtype(L,I) (lua_isuserdata(L,I) || lua_isnil(L,I)) #ifdef __cplusplus /* Special helper for member function pointers it gets the address, casts it, then dereferences it */ -//#define SWIG_mem_fn_as_voidptr(a) (*((char**)&(a))) +/*#define SWIG_mem_fn_as_voidptr(a) (*((char**)&(a))) */ #endif /* storing/access of swig_module_info */ SWIGRUNTIME swig_module_info * -SWIG_Lua_GetModule(lua_State* L) { +SWIG_Lua_GetModule(lua_State *L) { swig_module_info *ret = 0; lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); lua_rawget(L,LUA_REGISTRYINDEX); @@ -962,7 +1098,7 @@ SWIG_Lua_GetModule(lua_State* L) { } SWIGRUNTIME void -SWIG_Lua_SetModule(lua_State* L, swig_module_info *module) { +SWIG_Lua_SetModule(lua_State *L, swig_module_info *module) { /* add this all into the Lua registry: */ lua_pushstring(L,"swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); lua_pushlightuserdata(L,(void*)module); @@ -976,7 +1112,7 @@ SWIG_Lua_SetModule(lua_State* L, swig_module_info *module) { /* this function is called when trying to set an immutable. default action is to print an error. This can removed with a compile flag SWIGLUA_IGNORE_SET_IMMUTABLE */ -SWIGINTERN int SWIG_Lua_set_immutable(lua_State* L) +SWIGINTERN int SWIG_Lua_set_immutable(lua_State *L) { /* there should be 1 param passed in: the new value */ #ifndef SWIGLUA_IGNORE_SET_IMMUTABLE @@ -986,170 +1122,153 @@ SWIGINTERN int SWIG_Lua_set_immutable(lua_State* L) return 0; /* should not return anything */ } -/* the module.get method used for getting linked data */ -SWIGINTERN int SWIG_Lua_module_get(lua_State* L) -{ -/* there should be 2 params passed in - (1) table (not the meta table) - (2) string name of the attribute - printf("SWIG_Lua_module_get %p(%s) '%s'\n", - lua_topointer(L,1),lua_typename(L,lua_type(L,1)), - lua_tostring(L,2)); -*/ - /* get the metatable */ -#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) - assert(lua_isrotable(L,1)); /* just in case */ -#else - assert(lua_istable(L,1)); /* default Lua action */ -#endif - lua_getmetatable(L,1); /* get the metatable */ -#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) - assert(lua_isrotable(L,-1)); /* just in case */ -#else - assert(lua_istable(L,-1)); -#endif - SWIG_Lua_get_table(L,".get"); /* get the .get table */ - lua_remove(L,3); /* remove metatable */ -#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) - if (lua_isrotable(L,-1)) -#else - if (lua_istable(L,-1)) -#endif - { - /* look for the key in the .get table */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); - lua_remove(L,3); /* remove .get */ - if (lua_iscfunction(L,-1)) - { /* found it so call the fn & return its value */ - lua_call(L,0,1); - return 1; - } - lua_pop(L,1); /* remove the top */ - } - lua_pop(L,1); /* remove the .get */ - lua_pushnil(L); /* return a nil */ - return 1; -} +#ifdef SWIG_LUA_ELUA_EMULATE -/* the module.set method used for setting linked data */ -SWIGINTERN int SWIG_Lua_module_set(lua_State* L) +SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State *L,void *ptr,swig_type_info *type, int own); +SWIGRUNTIME void SWIG_Lua_NewPackedObj(lua_State *L,void *ptr,size_t size,swig_type_info *type); +static int swig_lua_elua_emulate_unique_key; + +/* This function emulates eLua rotables behaviour. It loads a rotable definition into the usual lua table. */ +SWIGINTERN void SWIG_Lua_elua_emulate_register(lua_State *L, const swig_elua_entry *table) { -/* there should be 3 params passed in - (1) table (not the meta table) - (2) string name of the attribute - (3) any for the new value -*/ - /* get the metatable */ -#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) - assert(lua_isrotable(L,1)); /* just in case */ -#else - assert(lua_istable(L,1)); /* default Lua action */ -#endif - lua_getmetatable(L,1); /* get the metatable */ -#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) - assert(lua_isrotable(L,-1)); /* just in case */ -#else + int i, table_parsed, parsed_tables_array, target_table; assert(lua_istable(L,-1)); -#endif - SWIG_Lua_get_table(L,".set"); /* get the .set table */ - lua_remove(L,4); /* remove metatable */ -#if ((SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC)) - if (lua_isrotable(L,-1)) -#else - if (lua_istable(L,-1)) -#endif + target_table = lua_gettop(L); + /* Get the registry where we put all parsed tables to avoid loops */ + lua_rawgetp(L, LUA_REGISTRYINDEX, &swig_lua_elua_emulate_unique_key); + if(lua_isnil(L,-1)) { + lua_pop(L,1); + lua_newtable(L); + lua_pushvalue(L,-1); + lua_rawsetp(L,LUA_REGISTRYINDEX,(void*)(&swig_lua_elua_emulate_unique_key)); + } + parsed_tables_array = lua_gettop(L); + lua_pushvalue(L,target_table); + lua_rawsetp(L, parsed_tables_array, table); + table_parsed = 0; + const int SWIGUNUSED pairs_start = lua_gettop(L); + for(i = 0;table[i].key.type != LUA_TNIL || table[i].value.type != LUA_TNIL;i++) { - /* look for the key in the .set table */ - lua_pushvalue(L,2); /* key */ - lua_rawget(L,-2); - lua_remove(L,4); /* remove .set */ - if (lua_iscfunction(L,-1)) - { /* found it so call the fn & return its value */ - lua_pushvalue(L,3); /* value */ - lua_call(L,1,0); - return 0; + const swig_elua_entry *entry = table + i; + int is_metatable = 0; + switch(entry->key.type) { + case LUA_TSTRING: + lua_pushstring(L,entry->key.key.strkey); + if(strcmp(entry->key.key.strkey, SWIG_LUA_ELUA_EMUL_METATABLE_KEY) == 0) + is_metatable = 1; + break; + case LUA_TNUMBER: + lua_pushnumber(L,entry->key.key.numkey); + break; + case LUA_TNIL: + lua_pushnil(L); + break; + default: + assert(0); } -#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) - else { - return 0; // Exits stoically if an invalid key is initialized. + switch(entry->value.type) { + case LUA_TSTRING: + lua_pushstring(L,entry->value.value.string); + break; + case LUA_TNUMBER: + lua_pushnumber(L,entry->value.value.number); + break; + case LUA_TFUNCTION: + lua_pushcfunction(L,entry->value.value.function); + break; + case LUA_TTABLE: + lua_rawgetp(L,parsed_tables_array, entry->value.value.table); + table_parsed = !lua_isnil(L,-1); + if(!table_parsed) { + lua_pop(L,1); /*remove nil */ + lua_newtable(L); + SWIG_Lua_elua_emulate_register(L,entry->value.value.table); + } + if(is_metatable) { + assert(lua_istable(L,-1)); + lua_pushvalue(L,-1); + lua_setmetatable(L,target_table); + } + + break; + case LUA_TUSERDATA: + if(entry->value.value.userdata.member) + SWIG_NewMemberObj(L,entry->value.value.userdata.pvalue, + entry->value.value.userdata.lvalue, + *(entry->value.value.userdata.ptype)); + else + SWIG_NewPointerObj(L,entry->value.value.userdata.pvalue, + *(entry->value.value.userdata.ptype),0); + break; + case LUA_TNIL: + lua_pushnil(L); + break; + default: + assert(0); } -#endif + assert(lua_gettop(L) == pairs_start + 2); + lua_rawset(L,target_table); } - lua_settop(L,3); /* reset back to start */ - /* we now have the table, key & new value, so just set directly */ - lua_rawset(L,1); /* add direct */ - return 0; + lua_pop(L,1); /* Removing parsed tables storage */ + assert(lua_gettop(L) == target_table); } -#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) -/* registering a module in lua. Pushes the module table on the stack. */ -SWIGINTERN void SWIG_Lua_module_begin(lua_State* L,const char* name) +SWIGINTERN void SWIG_Lua_elua_emulate_register_clear(lua_State *L) { - assert(lua_istable(L,-1)); /* just in case */ - lua_pushstring(L,name); - lua_newtable(L); /* the table */ - /* add meta table */ - lua_newtable(L); /* the meta table */ - SWIG_Lua_add_function(L,"__index",SWIG_Lua_module_get); - SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_module_set); - lua_pushstring(L,".get"); - lua_newtable(L); /* the .get table */ - lua_rawset(L,-3); /* add .get into metatable */ - lua_pushstring(L,".set"); - lua_newtable(L); /* the .set table */ - lua_rawset(L,-3); /* add .set into metatable */ - lua_setmetatable(L,-2); /* sets meta table in module */ -#ifdef SWIG_LUA_MODULE_GLOBAL - /* If requested, install the module directly into the global namespace. */ - lua_rawset(L,-3); /* add module into parent */ - SWIG_Lua_get_table(L,name); /* get the table back out */ -#else - /* Do not install the module table as global name. The stack top has - the module table with the name below. We pop the top and replace - the name with it. */ - lua_replace(L,-2); -#endif + lua_pushnil(L); + lua_rawsetp(L, LUA_REGISTRYINDEX, &swig_lua_elua_emulate_unique_key); } -/* ending the register */ -SWIGINTERN void SWIG_Lua_module_end(lua_State* L) -{ - lua_pop(L,1); /* tidy stack (remove module) */ -} +SWIGINTERN void SWIG_Lua_get_class_registry(lua_State *L); -/* adding a linked variable to the module */ -SWIGINTERN void SWIG_Lua_module_add_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn) +SWIGINTERN int SWIG_Lua_emulate_elua_getmetatable(lua_State *L) { - assert(lua_istable(L,-1)); /* just in case */ - lua_getmetatable(L,-1); /* get the metatable */ - assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_get_table(L,".get"); /* find the .get table */ - assert(lua_istable(L,-1)); /* should be a table: */ - SWIG_Lua_add_function(L,name,getFn); - lua_pop(L,1); /* tidy stack (remove table) */ - if (setFn) /* if there is a set fn */ - { - SWIG_Lua_get_table(L,".set"); /* find the .set table */ - assert(lua_istable(L,-1)); /* should be a table: */ - SWIG_Lua_add_function(L,name,setFn); - lua_pop(L,1); /* tidy stack (remove table) */ + SWIG_check_num_args("getmetatable(SWIG eLua emulation)", 1, 1); + SWIG_Lua_get_class_registry(L); + lua_getfield(L,-1,"lua_getmetatable"); + lua_remove(L,-2); /* remove the registry*/ + assert(!lua_isnil(L,-1)); + lua_pushvalue(L,1); + assert(lua_gettop(L) == 3); /* object | function | object again */ + lua_call(L,1,1); + if(!lua_isnil(L,-1)) /*There is an ordinary metatable */ + return 1; + /*if it is a table, then emulate elua behaviour - check for __metatable attribute of a table*/ + assert(lua_gettop(L) == 2); + if(lua_istable(L,-2)) { + lua_pop(L,1); /*remove the nil*/ + lua_getfield(L,-1, SWIG_LUA_ELUA_EMUL_METATABLE_KEY); } - lua_pop(L,1); /* tidy stack (remove meta) */ + assert(lua_gettop(L) == 2); + return 1; + +fail: + lua_error(L); + return 0; } -#endif -/* adding a function module */ -SWIGINTERN void SWIG_Lua_module_add_function(lua_State* L,const char* name,lua_CFunction fn) +SWIGINTERN void SWIG_Lua_emulate_elua_swap_getmetatable(lua_State *L) { - SWIG_Lua_add_function(L,name,fn); + SWIG_Lua_get_class_registry(L); + lua_pushglobaltable(L); + lua_pushstring(L,"lua_getmetatable"); + lua_getfield(L,-2,"getmetatable"); + assert(!lua_isnil(L,-1)); + lua_rawset(L,-4); + lua_pushstring(L, "getmetatable"); + lua_pushcfunction(L, SWIG_Lua_emulate_elua_getmetatable); + lua_rawset(L,-3); + lua_pop(L,2); + } +/* END OF REMOVE */ +#endif /* ----------------------------------------------------------------------------- - * global variable support code: namespaces + * global variable support code: namespaces and modules (which are the same thing) * ----------------------------------------------------------------------------- */ -SWIGINTERN int SWIG_Lua_namespace_get(lua_State* L) +SWIGINTERN int SWIG_Lua_namespace_get(lua_State *L) { /* there should be 2 params passed in (1) table (not the meta table) @@ -1186,7 +1305,7 @@ SWIGINTERN int SWIG_Lua_namespace_get(lua_State* L) return 0; } -SWIGINTERN int SWIG_Lua_namespace_set(lua_State* L) +SWIGINTERN int SWIG_Lua_namespace_set(lua_State *L) { /* there should be 3 params passed in (1) table (not the meta table) @@ -1213,46 +1332,70 @@ SWIGINTERN int SWIG_Lua_namespace_set(lua_State* L) lua_pop(L,1); /* remove the value */ } lua_pop(L,1); /* remove the value .set table */ + lua_pop(L,1); /* remote metatable */ + lua_rawset(L,-3); return 0; } -SWIGINTERN void SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]); // forward declaration -SWIGINTERN void SWIG_Lua_add_class_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn); // forward declaration +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) /* In elua this is useless */ +SWIGINTERN void SWIG_Lua_InstallConstants(lua_State *L, swig_lua_const_info constants[]); /* forward declaration */ +SWIGINTERN void SWIG_Lua_add_variable(lua_State *L,const char *name,lua_CFunction getFn,lua_CFunction setFn); /* forward declaration */ +SWIGINTERN void SWIG_Lua_class_register(lua_State *L,swig_lua_class *clss); /* helper function - register namespace methods and attributes into namespace */ -SWIGINTERN int SWIG_Lua_add_namespace_details(lua_State* L, swig_lua_namespace* ns) +SWIGINTERN int SWIG_Lua_add_namespace_details(lua_State *L, swig_lua_namespace *ns) { - int i = 0; + int i; + /* There must be namespace table (not metatable) at the top of the stack */ assert(lua_istable(L,-1)); - /* There must be table at the top of the stack */ SWIG_Lua_InstallConstants(L, ns->ns_constants); + /* add methods to the namespace/module table */ + for(i=0;ns->ns_methods[i].name;i++){ + SWIG_Lua_add_function(L,ns->ns_methods[i].name,ns->ns_methods[i].func); + } lua_getmetatable(L,-1); /* add fns */ for(i=0;ns->ns_attributes[i].name;i++){ - SWIG_Lua_add_class_variable(L,ns->ns_attributes[i].name,ns->ns_attributes[i].getmethod,ns->ns_attributes[i].setmethod); - } - - /* add methods to the metatable */ - SWIG_Lua_get_table(L,".fn"); /* find the .fn table */ - assert(lua_istable(L,-1)); /* just in case */ - for(i=0;ns->ns_methods[i].name;i++){ - SWIG_Lua_add_function(L,ns->ns_methods[i].name,ns->ns_methods[i].method); + SWIG_Lua_add_variable(L,ns->ns_attributes[i].name,ns->ns_attributes[i].getmethod,ns->ns_attributes[i].setmethod); } - lua_pop(L,1); /* clear stack - remove metatble */ lua_pop(L,1); return 0; } -/* helper function. creates namespace table and add it to module table */ -SWIGINTERN int SWIG_Lua_namespace_register(lua_State* L, swig_lua_namespace* ns) +/* Register all classes in the namespace */ +SWIGINTERN void SWIG_Lua_add_namespace_classes(lua_State *L, swig_lua_namespace *ns) +{ + swig_lua_class **classes; + + /* There must be a module/namespace table at the top of the stack */ + assert(lua_istable(L,-1)); + + classes = ns->ns_classes; + + if( classes != 0 ) { + while(*classes != 0) { + SWIG_Lua_class_register(L, *classes); + classes++; + } + } +} + +/* Helper function. Creates namespace table and adds it to module table + if 'reg' is true, then will register namespace table to parent one (must be on top of the stack + when function is called). + Function always returns newly registered table on top of the stack. +*/ +SWIGINTERN void SWIG_Lua_namespace_register(lua_State *L, swig_lua_namespace *ns, int reg) { - assert(lua_istable(L,-1)); /* just in case. This is supposed to be module table */ + swig_lua_namespace **sub_namespace; + /* 1 argument - table on the top of the stack */ + const int SWIGUNUSED begin = lua_gettop(L); + assert(lua_istable(L,-1)); /* just in case. This is supposed to be module table or parent namespace table */ lua_checkstack(L,5); - lua_pushstring(L, ns->name); lua_newtable(L); /* namespace itself */ lua_newtable(L); /* metatable for namespace */ @@ -1274,117 +1417,348 @@ SWIGINTERN int SWIG_Lua_namespace_register(lua_State* L, swig_lua_namespace* ns) SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_namespace_set); lua_setmetatable(L,-2); /* set metatable */ - lua_rawset(L,-3); /* add namespace to module table */ - return 0; + + /* Register all functions, variables etc */ + SWIG_Lua_add_namespace_details(L,ns); + /* Register classes */ + SWIG_Lua_add_namespace_classes(L,ns); + + sub_namespace = ns->ns_namespaces; + if( sub_namespace != 0) { + while(*sub_namespace != 0) { + SWIG_Lua_namespace_register(L, *sub_namespace, 1); + lua_pop(L,1); /* removing sub-namespace table */ + sub_namespace++; + } + } + + if (reg) { + lua_pushstring(L,ns->name); + lua_pushvalue(L,-2); + lua_rawset(L,-4); /* add namespace to module table */ + } + assert(lua_gettop(L) == begin+1); } +#endif /* SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA */ + /* ----------------------------------------------------------------------------- * global variable support code: classes * ----------------------------------------------------------------------------- */ -/* the class.get method, performs the lookup of class attributes */ -SWIGINTERN int SWIG_Lua_class_get(lua_State* L) +SWIGINTERN void SWIG_Lua_get_class_metatable(lua_State *L,const char *cname); + +typedef int (*swig_lua_base_iterator_func)(lua_State*,swig_type_info*, int, int *ret); + +SWIGINTERN int SWIG_Lua_iterate_bases(lua_State *L, swig_type_info * SWIGUNUSED swig_type, + int first_arg, swig_lua_base_iterator_func func, int *const ret) +{ + /* first_arg - position of the object in stack. Everything that is above are arguments + * and is passed to every evocation of the func */ + int last_arg = lua_gettop(L);/* position of last argument */ + int original_metatable = last_arg + 1; + size_t bases_count; + int result = SWIG_ERROR; + int bases_table; + (void)swig_type; + lua_getmetatable(L,first_arg); + + /* initialise base search */ +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) + SWIG_Lua_get_table(L,".bases"); + assert(lua_istable(L,-1)); + bases_count = lua_rawlen(L,-1); + bases_table = lua_gettop(L); +#else + /* In elua .bases table doesn't exist. Use table from swig_lua_class */ + (void)bases_table; + assert(swig_type!=0); + swig_module_info *module=SWIG_GetModule(L); + swig_lua_class **bases= ((swig_lua_class*)(swig_type->clientdata))->bases; + const char **base_names= ((swig_lua_class*)(swig_type->clientdata))->base_names; + bases_count = 0; + for(;base_names[bases_count]; + bases_count++);/* get length of bases */ +#endif + + if(ret) + *ret = 0; + if(bases_count>0) + { + int to_remove; + size_t i; + int j; + int subcall_last_arg; + int subcall_first_arg = lua_gettop(L) + 1;/* Here a copy of first_arg and arguments begin */ + int valid = 1; + swig_type_info *base_swig_type = 0; + for(j=first_arg;j<=last_arg;j++) + lua_pushvalue(L,j); + subcall_last_arg = lua_gettop(L); + + /* Trick: temporarily replacing original metatable with metatable for base class and call getter */ + for(i=0;ifqname); + base_swig_type = SWIG_TypeQueryModule(module,module,base_names[i]); + assert(base_swig_type != 0); + } +#endif + + if(!valid) + continue; + assert(lua_isuserdata(L, subcall_first_arg)); + assert(lua_istable(L,-1)); + lua_setmetatable(L,subcall_first_arg); /* Set new metatable */ + assert(lua_gettop(L) == subcall_last_arg); + result = func(L, base_swig_type,subcall_first_arg, ret); /* Forward call */ + if(result != SWIG_ERROR) { + break; + } + } + /* Restore original metatable */ + lua_pushvalue(L,original_metatable); + lua_setmetatable(L,first_arg); + /* Clear - remove everything between last_arg and subcall_last_arg including */ + to_remove = subcall_last_arg - last_arg; + for(j=0;jtype; + result = SWIG_Lua_class_do_get(L,type,1,&ret); + if(result == SWIG_OK) + return ret; + + result = SWIG_Lua_class_do_get_item(L,type,1,&ret); + if(result == SWIG_OK) + return ret; + + return 0; } -/* the class.set method, performs the lookup of class attributes */ -SWIGINTERN int SWIG_Lua_class_set(lua_State* L) +/* helper for the class.set method, performs the lookup of class attributes + * It returns error code. Number of function return values is passed inside 'ret' + */ +SWIGINTERN int SWIG_Lua_class_do_set(lua_State *L, swig_type_info *type, int first_arg, int *ret) { /* there should be 3 params passed in (1) table (not the meta table) (2) string name of the attribute (3) any for the new value -printf("SWIG_Lua_class_set %p(%s) '%s' %p(%s)\n", - lua_topointer(L,1),lua_typename(L,lua_type(L,1)), - lua_tostring(L,2), - lua_topointer(L,3),lua_typename(L,lua_type(L,3)));*/ + */ - assert(lua_isuserdata(L,1)); /* just in case */ - lua_getmetatable(L,1); /* get the meta table */ + int bases_search_result; + int substack_start = lua_gettop(L) - 3; + lua_checkstack(L,5); + assert(lua_isuserdata(L,substack_start+1)); /* just in case */ + lua_getmetatable(L,substack_start+1); /* get the meta table */ assert(lua_istable(L,-1)); /* just in case */ + if(ret) + *ret = 0; /* it is setter - number of return values is always 0 */ SWIG_Lua_get_table(L,".set"); /* find the .set table */ if (lua_istable(L,-1)) { /* look for the key in the .set table */ - lua_pushvalue(L,2); /* key */ + lua_pushvalue(L,substack_start+2); /* key */ lua_rawget(L,-2); + lua_remove(L,-2); /* tidy stack, remove .set table */ if (lua_iscfunction(L,-1)) { /* found it so call the fn & return its value */ - lua_pushvalue(L,1); /* userdata */ - lua_pushvalue(L,3); /* value */ + lua_pushvalue(L,substack_start+1); /* userdata */ + lua_pushvalue(L,substack_start+3); /* value */ lua_call(L,2,0); - return 0; + lua_remove(L,substack_start+4); /*remove metatable*/ + return SWIG_OK; } lua_pop(L,1); /* remove the value */ + } else { + lua_pop(L,1); /* remove the answer for .set table request*/ } - lua_pop(L,1); /* remove the value .set table */ /* NEW: looks for the __setitem() fn this is a user provided set fn */ SWIG_Lua_get_table(L,"__setitem"); /* find the fn */ if (lua_iscfunction(L,-1)) /* if its there */ { /* found it so call the fn & return its value */ - lua_pushvalue(L,1); /* the userdata */ - lua_pushvalue(L,2); /* the parameter */ - lua_pushvalue(L,3); /* the value */ + lua_pushvalue(L,substack_start+1); /* the userdata */ + lua_pushvalue(L,substack_start+2); /* the parameter */ + lua_pushvalue(L,substack_start+3); /* the value */ lua_call(L,3,0); /* 3 values in ,0 out */ lua_remove(L,-2); /* stack tidy, remove metatable */ - return 1; + return SWIG_OK; + } + lua_pop(L,1); /* remove value */ + + lua_pop(L,1); /* remove metatable */ + /* Search among bases */ + bases_search_result = SWIG_Lua_iterate_bases(L,type,first_arg,SWIG_Lua_class_do_set,ret); + if(ret) + assert(*ret == 0); + assert(lua_gettop(L) == substack_start + 3); + return bases_search_result; +} + +/* This is the actual method exported to Lua. It calls SWIG_Lua_class_do_set and correctly + * handles return values. + */ +SWIGINTERN int SWIG_Lua_class_set(lua_State *L) +{ +/* There should be 3 params passed in + (1) table (not the meta table) + (2) string name of the attribute + (3) any for the new value + */ + int ret = 0; + int result; + swig_lua_userdata *usr; + swig_type_info *type; + assert(lua_isuserdata(L,1)); + usr=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ + type = usr->type; + result = SWIG_Lua_class_do_set(L,type,1,&ret); + if(result != SWIG_OK) { + SWIG_Lua_pushferrstring(L,"Assignment not possible. No setter/member with this name. For custom assignments implement __setitem method."); + lua_error(L); + } else { + assert(ret==0); } return 0; } /* the class.destruct method called by the interpreter */ -SWIGINTERN int SWIG_Lua_class_destruct(lua_State* L) +SWIGINTERN int SWIG_Lua_class_destruct(lua_State *L) { /* there should be 1 params passed in (1) userdata (not the meta table) */ - swig_lua_userdata* usr; - swig_lua_class* clss; + swig_lua_userdata *usr; + swig_lua_class *clss; assert(lua_isuserdata(L,-1)); /* just in case */ usr=(swig_lua_userdata*)lua_touserdata(L,-1); /* get it */ /* if must be destroyed & has a destructor */ @@ -1400,31 +1774,30 @@ SWIGINTERN int SWIG_Lua_class_destruct(lua_State* L) } /* the class.__tostring method called by the interpreter and print */ -SWIGINTERN int SWIG_Lua_class_tostring(lua_State* L) +SWIGINTERN int SWIG_Lua_class_tostring(lua_State *L) { /* there should be 1 param passed in (1) userdata (not the metatable) */ + const char *className; + void* userData; assert(lua_isuserdata(L,1)); /* just in case */ - unsigned long userData = (unsigned long)lua_touserdata(L,1); /* get the userdata address for later */ + userData = lua_touserdata(L,1); /* get the userdata address for later */ lua_getmetatable(L,1); /* get the meta table */ assert(lua_istable(L,-1)); /* just in case */ - + lua_getfield(L, -1, ".type"); - const char* className = lua_tostring(L, -1); - - char output[256]; - sprintf(output, "<%s userdata: %lX>", className, userData); - - lua_pushstring(L, (const char*)output); + className = lua_tostring(L, -1); + + lua_pushfstring(L, "<%s userdata: %p>", className, userData); return 1; } /* to manually disown some userdata */ -SWIGINTERN int SWIG_Lua_class_disown(lua_State* L) +SWIGINTERN int SWIG_Lua_class_disown(lua_State *L) { /* there should be 1 params passed in (1) userdata (not the meta table) */ - swig_lua_userdata* usr; + swig_lua_userdata *usr; assert(lua_isuserdata(L,-1)); /* just in case */ usr=(swig_lua_userdata*)lua_touserdata(L,-1); /* get it */ @@ -1432,25 +1805,69 @@ SWIGINTERN int SWIG_Lua_class_disown(lua_State* L) return 0; } -/* Constructor proxy. Used when class name entry in module is not class constructor, -but special table instead. */ -SWIGINTERN int SWIG_Lua_constructor_proxy(lua_State* L) +/* lua callable function to compare userdata's value +the issue is that two userdata may point to the same thing +but to lua, they are different objects */ +SWIGRUNTIME int SWIG_Lua_class_equal(lua_State *L) { - /* unlimited number of parameters - First one is our proxy table and we should remove it - Other we should pass to real constructor - */ - assert(lua_istable(L,1)); - lua_pushstring(L,".constructor"); - lua_rawget(L,1); - assert(!lua_isnil(L,-1)); - lua_replace(L,1); /* replace our table with real constructor */ - lua_call(L,lua_gettop(L)-1,1); - return 1; -} + int result; + swig_lua_userdata *usr1,*usr2; + if (!lua_isuserdata(L,1) || !lua_isuserdata(L,2)) /* just in case */ + return 0; /* nil reply */ + usr1=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ + usr2=(swig_lua_userdata*)lua_touserdata(L,2); /* get data */ + /*result=(usr1->ptr==usr2->ptr && usr1->type==usr2->type); only works if type is the same*/ + result=(usr1->ptr==usr2->ptr); + lua_pushboolean(L,result); + return 1; +} + +/* populate table at the top of the stack with metamethods that ought to be inherited */ +SWIGINTERN void SWIG_Lua_populate_inheritable_metamethods(lua_State *L) +{ + SWIG_Lua_add_boolean(L, "__add", 1); + SWIG_Lua_add_boolean(L, "__sub", 1); + SWIG_Lua_add_boolean(L, "__mul", 1); + SWIG_Lua_add_boolean(L, "__div", 1); + SWIG_Lua_add_boolean(L, "__mod", 1); + SWIG_Lua_add_boolean(L, "__pow", 1); + SWIG_Lua_add_boolean(L, "__unm", 1); + SWIG_Lua_add_boolean(L, "__len", 1 ); + SWIG_Lua_add_boolean(L, "__concat", 1 ); + SWIG_Lua_add_boolean(L, "__eq", 1); + SWIG_Lua_add_boolean(L, "__lt", 1); + SWIG_Lua_add_boolean(L, "__le", 1); + SWIG_Lua_add_boolean(L, "__call", 1); + SWIG_Lua_add_boolean(L, "__tostring", 1); + SWIG_Lua_add_boolean(L, "__gc", 0); +} + +/* creates the swig registry */ +SWIGINTERN void SWIG_Lua_create_class_registry(lua_State *L) +{ + /* create main SWIG registry table */ + lua_pushstring(L,"SWIG"); + lua_newtable(L); + /* populate it with some predefined data */ -/* gets the swig class registry (or creates it) */ -SWIGINTERN void SWIG_Lua_get_class_registry(lua_State* L) + /* .library table. Placeholder */ + lua_pushstring(L,".library"); + lua_newtable(L); + { + /* list of metamethods that class inherits from its bases */ + lua_pushstring(L,"inheritable_metamethods"); + lua_newtable(L); + /* populate with list of metamethods */ + SWIG_Lua_populate_inheritable_metamethods(L); + lua_rawset(L,-3); + } + lua_rawset(L,-3); + + lua_rawset(L,LUA_REGISTRYINDEX); +} + +/* gets the swig registry (or creates it) */ +SWIGINTERN void SWIG_Lua_get_class_registry(lua_State *L) { /* add this all into the swig registry: */ lua_pushstring(L,"SWIG"); @@ -1458,17 +1875,29 @@ SWIGINTERN void SWIG_Lua_get_class_registry(lua_State* L) if (!lua_istable(L,-1)) /* not there */ { /* must be first time, so add it */ lua_pop(L,1); /* remove the result */ - lua_pushstring(L,"SWIG"); - lua_newtable(L); - lua_rawset(L,LUA_REGISTRYINDEX); + SWIG_Lua_create_class_registry(L); /* then get it */ lua_pushstring(L,"SWIG"); lua_rawget(L,LUA_REGISTRYINDEX); } } -/* helper fn to get the classes metatable from the register */ -SWIGINTERN void SWIG_Lua_get_class_metatable(lua_State* L,const char* cname) +SWIGINTERN void SWIG_Lua_get_inheritable_metamethods(lua_State *L) +{ + SWIG_Lua_get_class_registry(L); + lua_pushstring(L, ".library"); + lua_rawget(L,-2); + assert( !lua_isnil(L,-1) ); + lua_pushstring(L, "inheritable_metamethods"); + lua_rawget(L,-2); + + /* Remove class registry and library table */ + lua_remove(L,-2); + lua_remove(L,-2); +} + +/* Helper function to get the classes metatable from the register */ +SWIGINTERN void SWIG_Lua_get_class_metatable(lua_State *L,const char *cname) { SWIG_Lua_get_class_registry(L); /* get the registry */ lua_pushstring(L,cname); /* get the name */ @@ -1476,8 +1905,96 @@ SWIGINTERN void SWIG_Lua_get_class_metatable(lua_State* L,const char* cname) lua_remove(L,-2); /* tidy up (remove registry) */ } +/* Set up the base classes pointers. +Each class structure has a list of pointers to the base class structures. +This function fills them. +It cannot be done at compile time, as this will not work with hireachies +spread over more than one swig file. +Therefore it must be done at runtime, querying the SWIG type system. +*/ +SWIGINTERN void SWIG_Lua_init_base_class(lua_State *L,swig_lua_class *clss) +{ + int i=0; + swig_module_info *module=SWIG_GetModule(L); + for(i=0;clss->base_names[i];i++) + { + if (clss->bases[i]==0) /* not found yet */ + { + /* lookup and cache the base class */ + swig_type_info *info = SWIG_TypeQueryModule(module,module,clss->base_names[i]); + if (info) clss->bases[i] = (swig_lua_class *) info->clientdata; + } + } +} + +#if defined(SWIG_LUA_SQUASH_BASES) && (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) +/* Merges two tables */ +SWIGINTERN void SWIG_Lua_merge_tables_by_index(lua_State *L, int target, int source) +{ + /* iterating */ + lua_pushnil(L); + while (lua_next(L,source) != 0) { + /* -1 - value, -2 - index */ + /* have to copy to assign */ + lua_pushvalue(L,-2); /* copy of index */ + lua_pushvalue(L,-2); /* copy of value */ + lua_rawset(L, target); + lua_pop(L,1); + /* only key is left */ + } +} + +/* Merges two tables with given name. original - index of target metatable, base - index of source metatable */ +SWIGINTERN void SWIG_Lua_merge_tables(lua_State *L, const char* name, int original, int base) +{ + /* push original[name], then base[name] */ + lua_pushstring(L,name); + lua_rawget(L,original); + int original_table = lua_gettop(L); + lua_pushstring(L,name); + lua_rawget(L,base); + int base_table = lua_gettop(L); + SWIG_Lua_merge_tables_by_index(L, original_table, base_table); + /* clearing stack */ + lua_pop(L,2); +} + +/* Function takes all symbols from base and adds it to derived class. It's just a helper. */ +SWIGINTERN void SWIG_Lua_class_squash_base(lua_State *L, swig_lua_class *base_cls) +{ + /* There is one parameter - original, i.e. 'derived' class metatable */ + assert(lua_istable(L,-1)); + int original = lua_gettop(L); + SWIG_Lua_get_class_metatable(L,base_cls->fqname); + int base = lua_gettop(L); + SWIG_Lua_merge_tables(L, ".fn", original, base ); + SWIG_Lua_merge_tables(L, ".set", original, base ); + SWIG_Lua_merge_tables(L, ".get", original, base ); + lua_pop(L,1); +} + +/* Function squashes all symbols from 'clss' bases into itself */ +SWIGINTERN void SWIG_Lua_class_squash_bases(lua_State *L, swig_lua_class *clss) +{ + int i; + SWIG_Lua_get_class_metatable(L,clss->fqname); + for(i=0;clss->base_names[i];i++) + { + if (clss->bases[i]==0) /* Somehow it's not found. Skip it */ + continue; + /* Thing is: all bases are already registered. Thus they have already executed + * this function. So we just need to squash them into us, because their bases + * are already squashed into them. No need for recursion here! + */ + SWIG_Lua_class_squash_base(L, clss->bases[i]); + } + lua_pop(L,1); /*tidy stack*/ +} +#endif + +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) /* In elua this is useless */ /* helper add a variable to a registered class */ -SWIGINTERN void SWIG_Lua_add_class_variable(lua_State* L,const char* name,lua_CFunction getFn,lua_CFunction setFn) +SWIGINTERN void SWIG_Lua_add_variable(lua_State *L,const char *name,lua_CFunction getFn,lua_CFunction setFn) { assert(lua_istable(L,-1)); /* just in case */ SWIG_Lua_get_table(L,".get"); /* find the .get table */ @@ -1494,7 +2011,7 @@ SWIGINTERN void SWIG_Lua_add_class_variable(lua_State* L,const char* name,lua_C } /* helper to recursively add class static details (static attributes, operations and constants) */ -SWIGINTERN void SWIG_Lua_add_class_static_details(lua_State* L, swig_lua_class* clss) +SWIGINTERN void SWIG_Lua_add_class_static_details(lua_State *L, swig_lua_class *clss) { int i = 0; /* The class namespace table must be on the top of the stack */ @@ -1505,72 +2022,269 @@ SWIGINTERN void SWIG_Lua_add_class_static_details(lua_State* L, swig_lua_class* SWIG_Lua_add_class_static_details(L,clss->bases[i]); } - SWIG_Lua_add_namespace_details(L, &clss->cls_static); + SWIG_Lua_add_namespace_details(L, clss->cls_static); } +SWIGINTERN void SWIG_Lua_add_class_user_metamethods(lua_State *L, swig_lua_class *clss); /* forward declaration */ + /* helper to recursively add class details (attributes & operations) */ -SWIGINTERN void SWIG_Lua_add_class_details(lua_State* L,swig_lua_class* clss) +SWIGINTERN void SWIG_Lua_add_class_instance_details(lua_State *L, swig_lua_class *clss) { int i; - /* call all the base classes first: we can then override these later: */ + size_t bases_count = 0; + /* Add bases to .bases table */ + SWIG_Lua_get_table(L,".bases"); + assert(lua_istable(L,-1)); /* just in case */ for(i=0;clss->bases[i];i++) { - SWIG_Lua_add_class_details(L,clss->bases[i]); - } - /* add fns */ + SWIG_Lua_get_class_metatable(L,clss->bases[i]->fqname); + /* Base class must be already registered */ + assert(lua_istable(L,-1)); + lua_rawseti(L,-2,i+1); /* In lua indexing starts from 1 */ + bases_count++; + } + assert(lua_rawlen(L,-1) == bases_count); + lua_pop(L,1); /* remove .bases table */ + /* add attributes */ for(i=0;clss->attributes[i].name;i++){ - SWIG_Lua_add_class_variable(L,clss->attributes[i].name,clss->attributes[i].getmethod,clss->attributes[i].setmethod); + SWIG_Lua_add_variable(L,clss->attributes[i].name,clss->attributes[i].getmethod,clss->attributes[i].setmethod); } /* add methods to the metatable */ SWIG_Lua_get_table(L,".fn"); /* find the .fn table */ assert(lua_istable(L,-1)); /* just in case */ for(i=0;clss->methods[i].name;i++){ - SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); + SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].func); } lua_pop(L,1); /* tidy stack (remove table) */ - /* add operator overloads - these look ANY method which start with "__" and assume they - are operator overloads & add them to the metatable - (this might mess up is someone defines a method __gc (the destructor)*/ - for(i=0;clss->methods[i].name;i++){ - if (clss->methods[i].name[0]=='_' && clss->methods[i].name[1]=='_'){ - SWIG_Lua_add_function(L,clss->methods[i].name,clss->methods[i].method); + /* add operator overloads + This adds methods from metatable array to metatable. Can mess up garbage + collectind if someone defines __gc method + */ + if(clss->metatable) { + for(i=0;clss->metatable[i].name;i++) { + SWIG_Lua_add_function(L,clss->metatable[i].name,clss->metatable[i].func); } } + +#if !defined(SWIG_LUA_SQUASH_BASES) + /* Adding metamethods that are defined in base classes. If bases were squashed + * then it is obviously unnecessary + */ + SWIG_Lua_add_class_user_metamethods(L, clss); +#endif } -/* set up the base classes pointers. -Each class structure has a list of pointers to the base class structures. -This function fills them. -It cannot be done at compile time, as this will not work with hireachies -spread over more than one swig file. -Therefore it must be done at runtime, querying the SWIG type system. +/* Helpers to add user defined class metamedhods - __add, __sub etc. The helpers are needed + for the following issue: Lua runtime checks for metamethod existence with rawget function + ignoring our SWIG-provided __index and __newindex functions. Thus our inheritance-aware method + search algorithm doesn't work in such case. (Not to say that Lua runtime queries metamethod directly + in metatable and not in object). + Current solution is this: if somewhere in hierarchy metamethod __x is defined, then all descendants + are automatically given a special proxy __x that calls the real __x method. + Obvious idea - to copy __x instead of creating __x-proxy is wrong because if someone changes __x in runtime, + those changes must be reflected in all descendants. */ -SWIGINTERN void SWIG_Lua_init_base_class(lua_State* L,swig_lua_class* clss) + +SWIGRUNTIME int SWIG_Lua_resolve_metamethod(lua_State *L); /*forward declaration*/ + +/* The real function that resolves a metamethod. + * Function searches given class and all it's bases(recursively) for first instance of something that is + * not equal to SWIG_Lua_resolve_metatmethod. (Almost always this 'something' is actual metamethod implementation + * and it is a SWIG-generated C function.). It returns value on the top of the L and there is no garbage below the + * answer. + * Returns 1 if found, 0 otherwise. + * clss is class which metatable we will search for method + * metamethod_name_idx is index in L where metamethod name (as string) lies + * skip_check allows to skip searching metamethod in givel clss and immideatelly go to searching in bases. skip_check + * is not caried to subsequent recursive calls - false is always passed. It is set to true only at first call from + * SWIG_Lua_resolve_metamethod + * */ +SWIGINTERN int SWIG_Lua_do_resolve_metamethod(lua_State *L, const swig_lua_class *clss, int metamethod_name_idx, + int skip_check) { - int i=0; - swig_module_info* module=SWIG_GetModule(L); - for(i=0;clss->base_names[i];i++) + /* This function is called recursively */ + int result = 0; + int i = 0; + + if (!skip_check) { + SWIG_Lua_get_class_metatable(L, clss->fqname); + lua_pushvalue(L, metamethod_name_idx); + lua_rawget(L,-2); + /* If this is cfunction and it is equal to SWIG_Lua_resolve_metamethod then + * this isn't the function we are looking for :) + * lua_tocfunction will return NULL if not cfunction + */ + if (!lua_isnil(L,-1) && lua_tocfunction(L,-1) != SWIG_Lua_resolve_metamethod ) { + lua_remove(L,-2); /* removing class metatable */ + return 1; + } + lua_pop(L,2); /* remove class metatable and query result */ + } + + /* Forwarding calls to bases */ + for(i=0;clss->bases[i];i++) { - if (clss->bases[i]==0) /* not found yet */ - { - /* lookup and cache the base class */ - swig_type_info *info = SWIG_TypeQueryModule(module,module,clss->base_names[i]); - if (info) clss->bases[i] = (swig_lua_class *) info->clientdata; + result = SWIG_Lua_do_resolve_metamethod(L, clss->bases[i], metamethod_name_idx, 0); + if (result) + break; + } + + return result; +} + +/* The proxy function for metamethod. All parameters are passed as cclosure. Searches for actual method + * and calls it */ +SWIGRUNTIME int SWIG_Lua_resolve_metamethod(lua_State *L) +{ + int numargs; + int metamethod_name_idx; + const swig_lua_class* clss; + int result; + + lua_checkstack(L,5); + numargs = lua_gettop(L); /* number of arguments to pass to actual metamethod */ + + /* Get upvalues from closure */ + lua_pushvalue(L, lua_upvalueindex(1)); /*Get function name*/ + metamethod_name_idx = lua_gettop(L); + + lua_pushvalue(L, lua_upvalueindex(2)); + clss = (const swig_lua_class*)(lua_touserdata(L,-1)); + lua_pop(L,1); /* remove lightuserdata with clss from stack */ + + /* Actual work */ + result = SWIG_Lua_do_resolve_metamethod(L, clss, metamethod_name_idx, 1); + if (!result) { + SWIG_Lua_pushferrstring(L,"The metamethod proxy is set, but it failed to find actual metamethod. Memory corruption is most likely explanation."); + lua_error(L); + return 0; + } + + lua_remove(L,-2); /* remove metamethod key */ + lua_insert(L,1); /* move function to correct position */ + lua_call(L, numargs, LUA_MULTRET); + return lua_gettop(L); /* return all results */ +} + + +/* If given metamethod must be present in given class, then creates appropriate proxy + * Returns 1 if successfully added, 0 if not added because no base class has it, -1 + * if method is defined in the class metatable itself + */ +SWIGINTERN int SWIG_Lua_add_class_user_metamethod(lua_State *L, swig_lua_class *clss, const int metatable_index) +{ + int key_index; + int success = 0; + int i = 0; + + /* metamethod name - on the top of the stack */ + assert(lua_isstring(L,-1)); + + key_index = lua_gettop(L); + + /* Check whether method is already defined in metatable */ + lua_pushvalue(L,key_index); /* copy of the key */ + lua_gettable(L,metatable_index); + if( !lua_isnil(L,-1) ) { + lua_pop(L,1); + return -1; + } + lua_pop(L,1); + + /* Iterating over immediate bases */ + for(i=0;clss->bases[i];i++) + { + const swig_lua_class *base = clss->bases[i]; + SWIG_Lua_get_class_metatable(L, base->fqname); + lua_pushvalue(L, key_index); + lua_rawget(L, -2); + if( !lua_isnil(L,-1) ) { + lua_pushvalue(L, key_index); + + /* Add proxy function */ + lua_pushvalue(L, key_index); /* first closure value is function name */ + lua_pushlightuserdata(L, clss); /* second closure value is swig_lua_class structure */ + lua_pushcclosure(L, SWIG_Lua_resolve_metamethod, 2); + + lua_rawset(L, metatable_index); + success = 1; + } + lua_pop(L,1); /* remove function or nil */ + lua_pop(L,1); /* remove base class metatable */ + + if( success ) + break; + } + + return success; +} + +SWIGINTERN void SWIG_Lua_add_class_user_metamethods(lua_State *L, swig_lua_class *clss) +{ + int metatable_index; + int metamethods_info_index; + int tostring_undefined; + int eq_undefined = 0; + + SWIG_Lua_get_class_metatable(L, clss->fqname); + metatable_index = lua_gettop(L); + SWIG_Lua_get_inheritable_metamethods(L); + assert(lua_istable(L,-1)); + metamethods_info_index = lua_gettop(L); + lua_pushnil(L); /* first key */ + while(lua_next(L, metamethods_info_index) != 0 ) { + /* key at index -2, value at index -1 */ + const int is_inheritable = lua_toboolean(L,-2); + lua_pop(L,1); /* remove value - we don't need it anymore */ + + if(is_inheritable) { /* if metamethod is inheritable */ + SWIG_Lua_add_class_user_metamethod(L,clss,metatable_index); } } + + lua_pop(L,1); /* remove inheritable metatmethods table */ + + /* Special handling for __tostring method */ + lua_pushstring(L, "__tostring"); + lua_pushvalue(L,-1); + lua_rawget(L,metatable_index); + tostring_undefined = lua_isnil(L,-1); + lua_pop(L,1); + if( tostring_undefined ) { + lua_pushcfunction(L, SWIG_Lua_class_tostring); + lua_rawset(L, metatable_index); + } else { + lua_pop(L,1); /* remove copy of the key */ + } + + /* Special handling for __eq method */ + lua_pushstring(L, "__eq"); + lua_pushvalue(L,-1); + lua_rawget(L,metatable_index); + eq_undefined = lua_isnil(L,-1); + lua_pop(L,1); + if( eq_undefined ) { + lua_pushcfunction(L, SWIG_Lua_class_equal); + lua_rawset(L, metatable_index); + } else { + lua_pop(L,1); /* remove copy of the key */ + } + /* Warning: __index and __newindex are SWIG-defined. For user-defined operator[] + * a __getitem/__setitem method should be defined + */ + lua_pop(L,1); /* pop class metatable */ } /* Register class static methods,attributes etc as well as constructor proxy */ -SWIGINTERN void SWIG_Lua_class_register_static(lua_State* L, swig_lua_class* clss) +SWIGINTERN void SWIG_Lua_class_register_static(lua_State *L, swig_lua_class *clss) { + const int SWIGUNUSED begin = lua_gettop(L); lua_checkstack(L,5); /* just in case */ assert(lua_istable(L,-1)); /* just in case */ - assert(strcmp(clss->name, clss->cls_static.name) == 0); /* in class those 2 must be equal */ + assert(strcmp(clss->name, clss->cls_static->name) == 0); /* in class those 2 must be equal */ - SWIG_Lua_namespace_register(L,&clss->cls_static); + SWIG_Lua_namespace_register(L,clss->cls_static, 1); - SWIG_Lua_get_table(L,clss->name); // Get namespace table back assert(lua_istable(L,-1)); /* just in case */ /* add its constructor to module with the name of the class @@ -1579,10 +2293,9 @@ SWIGINTERN void SWIG_Lua_class_register_static(lua_State* L, swig_lua_class* cls (this overcomes the problem of pure virtual classes without constructors)*/ if (clss->constructor) { - SWIG_Lua_add_function(L,".constructor", clss->constructor); lua_getmetatable(L,-1); assert(lua_istable(L,-1)); /* just in case */ - SWIG_Lua_add_function(L,"__call", SWIG_Lua_constructor_proxy); + SWIG_Lua_add_function(L,"__call", clss->constructor); lua_pop(L,1); } @@ -1591,19 +2304,60 @@ SWIGINTERN void SWIG_Lua_class_register_static(lua_State* L, swig_lua_class* cls /* clear stack */ lua_pop(L,1); + assert( lua_gettop(L) == begin ); } -/* performs the entire class registration process */ -SWIGINTERN void SWIG_Lua_class_register(lua_State* L,swig_lua_class* clss) +/* Performs the instance (non-static) class registration process. Metatable for class is created + * and added to the class registry. + */ +SWIGINTERN void SWIG_Lua_class_register_instance(lua_State *L,swig_lua_class *clss) { - SWIG_Lua_class_register_static(L,clss); - + const int SWIGUNUSED begin = lua_gettop(L); + int i; + /* if name already there (class is already registered) then do nothing */ + SWIG_Lua_get_class_registry(L); /* get the registry */ + lua_pushstring(L,clss->fqname); /* get the name */ + lua_rawget(L,-2); + if(!lua_isnil(L,-1)) { + lua_pop(L,2); + assert(lua_gettop(L)==begin); + return; + } + lua_pop(L,2); /* tidy stack */ + /* Recursively initialize all bases */ + for(i=0;clss->bases[i];i++) + { + SWIG_Lua_class_register_instance(L,clss->bases[i]); + } + /* Again, get registry and push name */ SWIG_Lua_get_class_registry(L); /* get the registry */ - lua_pushstring(L,clss->name); /* get the name */ + lua_pushstring(L,clss->fqname); /* get the name */ lua_newtable(L); /* create the metatable */ +#if defined(SWIG_LUA_SQUASH_BASES) && (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) + /* If squashing is requested, then merges all bases metatable into this one. + * It would get us all special methods: __getitem, __add etc. + * This would set .fn, .type, and other .xxx incorrectly, but we will overwrite it right away + */ + { + int new_metatable_index = lua_absindex(L,-1); + for(i=0;clss->bases[i];i++) + { + int base_metatable; + SWIG_Lua_get_class_metatable(L,clss->bases[i]->fqname); + base_metatable = lua_absindex(L,-1); + SWIG_Lua_merge_tables_by_index(L,new_metatable_index, base_metatable); + lua_pop(L,1); + } + } + /* And now we will overwrite all incorrectly set data */ +#endif /* add string of class name called ".type" */ lua_pushstring(L,".type"); - lua_pushstring(L,clss->name); + lua_pushstring(L,clss->fqname); + lua_rawset(L,-3); + /* add a table called bases */ + lua_pushstring(L,".bases"); + lua_newtable(L); lua_rawset(L,-3); /* add a table called ".get" */ lua_pushstring(L,".get"); @@ -1623,27 +2377,99 @@ SWIGINTERN void SWIG_Lua_class_register(lua_State* L,swig_lua_class* clss) SWIG_Lua_add_function(L,"__index",SWIG_Lua_class_get); SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_class_set); SWIG_Lua_add_function(L,"__gc",SWIG_Lua_class_destruct); - /* add tostring method for better output */ - SWIG_Lua_add_function(L,"__tostring",SWIG_Lua_class_tostring); /* add it */ lua_rawset(L,-3); /* metatable into registry */ lua_pop(L,1); /* tidy stack (remove registry) */ + assert(lua_gettop(L) == begin); - SWIG_Lua_get_class_metatable(L,clss->name); - SWIG_Lua_add_class_details(L,clss); /* recursive adding of details (atts & ops) */ +#if defined(SWIG_LUA_SQUASH_BASES) && (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) + /* Now merge all symbols from .fn, .set, .get etc from bases to our tables */ + SWIG_Lua_class_squash_bases(L,clss); +#endif + SWIG_Lua_get_class_metatable(L,clss->fqname); + SWIG_Lua_add_class_instance_details(L,clss); /* recursive adding of details (atts & ops) */ lua_pop(L,1); /* tidy stack (remove class metatable) */ + assert( lua_gettop(L) == begin ); +} + +SWIGINTERN void SWIG_Lua_class_register(lua_State *L,swig_lua_class *clss) +{ + int SWIGUNUSED begin; + assert(lua_istable(L,-1)); /* This is a table (module or namespace) where classes will be added */ + SWIG_Lua_class_register_instance(L,clss); + SWIG_Lua_class_register_static(L,clss); + + /* Add links from static part to instance part and vice versa */ + /* [SWIG registry] [Module] + * "MyClass" ----> [MyClass metatable] <===== "MyClass" -+> [static part] + * ".get" ----> ... | | getmetatable()----| + * ".set" ----> ... | | | + * ".static" --------------)----------------/ [static part metatable] + * | ".get" --> ... + * | ".set" --> .... + * |=============================== ".instance" + */ + begin = lua_gettop(L); + lua_pushstring(L,clss->cls_static->name); + lua_rawget(L,-2); /* get class static table */ + assert(lua_istable(L,-1)); + lua_getmetatable(L,-1); + assert(lua_istable(L,-1)); /* get class static metatable */ + lua_pushstring(L,".instance"); /* prepare key */ + + SWIG_Lua_get_class_metatable(L,clss->fqname); /* get class metatable */ + assert(lua_istable(L,-1)); + lua_pushstring(L,".static"); /* prepare key */ + lua_pushvalue(L, -4); /* push static class TABLE */ + assert(lua_istable(L,-1)); + lua_rawset(L,-3); /* assign static class table(!NOT metatable) as ".static" member of class metatable */ + lua_rawset(L,-3); /* assign class metatable as ".instance" member of class static METATABLE */ + lua_pop(L,2); + assert(lua_gettop(L) == begin); +} +#endif /* SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA */ + +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) +SWIGINTERN void SWIG_Lua_elua_class_register_instance(lua_State *L, swig_lua_class *clss) +{ + const int SWIGUNUSED begin = lua_gettop(L); + int i; + /* if name already there (class is already registered) then do nothing */ + SWIG_Lua_get_class_registry(L); /* get the registry */ + lua_pushstring(L,clss->fqname); /* get the name */ + lua_rawget(L,-2); + if(!lua_isnil(L,-1)) { + lua_pop(L,2); + assert(lua_gettop(L)==begin); + return; + } + lua_pop(L,2); /* tidy stack */ + /* Recursively initialize all bases */ + for(i=0;clss->bases[i];i++) + { + SWIG_Lua_elua_class_register_instance(L,clss->bases[i]); + } + /* Again, get registry and push name */ + SWIG_Lua_get_class_registry(L); /* get the registry */ + lua_pushstring(L,clss->fqname); /* get the name */ + assert(clss->metatable); + lua_pushrotable(L, (void*)(clss->metatable)); /* create the metatable */ + lua_rawset(L,-3); + lua_pop(L,1); + assert(lua_gettop(L) == begin); } +#endif /* elua && eluac */ /* ----------------------------------------------------------------------------- * Class/structure conversion fns * ----------------------------------------------------------------------------- */ /* helper to add metatable to new lua object */ -SWIGINTERN void _SWIG_Lua_AddMetatable(lua_State* L,swig_type_info *type) +SWIGINTERN void SWIG_Lua_AddMetatable(lua_State *L,swig_type_info *type) { if (type->clientdata) /* there is clientdata: so add the metatable */ { - SWIG_Lua_get_class_metatable(L,((swig_lua_class*)(type->clientdata))->name); + SWIG_Lua_get_class_metatable(L,((swig_lua_class*)(type->clientdata))->fqname); if (lua_istable(L,-1)) { lua_setmetatable(L,-2); @@ -1656,9 +2482,9 @@ SWIGINTERN void _SWIG_Lua_AddMetatable(lua_State* L,swig_type_info *type) } /* pushes a new object into the lua stack */ -SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State* L,void* ptr,swig_type_info *type, int own) +SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State *L,void *ptr,swig_type_info *type, int own) { - swig_lua_userdata* usr; + swig_lua_userdata *usr; if (!ptr){ lua_pushnil(L); return; @@ -1668,15 +2494,15 @@ SWIGRUNTIME void SWIG_Lua_NewPointerObj(lua_State* L,void* ptr,swig_type_info *t usr->type=type; usr->own=own; #if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) - _SWIG_Lua_AddMetatable(L,type); /* add metatable */ + SWIG_Lua_AddMetatable(L,type); /* add metatable */ #endif } /* takes a object from the lua stack & converts it into an object of the correct type (if possible) */ -SWIGRUNTIME int SWIG_Lua_ConvertPtr(lua_State* L,int index,void** ptr,swig_type_info *type,int flags) +SWIGRUNTIME int SWIG_Lua_ConvertPtr(lua_State *L,int index,void **ptr,swig_type_info *type,int flags) { - swig_lua_userdata* usr; + swig_lua_userdata *usr; swig_cast_info *cast; if (lua_isnil(L,index)){*ptr=0; return SWIG_OK;} /* special case: lua nil => NULL pointer */ usr=(swig_lua_userdata*)lua_touserdata(L,index); /* get data */ @@ -1703,9 +2529,9 @@ SWIGRUNTIME int SWIG_Lua_ConvertPtr(lua_State* L,int index,void** ptr,swig_type return SWIG_ERROR; /* error */ } -SWIGRUNTIME void* SWIG_Lua_MustGetPtr(lua_State* L,int index,swig_type_info *type,int flags, - int argnum,const char* func_name){ - void* result; +SWIGRUNTIME void* SWIG_Lua_MustGetPtr(lua_State *L,int index,swig_type_info *type,int flags, + int argnum,const char *func_name){ + void *result; if (!SWIG_IsOK(SWIG_ConvertPtr(L,index,&result,type,flags))){ luaL_error (L,"Error in %s, expected a %s at argument number %d\n", func_name,(type && type->str)?type->str:"void*",argnum); @@ -1714,21 +2540,21 @@ SWIGRUNTIME void* SWIG_Lua_MustGetPtr(lua_State* L,int index,swig_type_info *typ } /* pushes a packed userdata. user for member fn pointers only */ -SWIGRUNTIME void SWIG_Lua_NewPackedObj(lua_State* L,void* ptr,size_t size,swig_type_info *type) +SWIGRUNTIME void SWIG_Lua_NewPackedObj(lua_State *L,void *ptr,size_t size,swig_type_info *type) { - swig_lua_rawdata* raw; + swig_lua_rawdata *raw; assert(ptr); /* not acceptable to pass in a NULL value */ raw=(swig_lua_rawdata*)lua_newuserdata(L,sizeof(swig_lua_rawdata)-1+size); /* alloc data */ raw->type=type; raw->own=0; memcpy(raw->data,ptr,size); /* copy the data */ - _SWIG_Lua_AddMetatable(L,type); /* add metatable */ + SWIG_Lua_AddMetatable(L,type); /* add metatable */ } /* converts a packed userdata. user for member fn pointers only */ -SWIGRUNTIME int SWIG_Lua_ConvertPacked(lua_State* L,int index,void* ptr,size_t size,swig_type_info *type) +SWIGRUNTIME int SWIG_Lua_ConvertPacked(lua_State *L,int index,void *ptr,size_t size,swig_type_info *type) { - swig_lua_rawdata* raw; + swig_lua_rawdata *raw; raw=(swig_lua_rawdata*)lua_touserdata(L,index); /* get data */ if (!raw) return SWIG_ERROR; /* error */ if (type==0 || type==raw->type) /* void* or identical type */ @@ -1742,7 +2568,7 @@ SWIGRUNTIME int SWIG_Lua_ConvertPacked(lua_State* L,int index,void* ptr,size_t /* a function to get the typestring of a piece of data */ SWIGRUNTIME const char *SWIG_Lua_typename(lua_State *L, int tp) { - swig_lua_userdata* usr; + swig_lua_userdata *usr; if (lua_isuserdata(L,tp)) { usr=(swig_lua_userdata*)lua_touserdata(L,tp); /* get data */ @@ -1754,29 +2580,12 @@ SWIGRUNTIME const char *SWIG_Lua_typename(lua_State *L, int tp) } /* lua callable function to get the userdata's type */ -SWIGRUNTIME int SWIG_Lua_type(lua_State* L) +SWIGRUNTIME int SWIG_Lua_type(lua_State *L) { lua_pushstring(L,SWIG_Lua_typename(L,1)); return 1; } -/* lua callable function to compare userdata's value -the issue is that two userdata may point to the same thing -but to lua, they are different objects */ -SWIGRUNTIME int SWIG_Lua_equal(lua_State* L) -{ - int result; - swig_lua_userdata *usr1,*usr2; - if (!lua_isuserdata(L,1) || !lua_isuserdata(L,2)) /* just in case */ - return 0; /* nil reply */ - usr1=(swig_lua_userdata*)lua_touserdata(L,1); /* get data */ - usr2=(swig_lua_userdata*)lua_touserdata(L,2); /* get data */ - /*result=(usr1->ptr==usr2->ptr && usr1->type==usr2->type); only works if type is the same*/ - result=(usr1->ptr==usr2->ptr); - lua_pushboolean(L,result); - return 1; -} - /* ----------------------------------------------------------------------------- * global variable support code: class/struct typemap functions * ----------------------------------------------------------------------------- */ @@ -1784,13 +2593,13 @@ SWIGRUNTIME int SWIG_Lua_equal(lua_State* L) #if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) /* Install Constants */ SWIGINTERN void -SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) { +SWIG_Lua_InstallConstants(lua_State *L, swig_lua_const_info constants[]) { int i; for (i = 0; constants[i].type; i++) { switch(constants[i].type) { case SWIG_LUA_INT: lua_pushstring(L,constants[i].name); - lua_pushnumber(L,(lua_Number)constants[i].lvalue); + lua_pushinteger(L,(lua_Number)constants[i].lvalue); lua_rawset(L,-3); break; case SWIG_LUA_FLOAT: @@ -1800,7 +2609,10 @@ SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) { break; case SWIG_LUA_CHAR: lua_pushstring(L,constants[i].name); - lua_pushfstring(L,"%c",(char)constants[i].lvalue); + { + char c = constants[i].lvalue; + lua_pushlstring(L,&c,1); + } lua_rawset(L,-3); break; case SWIG_LUA_STRING: @@ -1834,11 +2646,11 @@ SWIG_Lua_InstallConstants(lua_State* L, swig_lua_const_info constants[]) { #endif /* Executes a C string in Lua which is a really simple way of calling lua from C Unfortunately lua keeps changing its APIs, so we need a conditional compile -In lua 5.0.X its lua_dostring() -In lua 5.1.X its luaL_dostring() +In lua 5.0.X it's lua_dostring() +In lua 5.1.X it's luaL_dostring() */ SWIGINTERN int -SWIG_Lua_dostring(lua_State *L, const char* str) { +SWIG_Lua_dostring(lua_State *L, const char *str) { int ok,top; if (str==0 || str[0]==0) return 0; /* nothing to do */ top=lua_gettop(L); /* save stack */ @@ -2121,27 +2933,51 @@ static void swig_delete_PARSE_EVENT_STRUCT(void *obj) { PARSE_EVENT_STRUCT *arg1 = (PARSE_EVENT_STRUCT *) obj; delete arg1; } -static swig_lua_method swig_PARSE_EVENT_STRUCT_methods[] = { - {0,0} -}; +static int _proxy__wrap_new_PARSE_EVENT_STRUCT(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_PARSE_EVENT_STRUCT); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_PARSE_EVENT_STRUCT_attributes[] = { - { "event", _wrap_PARSE_EVENT_STRUCT_event_get, _wrap_PARSE_EVENT_STRUCT_event_set}, - { "i", _wrap_PARSE_EVENT_STRUCT_i_get, _wrap_PARSE_EVENT_STRUCT_i_set}, - { "text", _wrap_PARSE_EVENT_STRUCT_text_get, _wrap_PARSE_EVENT_STRUCT_text_set}, + { "event", _wrap_PARSE_EVENT_STRUCT_event_get, _wrap_PARSE_EVENT_STRUCT_event_set }, + { "i", _wrap_PARSE_EVENT_STRUCT_i_get, _wrap_PARSE_EVENT_STRUCT_i_set }, + { "text", _wrap_PARSE_EVENT_STRUCT_text_get, _wrap_PARSE_EVENT_STRUCT_text_set }, {0,0,0} }; -static swig_lua_attribute swig_PARSE_EVENT_STRUCT_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_PARSE_EVENT_STRUCT_methods[]= { + {0,0} }; -static swig_lua_method swig_PARSE_EVENT_STRUCT_cls_methods[] = { +static swig_lua_method swig_PARSE_EVENT_STRUCT_meta[] = { {0,0} }; -static swig_lua_const_info swig_PARSE_EVENT_STRUCT_cls_constants[] = { + +static swig_lua_attribute swig_PARSE_EVENT_STRUCT_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_PARSE_EVENT_STRUCT_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_PARSE_EVENT_STRUCT_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_PARSE_EVENT_STRUCT_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_PARSE_EVENT_STRUCT_Sf_SwigStatic = { + "PARSE_EVENT_STRUCT", + swig_PARSE_EVENT_STRUCT_Sf_SwigStatic_methods, + swig_PARSE_EVENT_STRUCT_Sf_SwigStatic_attributes, + swig_PARSE_EVENT_STRUCT_Sf_SwigStatic_constants, + swig_PARSE_EVENT_STRUCT_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_PARSE_EVENT_STRUCT_bases[] = {0}; static const char *swig_PARSE_EVENT_STRUCT_base_names[] = {0}; -static swig_lua_class _wrap_class_PARSE_EVENT_STRUCT = { "PARSE_EVENT_STRUCT", &SWIGTYPE_p_PARSE_EVENT_STRUCT,_wrap_new_PARSE_EVENT_STRUCT, swig_delete_PARSE_EVENT_STRUCT, swig_PARSE_EVENT_STRUCT_methods, swig_PARSE_EVENT_STRUCT_attributes, { "PARSE_EVENT_STRUCT", swig_PARSE_EVENT_STRUCT_cls_methods, swig_PARSE_EVENT_STRUCT_cls_attributes, swig_PARSE_EVENT_STRUCT_cls_constants }, swig_PARSE_EVENT_STRUCT_bases, swig_PARSE_EVENT_STRUCT_base_names }; +static swig_lua_class _wrap_class_PARSE_EVENT_STRUCT = { "PARSE_EVENT_STRUCT", "PARSE_EVENT_STRUCT", &SWIGTYPE_p_PARSE_EVENT_STRUCT,_proxy__wrap_new_PARSE_EVENT_STRUCT, swig_delete_PARSE_EVENT_STRUCT, swig_PARSE_EVENT_STRUCT_methods, swig_PARSE_EVENT_STRUCT_attributes, &swig_PARSE_EVENT_STRUCT_Sf_SwigStatic, swig_PARSE_EVENT_STRUCT_meta, swig_PARSE_EVENT_STRUCT_bases, swig_PARSE_EVENT_STRUCT_base_names }; static int _wrap_PARAM_s_set(lua_State* L) { int SWIG_arg = 0; @@ -4498,13 +5334,22 @@ static int _wrap_PARAM_fhdltmp_get(lua_State* L) { } -static int _wrap_new_PARAM(lua_State* L) { +static int _wrap_PARAM_iclientsocket_set(lua_State* L) { int SWIG_arg = 0; - _PARAM_ *result = 0 ; + _PARAM_ *arg1 = (_PARAM_ *) 0 ; + int arg2 ; + + SWIG_check_num_args("_PARAM_::iclientsocket",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("_PARAM_::iclientsocket",1,"_PARAM_ *"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("_PARAM_::iclientsocket",2,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p__PARAM_,0))){ + SWIG_fail_ptr("PARAM_iclientsocket_set",1,SWIGTYPE_p__PARAM_); + } + + arg2 = (int)lua_tonumber(L, 2); + if (arg1) (arg1)->iclientsocket = arg2; - SWIG_check_num_args("_PARAM_::_PARAM_",0,0) - result = (_PARAM_ *)new _PARAM_(); - SWIG_NewPointerObj(L,result,SWIGTYPE_p__PARAM_,1); SWIG_arg++; return SWIG_arg; if(0) SWIG_fail; @@ -4515,73 +5360,241 @@ static int _wrap_new_PARAM(lua_State* L) { } -static void swig_delete_PARAM(void *obj) { -_PARAM_ *arg1 = (_PARAM_ *) obj; -delete arg1; -} -static swig_lua_method swig__PARAM__methods[] = { - {0,0} -}; -static swig_lua_attribute swig__PARAM__attributes[] = { - { "s", _wrap_PARAM_s_get, _wrap_PARAM_s_set}, - { "os", _wrap_PARAM_os_get, _wrap_PARAM_os_set}, - { "port", _wrap_PARAM_port_get, _wrap_PARAM_port_set}, - { "language", _wrap_PARAM_language_get, _wrap_PARAM_language_set}, - { "convert_units", _wrap_PARAM_convert_units_get, _wrap_PARAM_convert_units_set}, - { "fp", _wrap_PARAM_fp_get, _wrap_PARAM_fp_set}, - { "sleep", _wrap_PARAM_sleep_get, _wrap_PARAM_sleep_set}, - { "cleanup", _wrap_PARAM_cleanup_get, _wrap_PARAM_cleanup_set}, - { "app_data", _wrap_PARAM_app_data_get, _wrap_PARAM_app_data_set}, - { "user", _wrap_PARAM_user_get, _wrap_PARAM_user_set}, - { "clipboard", _wrap_PARAM_clipboard_get, _wrap_PARAM_clipboard_set}, - { "clipboard_length", _wrap_PARAM_clipboard_length_get, _wrap_PARAM_clipboard_length_set}, - { "modal", _wrap_PARAM_modal_get, _wrap_PARAM_modal_set}, - { "readData", _wrap_PARAM_readData_get, _wrap_PARAM_readData_set}, - { "showData", _wrap_PARAM_showData_get, _wrap_PARAM_showData_set}, - { "modal_d", _wrap_PARAM_modal_d_get, _wrap_PARAM_modal_d_set}, - { "modalUserData", _wrap_PARAM_modalUserData_get, _wrap_PARAM_modalUserData_set}, - { "parse_event_struct", _wrap_PARAM_parse_event_struct_get, _wrap_PARAM_parse_event_struct_set}, - { "x", _wrap_PARAM_x_get, _wrap_PARAM_x_set}, - { "y", _wrap_PARAM_y_get, _wrap_PARAM_y_set}, - { "nxy", _wrap_PARAM_nxy_get, _wrap_PARAM_nxy_set}, - { "url", _wrap_PARAM_url_get, _wrap_PARAM_url_set}, - { "initial_mask", _wrap_PARAM_initial_mask_get, _wrap_PARAM_initial_mask_set}, - { "file_prefix", _wrap_PARAM_file_prefix_get, _wrap_PARAM_file_prefix_set}, - { "free", _wrap_PARAM_free_get, _wrap_PARAM_free_set}, - { "version", _wrap_PARAM_version_get, _wrap_PARAM_version_set}, - { "pvserver_version", _wrap_PARAM_pvserver_version_get, _wrap_PARAM_pvserver_version_set}, - { "exit_on_bind_error", _wrap_PARAM_exit_on_bind_error_get, _wrap_PARAM_exit_on_bind_error_set}, - { "hello_counter", _wrap_PARAM_hello_counter_get, _wrap_PARAM_hello_counter_set}, - { "local_milliseconds", _wrap_PARAM_local_milliseconds_get, _wrap_PARAM_local_milliseconds_set}, - { "force_null_event", _wrap_PARAM_force_null_event_get, _wrap_PARAM_force_null_event_set}, - { "allow_pause", _wrap_PARAM_allow_pause_get, _wrap_PARAM_allow_pause_set}, - { "pause", _wrap_PARAM_pause_get, _wrap_PARAM_pause_set}, - { "my_pvlock_count", _wrap_PARAM_my_pvlock_count_get, _wrap_PARAM_my_pvlock_count_set}, - { "num_additional_widgets", _wrap_PARAM_num_additional_widgets_get, _wrap_PARAM_num_additional_widgets_set}, - { "mouse_x", _wrap_PARAM_mouse_x_get, _wrap_PARAM_mouse_x_set}, - { "mouse_y", _wrap_PARAM_mouse_y_get, _wrap_PARAM_mouse_y_set}, - { "mytext", _wrap_PARAM_mytext_get, _wrap_PARAM_mytext_set}, - { "communication_plugin", _wrap_PARAM_communication_plugin_get, _wrap_PARAM_communication_plugin_set}, - { "use_communication_plugin", _wrap_PARAM_use_communication_plugin_get, _wrap_PARAM_use_communication_plugin_set}, - { "lang_section", _wrap_PARAM_lang_section_get, _wrap_PARAM_lang_section_set}, - { "mytext2", _wrap_PARAM_mytext2_get, _wrap_PARAM_mytext2_set}, - { "http", _wrap_PARAM_http_get, _wrap_PARAM_http_set}, - { "fptmp", _wrap_PARAM_fptmp_get, _wrap_PARAM_fptmp_set}, - { "fhdltmp", _wrap_PARAM_fhdltmp_get, _wrap_PARAM_fhdltmp_set}, - {0,0,0} -}; -static swig_lua_attribute swig__PARAM__cls_attributes[] = { - {0,0,0} -}; -static swig_lua_method swig__PARAM__cls_methods[] = { - {0,0} -}; -static swig_lua_const_info swig__PARAM__cls_constants[] = { - {0,0,0,0,0,0} -}; -static swig_lua_class *swig__PARAM__bases[] = {0}; -static const char *swig__PARAM__base_names[] = {0}; -static swig_lua_class _wrap_class__PARAM_ = { "PARAM", &SWIGTYPE_p__PARAM_,_wrap_new_PARAM, swig_delete_PARAM, swig__PARAM__methods, swig__PARAM__attributes, { "PARAM", swig__PARAM__cls_methods, swig__PARAM__cls_attributes, swig__PARAM__cls_constants }, swig__PARAM__bases, swig__PARAM__base_names }; +static int _wrap_PARAM_iclientsocket_get(lua_State* L) { + int SWIG_arg = 0; + _PARAM_ *arg1 = (_PARAM_ *) 0 ; + int result; + + SWIG_check_num_args("_PARAM_::iclientsocket",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("_PARAM_::iclientsocket",1,"_PARAM_ *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p__PARAM_,0))){ + SWIG_fail_ptr("PARAM_iclientsocket_get",1,SWIGTYPE_p__PARAM_); + } + + result = (int) ((arg1)->iclientsocket); + lua_pushnumber(L, (lua_Number) result); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_PARAM_is_binary_set(lua_State* L) { + int SWIG_arg = 0; + _PARAM_ *arg1 = (_PARAM_ *) 0 ; + int arg2 ; + + SWIG_check_num_args("_PARAM_::is_binary",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("_PARAM_::is_binary",1,"_PARAM_ *"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("_PARAM_::is_binary",2,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p__PARAM_,0))){ + SWIG_fail_ptr("PARAM_is_binary_set",1,SWIGTYPE_p__PARAM_); + } + + arg2 = (int)lua_tonumber(L, 2); + if (arg1) (arg1)->is_binary = arg2; + + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_PARAM_is_binary_get(lua_State* L) { + int SWIG_arg = 0; + _PARAM_ *arg1 = (_PARAM_ *) 0 ; + int result; + + SWIG_check_num_args("_PARAM_::is_binary",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("_PARAM_::is_binary",1,"_PARAM_ *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p__PARAM_,0))){ + SWIG_fail_ptr("PARAM_is_binary_get",1,SWIGTYPE_p__PARAM_); + } + + result = (int) ((arg1)->is_binary); + lua_pushnumber(L, (lua_Number) result); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_PARAM_button_set(lua_State* L) { + int SWIG_arg = 0; + _PARAM_ *arg1 = (_PARAM_ *) 0 ; + int arg2 ; + + SWIG_check_num_args("_PARAM_::button",2,2) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("_PARAM_::button",1,"_PARAM_ *"); + if(!lua_isnumber(L,2)) SWIG_fail_arg("_PARAM_::button",2,"int"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p__PARAM_,0))){ + SWIG_fail_ptr("PARAM_button_set",1,SWIGTYPE_p__PARAM_); + } + + arg2 = (int)lua_tonumber(L, 2); + if (arg1) (arg1)->button = arg2; + + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_PARAM_button_get(lua_State* L) { + int SWIG_arg = 0; + _PARAM_ *arg1 = (_PARAM_ *) 0 ; + int result; + + SWIG_check_num_args("_PARAM_::button",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("_PARAM_::button",1,"_PARAM_ *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p__PARAM_,0))){ + SWIG_fail_ptr("PARAM_button_get",1,SWIGTYPE_p__PARAM_); + } + + result = (int) ((arg1)->button); + lua_pushnumber(L, (lua_Number) result); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_new_PARAM(lua_State* L) { + int SWIG_arg = 0; + _PARAM_ *result = 0 ; + + SWIG_check_num_args("_PARAM_::_PARAM_",0,0) + result = (_PARAM_ *)new _PARAM_(); + SWIG_NewPointerObj(L,result,SWIGTYPE_p__PARAM_,1); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static void swig_delete_PARAM(void *obj) { +_PARAM_ *arg1 = (_PARAM_ *) obj; +delete arg1; +} +static int _proxy__wrap_new_PARAM(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_PARAM); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} +static swig_lua_attribute swig_PARAM_attributes[] = { + { "s", _wrap_PARAM_s_get, _wrap_PARAM_s_set }, + { "os", _wrap_PARAM_os_get, _wrap_PARAM_os_set }, + { "port", _wrap_PARAM_port_get, _wrap_PARAM_port_set }, + { "language", _wrap_PARAM_language_get, _wrap_PARAM_language_set }, + { "convert_units", _wrap_PARAM_convert_units_get, _wrap_PARAM_convert_units_set }, + { "fp", _wrap_PARAM_fp_get, _wrap_PARAM_fp_set }, + { "sleep", _wrap_PARAM_sleep_get, _wrap_PARAM_sleep_set }, + { "cleanup", _wrap_PARAM_cleanup_get, _wrap_PARAM_cleanup_set }, + { "app_data", _wrap_PARAM_app_data_get, _wrap_PARAM_app_data_set }, + { "user", _wrap_PARAM_user_get, _wrap_PARAM_user_set }, + { "clipboard", _wrap_PARAM_clipboard_get, _wrap_PARAM_clipboard_set }, + { "clipboard_length", _wrap_PARAM_clipboard_length_get, _wrap_PARAM_clipboard_length_set }, + { "modal", _wrap_PARAM_modal_get, _wrap_PARAM_modal_set }, + { "readData", _wrap_PARAM_readData_get, _wrap_PARAM_readData_set }, + { "showData", _wrap_PARAM_showData_get, _wrap_PARAM_showData_set }, + { "modal_d", _wrap_PARAM_modal_d_get, _wrap_PARAM_modal_d_set }, + { "modalUserData", _wrap_PARAM_modalUserData_get, _wrap_PARAM_modalUserData_set }, + { "parse_event_struct", _wrap_PARAM_parse_event_struct_get, _wrap_PARAM_parse_event_struct_set }, + { "x", _wrap_PARAM_x_get, _wrap_PARAM_x_set }, + { "y", _wrap_PARAM_y_get, _wrap_PARAM_y_set }, + { "nxy", _wrap_PARAM_nxy_get, _wrap_PARAM_nxy_set }, + { "url", _wrap_PARAM_url_get, _wrap_PARAM_url_set }, + { "initial_mask", _wrap_PARAM_initial_mask_get, _wrap_PARAM_initial_mask_set }, + { "file_prefix", _wrap_PARAM_file_prefix_get, _wrap_PARAM_file_prefix_set }, + { "free", _wrap_PARAM_free_get, _wrap_PARAM_free_set }, + { "version", _wrap_PARAM_version_get, _wrap_PARAM_version_set }, + { "pvserver_version", _wrap_PARAM_pvserver_version_get, _wrap_PARAM_pvserver_version_set }, + { "exit_on_bind_error", _wrap_PARAM_exit_on_bind_error_get, _wrap_PARAM_exit_on_bind_error_set }, + { "hello_counter", _wrap_PARAM_hello_counter_get, _wrap_PARAM_hello_counter_set }, + { "local_milliseconds", _wrap_PARAM_local_milliseconds_get, _wrap_PARAM_local_milliseconds_set }, + { "force_null_event", _wrap_PARAM_force_null_event_get, _wrap_PARAM_force_null_event_set }, + { "allow_pause", _wrap_PARAM_allow_pause_get, _wrap_PARAM_allow_pause_set }, + { "pause", _wrap_PARAM_pause_get, _wrap_PARAM_pause_set }, + { "my_pvlock_count", _wrap_PARAM_my_pvlock_count_get, _wrap_PARAM_my_pvlock_count_set }, + { "num_additional_widgets", _wrap_PARAM_num_additional_widgets_get, _wrap_PARAM_num_additional_widgets_set }, + { "mouse_x", _wrap_PARAM_mouse_x_get, _wrap_PARAM_mouse_x_set }, + { "mouse_y", _wrap_PARAM_mouse_y_get, _wrap_PARAM_mouse_y_set }, + { "mytext", _wrap_PARAM_mytext_get, _wrap_PARAM_mytext_set }, + { "communication_plugin", _wrap_PARAM_communication_plugin_get, _wrap_PARAM_communication_plugin_set }, + { "use_communication_plugin", _wrap_PARAM_use_communication_plugin_get, _wrap_PARAM_use_communication_plugin_set }, + { "lang_section", _wrap_PARAM_lang_section_get, _wrap_PARAM_lang_section_set }, + { "mytext2", _wrap_PARAM_mytext2_get, _wrap_PARAM_mytext2_set }, + { "http", _wrap_PARAM_http_get, _wrap_PARAM_http_set }, + { "fptmp", _wrap_PARAM_fptmp_get, _wrap_PARAM_fptmp_set }, + { "fhdltmp", _wrap_PARAM_fhdltmp_get, _wrap_PARAM_fhdltmp_set }, + { "iclientsocket", _wrap_PARAM_iclientsocket_get, _wrap_PARAM_iclientsocket_set }, + { "is_binary", _wrap_PARAM_is_binary_get, _wrap_PARAM_is_binary_set }, + { "button", _wrap_PARAM_button_get, _wrap_PARAM_button_set }, + {0,0,0} +}; +static swig_lua_method swig_PARAM_methods[]= { + {0,0} +}; +static swig_lua_method swig_PARAM_meta[] = { + {0,0} +}; + +static swig_lua_attribute swig_PARAM_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_PARAM_Sf_SwigStatic_constants[]= { + {0,0,0,0,0,0} +}; +static swig_lua_method swig_PARAM_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_PARAM_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_PARAM_Sf_SwigStatic = { + "PARAM", + swig_PARAM_Sf_SwigStatic_methods, + swig_PARAM_Sf_SwigStatic_attributes, + swig_PARAM_Sf_SwigStatic_constants, + swig_PARAM_Sf_SwigStatic_classes, + 0 +}; +static swig_lua_class *swig_PARAM_bases[] = {0}; +static const char *swig_PARAM_base_names[] = {0}; +static swig_lua_class _wrap_class_PARAM = { "PARAM", "PARAM", &SWIGTYPE_p__PARAM_,_proxy__wrap_new_PARAM, swig_delete_PARAM, swig_PARAM_methods, swig_PARAM_attributes, &swig_PARAM_Sf_SwigStatic, swig_PARAM_meta, swig_PARAM_bases, swig_PARAM_base_names }; static int _wrap_null_string_get(lua_State* L) { int SWIG_arg = 0; @@ -5179,35 +6192,59 @@ static void swig_delete_IntegerArray(void *obj) { IntegerArray *arg1 = (IntegerArray *) obj; delete arg1; } -static swig_lua_method swig_IntegerArray_methods[] = { - {0,0} -}; +static int _proxy__wrap_new_IntegerArray(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_IntegerArray); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_IntegerArray_attributes[] = { - { "i", _wrap_IntegerArray_i_get, _wrap_IntegerArray_i_set}, - { "i0", _wrap_IntegerArray_i0_get, _wrap_IntegerArray_i0_set}, - { "i1", _wrap_IntegerArray_i1_get, _wrap_IntegerArray_i1_set}, - { "i2", _wrap_IntegerArray_i2_get, _wrap_IntegerArray_i2_set}, - { "i3", _wrap_IntegerArray_i3_get, _wrap_IntegerArray_i3_set}, - { "i4", _wrap_IntegerArray_i4_get, _wrap_IntegerArray_i4_set}, - { "i5", _wrap_IntegerArray_i5_get, _wrap_IntegerArray_i5_set}, - { "i6", _wrap_IntegerArray_i6_get, _wrap_IntegerArray_i6_set}, - { "i7", _wrap_IntegerArray_i7_get, _wrap_IntegerArray_i7_set}, - { "i8", _wrap_IntegerArray_i8_get, _wrap_IntegerArray_i8_set}, - { "i9", _wrap_IntegerArray_i9_get, _wrap_IntegerArray_i9_set}, + { "i", _wrap_IntegerArray_i_get, _wrap_IntegerArray_i_set }, + { "i0", _wrap_IntegerArray_i0_get, _wrap_IntegerArray_i0_set }, + { "i1", _wrap_IntegerArray_i1_get, _wrap_IntegerArray_i1_set }, + { "i2", _wrap_IntegerArray_i2_get, _wrap_IntegerArray_i2_set }, + { "i3", _wrap_IntegerArray_i3_get, _wrap_IntegerArray_i3_set }, + { "i4", _wrap_IntegerArray_i4_get, _wrap_IntegerArray_i4_set }, + { "i5", _wrap_IntegerArray_i5_get, _wrap_IntegerArray_i5_set }, + { "i6", _wrap_IntegerArray_i6_get, _wrap_IntegerArray_i6_set }, + { "i7", _wrap_IntegerArray_i7_get, _wrap_IntegerArray_i7_set }, + { "i8", _wrap_IntegerArray_i8_get, _wrap_IntegerArray_i8_set }, + { "i9", _wrap_IntegerArray_i9_get, _wrap_IntegerArray_i9_set }, {0,0,0} }; -static swig_lua_attribute swig_IntegerArray_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_IntegerArray_methods[]= { + {0,0} }; -static swig_lua_method swig_IntegerArray_cls_methods[] = { +static swig_lua_method swig_IntegerArray_meta[] = { {0,0} }; -static swig_lua_const_info swig_IntegerArray_cls_constants[] = { + +static swig_lua_attribute swig_IntegerArray_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_IntegerArray_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_IntegerArray_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_IntegerArray_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_IntegerArray_Sf_SwigStatic = { + "IntegerArray", + swig_IntegerArray_Sf_SwigStatic_methods, + swig_IntegerArray_Sf_SwigStatic_attributes, + swig_IntegerArray_Sf_SwigStatic_constants, + swig_IntegerArray_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_IntegerArray_bases[] = {0}; static const char *swig_IntegerArray_base_names[] = {0}; -static swig_lua_class _wrap_class_IntegerArray = { "IntegerArray", &SWIGTYPE_p_IntegerArray,_wrap_new_IntegerArray, swig_delete_IntegerArray, swig_IntegerArray_methods, swig_IntegerArray_attributes, { "IntegerArray", swig_IntegerArray_cls_methods, swig_IntegerArray_cls_attributes, swig_IntegerArray_cls_constants }, swig_IntegerArray_bases, swig_IntegerArray_base_names }; +static swig_lua_class _wrap_class_IntegerArray = { "IntegerArray", "IntegerArray", &SWIGTYPE_p_IntegerArray,_proxy__wrap_new_IntegerArray, swig_delete_IntegerArray, swig_IntegerArray_methods, swig_IntegerArray_attributes, &swig_IntegerArray_Sf_SwigStatic, swig_IntegerArray_meta, swig_IntegerArray_bases, swig_IntegerArray_base_names }; static int _wrap_FloatArray_f_set(lua_State* L) { int SWIG_arg = 0; @@ -5788,35 +6825,59 @@ static void swig_delete_FloatArray(void *obj) { FloatArray *arg1 = (FloatArray *) obj; delete arg1; } -static swig_lua_method swig_FloatArray_methods[] = { - {0,0} -}; +static int _proxy__wrap_new_FloatArray(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_FloatArray); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_FloatArray_attributes[] = { - { "f", _wrap_FloatArray_f_get, _wrap_FloatArray_f_set}, - { "f0", _wrap_FloatArray_f0_get, _wrap_FloatArray_f0_set}, - { "f1", _wrap_FloatArray_f1_get, _wrap_FloatArray_f1_set}, - { "f2", _wrap_FloatArray_f2_get, _wrap_FloatArray_f2_set}, - { "f3", _wrap_FloatArray_f3_get, _wrap_FloatArray_f3_set}, - { "f4", _wrap_FloatArray_f4_get, _wrap_FloatArray_f4_set}, - { "f5", _wrap_FloatArray_f5_get, _wrap_FloatArray_f5_set}, - { "f6", _wrap_FloatArray_f6_get, _wrap_FloatArray_f6_set}, - { "f7", _wrap_FloatArray_f7_get, _wrap_FloatArray_f7_set}, - { "f8", _wrap_FloatArray_f8_get, _wrap_FloatArray_f8_set}, - { "f9", _wrap_FloatArray_f9_get, _wrap_FloatArray_f9_set}, + { "f", _wrap_FloatArray_f_get, _wrap_FloatArray_f_set }, + { "f0", _wrap_FloatArray_f0_get, _wrap_FloatArray_f0_set }, + { "f1", _wrap_FloatArray_f1_get, _wrap_FloatArray_f1_set }, + { "f2", _wrap_FloatArray_f2_get, _wrap_FloatArray_f2_set }, + { "f3", _wrap_FloatArray_f3_get, _wrap_FloatArray_f3_set }, + { "f4", _wrap_FloatArray_f4_get, _wrap_FloatArray_f4_set }, + { "f5", _wrap_FloatArray_f5_get, _wrap_FloatArray_f5_set }, + { "f6", _wrap_FloatArray_f6_get, _wrap_FloatArray_f6_set }, + { "f7", _wrap_FloatArray_f7_get, _wrap_FloatArray_f7_set }, + { "f8", _wrap_FloatArray_f8_get, _wrap_FloatArray_f8_set }, + { "f9", _wrap_FloatArray_f9_get, _wrap_FloatArray_f9_set }, {0,0,0} }; -static swig_lua_attribute swig_FloatArray_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_FloatArray_methods[]= { + {0,0} }; -static swig_lua_method swig_FloatArray_cls_methods[] = { +static swig_lua_method swig_FloatArray_meta[] = { {0,0} }; -static swig_lua_const_info swig_FloatArray_cls_constants[] = { + +static swig_lua_attribute swig_FloatArray_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_FloatArray_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_FloatArray_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_FloatArray_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_FloatArray_Sf_SwigStatic = { + "FloatArray", + swig_FloatArray_Sf_SwigStatic_methods, + swig_FloatArray_Sf_SwigStatic_attributes, + swig_FloatArray_Sf_SwigStatic_constants, + swig_FloatArray_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_FloatArray_bases[] = {0}; static const char *swig_FloatArray_base_names[] = {0}; -static swig_lua_class _wrap_class_FloatArray = { "FloatArray", &SWIGTYPE_p_FloatArray,_wrap_new_FloatArray, swig_delete_FloatArray, swig_FloatArray_methods, swig_FloatArray_attributes, { "FloatArray", swig_FloatArray_cls_methods, swig_FloatArray_cls_attributes, swig_FloatArray_cls_constants }, swig_FloatArray_bases, swig_FloatArray_base_names }; +static swig_lua_class _wrap_class_FloatArray = { "FloatArray", "FloatArray", &SWIGTYPE_p_FloatArray,_proxy__wrap_new_FloatArray, swig_delete_FloatArray, swig_FloatArray_methods, swig_FloatArray_attributes, &swig_FloatArray_Sf_SwigStatic, swig_FloatArray_meta, swig_FloatArray_bases, swig_FloatArray_base_names }; static int _wrap_pvTime_millisecond_set(lua_State* L) { int SWIG_arg = 0; @@ -6189,31 +7250,55 @@ static void swig_delete_pvTime(void *obj) { pvTime *arg1 = (pvTime *) obj; delete arg1; } -static swig_lua_method swig_pvTime_methods[] = { - {0,0} -}; +static int _proxy__wrap_new_pvTime(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_pvTime); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_pvTime_attributes[] = { - { "millisecond", _wrap_pvTime_millisecond_get, _wrap_pvTime_millisecond_set}, - { "second", _wrap_pvTime_second_get, _wrap_pvTime_second_set}, - { "minute", _wrap_pvTime_minute_get, _wrap_pvTime_minute_set}, - { "hour", _wrap_pvTime_hour_get, _wrap_pvTime_hour_set}, - { "day", _wrap_pvTime_day_get, _wrap_pvTime_day_set}, - { "month", _wrap_pvTime_month_get, _wrap_pvTime_month_set}, - { "year", _wrap_pvTime_year_get, _wrap_pvTime_year_set}, + { "millisecond", _wrap_pvTime_millisecond_get, _wrap_pvTime_millisecond_set }, + { "second", _wrap_pvTime_second_get, _wrap_pvTime_second_set }, + { "minute", _wrap_pvTime_minute_get, _wrap_pvTime_minute_set }, + { "hour", _wrap_pvTime_hour_get, _wrap_pvTime_hour_set }, + { "day", _wrap_pvTime_day_get, _wrap_pvTime_day_set }, + { "month", _wrap_pvTime_month_get, _wrap_pvTime_month_set }, + { "year", _wrap_pvTime_year_get, _wrap_pvTime_year_set }, {0,0,0} }; -static swig_lua_attribute swig_pvTime_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_pvTime_methods[]= { + {0,0} }; -static swig_lua_method swig_pvTime_cls_methods[] = { +static swig_lua_method swig_pvTime_meta[] = { {0,0} }; -static swig_lua_const_info swig_pvTime_cls_constants[] = { + +static swig_lua_attribute swig_pvTime_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_pvTime_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_pvTime_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_pvTime_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_pvTime_Sf_SwigStatic = { + "pvTime", + swig_pvTime_Sf_SwigStatic_methods, + swig_pvTime_Sf_SwigStatic_attributes, + swig_pvTime_Sf_SwigStatic_constants, + swig_pvTime_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_pvTime_bases[] = {0}; static const char *swig_pvTime_base_names[] = {0}; -static swig_lua_class _wrap_class_pvTime = { "pvTime", &SWIGTYPE_p_pvTime,_wrap_new_pvTime, swig_delete_pvTime, swig_pvTime_methods, swig_pvTime_attributes, { "pvTime", swig_pvTime_cls_methods, swig_pvTime_cls_attributes, swig_pvTime_cls_constants }, swig_pvTime_bases, swig_pvTime_base_names }; +static swig_lua_class _wrap_class_pvTime = { "pvTime", "pvTime", &SWIGTYPE_p_pvTime,_proxy__wrap_new_pvTime, swig_delete_pvTime, swig_pvTime_methods, swig_pvTime_attributes, &swig_pvTime_Sf_SwigStatic, swig_pvTime_meta, swig_pvTime_bases, swig_pvTime_base_names }; static int _wrap_pvAddressTableItem_s_set(lua_State* L) { int SWIG_arg = 0; @@ -6394,27 +7479,51 @@ static void swig_delete_pvAddressTableItem(void *obj) { pvAddressTableItem *arg1 = (pvAddressTableItem *) obj; delete arg1; } -static swig_lua_method swig_pvAddressTableItem_methods[] = { - {0,0} -}; +static int _proxy__wrap_new_pvAddressTableItem(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_pvAddressTableItem); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_pvAddressTableItem_attributes[] = { - { "s", _wrap_pvAddressTableItem_s_get, _wrap_pvAddressTableItem_s_set}, - { "version", _wrap_pvAddressTableItem_version_get, _wrap_pvAddressTableItem_version_set}, - { "adr", _wrap_pvAddressTableItem_adr_get, _wrap_pvAddressTableItem_adr_set}, + { "s", _wrap_pvAddressTableItem_s_get, _wrap_pvAddressTableItem_s_set }, + { "version", _wrap_pvAddressTableItem_version_get, _wrap_pvAddressTableItem_version_set }, + { "adr", _wrap_pvAddressTableItem_adr_get, _wrap_pvAddressTableItem_adr_set }, {0,0,0} }; -static swig_lua_attribute swig_pvAddressTableItem_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_pvAddressTableItem_methods[]= { + {0,0} }; -static swig_lua_method swig_pvAddressTableItem_cls_methods[] = { +static swig_lua_method swig_pvAddressTableItem_meta[] = { {0,0} }; -static swig_lua_const_info swig_pvAddressTableItem_cls_constants[] = { + +static swig_lua_attribute swig_pvAddressTableItem_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_pvAddressTableItem_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_pvAddressTableItem_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_pvAddressTableItem_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_pvAddressTableItem_Sf_SwigStatic = { + "pvAddressTableItem", + swig_pvAddressTableItem_Sf_SwigStatic_methods, + swig_pvAddressTableItem_Sf_SwigStatic_attributes, + swig_pvAddressTableItem_Sf_SwigStatic_constants, + swig_pvAddressTableItem_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_pvAddressTableItem_bases[] = {0}; static const char *swig_pvAddressTableItem_base_names[] = {0}; -static swig_lua_class _wrap_class_pvAddressTableItem = { "pvAddressTableItem", &SWIGTYPE_p_pvAddressTableItem,_wrap_new_pvAddressTableItem, swig_delete_pvAddressTableItem, swig_pvAddressTableItem_methods, swig_pvAddressTableItem_attributes, { "pvAddressTableItem", swig_pvAddressTableItem_cls_methods, swig_pvAddressTableItem_cls_attributes, swig_pvAddressTableItem_cls_constants }, swig_pvAddressTableItem_bases, swig_pvAddressTableItem_base_names }; +static swig_lua_class _wrap_class_pvAddressTableItem = { "pvAddressTableItem", "pvAddressTableItem", &SWIGTYPE_p_pvAddressTableItem,_proxy__wrap_new_pvAddressTableItem, swig_delete_pvAddressTableItem, swig_pvAddressTableItem_methods, swig_pvAddressTableItem_attributes, &swig_pvAddressTableItem_Sf_SwigStatic, swig_pvAddressTableItem_meta, swig_pvAddressTableItem_bases, swig_pvAddressTableItem_base_names }; static int _wrap_pvAddressTable_adr_set(lua_State* L) { int SWIG_arg = 0; @@ -6495,25 +7604,49 @@ static void swig_delete_pvAddressTable(void *obj) { pvAddressTable *arg1 = (pvAddressTable *) obj; delete arg1; } -static swig_lua_method swig_pvAddressTable_methods[] = { - {0,0} -}; +static int _proxy__wrap_new_pvAddressTable(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_pvAddressTable); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_pvAddressTable_attributes[] = { - { "adr", _wrap_pvAddressTable_adr_get, _wrap_pvAddressTable_adr_set}, + { "adr", _wrap_pvAddressTable_adr_get, _wrap_pvAddressTable_adr_set }, {0,0,0} }; -static swig_lua_attribute swig_pvAddressTable_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_pvAddressTable_methods[]= { + {0,0} }; -static swig_lua_method swig_pvAddressTable_cls_methods[] = { +static swig_lua_method swig_pvAddressTable_meta[] = { {0,0} }; -static swig_lua_const_info swig_pvAddressTable_cls_constants[] = { + +static swig_lua_attribute swig_pvAddressTable_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_pvAddressTable_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_pvAddressTable_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_pvAddressTable_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_pvAddressTable_Sf_SwigStatic = { + "pvAddressTable", + swig_pvAddressTable_Sf_SwigStatic_methods, + swig_pvAddressTable_Sf_SwigStatic_attributes, + swig_pvAddressTable_Sf_SwigStatic_constants, + swig_pvAddressTable_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_pvAddressTable_bases[] = {0}; static const char *swig_pvAddressTable_base_names[] = {0}; -static swig_lua_class _wrap_class_pvAddressTable = { "pvAddressTable", &SWIGTYPE_p_pvAddressTable,_wrap_new_pvAddressTable, swig_delete_pvAddressTable, swig_pvAddressTable_methods, swig_pvAddressTable_attributes, { "pvAddressTable", swig_pvAddressTable_cls_methods, swig_pvAddressTable_cls_attributes, swig_pvAddressTable_cls_constants }, swig_pvAddressTable_bases, swig_pvAddressTable_base_names }; +static swig_lua_class _wrap_class_pvAddressTable = { "pvAddressTable", "pvAddressTable", &SWIGTYPE_p_pvAddressTable,_proxy__wrap_new_pvAddressTable, swig_delete_pvAddressTable, swig_pvAddressTable_methods, swig_pvAddressTable_attributes, &swig_pvAddressTable_Sf_SwigStatic, swig_pvAddressTable_meta, swig_pvAddressTable_bases, swig_pvAddressTable_base_names }; static int _wrap_glencode_set_param(lua_State* L) { int SWIG_arg = 0; @@ -14453,6 +15586,30 @@ static int _wrap_pvSaveDrawBuffer(lua_State* L) { } +static int _wrap_pvWaitpid(lua_State* L) { + int SWIG_arg = 0; + PARAM *arg1 = (PARAM *) 0 ; + int result; + + SWIG_check_num_args("pvWaitpid",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("pvWaitpid",1,"PARAM *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p__PARAM_,0))){ + SWIG_fail_ptr("pvWaitpid",1,SWIGTYPE_p__PARAM_); + } + + result = (int)pvWaitpid(arg1); + lua_pushnumber(L, (lua_Number) result); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + static int _wrap_pvText(lua_State* L) { int SWIG_arg = 0; PARAM *arg1 = (PARAM *) 0 ; @@ -17651,32 +18808,56 @@ static void swig_delete_glFont(void *obj) { glFont *arg1 = (glFont *) obj; delete arg1; } -static swig_lua_method swig_glFont_methods[] = { - {"read", _wrap_glFont_read}, - {"lineHeight", _wrap_glFont_lineHeight}, - {"charWidth", _wrap_glFont_charWidth}, - {"stringWidth", _wrap_glFont_stringWidth}, - {"drawString", _wrap_glFont_drawString}, - {"setZoom", _wrap_glFont_setZoom}, - {"setRotation", _wrap_glFont_setRotation}, - {"setFontSize", _wrap_glFont_setFontSize}, - {0,0} -}; +static int _proxy__wrap_new_glFont(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_glFont); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_glFont_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_glFont_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_glFont_methods[]= { + { "read", _wrap_glFont_read}, + { "lineHeight", _wrap_glFont_lineHeight}, + { "charWidth", _wrap_glFont_charWidth}, + { "stringWidth", _wrap_glFont_stringWidth}, + { "drawString", _wrap_glFont_drawString}, + { "setZoom", _wrap_glFont_setZoom}, + { "setRotation", _wrap_glFont_setRotation}, + { "setFontSize", _wrap_glFont_setFontSize}, + {0,0} }; -static swig_lua_method swig_glFont_cls_methods[] = { +static swig_lua_method swig_glFont_meta[] = { {0,0} }; -static swig_lua_const_info swig_glFont_cls_constants[] = { + +static swig_lua_attribute swig_glFont_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_glFont_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_glFont_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_glFont_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_glFont_Sf_SwigStatic = { + "glFont", + swig_glFont_Sf_SwigStatic_methods, + swig_glFont_Sf_SwigStatic_attributes, + swig_glFont_Sf_SwigStatic_constants, + swig_glFont_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_glFont_bases[] = {0}; static const char *swig_glFont_base_names[] = {0}; -static swig_lua_class _wrap_class_glFont = { "glFont", &SWIGTYPE_p_glFont,_wrap_new_glFont, swig_delete_glFont, swig_glFont_methods, swig_glFont_attributes, { "glFont", swig_glFont_cls_methods, swig_glFont_cls_attributes, swig_glFont_cls_constants }, swig_glFont_bases, swig_glFont_base_names }; +static swig_lua_class _wrap_class_glFont = { "glFont", "glFont", &SWIGTYPE_p_glFont,_proxy__wrap_new_glFont, swig_delete_glFont, swig_glFont_methods, swig_glFont_attributes, &swig_glFont_Sf_SwigStatic, swig_glFont_meta, swig_glFont_bases, swig_glFont_base_names }; static int _wrap_pvSendOpenGL__SWIG_0(lua_State* L) { int SWIG_arg = 0; @@ -28575,35 +29756,59 @@ static void swig_delete_pvWidgetIdManager(void *obj) { pvWidgetIdManager *arg1 = (pvWidgetIdManager *) obj; delete arg1; } -static swig_lua_method swig_pvWidgetIdManager_methods[] = { - {"init", _wrap_pvWidgetIdManager_init}, - {"newId", _wrap_pvWidgetIdManager_newId}, - {"deleteWidget", _wrap_pvWidgetIdManager_deleteWidget}, - {"id", _wrap_pvWidgetIdManager_id}, - {"isInMap", _wrap_pvWidgetIdManager_isInMap}, - {"firstId", _wrap_pvWidgetIdManager_firstId}, - {"nextId", _wrap_pvWidgetIdManager_nextId}, - {"endId", _wrap_pvWidgetIdManager_endId}, - {"name", _wrap_pvWidgetIdManager_name}, - {"idStart", _wrap_pvWidgetIdManager_idStart}, - {"readEnumFromMask", _wrap_pvWidgetIdManager_readEnumFromMask}, - {0,0} -}; +static int _proxy__wrap_new_pvWidgetIdManager(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_pvWidgetIdManager); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} static swig_lua_attribute swig_pvWidgetIdManager_attributes[] = { {0,0,0} }; -static swig_lua_attribute swig_pvWidgetIdManager_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_pvWidgetIdManager_methods[]= { + { "init", _wrap_pvWidgetIdManager_init}, + { "newId", _wrap_pvWidgetIdManager_newId}, + { "deleteWidget", _wrap_pvWidgetIdManager_deleteWidget}, + { "id", _wrap_pvWidgetIdManager_id}, + { "isInMap", _wrap_pvWidgetIdManager_isInMap}, + { "firstId", _wrap_pvWidgetIdManager_firstId}, + { "nextId", _wrap_pvWidgetIdManager_nextId}, + { "endId", _wrap_pvWidgetIdManager_endId}, + { "name", _wrap_pvWidgetIdManager_name}, + { "idStart", _wrap_pvWidgetIdManager_idStart}, + { "readEnumFromMask", _wrap_pvWidgetIdManager_readEnumFromMask}, + {0,0} }; -static swig_lua_method swig_pvWidgetIdManager_cls_methods[] = { +static swig_lua_method swig_pvWidgetIdManager_meta[] = { {0,0} }; -static swig_lua_const_info swig_pvWidgetIdManager_cls_constants[] = { + +static swig_lua_attribute swig_pvWidgetIdManager_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_pvWidgetIdManager_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_pvWidgetIdManager_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_pvWidgetIdManager_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_pvWidgetIdManager_Sf_SwigStatic = { + "pvWidgetIdManager", + swig_pvWidgetIdManager_Sf_SwigStatic_methods, + swig_pvWidgetIdManager_Sf_SwigStatic_attributes, + swig_pvWidgetIdManager_Sf_SwigStatic_constants, + swig_pvWidgetIdManager_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_pvWidgetIdManager_bases[] = {0}; static const char *swig_pvWidgetIdManager_base_names[] = {0}; -static swig_lua_class _wrap_class_pvWidgetIdManager = { "pvWidgetIdManager", &SWIGTYPE_p_pvWidgetIdManager,_wrap_new_pvWidgetIdManager, swig_delete_pvWidgetIdManager, swig_pvWidgetIdManager_methods, swig_pvWidgetIdManager_attributes, { "pvWidgetIdManager", swig_pvWidgetIdManager_cls_methods, swig_pvWidgetIdManager_cls_attributes, swig_pvWidgetIdManager_cls_constants }, swig_pvWidgetIdManager_bases, swig_pvWidgetIdManager_base_names }; +static swig_lua_class _wrap_class_pvWidgetIdManager = { "pvWidgetIdManager", "pvWidgetIdManager", &SWIGTYPE_p_pvWidgetIdManager,_proxy__wrap_new_pvWidgetIdManager, swig_delete_pvWidgetIdManager, swig_pvWidgetIdManager_methods, swig_pvWidgetIdManager_attributes, &swig_pvWidgetIdManager_Sf_SwigStatic, swig_pvWidgetIdManager_meta, swig_pvWidgetIdManager_bases, swig_pvWidgetIdManager_base_names }; static int _wrap_new_qtDatabase(lua_State* L) { int SWIG_arg = 0; @@ -29088,36 +30293,60 @@ static void swig_delete_qtDatabase(void *obj) { qtDatabase *arg1 = (qtDatabase *) obj; delete arg1; } -static swig_lua_method swig_qtDatabase_methods[] = { - {"open", _wrap_qtDatabase_open}, - {"close", _wrap_qtDatabase_close}, - {"query", _wrap_qtDatabase_query}, - {"populateTable", _wrap_qtDatabase_populateTable}, - {"recordFieldValue", _wrap_qtDatabase_recordFieldValue}, - {"dbQuery", _wrap_qtDatabase_dbQuery}, - {"dbRecordFieldValue", _wrap_qtDatabase_dbRecordFieldValue}, - {"nextRecord", _wrap_qtDatabase_nextRecord}, - {0,0} -}; -static swig_lua_attribute swig_qtDatabase_attributes[] = { - { "connectionName", _wrap_qtDatabase_connectionName_get, _wrap_qtDatabase_connectionName_set}, - { "db", _wrap_qtDatabase_db_get, _wrap_qtDatabase_db_set}, - { "result", _wrap_qtDatabase_result_get, _wrap_qtDatabase_result_set}, - { "error", _wrap_qtDatabase_error_get, _wrap_qtDatabase_error_set}, +static int _proxy__wrap_new_qtDatabase(lua_State *L) { + assert(lua_istable(L,1)); + lua_pushcfunction(L,_wrap_new_qtDatabase); + assert(!lua_isnil(L,-1)); + lua_replace(L,1); /* replace our table with real constructor */ + lua_call(L,lua_gettop(L)-1,1); + return 1; +} +static swig_lua_attribute swig_qtDatabase_attributes[] = { + { "connectionName", _wrap_qtDatabase_connectionName_get, _wrap_qtDatabase_connectionName_set }, + { "db", _wrap_qtDatabase_db_get, _wrap_qtDatabase_db_set }, + { "result", _wrap_qtDatabase_result_get, _wrap_qtDatabase_result_set }, + { "error", _wrap_qtDatabase_error_get, _wrap_qtDatabase_error_set }, {0,0,0} }; -static swig_lua_attribute swig_qtDatabase_cls_attributes[] = { - {0,0,0} +static swig_lua_method swig_qtDatabase_methods[]= { + { "open", _wrap_qtDatabase_open}, + { "close", _wrap_qtDatabase_close}, + { "query", _wrap_qtDatabase_query}, + { "populateTable", _wrap_qtDatabase_populateTable}, + { "recordFieldValue", _wrap_qtDatabase_recordFieldValue}, + { "dbQuery", _wrap_qtDatabase_dbQuery}, + { "dbRecordFieldValue", _wrap_qtDatabase_dbRecordFieldValue}, + { "nextRecord", _wrap_qtDatabase_nextRecord}, + {0,0} }; -static swig_lua_method swig_qtDatabase_cls_methods[] = { +static swig_lua_method swig_qtDatabase_meta[] = { {0,0} }; -static swig_lua_const_info swig_qtDatabase_cls_constants[] = { + +static swig_lua_attribute swig_qtDatabase_Sf_SwigStatic_attributes[] = { + {0,0,0} +}; +static swig_lua_const_info swig_qtDatabase_Sf_SwigStatic_constants[]= { {0,0,0,0,0,0} }; +static swig_lua_method swig_qtDatabase_Sf_SwigStatic_methods[]= { + {0,0} +}; +static swig_lua_class* swig_qtDatabase_Sf_SwigStatic_classes[]= { + 0 +}; + +static swig_lua_namespace swig_qtDatabase_Sf_SwigStatic = { + "qtDatabase", + swig_qtDatabase_Sf_SwigStatic_methods, + swig_qtDatabase_Sf_SwigStatic_attributes, + swig_qtDatabase_Sf_SwigStatic_constants, + swig_qtDatabase_Sf_SwigStatic_classes, + 0 +}; static swig_lua_class *swig_qtDatabase_bases[] = {0}; static const char *swig_qtDatabase_base_names[] = {0}; -static swig_lua_class _wrap_class_qtDatabase = { "qtDatabase", &SWIGTYPE_p_qtDatabase,_wrap_new_qtDatabase, swig_delete_qtDatabase, swig_qtDatabase_methods, swig_qtDatabase_attributes, { "qtDatabase", swig_qtDatabase_cls_methods, swig_qtDatabase_cls_attributes, swig_qtDatabase_cls_constants }, swig_qtDatabase_bases, swig_qtDatabase_base_names }; +static swig_lua_class _wrap_class_qtDatabase = { "qtDatabase", "qtDatabase", &SWIGTYPE_p_qtDatabase,_proxy__wrap_new_qtDatabase, swig_delete_qtDatabase, swig_qtDatabase_methods, swig_qtDatabase_attributes, &swig_qtDatabase_Sf_SwigStatic, swig_qtDatabase_meta, swig_qtDatabase_bases, swig_qtDatabase_base_names }; static int _wrap_getParam(lua_State* L) { int SWIG_arg = 0; @@ -29158,545 +30387,94 @@ static int _wrap_pvQImageScript(lua_State* L) { SWIG_fail_ptr("pvQImageScript",1,SWIGTYPE_p__PARAM_); } - arg2 = (int)lua_tonumber(L, 2); - arg3 = (int)lua_tonumber(L, 3); - arg4 = (char *)lua_tostring(L, 4); - result = (int)pvQImageScript(arg1,arg2,arg3,(char const *)arg4); - lua_pushnumber(L, (lua_Number) result); SWIG_arg++; - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_new_int(lua_State* L) { - int SWIG_arg = 0; - int arg1 ; - int *result = 0 ; - - SWIG_check_num_args("new_int",1,1) - if(!lua_isnumber(L,1)) SWIG_fail_arg("new_int",1,"int"); - arg1 = (int)lua_tonumber(L, 1); - result = (int *)new_int(arg1); - SWIG_NewPointerObj(L,result,SWIGTYPE_p_int,0); SWIG_arg++; - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_get_int(lua_State* L) { - int SWIG_arg = 0; - int *arg1 = (int *) 0 ; - int result; - - SWIG_check_num_args("get_int",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("get_int",1,"int *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_int,0))){ - SWIG_fail_ptr("get_int",1,SWIGTYPE_p_int); - } - - result = (int)get_int(arg1); - lua_pushnumber(L, (lua_Number) result); SWIG_arg++; - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -static int _wrap_delete_int(lua_State* L) { - int SWIG_arg = 0; - int *arg1 = (int *) 0 ; - - SWIG_check_num_args("delete_int",1,1) - if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("delete_int",1,"int *"); - - if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_int,0))){ - SWIG_fail_ptr("delete_int",1,SWIGTYPE_p_int); - } - - delete_int(arg1); - - return SWIG_arg; - - if(0) SWIG_fail; - -fail: - lua_error(L); - return SWIG_arg; -} - - -#ifdef __cplusplus -} -#endif - -static const struct luaL_Reg swig_commands[] = { - { "glencode_set_param", _wrap_glencode_set_param}, - { "pvlock", _wrap_pvlock}, - { "pvunlock", _wrap_pvunlock}, - { "pvsystem", _wrap_pvsystem}, - { "pvGetLocalTime", _wrap_pvGetLocalTime}, - { "pvIsAccessAllowed", _wrap_pvIsAccessAllowed}, - { "pvSendVersion", _wrap_pvSendVersion}, - { "pvXYAllocate", _wrap_pvXYAllocate}, - { "getIntegers", _wrap_getIntegers}, - { "getFloats", _wrap_getFloats}, - { "getTextFromText", _wrap_getTextFromText}, - { "pvSetXY", _wrap_pvSetXY}, - { "pvGetSocketPointer", _wrap_pvGetSocketPointer}, - { "pvInitInternal", _wrap_pvInitInternal}, - { "pvInit", _wrap_pvInit}, - { "pvAccept", _wrap_pvAccept}, - { "pvCreateThread", _wrap_pvCreateThread}, - { "pvGetInitialMask", _wrap_pvGetInitialMask}, - { "pvMain", _wrap_pvMain}, - { "pvSetCleanup", _wrap_pvSetCleanup}, - { "pvGetEvent", _wrap_pvGetEvent}, - { "pvPollEvent", _wrap_pvPollEvent}, - { "pvWait", _wrap_pvWait}, - { "pvGlUpdate", _wrap_pvGlUpdate}, - { "pvSleep", _wrap_pvSleep}, - { "pvWarning", _wrap_pvWarning}, - { "pvMainFatal", _wrap_pvMainFatal}, - { "pvThreadFatal", _wrap_pvThreadFatal}, - { "pvScreenHint", _wrap_pvScreenHint}, - { "pvSetMouseShape", _wrap_pvSetMouseShape}, - { "pvSetWhatsThis", _wrap_pvSetWhatsThis}, - { "pvWhatsThisPrintf", _wrap_pvWhatsThisPrintf}, - { "pvClientCommand",_wrap_pvClientCommand}, - { "pvWriteTextToFileAtClient", _wrap_pvWriteTextToFileAtClient}, - { "pvZoomMask", _wrap_pvZoomMask}, - { "pvSetManualUrl", _wrap_pvSetManualUrl}, - { "pvSelectLanguage", _wrap_pvSelectLanguage}, - { "pvStartDefinition", _wrap_pvStartDefinition}, - { "pvQWidget", _wrap_pvQWidget}, - { "pvQLayoutVbox", _wrap_pvQLayoutVbox}, - { "pvQLayoutHbox", _wrap_pvQLayoutHbox}, - { "pvQLayoutGrid", _wrap_pvQLayoutGrid}, - { "pvQLabel", _wrap_pvQLabel}, - { "pvQComboBox", _wrap_pvQComboBox}, - { "pvQLineEdit", _wrap_pvQLineEdit}, - { "pvQPushButton", _wrap_pvQPushButton}, - { "pvQLCDNumber", _wrap_pvQLCDNumber}, - { "pvQSlider", _wrap_pvQSlider}, - { "pvQButtonGroup", _wrap_pvQButtonGroup}, - { "pvQRadioButton", _wrap_pvQRadioButton}, - { "pvQCheckBox", _wrap_pvQCheckBox}, - { "pvQFrame", _wrap_pvQFrame}, - { "pvQDraw", _wrap_pvQDraw}, - { "pvQImage",_wrap_pvQImage}, - { "pvQGL", _wrap_pvQGL}, - { "pvQTabWidget", _wrap_pvQTabWidget}, - { "pvQToolBox", _wrap_pvQToolBox}, - { "pvQGroupBox", _wrap_pvQGroupBox}, - { "pvQListBox", _wrap_pvQListBox}, - { "pvQTable", _wrap_pvQTable}, - { "pvQSpinBox", _wrap_pvQSpinBox}, - { "pvQDial", _wrap_pvQDial}, - { "pvQProgressBar",_wrap_pvQProgressBar}, - { "pvQMultiLineEdit", _wrap_pvQMultiLineEdit}, - { "pvQTextBrowser", _wrap_pvQTextBrowser}, - { "pvQListView", _wrap_pvQListView}, - { "pvQIconView", _wrap_pvQIconView}, - { "pvQVtkTclWidget", _wrap_pvQVtkTclWidget}, - { "pvQwtPlotWidget", _wrap_pvQwtPlotWidget}, - { "pvQwtScale", _wrap_pvQwtScale}, - { "pvQwtThermo", _wrap_pvQwtThermo}, - { "pvQwtKnob", _wrap_pvQwtKnob}, - { "pvQwtCounter", _wrap_pvQwtCounter}, - { "pvQwtWheel", _wrap_pvQwtWheel}, - { "pvQwtSlider", _wrap_pvQwtSlider}, - { "pvQwtDial", _wrap_pvQwtDial}, - { "pvQwtCompass", _wrap_pvQwtCompass}, - { "pvQwtAnalogClock", _wrap_pvQwtAnalogClock}, - { "pvQDateEdit", _wrap_pvQDateEdit}, - { "pvQTimeEdit", _wrap_pvQTimeEdit}, - { "pvQDateTimeEdit", _wrap_pvQDateTimeEdit}, - { "pvQCustomWidget",_wrap_pvQCustomWidget}, - { "pvEndDefinition", _wrap_pvEndDefinition}, - { "pvAddWidgetOrLayout", _wrap_pvAddWidgetOrLayout}, - { "pvAddStretch", _wrap_pvAddStretch}, - { "pvTabOrder", _wrap_pvTabOrder}, - { "pvDeleteWidget", _wrap_pvDeleteWidget}, - { "pvSetCaption", _wrap_pvSetCaption}, - { "pvPlaySound", _wrap_pvPlaySound}, - { "pvBeep", _wrap_pvBeep}, - { "pvStatusMessage", _wrap_pvStatusMessage}, - { "pvToolTip", _wrap_pvToolTip}, - { "pvSetTextEx", _wrap_pvSetTextEx}, - { "pvSetText", _wrap_pvSetText}, - { "pvPrintf", _wrap_pvPrintf}, - { "pvSetStyleSheet", _wrap_pvSetStyleSheet}, - { "pvPrintfStyleSheet", _wrap_pvPrintfStyleSheet}, - { "pvSetMinValue", _wrap_pvSetMinValue}, - { "pvSetMaxValue", _wrap_pvSetMaxValue}, - { "pvSetValue", _wrap_pvSetValue}, - { "pvClear", _wrap_pvClear}, - { "pvChangeItem",_wrap_pvChangeItem}, - { "pvInsertItem",_wrap_pvInsertItem}, - { "pvRemoveItem", _wrap_pvRemoveItem}, - { "pvRemoveItemByName", _wrap_pvRemoveItemByName}, - { "pvAddColumn", _wrap_pvAddColumn}, - { "pvRemoveAllColumns", _wrap_pvRemoveAllColumns}, - { "pvSetTableText", _wrap_pvSetTableText}, - { "pvSetTableButton", _wrap_pvSetTableButton}, - { "pvSetTableCheckBox", _wrap_pvSetTableCheckBox}, - { "pvSetTableComboBox", _wrap_pvSetTableComboBox}, - { "pvSetTableLabel", _wrap_pvSetTableLabel}, - { "pvTablePrintf", _wrap_pvTablePrintf}, - { "pvSetTableTextAlignment", _wrap_pvSetTableTextAlignment}, - { "pvMysqldump", _wrap_pvMysqldump}, - { "pvCSVdump",_wrap_pvCSVdump}, - { "pvCSVcreate", _wrap_pvCSVcreate}, - { "pvCSV",_wrap_pvCSV}, - { "pvSetListViewText", _wrap_pvSetListViewText}, - { "pvListViewPrintf", _wrap_pvListViewPrintf}, - { "pvListViewSetSelected", _wrap_pvListViewSetSelected}, - { "pvListBoxSetSelected", _wrap_pvListBoxSetSelected}, - { "pvSetColumnWidth", _wrap_pvSetColumnWidth}, - { "pvSetRowHeight", _wrap_pvSetRowHeight}, - { "pvSetWordWrap", _wrap_pvSetWordWrap}, - { "pvSetPixmap",_wrap_pvSetPixmap}, - { "pvSetTablePixmap",_wrap_pvSetTablePixmap}, - { "pvSetSource", _wrap_pvSetSource}, - { "pvSetImage",_wrap_pvSetImage}, - { "pvSetBufferedJpgImage",_wrap_pvSetBufferedJpgImage}, - { "pvSetBufferTransparency", _wrap_pvSetBufferTransparency}, - { "pvSetBackgroundColor", _wrap_pvSetBackgroundColor}, - { "pvSetPaletteBackgroundColor", _wrap_pvSetPaletteBackgroundColor}, - { "pvSetPaletteForegroundColor", _wrap_pvSetPaletteForegroundColor}, - { "pvSetFontColor", _wrap_pvSetFontColor}, - { "pvSetFont", _wrap_pvSetFont}, - { "pvDisplayNum", _wrap_pvDisplayNum}, - { "pvDisplayFloat", _wrap_pvDisplayFloat}, - { "pvDisplayStr", _wrap_pvDisplayStr}, - { "pvAddTab", _wrap_pvAddTab}, - { "pvSetListViewPixmap",_wrap_pvSetListViewPixmap}, - { "pvRemoveListViewItem", _wrap_pvRemoveListViewItem}, - { "pvRemoveIconViewItem", _wrap_pvRemoveIconViewItem}, - { "pvSetIconViewItem",_wrap_pvSetIconViewItem}, - { "pvSetDateOrder", _wrap_pvSetDateOrder}, - { "pvSetDate", _wrap_pvSetDate}, - { "pvSetMinDate", _wrap_pvSetMinDate}, - { "pvSetMaxDate", _wrap_pvSetMaxDate}, - { "pvSetTime",_wrap_pvSetTime}, - { "pvSetMinTime",_wrap_pvSetMinTime}, - { "pvSetMaxTime",_wrap_pvSetMaxTime}, - { "pvEnsureCellVisible",_wrap_pvEnsureCellVisible}, - { "pvMoveCursor", _wrap_pvMoveCursor}, - { "pvScrollToAnchor", _wrap_pvScrollToAnchor}, - { "pvSetZoomFactor", _wrap_pvSetZoomFactor}, - { "pvPrintHtmlOnPrinter", _wrap_pvPrintHtmlOnPrinter}, - { "pvSetWidgetProperty", _wrap_pvSetWidgetProperty}, - { "pvPassThroughOneJpegFrame",_wrap_pvPassThroughOneJpegFrame}, - { "pvSendJpegFrame",_wrap_pvSendJpegFrame}, - { "pvSendRGBA",_wrap_pvSendRGBA}, - { "pvSaveDrawBuffer", _wrap_pvSaveDrawBuffer}, - { "pvText", _wrap_pvText}, - { "pvRequestJpeg", _wrap_pvRequestJpeg}, - { "pvRequestGeometry", _wrap_pvRequestGeometry}, - { "pvRequestParentWidgetId", _wrap_pvRequestParentWidgetId}, - { "pvSelection", _wrap_pvSelection}, - { "pvRequestSvgBoundsOnElement", _wrap_pvRequestSvgBoundsOnElement}, - { "pvRequestSvgMatrixForElement", _wrap_pvRequestSvgMatrixForElement}, - { "pvMoveContent", _wrap_pvMoveContent}, - { "pvSetGeometry", _wrap_pvSetGeometry}, - { "pvSetMinSize", _wrap_pvSetMinSize}, - { "pvSetMaxSize", _wrap_pvSetMaxSize}, - { "pvSetAlignment", _wrap_pvSetAlignment}, - { "pvSetChecked", _wrap_pvSetChecked}, - { "pvMove", _wrap_pvMove}, - { "pvResize", _wrap_pvResize}, - { "pvHide", _wrap_pvHide}, - { "pvShow", _wrap_pvShow}, - { "pvSetParent", _wrap_pvSetParent}, - { "pvSetMultiSelection", _wrap_pvSetMultiSelection}, - { "pvSetEchoMode", _wrap_pvSetEchoMode}, - { "pvSetEditable", _wrap_pvSetEditable}, - { "pvSetEnabled", _wrap_pvSetEnabled}, - { "pvSetFocus", _wrap_pvSetFocus}, - { "pvTableSetEnabled", _wrap_pvTableSetEnabled}, - { "pvTableSetHeaderResizeEnabled", _wrap_pvTableSetHeaderResizeEnabled}, - { "pvSetSorting", _wrap_pvSetSorting}, - { "pvSetTabPosition", _wrap_pvSetTabPosition}, - { "pvEnableTabBar", _wrap_pvEnableTabBar}, - { "pvSetNumRows", _wrap_pvSetNumRows}, - { "pvSetNumCols", _wrap_pvSetNumCols}, - { "pvInsertRows",_wrap_pvInsertRows}, - { "pvInsertColumns",_wrap_pvInsertColumns}, - { "pvRemoveRow", _wrap_pvRemoveRow}, - { "pvRemoveColumn", _wrap_pvRemoveColumn}, - { "pvSetCurrentItem", _wrap_pvSetCurrentItem}, - { "pvSetTimeEditDisplay", _wrap_pvSetTimeEditDisplay}, - { "pvListViewEnsureVisible", _wrap_pvListViewEnsureVisible}, - { "pvListViewSetOpen", _wrap_pvListViewSetOpen}, - { "pvListViewSetHidden", _wrap_pvListViewSetHidden}, - { "pvListViewSetStandardPopupMenu", _wrap_pvListViewSetStandardPopupMenu}, - { "pvSetStyle", _wrap_pvSetStyle}, - { "pvSetMovie", _wrap_pvSetMovie}, - { "pvMovieControl", _wrap_pvMovieControl}, - { "pvMovieSpeed", _wrap_pvMovieSpeed}, - { "pvAddTabIcon",_wrap_pvAddTabIcon}, - { "pvSetCellWidget", _wrap_pvSetCellWidget}, - { "pvSetContentsMargins", _wrap_pvSetContentsMargins}, - { "pvSetSpacing", _wrap_pvSetSpacing}, - { "pvVtkTcl", _wrap_pvVtkTcl}, - { "pvVtkTclPrintf", _wrap_pvVtkTclPrintf}, - { "pvVtkTclScript", _wrap_pvVtkTclScript}, - { "pvHyperlink", _wrap_pvHyperlink}, - { "pvSendUserEvent", _wrap_pvSendUserEvent}, - { "pvWriteFile", _wrap_pvWriteFile}, - { "pvCloseFile", _wrap_pvCloseFile}, - { "pvGetTextParam", _wrap_pvGetTextParam}, - { "pvGetText", _wrap_pvGetText}, - { "pvParseEventStruct", _wrap_pvParseEventStruct}, - { "pvParseEvent", _wrap_pvParseEvent}, - { "pvCopyToClipboard", _wrap_pvCopyToClipboard}, - { "pvPrint", _wrap_pvPrint}, - { "pvSave",_wrap_pvSave}, - { "pvSaveAsBmp", _wrap_pvSaveAsBmp}, - { "pvHtmlOrSvgDump", _wrap_pvHtmlOrSvgDump}, - { "pvRenderTreeDump", _wrap_pvRenderTreeDump}, - { "pvSendFile", _wrap_pvSendFile}, - { "pvDownloadFileAs", _wrap_pvDownloadFileAs}, - { "pvDownloadFile", _wrap_pvDownloadFile}, - { "pvSetMaxClientsPerIpAdr", _wrap_pvSetMaxClientsPerIpAdr}, - { "pvMaxClientsPerIpAdr", _wrap_pvMaxClientsPerIpAdr}, - { "pvSetMaxClients", _wrap_pvSetMaxClients}, - { "pvMaxClients", _wrap_pvMaxClients}, - { "pvGetAdrTableItem", _wrap_pvGetAdrTableItem}, - { "pvClearMessageQueue", _wrap_pvClearMessageQueue}, - { "pvtcpsend", _wrap_pvtcpsend}, - { "pvtcpsendstring", _wrap_pvtcpsendstring}, - { "pvtcpsend_binary", _wrap_pvtcpsend_binary}, - { "pvtcpreceive", _wrap_pvtcpreceive}, - { "pvtcpreceive_binary", _wrap_pvtcpreceive_binary}, - { "pvSendHttpChunks", _wrap_pvSendHttpChunks}, - { "pvSendHttpContentLength", _wrap_pvSendHttpContentLength}, - { "pvSendHttpResponseFile",_wrap_pvSendHttpResponseFile}, - { "pvSendHttpResponse", _wrap_pvSendHttpResponse}, - { "pvGlBegin", _wrap_pvGlBegin}, - { "pvSendOpenGL",_wrap_pvSendOpenGL}, - { "pvGlEnd", _wrap_pvGlEnd}, - { "pvFileDialog", _wrap_pvFileDialog}, - { "pvPopupMenu", _wrap_pvPopupMenu}, - { "pvMessageBox", _wrap_pvMessageBox}, - { "pvInputDialog", _wrap_pvInputDialog}, - { "pvRunModalDialog", _wrap_pvRunModalDialog}, - { "pvRunModalDialogScript", _wrap_pvRunModalDialogScript}, - { "pvTerminateModalDialog", _wrap_pvTerminateModalDialog}, - { "pvUpdateBaseWindow", _wrap_pvUpdateBaseWindow}, - { "pvUpdateBaseWindowOnOff", _wrap_pvUpdateBaseWindowOnOff}, - { "pvAddDockWidget",_wrap_pvAddDockWidget}, - { "pvDeleteDockWidget",_wrap_pvDeleteDockWidget}, - { "qpwSetCurveData", _wrap_qpwSetCurveData}, - { "qpwSetBufferedCurveData", _wrap_qpwSetBufferedCurveData}, - { "qpwReplot", _wrap_qpwReplot}, - { "qpwSetTitle", _wrap_qpwSetTitle}, - { "qpwSetCanvasBackground", _wrap_qpwSetCanvasBackground}, - { "qpwEnableOutline", _wrap_qpwEnableOutline}, - { "qpwSetOutlinePen", _wrap_qpwSetOutlinePen}, - { "qpwSetAutoLegend", _wrap_qpwSetAutoLegend}, - { "qpwEnableLegend", _wrap_qpwEnableLegend}, - { "qpwSetLegendPos", _wrap_qpwSetLegendPos}, - { "qpwSetLegendFrameStyle", _wrap_qpwSetLegendFrameStyle}, - { "qpwEnableGridXMin", _wrap_qpwEnableGridXMin}, - { "qpwSetGridMajPen", _wrap_qpwSetGridMajPen}, - { "qpwSetGridMinPen", _wrap_qpwSetGridMinPen}, - { "qpwEnableAxis", _wrap_qpwEnableAxis}, - { "qpwSetAxisTitle", _wrap_qpwSetAxisTitle}, - { "qpwSetAxisOptions", _wrap_qpwSetAxisOptions}, - { "qpwSetAxisMaxMajor", _wrap_qpwSetAxisMaxMajor}, - { "qpwSetAxisMaxMinor", _wrap_qpwSetAxisMaxMinor}, - { "qpwInsertCurve", _wrap_qpwInsertCurve}, - { "qpwRemoveCurve", _wrap_qpwRemoveCurve}, - { "qpwSetCurvePen",_wrap_qpwSetCurvePen}, - { "qpwSetCurveSymbol", _wrap_qpwSetCurveSymbol}, - { "qpwSetCurveYAxis", _wrap_qpwSetCurveYAxis}, - { "qpwInsertMarker", _wrap_qpwInsertMarker}, - { "qpwSetMarkerLineStyle", _wrap_qpwSetMarkerLineStyle}, - { "qpwSetMarkerPos", _wrap_qpwSetMarkerPos}, - { "qpwSetMarkerLabelAlign", _wrap_qpwSetMarkerLabelAlign}, - { "qpwSetMarkerPen", _wrap_qpwSetMarkerPen}, - { "qpwSetMarkerLabel", _wrap_qpwSetMarkerLabel}, - { "qpwSetMarkerFont", _wrap_qpwSetMarkerFont}, - { "qpwSetMarkerSymbol", _wrap_qpwSetMarkerSymbol}, - { "qpwInsertLineMarker", _wrap_qpwInsertLineMarker}, - { "qpwSetAxisScaleDraw", _wrap_qpwSetAxisScaleDraw}, - { "qpwSetAxisScale", _wrap_qpwSetAxisScale}, - { "pvSetZoomX", _wrap_pvSetZoomX}, - { "pvSetZoomY", _wrap_pvSetZoomY}, - { "gWriteFile", _wrap_gWriteFile}, - { "gCloseFile", _wrap_gCloseFile}, - { "gBeginDraw", _wrap_gBeginDraw}, - { "gBox", _wrap_gBox}, - { "gRect", _wrap_gRect}, - { "gEndDraw", _wrap_gEndDraw}, - { "gLineTo", _wrap_gLineTo}, - { "gBufferedLine", _wrap_gBufferedLine}, - { "gLine", _wrap_gLine}, - { "gMoveTo", _wrap_gMoveTo}, - { "gRightYAxis", _wrap_gRightYAxis}, - { "gSetColor", _wrap_gSetColor}, - { "gSetWidth", _wrap_gSetWidth}, - { "gSetStyle", _wrap_gSetStyle}, - { "gDrawArc", _wrap_gDrawArc}, - { "gDrawPie", _wrap_gDrawPie}, - { "gDrawPolygon", _wrap_gDrawPolygon}, - { "gSetFont", _wrap_gSetFont}, - { "gSetLinestyle", _wrap_gSetLinestyle}, - { "gText", _wrap_gText}, - { "gTextInAxis", _wrap_gTextInAxis}, - { "gSetFloatFormat", _wrap_gSetFloatFormat}, - { "gXAxis", _wrap_gXAxis}, - { "gYAxis", _wrap_gYAxis}, - { "gXGrid", _wrap_gXGrid}, - { "gYGrid", _wrap_gYGrid}, - { "gBoxWithText", _wrap_gBoxWithText}, - { "gComment", _wrap_gComment}, - { "gPlaySVG", _wrap_gPlaySVG}, - { "gSocketPlaySVG", _wrap_gSocketPlaySVG}, - { "gTranslate", _wrap_gTranslate}, - { "gRotate", _wrap_gRotate}, - { "gScale", _wrap_gScale}, - { "pvSetSelector", _wrap_pvSetSelector}, - { "pvPrintSvgOnPrinter", _wrap_pvPrintSvgOnPrinter}, - { "qwtScaleSetTitle", _wrap_qwtScaleSetTitle}, - { "qwtScaleSetTitleColor", _wrap_qwtScaleSetTitleColor}, - { "qwtScaleSetTitleFont", _wrap_qwtScaleSetTitleFont}, - { "qwtScaleSetTitleAlignment", _wrap_qwtScaleSetTitleAlignment}, - { "qwtScaleSetBorderDist", _wrap_qwtScaleSetBorderDist}, - { "qwtScaleSetBaselineDist", _wrap_qwtScaleSetBaselineDist}, - { "qwtScaleSetScaleDiv", _wrap_qwtScaleSetScaleDiv}, - { "qwtScaleSetLabelFormat", _wrap_qwtScaleSetLabelFormat}, - { "qwtScaleSetLabelAlignment", _wrap_qwtScaleSetLabelAlignment}, - { "qwtScaleSetLabelRotation", _wrap_qwtScaleSetLabelRotation}, - { "qwtScaleSetPosition", _wrap_qwtScaleSetPosition}, - { "qwtThermoSetScale", _wrap_qwtThermoSetScale}, - { "qwtThermoSetOrientation", _wrap_qwtThermoSetOrientation}, - { "qwtThermoSetBorderWidth", _wrap_qwtThermoSetBorderWidth}, - { "qwtThermoSetFillColor", _wrap_qwtThermoSetFillColor}, - { "qwtThermoSetAlarmColor", _wrap_qwtThermoSetAlarmColor}, - { "qwtThermoSetAlarmLevel", _wrap_qwtThermoSetAlarmLevel}, - { "qwtThermoSetAlarmEnabled", _wrap_qwtThermoSetAlarmEnabled}, - { "qwtThermoSetPipeWidth", _wrap_qwtThermoSetPipeWidth}, - { "qwtThermoSetRange",_wrap_qwtThermoSetRange}, - { "qwtThermoSetMargin", _wrap_qwtThermoSetMargin}, - { "qwtThermoSetValue", _wrap_qwtThermoSetValue}, - { "qwtKnobSetScale", _wrap_qwtKnobSetScale}, - { "qwtKnobSetMass", _wrap_qwtKnobSetMass}, - { "qwtKnobSetOrientation", _wrap_qwtKnobSetOrientation}, - { "qwtKnobSetReadOnly", _wrap_qwtKnobSetReadOnly}, - { "qwtKnobSetKnobWidth", _wrap_qwtKnobSetKnobWidth}, - { "qwtKnobSetTotalAngle", _wrap_qwtKnobSetTotalAngle}, - { "qwtKnobSetBorderWidth", _wrap_qwtKnobSetBorderWidth}, - { "qwtKnobSetSymbol", _wrap_qwtKnobSetSymbol}, - { "qwtKnobSetValue", _wrap_qwtKnobSetValue}, - { "qwtCounterSetStep", _wrap_qwtCounterSetStep}, - { "qwtCounterSetMinValue", _wrap_qwtCounterSetMinValue}, - { "qwtCounterSetMaxValue", _wrap_qwtCounterSetMaxValue}, - { "qwtCounterSetStepButton1", _wrap_qwtCounterSetStepButton1}, - { "qwtCounterSetStepButton2", _wrap_qwtCounterSetStepButton2}, - { "qwtCounterSetStepButton3", _wrap_qwtCounterSetStepButton3}, - { "qwtCounterSetNumButtons", _wrap_qwtCounterSetNumButtons}, - { "qwtCounterSetIncSteps", _wrap_qwtCounterSetIncSteps}, - { "qwtCounterSetValue", _wrap_qwtCounterSetValue}, - { "qwtWheelSetMass", _wrap_qwtWheelSetMass}, - { "qwtWheelSetOrientation", _wrap_qwtWheelSetOrientation}, - { "qwtWheelSetReadOnly", _wrap_qwtWheelSetReadOnly}, - { "qwtWheelSetTotalAngle", _wrap_qwtWheelSetTotalAngle}, - { "qwtWheelSetTickCnt", _wrap_qwtWheelSetTickCnt}, - { "qwtWheelSetViewAngle", _wrap_qwtWheelSetViewAngle}, - { "qwtWheelSetInternalBorder", _wrap_qwtWheelSetInternalBorder}, - { "qwtWheelSetWheelWidth", _wrap_qwtWheelSetWheelWidth}, - { "qwtWheelSetValue", _wrap_qwtWheelSetValue}, - { "qwtSliderSetScale", _wrap_qwtSliderSetScale}, - { "qwtSliderSetMass", _wrap_qwtSliderSetMass}, - { "qwtSliderSetOrientation", _wrap_qwtSliderSetOrientation}, - { "qwtSliderSetReadOnly", _wrap_qwtSliderSetReadOnly}, - { "qwtSliderSetBgStyle", _wrap_qwtSliderSetBgStyle}, - { "qwtSliderSetScalePos", _wrap_qwtSliderSetScalePos}, - { "qwtSliderSetThumbLength", _wrap_qwtSliderSetThumbLength}, - { "qwtSliderSetThumbWidth", _wrap_qwtSliderSetThumbWidth}, - { "qwtSliderSetBorderWidth", _wrap_qwtSliderSetBorderWidth}, - { "qwtSliderSetMargins", _wrap_qwtSliderSetMargins}, - { "qwtSliderSetValue", _wrap_qwtSliderSetValue}, - { "qwtCompassSetSimpleCompassRose",_wrap_qwtCompassSetSimpleCompassRose}, - { "qwtCompassSetRange",_wrap_qwtCompassSetRange}, - { "qwtCompassSetMass", _wrap_qwtCompassSetMass}, - { "qwtCompassSetReadOnly", _wrap_qwtCompassSetReadOnly}, - { "qwtCompassSetFrameShadow", _wrap_qwtCompassSetFrameShadow}, - { "qwtCompassShowBackground", _wrap_qwtCompassShowBackground}, - { "qwtCompassSetLineWidth", _wrap_qwtCompassSetLineWidth}, - { "qwtCompassSetMode", _wrap_qwtCompassSetMode}, - { "qwtCompassSetWrapping", _wrap_qwtCompassSetWrapping}, - { "qwtCompassSetScale", _wrap_qwtCompassSetScale}, - { "qwtCompassSetScaleArc", _wrap_qwtCompassSetScaleArc}, - { "qwtCompassSetOrigin", _wrap_qwtCompassSetOrigin}, - { "qwtCompassSetNeedle",_wrap_qwtCompassSetNeedle}, - { "qwtCompassSetValue", _wrap_qwtCompassSetValue}, - { "qwtDialSetRange",_wrap_qwtDialSetRange}, - { "qwtDialSetMass", _wrap_qwtDialSetMass}, - { "qwtDialSetReadOnly", _wrap_qwtDialSetReadOnly}, - { "qwtDialSetFrameShadow", _wrap_qwtDialSetFrameShadow}, - { "qwtDialShowBackground", _wrap_qwtDialShowBackground}, - { "qwtDialSetLineWidth", _wrap_qwtDialSetLineWidth}, - { "qwtDialSetMode", _wrap_qwtDialSetMode}, - { "qwtDialSetWrapping", _wrap_qwtDialSetWrapping}, - { "qwtDialSetScale", _wrap_qwtDialSetScale}, - { "qwtDialSetScaleArc", _wrap_qwtDialSetScaleArc}, - { "qwtDialSetOrigin", _wrap_qwtDialSetOrigin}, - { "qwtDialSetNeedle",_wrap_qwtDialSetNeedle}, - { "qwtDialSetValue", _wrap_qwtDialSetValue}, - { "qwtAnalogClockSetTime", _wrap_qwtAnalogClockSetTime}, - { "qwtAnalogClockSetMass", _wrap_qwtAnalogClockSetMass}, - { "qwtAnalogClockSetReadOnly", _wrap_qwtAnalogClockSetReadOnly}, - { "qwtAnalogClockSetFrameShadow", _wrap_qwtAnalogClockSetFrameShadow}, - { "qwtAnalogClockShowBackground", _wrap_qwtAnalogClockShowBackground}, - { "qwtAnalogClockSetLineWidth", _wrap_qwtAnalogClockSetLineWidth}, - { "qwtAnalogClockSetMode", _wrap_qwtAnalogClockSetMode}, - { "qwtAnalogClockSetWrapping", _wrap_qwtAnalogClockSetWrapping}, - { "qwtAnalogClockSetScale", _wrap_qwtAnalogClockSetScale}, - { "qwtAnalogClockSetScaleArc", _wrap_qwtAnalogClockSetScaleArc}, - { "qwtAnalogClockSetOrigin", _wrap_qwtAnalogClockSetOrigin}, - { "qwtAnalogClockSetNeedle",_wrap_qwtAnalogClockSetNeedle}, - { "qwtAnalogClockSetValue", _wrap_qwtAnalogClockSetValue}, - { "unit", _wrap_unit}, - { "textEventType", _wrap_textEventType}, - { "svgObjectName", _wrap_svgObjectName}, - { "getSvgBoundsOnElement", _wrap_getSvgBoundsOnElement}, - { "getSvgMatrixForElement", _wrap_getSvgMatrixForElement}, - { "getGeometry", _wrap_getGeometry}, - { "getParentWidgetId", _wrap_getParentWidgetId}, - { "getParam", _wrap_getParam}, - { "pvQImageScript", _wrap_pvQImageScript}, - { "new_int", _wrap_new_int}, - { "get_int", _wrap_get_int}, - { "delete_int", _wrap_delete_int}, - {0,0} -}; + arg2 = (int)lua_tonumber(L, 2); + arg3 = (int)lua_tonumber(L, 3); + arg4 = (char *)lua_tostring(L, 4); + result = (int)pvQImageScript(arg1,arg2,arg3,(char const *)arg4); + lua_pushnumber(L, (lua_Number) result); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_new_int(lua_State* L) { + int SWIG_arg = 0; + int arg1 ; + int *result = 0 ; + + SWIG_check_num_args("new_int",1,1) + if(!lua_isnumber(L,1)) SWIG_fail_arg("new_int",1,"int"); + arg1 = (int)lua_tonumber(L, 1); + result = (int *)new_int(arg1); + SWIG_NewPointerObj(L,result,SWIGTYPE_p_int,0); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_get_int(lua_State* L) { + int SWIG_arg = 0; + int *arg1 = (int *) 0 ; + int result; + + SWIG_check_num_args("get_int",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("get_int",1,"int *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_int,0))){ + SWIG_fail_ptr("get_int",1,SWIGTYPE_p_int); + } + + result = (int)get_int(arg1); + lua_pushnumber(L, (lua_Number) result); SWIG_arg++; + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} + + +static int _wrap_delete_int(lua_State* L) { + int SWIG_arg = 0; + int *arg1 = (int *) 0 ; + + SWIG_check_num_args("delete_int",1,1) + if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("delete_int",1,"int *"); + + if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_int,0))){ + SWIG_fail_ptr("delete_int",1,SWIGTYPE_p_int); + } + + delete_int(arg1); + + return SWIG_arg; + + if(0) SWIG_fail; + +fail: + lua_error(L); + return SWIG_arg; +} -static swig_lua_var_info swig_variables[] = { + +static swig_lua_attribute swig_SwigModule_attributes[] = { { "pvserver_version", _wrap_pvserver_version_get, SWIG_Lua_set_immutable }, { "null_string", _wrap_null_string_get, SWIG_Lua_set_immutable }, {0,0,0} }; - -static swig_lua_const_info swig_constants[] = { +static swig_lua_const_info swig_SwigModule_constants[]= { {SWIG_LUA_CONSTTAB_INT("pv_STDIN", 0)}, {SWIG_LUA_CONSTTAB_INT("pv_STDOUT", 1)}, {SWIG_LUA_CONSTTAB_INT("MAX_PRINTF_LENGTH", 1024)}, @@ -30099,6 +30877,480 @@ static swig_lua_const_info swig_constants[] = { {SWIG_LUA_CONSTTAB_STRING("RESIZE_GL", "resizeGL")}, {0,0,0,0,0,0} }; +static swig_lua_method swig_SwigModule_methods[]= { + { "glencode_set_param", _wrap_glencode_set_param}, + { "pvlock", _wrap_pvlock}, + { "pvunlock", _wrap_pvunlock}, + { "pvsystem", _wrap_pvsystem}, + { "pvGetLocalTime", _wrap_pvGetLocalTime}, + { "pvIsAccessAllowed", _wrap_pvIsAccessAllowed}, + { "pvSendVersion", _wrap_pvSendVersion}, + { "pvXYAllocate", _wrap_pvXYAllocate}, + { "getIntegers", _wrap_getIntegers}, + { "getFloats", _wrap_getFloats}, + { "getTextFromText", _wrap_getTextFromText}, + { "pvSetXY", _wrap_pvSetXY}, + { "pvGetSocketPointer", _wrap_pvGetSocketPointer}, + { "pvInitInternal", _wrap_pvInitInternal}, + { "pvInit", _wrap_pvInit}, + { "pvAccept", _wrap_pvAccept}, + { "pvCreateThread", _wrap_pvCreateThread}, + { "pvGetInitialMask", _wrap_pvGetInitialMask}, + { "pvMain", _wrap_pvMain}, + { "pvSetCleanup", _wrap_pvSetCleanup}, + { "pvGetEvent", _wrap_pvGetEvent}, + { "pvPollEvent", _wrap_pvPollEvent}, + { "pvWait", _wrap_pvWait}, + { "pvGlUpdate", _wrap_pvGlUpdate}, + { "pvSleep", _wrap_pvSleep}, + { "pvWarning", _wrap_pvWarning}, + { "pvMainFatal", _wrap_pvMainFatal}, + { "pvThreadFatal", _wrap_pvThreadFatal}, + { "pvScreenHint", _wrap_pvScreenHint}, + { "pvSetMouseShape", _wrap_pvSetMouseShape}, + { "pvSetWhatsThis", _wrap_pvSetWhatsThis}, + { "pvWhatsThisPrintf", _wrap_pvWhatsThisPrintf}, + { "pvClientCommand", _wrap_pvClientCommand}, + { "pvWriteTextToFileAtClient", _wrap_pvWriteTextToFileAtClient}, + { "pvZoomMask", _wrap_pvZoomMask}, + { "pvSetManualUrl", _wrap_pvSetManualUrl}, + { "pvSelectLanguage", _wrap_pvSelectLanguage}, + { "pvStartDefinition", _wrap_pvStartDefinition}, + { "pvQWidget", _wrap_pvQWidget}, + { "pvQLayoutVbox", _wrap_pvQLayoutVbox}, + { "pvQLayoutHbox", _wrap_pvQLayoutHbox}, + { "pvQLayoutGrid", _wrap_pvQLayoutGrid}, + { "pvQLabel", _wrap_pvQLabel}, + { "pvQComboBox", _wrap_pvQComboBox}, + { "pvQLineEdit", _wrap_pvQLineEdit}, + { "pvQPushButton", _wrap_pvQPushButton}, + { "pvQLCDNumber", _wrap_pvQLCDNumber}, + { "pvQSlider", _wrap_pvQSlider}, + { "pvQButtonGroup", _wrap_pvQButtonGroup}, + { "pvQRadioButton", _wrap_pvQRadioButton}, + { "pvQCheckBox", _wrap_pvQCheckBox}, + { "pvQFrame", _wrap_pvQFrame}, + { "pvQDraw", _wrap_pvQDraw}, + { "pvQImage", _wrap_pvQImage}, + { "pvQGL", _wrap_pvQGL}, + { "pvQTabWidget", _wrap_pvQTabWidget}, + { "pvQToolBox", _wrap_pvQToolBox}, + { "pvQGroupBox", _wrap_pvQGroupBox}, + { "pvQListBox", _wrap_pvQListBox}, + { "pvQTable", _wrap_pvQTable}, + { "pvQSpinBox", _wrap_pvQSpinBox}, + { "pvQDial", _wrap_pvQDial}, + { "pvQProgressBar", _wrap_pvQProgressBar}, + { "pvQMultiLineEdit", _wrap_pvQMultiLineEdit}, + { "pvQTextBrowser", _wrap_pvQTextBrowser}, + { "pvQListView", _wrap_pvQListView}, + { "pvQIconView", _wrap_pvQIconView}, + { "pvQVtkTclWidget", _wrap_pvQVtkTclWidget}, + { "pvQwtPlotWidget", _wrap_pvQwtPlotWidget}, + { "pvQwtScale", _wrap_pvQwtScale}, + { "pvQwtThermo", _wrap_pvQwtThermo}, + { "pvQwtKnob", _wrap_pvQwtKnob}, + { "pvQwtCounter", _wrap_pvQwtCounter}, + { "pvQwtWheel", _wrap_pvQwtWheel}, + { "pvQwtSlider", _wrap_pvQwtSlider}, + { "pvQwtDial", _wrap_pvQwtDial}, + { "pvQwtCompass", _wrap_pvQwtCompass}, + { "pvQwtAnalogClock", _wrap_pvQwtAnalogClock}, + { "pvQDateEdit", _wrap_pvQDateEdit}, + { "pvQTimeEdit", _wrap_pvQTimeEdit}, + { "pvQDateTimeEdit", _wrap_pvQDateTimeEdit}, + { "pvQCustomWidget", _wrap_pvQCustomWidget}, + { "pvEndDefinition", _wrap_pvEndDefinition}, + { "pvAddWidgetOrLayout", _wrap_pvAddWidgetOrLayout}, + { "pvAddStretch", _wrap_pvAddStretch}, + { "pvTabOrder", _wrap_pvTabOrder}, + { "pvDeleteWidget", _wrap_pvDeleteWidget}, + { "pvSetCaption", _wrap_pvSetCaption}, + { "pvPlaySound", _wrap_pvPlaySound}, + { "pvBeep", _wrap_pvBeep}, + { "pvStatusMessage", _wrap_pvStatusMessage}, + { "pvToolTip", _wrap_pvToolTip}, + { "pvSetTextEx", _wrap_pvSetTextEx}, + { "pvSetText", _wrap_pvSetText}, + { "pvPrintf", _wrap_pvPrintf}, + { "pvSetStyleSheet", _wrap_pvSetStyleSheet}, + { "pvPrintfStyleSheet", _wrap_pvPrintfStyleSheet}, + { "pvSetMinValue", _wrap_pvSetMinValue}, + { "pvSetMaxValue", _wrap_pvSetMaxValue}, + { "pvSetValue", _wrap_pvSetValue}, + { "pvClear", _wrap_pvClear}, + { "pvChangeItem", _wrap_pvChangeItem}, + { "pvInsertItem", _wrap_pvInsertItem}, + { "pvRemoveItem", _wrap_pvRemoveItem}, + { "pvRemoveItemByName", _wrap_pvRemoveItemByName}, + { "pvAddColumn", _wrap_pvAddColumn}, + { "pvRemoveAllColumns", _wrap_pvRemoveAllColumns}, + { "pvSetTableText", _wrap_pvSetTableText}, + { "pvSetTableButton", _wrap_pvSetTableButton}, + { "pvSetTableCheckBox", _wrap_pvSetTableCheckBox}, + { "pvSetTableComboBox", _wrap_pvSetTableComboBox}, + { "pvSetTableLabel", _wrap_pvSetTableLabel}, + { "pvTablePrintf", _wrap_pvTablePrintf}, + { "pvSetTableTextAlignment", _wrap_pvSetTableTextAlignment}, + { "pvMysqldump", _wrap_pvMysqldump}, + { "pvCSVdump", _wrap_pvCSVdump}, + { "pvCSVcreate", _wrap_pvCSVcreate}, + { "pvCSV", _wrap_pvCSV}, + { "pvSetListViewText", _wrap_pvSetListViewText}, + { "pvListViewPrintf", _wrap_pvListViewPrintf}, + { "pvListViewSetSelected", _wrap_pvListViewSetSelected}, + { "pvListBoxSetSelected", _wrap_pvListBoxSetSelected}, + { "pvSetColumnWidth", _wrap_pvSetColumnWidth}, + { "pvSetRowHeight", _wrap_pvSetRowHeight}, + { "pvSetWordWrap", _wrap_pvSetWordWrap}, + { "pvSetPixmap", _wrap_pvSetPixmap}, + { "pvSetTablePixmap", _wrap_pvSetTablePixmap}, + { "pvSetSource", _wrap_pvSetSource}, + { "pvSetImage", _wrap_pvSetImage}, + { "pvSetBufferedJpgImage", _wrap_pvSetBufferedJpgImage}, + { "pvSetBufferTransparency", _wrap_pvSetBufferTransparency}, + { "pvSetBackgroundColor", _wrap_pvSetBackgroundColor}, + { "pvSetPaletteBackgroundColor", _wrap_pvSetPaletteBackgroundColor}, + { "pvSetPaletteForegroundColor", _wrap_pvSetPaletteForegroundColor}, + { "pvSetFontColor", _wrap_pvSetFontColor}, + { "pvSetFont", _wrap_pvSetFont}, + { "pvDisplayNum", _wrap_pvDisplayNum}, + { "pvDisplayFloat", _wrap_pvDisplayFloat}, + { "pvDisplayStr", _wrap_pvDisplayStr}, + { "pvAddTab", _wrap_pvAddTab}, + { "pvSetListViewPixmap", _wrap_pvSetListViewPixmap}, + { "pvRemoveListViewItem", _wrap_pvRemoveListViewItem}, + { "pvRemoveIconViewItem", _wrap_pvRemoveIconViewItem}, + { "pvSetIconViewItem", _wrap_pvSetIconViewItem}, + { "pvSetDateOrder", _wrap_pvSetDateOrder}, + { "pvSetDate", _wrap_pvSetDate}, + { "pvSetMinDate", _wrap_pvSetMinDate}, + { "pvSetMaxDate", _wrap_pvSetMaxDate}, + { "pvSetTime", _wrap_pvSetTime}, + { "pvSetMinTime", _wrap_pvSetMinTime}, + { "pvSetMaxTime", _wrap_pvSetMaxTime}, + { "pvEnsureCellVisible", _wrap_pvEnsureCellVisible}, + { "pvMoveCursor", _wrap_pvMoveCursor}, + { "pvScrollToAnchor", _wrap_pvScrollToAnchor}, + { "pvSetZoomFactor", _wrap_pvSetZoomFactor}, + { "pvPrintHtmlOnPrinter", _wrap_pvPrintHtmlOnPrinter}, + { "pvSetWidgetProperty", _wrap_pvSetWidgetProperty}, + { "pvPassThroughOneJpegFrame", _wrap_pvPassThroughOneJpegFrame}, + { "pvSendJpegFrame", _wrap_pvSendJpegFrame}, + { "pvSendRGBA", _wrap_pvSendRGBA}, + { "pvSaveDrawBuffer", _wrap_pvSaveDrawBuffer}, + { "pvWaitpid", _wrap_pvWaitpid}, + { "pvText", _wrap_pvText}, + { "pvRequestJpeg", _wrap_pvRequestJpeg}, + { "pvRequestGeometry", _wrap_pvRequestGeometry}, + { "pvRequestParentWidgetId", _wrap_pvRequestParentWidgetId}, + { "pvSelection", _wrap_pvSelection}, + { "pvRequestSvgBoundsOnElement", _wrap_pvRequestSvgBoundsOnElement}, + { "pvRequestSvgMatrixForElement", _wrap_pvRequestSvgMatrixForElement}, + { "pvMoveContent", _wrap_pvMoveContent}, + { "pvSetGeometry", _wrap_pvSetGeometry}, + { "pvSetMinSize", _wrap_pvSetMinSize}, + { "pvSetMaxSize", _wrap_pvSetMaxSize}, + { "pvSetAlignment", _wrap_pvSetAlignment}, + { "pvSetChecked", _wrap_pvSetChecked}, + { "pvMove", _wrap_pvMove}, + { "pvResize", _wrap_pvResize}, + { "pvHide", _wrap_pvHide}, + { "pvShow", _wrap_pvShow}, + { "pvSetParent", _wrap_pvSetParent}, + { "pvSetMultiSelection", _wrap_pvSetMultiSelection}, + { "pvSetEchoMode", _wrap_pvSetEchoMode}, + { "pvSetEditable", _wrap_pvSetEditable}, + { "pvSetEnabled", _wrap_pvSetEnabled}, + { "pvSetFocus", _wrap_pvSetFocus}, + { "pvTableSetEnabled", _wrap_pvTableSetEnabled}, + { "pvTableSetHeaderResizeEnabled", _wrap_pvTableSetHeaderResizeEnabled}, + { "pvSetSorting", _wrap_pvSetSorting}, + { "pvSetTabPosition", _wrap_pvSetTabPosition}, + { "pvEnableTabBar", _wrap_pvEnableTabBar}, + { "pvSetNumRows", _wrap_pvSetNumRows}, + { "pvSetNumCols", _wrap_pvSetNumCols}, + { "pvInsertRows", _wrap_pvInsertRows}, + { "pvInsertColumns", _wrap_pvInsertColumns}, + { "pvRemoveRow", _wrap_pvRemoveRow}, + { "pvRemoveColumn", _wrap_pvRemoveColumn}, + { "pvSetCurrentItem", _wrap_pvSetCurrentItem}, + { "pvSetTimeEditDisplay", _wrap_pvSetTimeEditDisplay}, + { "pvListViewEnsureVisible", _wrap_pvListViewEnsureVisible}, + { "pvListViewSetOpen", _wrap_pvListViewSetOpen}, + { "pvListViewSetHidden", _wrap_pvListViewSetHidden}, + { "pvListViewSetStandardPopupMenu", _wrap_pvListViewSetStandardPopupMenu}, + { "pvSetStyle", _wrap_pvSetStyle}, + { "pvSetMovie", _wrap_pvSetMovie}, + { "pvMovieControl", _wrap_pvMovieControl}, + { "pvMovieSpeed", _wrap_pvMovieSpeed}, + { "pvAddTabIcon", _wrap_pvAddTabIcon}, + { "pvSetCellWidget", _wrap_pvSetCellWidget}, + { "pvSetContentsMargins", _wrap_pvSetContentsMargins}, + { "pvSetSpacing", _wrap_pvSetSpacing}, + { "pvVtkTcl", _wrap_pvVtkTcl}, + { "pvVtkTclPrintf", _wrap_pvVtkTclPrintf}, + { "pvVtkTclScript", _wrap_pvVtkTclScript}, + { "pvHyperlink", _wrap_pvHyperlink}, + { "pvSendUserEvent", _wrap_pvSendUserEvent}, + { "pvWriteFile", _wrap_pvWriteFile}, + { "pvCloseFile", _wrap_pvCloseFile}, + { "pvGetTextParam", _wrap_pvGetTextParam}, + { "pvGetText", _wrap_pvGetText}, + { "pvParseEventStruct", _wrap_pvParseEventStruct}, + { "pvParseEvent", _wrap_pvParseEvent}, + { "pvCopyToClipboard", _wrap_pvCopyToClipboard}, + { "pvPrint", _wrap_pvPrint}, + { "pvSave", _wrap_pvSave}, + { "pvSaveAsBmp", _wrap_pvSaveAsBmp}, + { "pvHtmlOrSvgDump", _wrap_pvHtmlOrSvgDump}, + { "pvRenderTreeDump", _wrap_pvRenderTreeDump}, + { "pvSendFile", _wrap_pvSendFile}, + { "pvDownloadFileAs", _wrap_pvDownloadFileAs}, + { "pvDownloadFile", _wrap_pvDownloadFile}, + { "pvSetMaxClientsPerIpAdr", _wrap_pvSetMaxClientsPerIpAdr}, + { "pvMaxClientsPerIpAdr", _wrap_pvMaxClientsPerIpAdr}, + { "pvSetMaxClients", _wrap_pvSetMaxClients}, + { "pvMaxClients", _wrap_pvMaxClients}, + { "pvGetAdrTableItem", _wrap_pvGetAdrTableItem}, + { "pvClearMessageQueue", _wrap_pvClearMessageQueue}, + { "pvtcpsend", _wrap_pvtcpsend}, + { "pvtcpsendstring", _wrap_pvtcpsendstring}, + { "pvtcpsend_binary", _wrap_pvtcpsend_binary}, + { "pvtcpreceive", _wrap_pvtcpreceive}, + { "pvtcpreceive_binary", _wrap_pvtcpreceive_binary}, + { "pvSendHttpChunks", _wrap_pvSendHttpChunks}, + { "pvSendHttpContentLength", _wrap_pvSendHttpContentLength}, + { "pvSendHttpResponseFile", _wrap_pvSendHttpResponseFile}, + { "pvSendHttpResponse", _wrap_pvSendHttpResponse}, + { "pvGlBegin", _wrap_pvGlBegin}, + { "pvSendOpenGL", _wrap_pvSendOpenGL}, + { "pvGlEnd", _wrap_pvGlEnd}, + { "pvFileDialog", _wrap_pvFileDialog}, + { "pvPopupMenu", _wrap_pvPopupMenu}, + { "pvMessageBox", _wrap_pvMessageBox}, + { "pvInputDialog", _wrap_pvInputDialog}, + { "pvRunModalDialog", _wrap_pvRunModalDialog}, + { "pvRunModalDialogScript", _wrap_pvRunModalDialogScript}, + { "pvTerminateModalDialog", _wrap_pvTerminateModalDialog}, + { "pvUpdateBaseWindow", _wrap_pvUpdateBaseWindow}, + { "pvUpdateBaseWindowOnOff", _wrap_pvUpdateBaseWindowOnOff}, + { "pvAddDockWidget", _wrap_pvAddDockWidget}, + { "pvDeleteDockWidget", _wrap_pvDeleteDockWidget}, + { "qpwSetCurveData", _wrap_qpwSetCurveData}, + { "qpwSetBufferedCurveData", _wrap_qpwSetBufferedCurveData}, + { "qpwReplot", _wrap_qpwReplot}, + { "qpwSetTitle", _wrap_qpwSetTitle}, + { "qpwSetCanvasBackground", _wrap_qpwSetCanvasBackground}, + { "qpwEnableOutline", _wrap_qpwEnableOutline}, + { "qpwSetOutlinePen", _wrap_qpwSetOutlinePen}, + { "qpwSetAutoLegend", _wrap_qpwSetAutoLegend}, + { "qpwEnableLegend", _wrap_qpwEnableLegend}, + { "qpwSetLegendPos", _wrap_qpwSetLegendPos}, + { "qpwSetLegendFrameStyle", _wrap_qpwSetLegendFrameStyle}, + { "qpwEnableGridXMin", _wrap_qpwEnableGridXMin}, + { "qpwSetGridMajPen", _wrap_qpwSetGridMajPen}, + { "qpwSetGridMinPen", _wrap_qpwSetGridMinPen}, + { "qpwEnableAxis", _wrap_qpwEnableAxis}, + { "qpwSetAxisTitle", _wrap_qpwSetAxisTitle}, + { "qpwSetAxisOptions", _wrap_qpwSetAxisOptions}, + { "qpwSetAxisMaxMajor", _wrap_qpwSetAxisMaxMajor}, + { "qpwSetAxisMaxMinor", _wrap_qpwSetAxisMaxMinor}, + { "qpwInsertCurve", _wrap_qpwInsertCurve}, + { "qpwRemoveCurve", _wrap_qpwRemoveCurve}, + { "qpwSetCurvePen", _wrap_qpwSetCurvePen}, + { "qpwSetCurveSymbol", _wrap_qpwSetCurveSymbol}, + { "qpwSetCurveYAxis", _wrap_qpwSetCurveYAxis}, + { "qpwInsertMarker", _wrap_qpwInsertMarker}, + { "qpwSetMarkerLineStyle", _wrap_qpwSetMarkerLineStyle}, + { "qpwSetMarkerPos", _wrap_qpwSetMarkerPos}, + { "qpwSetMarkerLabelAlign", _wrap_qpwSetMarkerLabelAlign}, + { "qpwSetMarkerPen", _wrap_qpwSetMarkerPen}, + { "qpwSetMarkerLabel", _wrap_qpwSetMarkerLabel}, + { "qpwSetMarkerFont", _wrap_qpwSetMarkerFont}, + { "qpwSetMarkerSymbol", _wrap_qpwSetMarkerSymbol}, + { "qpwInsertLineMarker", _wrap_qpwInsertLineMarker}, + { "qpwSetAxisScaleDraw", _wrap_qpwSetAxisScaleDraw}, + { "qpwSetAxisScale", _wrap_qpwSetAxisScale}, + { "pvSetZoomX", _wrap_pvSetZoomX}, + { "pvSetZoomY", _wrap_pvSetZoomY}, + { "gWriteFile", _wrap_gWriteFile}, + { "gCloseFile", _wrap_gCloseFile}, + { "gBeginDraw", _wrap_gBeginDraw}, + { "gBox", _wrap_gBox}, + { "gRect", _wrap_gRect}, + { "gEndDraw", _wrap_gEndDraw}, + { "gLineTo", _wrap_gLineTo}, + { "gBufferedLine", _wrap_gBufferedLine}, + { "gLine", _wrap_gLine}, + { "gMoveTo", _wrap_gMoveTo}, + { "gRightYAxis", _wrap_gRightYAxis}, + { "gSetColor", _wrap_gSetColor}, + { "gSetWidth", _wrap_gSetWidth}, + { "gSetStyle", _wrap_gSetStyle}, + { "gDrawArc", _wrap_gDrawArc}, + { "gDrawPie", _wrap_gDrawPie}, + { "gDrawPolygon", _wrap_gDrawPolygon}, + { "gSetFont", _wrap_gSetFont}, + { "gSetLinestyle", _wrap_gSetLinestyle}, + { "gText", _wrap_gText}, + { "gTextInAxis", _wrap_gTextInAxis}, + { "gSetFloatFormat", _wrap_gSetFloatFormat}, + { "gXAxis", _wrap_gXAxis}, + { "gYAxis", _wrap_gYAxis}, + { "gXGrid", _wrap_gXGrid}, + { "gYGrid", _wrap_gYGrid}, + { "gBoxWithText", _wrap_gBoxWithText}, + { "gComment", _wrap_gComment}, + { "gPlaySVG", _wrap_gPlaySVG}, + { "gSocketPlaySVG", _wrap_gSocketPlaySVG}, + { "gTranslate", _wrap_gTranslate}, + { "gRotate", _wrap_gRotate}, + { "gScale", _wrap_gScale}, + { "pvSetSelector", _wrap_pvSetSelector}, + { "pvPrintSvgOnPrinter", _wrap_pvPrintSvgOnPrinter}, + { "qwtScaleSetTitle", _wrap_qwtScaleSetTitle}, + { "qwtScaleSetTitleColor", _wrap_qwtScaleSetTitleColor}, + { "qwtScaleSetTitleFont", _wrap_qwtScaleSetTitleFont}, + { "qwtScaleSetTitleAlignment", _wrap_qwtScaleSetTitleAlignment}, + { "qwtScaleSetBorderDist", _wrap_qwtScaleSetBorderDist}, + { "qwtScaleSetBaselineDist", _wrap_qwtScaleSetBaselineDist}, + { "qwtScaleSetScaleDiv", _wrap_qwtScaleSetScaleDiv}, + { "qwtScaleSetLabelFormat", _wrap_qwtScaleSetLabelFormat}, + { "qwtScaleSetLabelAlignment", _wrap_qwtScaleSetLabelAlignment}, + { "qwtScaleSetLabelRotation", _wrap_qwtScaleSetLabelRotation}, + { "qwtScaleSetPosition", _wrap_qwtScaleSetPosition}, + { "qwtThermoSetScale", _wrap_qwtThermoSetScale}, + { "qwtThermoSetOrientation", _wrap_qwtThermoSetOrientation}, + { "qwtThermoSetBorderWidth", _wrap_qwtThermoSetBorderWidth}, + { "qwtThermoSetFillColor", _wrap_qwtThermoSetFillColor}, + { "qwtThermoSetAlarmColor", _wrap_qwtThermoSetAlarmColor}, + { "qwtThermoSetAlarmLevel", _wrap_qwtThermoSetAlarmLevel}, + { "qwtThermoSetAlarmEnabled", _wrap_qwtThermoSetAlarmEnabled}, + { "qwtThermoSetPipeWidth", _wrap_qwtThermoSetPipeWidth}, + { "qwtThermoSetRange", _wrap_qwtThermoSetRange}, + { "qwtThermoSetMargin", _wrap_qwtThermoSetMargin}, + { "qwtThermoSetValue", _wrap_qwtThermoSetValue}, + { "qwtKnobSetScale", _wrap_qwtKnobSetScale}, + { "qwtKnobSetMass", _wrap_qwtKnobSetMass}, + { "qwtKnobSetOrientation", _wrap_qwtKnobSetOrientation}, + { "qwtKnobSetReadOnly", _wrap_qwtKnobSetReadOnly}, + { "qwtKnobSetKnobWidth", _wrap_qwtKnobSetKnobWidth}, + { "qwtKnobSetTotalAngle", _wrap_qwtKnobSetTotalAngle}, + { "qwtKnobSetBorderWidth", _wrap_qwtKnobSetBorderWidth}, + { "qwtKnobSetSymbol", _wrap_qwtKnobSetSymbol}, + { "qwtKnobSetValue", _wrap_qwtKnobSetValue}, + { "qwtCounterSetStep", _wrap_qwtCounterSetStep}, + { "qwtCounterSetMinValue", _wrap_qwtCounterSetMinValue}, + { "qwtCounterSetMaxValue", _wrap_qwtCounterSetMaxValue}, + { "qwtCounterSetStepButton1", _wrap_qwtCounterSetStepButton1}, + { "qwtCounterSetStepButton2", _wrap_qwtCounterSetStepButton2}, + { "qwtCounterSetStepButton3", _wrap_qwtCounterSetStepButton3}, + { "qwtCounterSetNumButtons", _wrap_qwtCounterSetNumButtons}, + { "qwtCounterSetIncSteps", _wrap_qwtCounterSetIncSteps}, + { "qwtCounterSetValue", _wrap_qwtCounterSetValue}, + { "qwtWheelSetMass", _wrap_qwtWheelSetMass}, + { "qwtWheelSetOrientation", _wrap_qwtWheelSetOrientation}, + { "qwtWheelSetReadOnly", _wrap_qwtWheelSetReadOnly}, + { "qwtWheelSetTotalAngle", _wrap_qwtWheelSetTotalAngle}, + { "qwtWheelSetTickCnt", _wrap_qwtWheelSetTickCnt}, + { "qwtWheelSetViewAngle", _wrap_qwtWheelSetViewAngle}, + { "qwtWheelSetInternalBorder", _wrap_qwtWheelSetInternalBorder}, + { "qwtWheelSetWheelWidth", _wrap_qwtWheelSetWheelWidth}, + { "qwtWheelSetValue", _wrap_qwtWheelSetValue}, + { "qwtSliderSetScale", _wrap_qwtSliderSetScale}, + { "qwtSliderSetMass", _wrap_qwtSliderSetMass}, + { "qwtSliderSetOrientation", _wrap_qwtSliderSetOrientation}, + { "qwtSliderSetReadOnly", _wrap_qwtSliderSetReadOnly}, + { "qwtSliderSetBgStyle", _wrap_qwtSliderSetBgStyle}, + { "qwtSliderSetScalePos", _wrap_qwtSliderSetScalePos}, + { "qwtSliderSetThumbLength", _wrap_qwtSliderSetThumbLength}, + { "qwtSliderSetThumbWidth", _wrap_qwtSliderSetThumbWidth}, + { "qwtSliderSetBorderWidth", _wrap_qwtSliderSetBorderWidth}, + { "qwtSliderSetMargins", _wrap_qwtSliderSetMargins}, + { "qwtSliderSetValue", _wrap_qwtSliderSetValue}, + { "qwtCompassSetSimpleCompassRose", _wrap_qwtCompassSetSimpleCompassRose}, + { "qwtCompassSetRange", _wrap_qwtCompassSetRange}, + { "qwtCompassSetMass", _wrap_qwtCompassSetMass}, + { "qwtCompassSetReadOnly", _wrap_qwtCompassSetReadOnly}, + { "qwtCompassSetFrameShadow", _wrap_qwtCompassSetFrameShadow}, + { "qwtCompassShowBackground", _wrap_qwtCompassShowBackground}, + { "qwtCompassSetLineWidth", _wrap_qwtCompassSetLineWidth}, + { "qwtCompassSetMode", _wrap_qwtCompassSetMode}, + { "qwtCompassSetWrapping", _wrap_qwtCompassSetWrapping}, + { "qwtCompassSetScale", _wrap_qwtCompassSetScale}, + { "qwtCompassSetScaleArc", _wrap_qwtCompassSetScaleArc}, + { "qwtCompassSetOrigin", _wrap_qwtCompassSetOrigin}, + { "qwtCompassSetNeedle", _wrap_qwtCompassSetNeedle}, + { "qwtCompassSetValue", _wrap_qwtCompassSetValue}, + { "qwtDialSetRange", _wrap_qwtDialSetRange}, + { "qwtDialSetMass", _wrap_qwtDialSetMass}, + { "qwtDialSetReadOnly", _wrap_qwtDialSetReadOnly}, + { "qwtDialSetFrameShadow", _wrap_qwtDialSetFrameShadow}, + { "qwtDialShowBackground", _wrap_qwtDialShowBackground}, + { "qwtDialSetLineWidth", _wrap_qwtDialSetLineWidth}, + { "qwtDialSetMode", _wrap_qwtDialSetMode}, + { "qwtDialSetWrapping", _wrap_qwtDialSetWrapping}, + { "qwtDialSetScale", _wrap_qwtDialSetScale}, + { "qwtDialSetScaleArc", _wrap_qwtDialSetScaleArc}, + { "qwtDialSetOrigin", _wrap_qwtDialSetOrigin}, + { "qwtDialSetNeedle", _wrap_qwtDialSetNeedle}, + { "qwtDialSetValue", _wrap_qwtDialSetValue}, + { "qwtAnalogClockSetTime", _wrap_qwtAnalogClockSetTime}, + { "qwtAnalogClockSetMass", _wrap_qwtAnalogClockSetMass}, + { "qwtAnalogClockSetReadOnly", _wrap_qwtAnalogClockSetReadOnly}, + { "qwtAnalogClockSetFrameShadow", _wrap_qwtAnalogClockSetFrameShadow}, + { "qwtAnalogClockShowBackground", _wrap_qwtAnalogClockShowBackground}, + { "qwtAnalogClockSetLineWidth", _wrap_qwtAnalogClockSetLineWidth}, + { "qwtAnalogClockSetMode", _wrap_qwtAnalogClockSetMode}, + { "qwtAnalogClockSetWrapping", _wrap_qwtAnalogClockSetWrapping}, + { "qwtAnalogClockSetScale", _wrap_qwtAnalogClockSetScale}, + { "qwtAnalogClockSetScaleArc", _wrap_qwtAnalogClockSetScaleArc}, + { "qwtAnalogClockSetOrigin", _wrap_qwtAnalogClockSetOrigin}, + { "qwtAnalogClockSetNeedle", _wrap_qwtAnalogClockSetNeedle}, + { "qwtAnalogClockSetValue", _wrap_qwtAnalogClockSetValue}, + { "unit", _wrap_unit}, + { "textEventType", _wrap_textEventType}, + { "svgObjectName", _wrap_svgObjectName}, + { "getSvgBoundsOnElement", _wrap_getSvgBoundsOnElement}, + { "getSvgMatrixForElement", _wrap_getSvgMatrixForElement}, + { "getGeometry", _wrap_getGeometry}, + { "getParentWidgetId", _wrap_getParentWidgetId}, + { "getParam", _wrap_getParam}, + { "pvQImageScript", _wrap_pvQImageScript}, + { "new_int", _wrap_new_int}, + { "get_int", _wrap_get_int}, + { "delete_int", _wrap_delete_int}, + {0,0} +}; +static swig_lua_class* swig_SwigModule_classes[]= { +&_wrap_class_PARSE_EVENT_STRUCT, +&_wrap_class_PARAM, +&_wrap_class_IntegerArray, +&_wrap_class_FloatArray, +&_wrap_class_pvTime, +&_wrap_class_pvAddressTableItem, +&_wrap_class_pvAddressTable, +&_wrap_class_glFont, +&_wrap_class_pvWidgetIdManager, +&_wrap_class_qtDatabase, + 0 +}; +static swig_lua_namespace* swig_SwigModule_namespaces[] = { + 0 +}; + +static swig_lua_namespace swig_SwigModule = { + "pv", + swig_SwigModule_methods, + swig_SwigModule_attributes, + swig_SwigModule_constants, + swig_SwigModule_classes, + swig_SwigModule_namespaces +}; +#ifdef __cplusplus +} +#endif /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ @@ -30110,7 +31362,7 @@ static swig_type_info _swigt__p_PARSE_EVENT_STRUCT = {"_p_PARSE_EVENT_STRUCT", " static swig_type_info _swigt__p_QSqlDatabase = {"_p_QSqlDatabase", "QSqlDatabase *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_QSqlError = {"_p_QSqlError", "QSqlError *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_QSqlQuery = {"_p_QSqlQuery", "QSqlQuery *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p__PARAM_ = {"_p__PARAM_", "PARAM *|_PARAM_ *", 0, 0, (void*)&_wrap_class__PARAM_, 0}; +static swig_type_info _swigt__p__PARAM_ = {"_p__PARAM_", "PARAM *|_PARAM_ *", 0, 0, (void*)&_wrap_class_PARAM, 0}; static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p__PARAM___int = {"_p_f_p__PARAM___int", "int (*)(PARAM *)|int (*)(_PARAM_ *)", 0, 0, (void*)0, 0}; @@ -30226,7 +31478,7 @@ static swig_cast_info *swig_cast_initial[] = { * array with the correct data and linking the correct swig_cast_info * structures together. * - * The generated swig_type_info structures are assigned staticly to an initial + * The generated swig_type_info structures are assigned statically to an initial * array. We just loop through that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the @@ -30270,7 +31522,7 @@ SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; swig_module_info *module_head, *iter; - int found, init; + int init; /* check to see if the circular list has been setup, if not, set it up */ if (swig_module.next==0) { @@ -30289,22 +31541,18 @@ SWIG_InitializeModule(void *clientdata) { /* This is the first module loaded for this interpreter */ /* so set the swig module into the interpreter */ SWIG_SetModule(clientdata, &swig_module); - module_head = &swig_module; } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ - found=0; iter=module_head; do { if (iter==&swig_module) { - found=1; - break; + /* Our module is already in the list, so there's nothing more to do. */ + return; } iter=iter->next; } while (iter!= module_head); - /* if the is found in the list, then all is done and we may leave */ - if (found) return; - /* otherwise we must add out module into the list */ + /* otherwise we must add our module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; } @@ -30468,27 +31716,18 @@ SWIGEXPORT int SWIG_init(lua_State* L) /* default Lua action */ { #if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) /* valid for both Lua and eLua */ int i; + int globalRegister = 0; /* start with global table */ lua_pushglobaltable (L); - /* SWIG's internal initalisation */ + /* SWIG's internal initialisation */ SWIG_InitializeModule((void*)L); SWIG_PropagateClientData(); #endif -#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) +#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) || defined(SWIG_LUA_ELUA_EMULATE) /* add a global fn */ SWIG_Lua_add_function(L,"swig_type",SWIG_Lua_type); - SWIG_Lua_add_function(L,"swig_equals",SWIG_Lua_equal); - /* begin the module (its a table with the same name as the module) */ - SWIG_Lua_module_begin(L,SWIG_name); - /* add commands/functions */ - for (i = 0; swig_commands[i].name; i++){ - SWIG_Lua_module_add_function(L,swig_commands[i].name,swig_commands[i].func); - } - /* add variables */ - for (i = 0; swig_variables[i].name; i++){ - SWIG_Lua_module_add_variable(L,swig_variables[i].name,swig_variables[i].get,swig_variables[i].set); - } + SWIG_Lua_add_function(L,"swig_equals",SWIG_Lua_class_equal); #endif #if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) @@ -30498,17 +31737,34 @@ SWIGEXPORT int SWIG_init(lua_State* L) /* default Lua action */ SWIG_Lua_init_base_class(L,(swig_lua_class*)(swig_types[i]->clientdata)); } } - /* additional registration structs & classes in lua */ +#ifdef SWIG_LUA_MODULE_GLOBAL + globalRegister = 1; +#endif + + +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_LUA) + SWIG_Lua_namespace_register(L,&swig_SwigModule, globalRegister); +#endif + +#if (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUA) || (SWIG_LUA_TARGET == SWIG_LUA_FLAVOR_ELUAC) for (i = 0; swig_types[i]; i++){ if (swig_types[i]->clientdata){ - SWIG_Lua_class_register(L,(swig_lua_class*)(swig_types[i]->clientdata)); + SWIG_Lua_elua_class_register_instance(L,(swig_lua_class*)(swig_types[i]->clientdata)); } } #endif -#if ((SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUA) && (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC)) - /* constants */ - SWIG_Lua_InstallConstants(L,swig_constants); +#if defined(SWIG_LUA_ELUA_EMULATE) + lua_newtable(L); + SWIG_Lua_elua_emulate_register(L,swig_SwigModule.ns_methods); + SWIG_Lua_elua_emulate_register_clear(L); + if(globalRegister) { + lua_pushstring(L,swig_SwigModule.name); + lua_pushvalue(L,-2); + lua_rawset(L,-4); + } +#endif + #endif #if (SWIG_LUA_TARGET != SWIG_LUA_FLAVOR_ELUAC) diff --git a/language_bindings/language_binding_wrap_mt.cxx b/language_bindings/language_binding_wrap_mt.cxx deleted file mode 100644 index 3f6a5740..00000000 --- a/language_bindings/language_binding_wrap_mt.cxx +++ /dev/null @@ -1,40616 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.12 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -#define SWIGPYTHON -#define SWIG_PYTHON_DIRECTOR_NO_VTABLE - - -#ifdef __cplusplus -/* SwigValueWrapper is described in swig.swg */ -template class SwigValueWrapper { - struct SwigMovePointer { - T *ptr; - SwigMovePointer(T *p) : ptr(p) { } - ~SwigMovePointer() { delete ptr; } - SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } - } pointer; - SwigValueWrapper& operator=(const SwigValueWrapper& rhs); - SwigValueWrapper(const SwigValueWrapper& rhs); -public: - SwigValueWrapper() : pointer(0) { } - SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } - operator T&() const { return *pointer.ptr; } - T *operator&() { return pointer.ptr; } -}; - -template T SwigValueInit() { - return T(); -} -#endif - -/* ----------------------------------------------------------------------------- - * This section contains generic SWIG labels for method/variable - * declarations/attributes, and other compiler dependent labels. - * ----------------------------------------------------------------------------- */ - -/* template workaround for compilers that cannot correctly implement the C++ standard */ -#ifndef SWIGTEMPLATEDISAMBIGUATOR -# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) -# define SWIGTEMPLATEDISAMBIGUATOR template -# elif defined(__HP_aCC) -/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ -/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ -# define SWIGTEMPLATEDISAMBIGUATOR template -# else -# define SWIGTEMPLATEDISAMBIGUATOR -# endif -#endif - -/* inline attribute */ -#ifndef SWIGINLINE -# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) -# define SWIGINLINE inline -# else -# define SWIGINLINE -# endif -#endif - -/* attribute recognised by some compilers to avoid 'unused' warnings */ -#ifndef SWIGUNUSED -# if defined(__GNUC__) -# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) -# define SWIGUNUSED __attribute__ ((__unused__)) -# else -# define SWIGUNUSED -# endif -# elif defined(__ICC) -# define SWIGUNUSED __attribute__ ((__unused__)) -# else -# define SWIGUNUSED -# endif -#endif - -#ifndef SWIG_MSC_UNSUPPRESS_4505 -# if defined(_MSC_VER) -# pragma warning(disable : 4505) /* unreferenced local function has been removed */ -# endif -#endif - -#ifndef SWIGUNUSEDPARM -# ifdef __cplusplus -# define SWIGUNUSEDPARM(p) -# else -# define SWIGUNUSEDPARM(p) p SWIGUNUSED -# endif -#endif - -/* internal SWIG method */ -#ifndef SWIGINTERN -# define SWIGINTERN static SWIGUNUSED -#endif - -/* internal inline SWIG method */ -#ifndef SWIGINTERNINLINE -# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE -#endif - -/* exporting methods */ -#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) -# ifndef GCC_HASCLASSVISIBILITY -# define GCC_HASCLASSVISIBILITY -# endif -#endif - -#ifndef SWIGEXPORT -# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# if defined(STATIC_LINKED) -# define SWIGEXPORT -# else -# define SWIGEXPORT __declspec(dllexport) -# endif -# else -# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) -# define SWIGEXPORT __attribute__ ((visibility("default"))) -# else -# define SWIGEXPORT -# endif -# endif -#endif - -/* calling conventions for Windows */ -#ifndef SWIGSTDCALL -# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# define SWIGSTDCALL __stdcall -# else -# define SWIGSTDCALL -# endif -#endif - -/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ -#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) -# define _CRT_SECURE_NO_DEPRECATE -#endif - -/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ -#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) -# define _SCL_SECURE_NO_DEPRECATE -#endif - - - -#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG) -/* Use debug wrappers with the Python release dll */ -# undef _DEBUG -# include -# define _DEBUG -#else -# include -#endif - -/* ----------------------------------------------------------------------------- - * swigrun.swg - * - * This file contains generic C API SWIG runtime support for pointer - * type checking. - * ----------------------------------------------------------------------------- */ - -/* This should only be incremented when either the layout of swig_type_info changes, - or for whatever reason, the runtime changes incompatibly */ -#define SWIG_RUNTIME_VERSION "4" - -/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ -#ifdef SWIG_TYPE_TABLE -# define SWIG_QUOTE_STRING(x) #x -# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) -# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) -#else -# define SWIG_TYPE_TABLE_NAME -#endif - -/* - You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for - creating a static or dynamic library from the SWIG runtime code. - In 99.9% of the cases, SWIG just needs to declare them as 'static'. - - But only do this if strictly necessary, ie, if you have problems - with your compiler or suchlike. -*/ - -#ifndef SWIGRUNTIME -# define SWIGRUNTIME SWIGINTERN -#endif - -#ifndef SWIGRUNTIMEINLINE -# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE -#endif - -/* Generic buffer size */ -#ifndef SWIG_BUFFER_SIZE -# define SWIG_BUFFER_SIZE 1024 -#endif - -/* Flags for pointer conversions */ -#define SWIG_POINTER_DISOWN 0x1 -#define SWIG_CAST_NEW_MEMORY 0x2 - -/* Flags for new pointer objects */ -#define SWIG_POINTER_OWN 0x1 - - -/* - Flags/methods for returning states. - - The SWIG conversion methods, as ConvertPtr, return an integer - that tells if the conversion was successful or not. And if not, - an error code can be returned (see swigerrors.swg for the codes). - - Use the following macros/flags to set or process the returning - states. - - In old versions of SWIG, code such as the following was usually written: - - if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { - // success code - } else { - //fail code - } - - Now you can be more explicit: - - int res = SWIG_ConvertPtr(obj,vptr,ty.flags); - if (SWIG_IsOK(res)) { - // success code - } else { - // fail code - } - - which is the same really, but now you can also do - - Type *ptr; - int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); - if (SWIG_IsOK(res)) { - // success code - if (SWIG_IsNewObj(res) { - ... - delete *ptr; - } else { - ... - } - } else { - // fail code - } - - I.e., now SWIG_ConvertPtr can return new objects and you can - identify the case and take care of the deallocation. Of course that - also requires SWIG_ConvertPtr to return new result values, such as - - int SWIG_ConvertPtr(obj, ptr,...) { - if () { - if () { - *ptr = ; - return SWIG_NEWOBJ; - } else { - *ptr = ; - return SWIG_OLDOBJ; - } - } else { - return SWIG_BADOBJ; - } - } - - Of course, returning the plain '0(success)/-1(fail)' still works, but you can be - more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the - SWIG errors code. - - Finally, if the SWIG_CASTRANK_MODE is enabled, the result code - allows to return the 'cast rank', for example, if you have this - - int food(double) - int fooi(int); - - and you call - - food(1) // cast rank '1' (1 -> 1.0) - fooi(1) // cast rank '0' - - just use the SWIG_AddCast()/SWIG_CheckState() -*/ - -#define SWIG_OK (0) -#define SWIG_ERROR (-1) -#define SWIG_IsOK(r) (r >= 0) -#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) - -/* The CastRankLimit says how many bits are used for the cast rank */ -#define SWIG_CASTRANKLIMIT (1 << 8) -/* The NewMask denotes the object was created (using new/malloc) */ -#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) -/* The TmpMask is for in/out typemaps that use temporal objects */ -#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) -/* Simple returning values */ -#define SWIG_BADOBJ (SWIG_ERROR) -#define SWIG_OLDOBJ (SWIG_OK) -#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) -#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) -/* Check, add and del mask methods */ -#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) -#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) -#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) -#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) -#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) -#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) - -/* Cast-Rank Mode */ -#if defined(SWIG_CASTRANK_MODE) -# ifndef SWIG_TypeRank -# define SWIG_TypeRank unsigned long -# endif -# ifndef SWIG_MAXCASTRANK /* Default cast allowed */ -# define SWIG_MAXCASTRANK (2) -# endif -# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) -# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) -SWIGINTERNINLINE int SWIG_AddCast(int r) { - return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; -} -SWIGINTERNINLINE int SWIG_CheckState(int r) { - return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; -} -#else /* no cast-rank mode */ -# define SWIG_AddCast(r) (r) -# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) -#endif - - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -typedef void *(*swig_converter_func)(void *, int *); -typedef struct swig_type_info *(*swig_dycast_func)(void **); - -/* Structure to store information on one type */ -typedef struct swig_type_info { - const char *name; /* mangled name of this type */ - const char *str; /* human readable name of this type */ - swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ - struct swig_cast_info *cast; /* linked list of types that can cast into this type */ - void *clientdata; /* language specific type data */ - int owndata; /* flag if the structure owns the clientdata */ -} swig_type_info; - -/* Structure to store a type and conversion function used for casting */ -typedef struct swig_cast_info { - swig_type_info *type; /* pointer to type that is equivalent to this type */ - swig_converter_func converter; /* function to cast the void pointers */ - struct swig_cast_info *next; /* pointer to next cast in linked list */ - struct swig_cast_info *prev; /* pointer to the previous cast */ -} swig_cast_info; - -/* Structure used to store module information - * Each module generates one structure like this, and the runtime collects - * all of these structures and stores them in a circularly linked list.*/ -typedef struct swig_module_info { - swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ - size_t size; /* Number of types in this module */ - struct swig_module_info *next; /* Pointer to next element in circularly linked list */ - swig_type_info **type_initial; /* Array of initially generated type structures */ - swig_cast_info **cast_initial; /* Array of initially generated casting structures */ - void *clientdata; /* Language specific module data */ -} swig_module_info; - -/* - Compare two type names skipping the space characters, therefore - "char*" == "char *" and "Class" == "Class", etc. - - Return 0 when the two name types are equivalent, as in - strncmp, but skipping ' '. -*/ -SWIGRUNTIME int -SWIG_TypeNameComp(const char *f1, const char *l1, - const char *f2, const char *l2) { - for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { - while ((*f1 == ' ') && (f1 != l1)) ++f1; - while ((*f2 == ' ') && (f2 != l2)) ++f2; - if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; - } - return (int)((l1 - f1) - (l2 - f2)); -} - -/* - Check type equivalence in a name list like ||... - Return 0 if equal, -1 if nb < tb, 1 if nb > tb -*/ -SWIGRUNTIME int -SWIG_TypeCmp(const char *nb, const char *tb) { - int equiv = 1; - const char* te = tb + strlen(tb); - const char* ne = nb; - while (equiv != 0 && *ne) { - for (nb = ne; *ne; ++ne) { - if (*ne == '|') break; - } - equiv = SWIG_TypeNameComp(nb, ne, tb, te); - if (*ne) ++ne; - } - return equiv; -} - -/* - Check type equivalence in a name list like ||... - Return 0 if not equal, 1 if equal -*/ -SWIGRUNTIME int -SWIG_TypeEquiv(const char *nb, const char *tb) { - return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; -} - -/* - Check the typename -*/ -SWIGRUNTIME swig_cast_info * -SWIG_TypeCheck(const char *c, swig_type_info *ty) { - if (ty) { - swig_cast_info *iter = ty->cast; - while (iter) { - if (strcmp(iter->type->name, c) == 0) { - if (iter == ty->cast) - return iter; - /* Move iter to the top of the linked list */ - iter->prev->next = iter->next; - if (iter->next) - iter->next->prev = iter->prev; - iter->next = ty->cast; - iter->prev = 0; - if (ty->cast) ty->cast->prev = iter; - ty->cast = iter; - return iter; - } - iter = iter->next; - } - } - return 0; -} - -/* - Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison -*/ -SWIGRUNTIME swig_cast_info * -SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { - if (ty) { - swig_cast_info *iter = ty->cast; - while (iter) { - if (iter->type == from) { - if (iter == ty->cast) - return iter; - /* Move iter to the top of the linked list */ - iter->prev->next = iter->next; - if (iter->next) - iter->next->prev = iter->prev; - iter->next = ty->cast; - iter->prev = 0; - if (ty->cast) ty->cast->prev = iter; - ty->cast = iter; - return iter; - } - iter = iter->next; - } - } - return 0; -} - -/* - Cast a pointer up an inheritance hierarchy -*/ -SWIGRUNTIMEINLINE void * -SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { - return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); -} - -/* - Dynamic pointer casting. Down an inheritance hierarchy -*/ -SWIGRUNTIME swig_type_info * -SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { - swig_type_info *lastty = ty; - if (!ty || !ty->dcast) return ty; - while (ty && (ty->dcast)) { - ty = (*ty->dcast)(ptr); - if (ty) lastty = ty; - } - return lastty; -} - -/* - Return the name associated with this type -*/ -SWIGRUNTIMEINLINE const char * -SWIG_TypeName(const swig_type_info *ty) { - return ty->name; -} - -/* - Return the pretty name associated with this type, - that is an unmangled type name in a form presentable to the user. -*/ -SWIGRUNTIME const char * -SWIG_TypePrettyName(const swig_type_info *type) { - /* The "str" field contains the equivalent pretty names of the - type, separated by vertical-bar characters. We choose - to print the last name, as it is often (?) the most - specific. */ - if (!type) return NULL; - if (type->str != NULL) { - const char *last_name = type->str; - const char *s; - for (s = type->str; *s; s++) - if (*s == '|') last_name = s+1; - return last_name; - } - else - return type->name; -} - -/* - Set the clientdata field for a type -*/ -SWIGRUNTIME void -SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { - swig_cast_info *cast = ti->cast; - /* if (ti->clientdata == clientdata) return; */ - ti->clientdata = clientdata; - - while (cast) { - if (!cast->converter) { - swig_type_info *tc = cast->type; - if (!tc->clientdata) { - SWIG_TypeClientData(tc, clientdata); - } - } - cast = cast->next; - } -} -SWIGRUNTIME void -SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { - SWIG_TypeClientData(ti, clientdata); - ti->owndata = 1; -} - -/* - Search for a swig_type_info structure only by mangled name - Search is a O(log #types) - - We start searching at module start, and finish searching when start == end. - Note: if start == end at the beginning of the function, we go all the way around - the circular list. -*/ -SWIGRUNTIME swig_type_info * -SWIG_MangledTypeQueryModule(swig_module_info *start, - swig_module_info *end, - const char *name) { - swig_module_info *iter = start; - do { - if (iter->size) { - register size_t l = 0; - register size_t r = iter->size - 1; - do { - /* since l+r >= 0, we can (>> 1) instead (/ 2) */ - register size_t i = (l + r) >> 1; - const char *iname = iter->types[i]->name; - if (iname) { - register int compare = strcmp(name, iname); - if (compare == 0) { - return iter->types[i]; - } else if (compare < 0) { - if (i) { - r = i - 1; - } else { - break; - } - } else if (compare > 0) { - l = i + 1; - } - } else { - break; /* should never happen */ - } - } while (l <= r); - } - iter = iter->next; - } while (iter != end); - return 0; -} - -/* - Search for a swig_type_info structure for either a mangled name or a human readable name. - It first searches the mangled names of the types, which is a O(log #types) - If a type is not found it then searches the human readable names, which is O(#types). - - We start searching at module start, and finish searching when start == end. - Note: if start == end at the beginning of the function, we go all the way around - the circular list. -*/ -SWIGRUNTIME swig_type_info * -SWIG_TypeQueryModule(swig_module_info *start, - swig_module_info *end, - const char *name) { - /* STEP 1: Search the name field using binary search */ - swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); - if (ret) { - return ret; - } else { - /* STEP 2: If the type hasn't been found, do a complete search - of the str field (the human readable name) */ - swig_module_info *iter = start; - do { - register size_t i = 0; - for (; i < iter->size; ++i) { - if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) - return iter->types[i]; - } - iter = iter->next; - } while (iter != end); - } - - /* neither found a match */ - return 0; -} - -/* - Pack binary data into a string -*/ -SWIGRUNTIME char * -SWIG_PackData(char *c, void *ptr, size_t sz) { - static const char hex[17] = "0123456789abcdef"; - register const unsigned char *u = (unsigned char *) ptr; - register const unsigned char *eu = u + sz; - for (; u != eu; ++u) { - register unsigned char uu = *u; - *(c++) = hex[(uu & 0xf0) >> 4]; - *(c++) = hex[uu & 0xf]; - } - return c; -} - -/* - Unpack binary data from a string -*/ -SWIGRUNTIME const char * -SWIG_UnpackData(const char *c, void *ptr, size_t sz) { - register unsigned char *u = (unsigned char *) ptr; - register const unsigned char *eu = u + sz; - for (; u != eu; ++u) { - register char d = *(c++); - register unsigned char uu; - if ((d >= '0') && (d <= '9')) - uu = ((d - '0') << 4); - else if ((d >= 'a') && (d <= 'f')) - uu = ((d - ('a'-10)) << 4); - else - return (char *) 0; - d = *(c++); - if ((d >= '0') && (d <= '9')) - uu |= (d - '0'); - else if ((d >= 'a') && (d <= 'f')) - uu |= (d - ('a'-10)); - else - return (char *) 0; - *u = uu; - } - return c; -} - -/* - Pack 'void *' into a string buffer. -*/ -SWIGRUNTIME char * -SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { - char *r = buff; - if ((2*sizeof(void *) + 2) > bsz) return 0; - *(r++) = '_'; - r = SWIG_PackData(r,&ptr,sizeof(void *)); - if (strlen(name) + 1 > (bsz - (r - buff))) return 0; - strcpy(r,name); - return buff; -} - -SWIGRUNTIME const char * -SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { - if (*c != '_') { - if (strcmp(c,"NULL") == 0) { - *ptr = (void *) 0; - return name; - } else { - return 0; - } - } - return SWIG_UnpackData(++c,ptr,sizeof(void *)); -} - -SWIGRUNTIME char * -SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { - char *r = buff; - size_t lname = (name ? strlen(name) : 0); - if ((2*sz + 2 + lname) > bsz) return 0; - *(r++) = '_'; - r = SWIG_PackData(r,ptr,sz); - if (lname) { - strncpy(r,name,lname+1); - } else { - *r = 0; - } - return buff; -} - -SWIGRUNTIME const char * -SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { - if (*c != '_') { - if (strcmp(c,"NULL") == 0) { - memset(ptr,0,sz); - return name; - } else { - return 0; - } - } - return SWIG_UnpackData(++c,ptr,sz); -} - -#ifdef __cplusplus -} -#endif - -/* Errors in SWIG */ -#define SWIG_UnknownError -1 -#define SWIG_IOError -2 -#define SWIG_RuntimeError -3 -#define SWIG_IndexError -4 -#define SWIG_TypeError -5 -#define SWIG_DivisionByZero -6 -#define SWIG_OverflowError -7 -#define SWIG_SyntaxError -8 -#define SWIG_ValueError -9 -#define SWIG_SystemError -10 -#define SWIG_AttributeError -11 -#define SWIG_MemoryError -12 -#define SWIG_NullReferenceError -13 - - - -/* Compatibility macros for Python 3 */ -#if PY_VERSION_HEX >= 0x03000000 - -#define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type) -#define PyInt_Check(x) PyLong_Check(x) -#define PyInt_AsLong(x) PyLong_AsLong(x) -#define PyInt_FromLong(x) PyLong_FromLong(x) -#define PyInt_FromSize_t(x) PyLong_FromSize_t(x) -#define PyString_Check(name) PyBytes_Check(name) -#define PyString_FromString(x) PyUnicode_FromString(x) -#define PyString_Format(fmt, args) PyUnicode_Format(fmt, args) -#define PyString_AsString(str) PyBytes_AsString(str) -#define PyString_Size(str) PyBytes_Size(str) -#define PyString_InternFromString(key) PyUnicode_InternFromString(key) -#define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE -#define PyString_AS_STRING(x) PyUnicode_AS_STRING(x) -#define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x) - -#endif - -#ifndef Py_TYPE -# define Py_TYPE(op) ((op)->ob_type) -#endif - -/* SWIG APIs for compatibility of both Python 2 & 3 */ - -#if PY_VERSION_HEX >= 0x03000000 -# define SWIG_Python_str_FromFormat PyUnicode_FromFormat -#else -# define SWIG_Python_str_FromFormat PyString_FromFormat -#endif - - -/* Warning: This function will allocate a new string in Python 3, - * so please call SWIG_Python_str_DelForPy3(x) to free the space. - */ -SWIGINTERN char* -SWIG_Python_str_AsChar(PyObject *str) -{ -#if PY_VERSION_HEX >= 0x03000000 - char *cstr; - char *newstr; - Py_ssize_t len; - str = PyUnicode_AsUTF8String(str); - PyBytes_AsStringAndSize(str, &cstr, &len); - newstr = (char *) malloc(len+1); - memcpy(newstr, cstr, len+1); - Py_XDECREF(str); - return newstr; -#else - return PyString_AsString(str); -#endif -} - -#if PY_VERSION_HEX >= 0x03000000 -# define SWIG_Python_str_DelForPy3(x) free( (void*) (x) ) -#else -# define SWIG_Python_str_DelForPy3(x) -#endif - - -SWIGINTERN PyObject* -SWIG_Python_str_FromChar(const char *c) -{ -#if PY_VERSION_HEX >= 0x03000000 - return PyUnicode_FromString(c); -#else - return PyString_FromString(c); -#endif -} - -/* Add PyOS_snprintf for old Pythons */ -#if PY_VERSION_HEX < 0x02020000 -# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) -# define PyOS_snprintf _snprintf -# else -# define PyOS_snprintf snprintf -# endif -#endif - -/* A crude PyString_FromFormat implementation for old Pythons */ -#if PY_VERSION_HEX < 0x02020000 - -#ifndef SWIG_PYBUFFER_SIZE -# define SWIG_PYBUFFER_SIZE 1024 -#endif - -static PyObject * -PyString_FromFormat(const char *fmt, ...) { - va_list ap; - char buf[SWIG_PYBUFFER_SIZE * 2]; - int res; - va_start(ap, fmt); - res = vsnprintf(buf, sizeof(buf), fmt, ap); - va_end(ap); - return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); -} -#endif - -/* Add PyObject_Del for old Pythons */ -#if PY_VERSION_HEX < 0x01060000 -# define PyObject_Del(op) PyMem_DEL((op)) -#endif -#ifndef PyObject_DEL -# define PyObject_DEL PyObject_Del -#endif - -/* A crude PyExc_StopIteration exception for old Pythons */ -#if PY_VERSION_HEX < 0x02020000 -# ifndef PyExc_StopIteration -# define PyExc_StopIteration PyExc_RuntimeError -# endif -# ifndef PyObject_GenericGetAttr -# define PyObject_GenericGetAttr 0 -# endif -#endif - -/* Py_NotImplemented is defined in 2.1 and up. */ -#if PY_VERSION_HEX < 0x02010000 -# ifndef Py_NotImplemented -# define Py_NotImplemented PyExc_RuntimeError -# endif -#endif - -/* A crude PyString_AsStringAndSize implementation for old Pythons */ -#if PY_VERSION_HEX < 0x02010000 -# ifndef PyString_AsStringAndSize -# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} -# endif -#endif - -/* PySequence_Size for old Pythons */ -#if PY_VERSION_HEX < 0x02000000 -# ifndef PySequence_Size -# define PySequence_Size PySequence_Length -# endif -#endif - -/* PyBool_FromLong for old Pythons */ -#if PY_VERSION_HEX < 0x02030000 -static -PyObject *PyBool_FromLong(long ok) -{ - PyObject *result = ok ? Py_True : Py_False; - Py_INCREF(result); - return result; -} -#endif - -/* Py_ssize_t for old Pythons */ -/* This code is as recommended by: */ -/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */ -#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) -typedef int Py_ssize_t; -# define PY_SSIZE_T_MAX INT_MAX -# define PY_SSIZE_T_MIN INT_MIN -typedef inquiry lenfunc; -typedef intargfunc ssizeargfunc; -typedef intintargfunc ssizessizeargfunc; -typedef intobjargproc ssizeobjargproc; -typedef intintobjargproc ssizessizeobjargproc; -typedef getreadbufferproc readbufferproc; -typedef getwritebufferproc writebufferproc; -typedef getsegcountproc segcountproc; -typedef getcharbufferproc charbufferproc; -static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc)) -{ - long result = 0; - PyObject *i = PyNumber_Int(x); - if (i) { - result = PyInt_AsLong(i); - Py_DECREF(i); - } - return result; -} -#endif - -#if PY_VERSION_HEX < 0x02050000 -#define PyInt_FromSize_t(x) PyInt_FromLong((long)x) -#endif - -#if PY_VERSION_HEX < 0x02040000 -#define Py_VISIT(op) \ - do { \ - if (op) { \ - int vret = visit((op), arg); \ - if (vret) \ - return vret; \ - } \ - } while (0) -#endif - -#if PY_VERSION_HEX < 0x02030000 -typedef struct { - PyTypeObject type; - PyNumberMethods as_number; - PyMappingMethods as_mapping; - PySequenceMethods as_sequence; - PyBufferProcs as_buffer; - PyObject *name, *slots; -} PyHeapTypeObject; -#endif - -#if PY_VERSION_HEX < 0x02030000 -typedef destructor freefunc; -#endif - -#if ((PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION > 6) || \ - (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION > 0) || \ - (PY_MAJOR_VERSION > 3)) -# define SWIGPY_USE_CAPSULE -# define SWIGPY_CAPSULE_NAME ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME) -#endif - -#if PY_VERSION_HEX < 0x03020000 -#define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type) -#define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name) -#endif - -/* ----------------------------------------------------------------------------- - * error manipulation - * ----------------------------------------------------------------------------- */ - -SWIGRUNTIME PyObject* -SWIG_Python_ErrorType(int code) { - PyObject* type = 0; - switch(code) { - case SWIG_MemoryError: - type = PyExc_MemoryError; - break; - case SWIG_IOError: - type = PyExc_IOError; - break; - case SWIG_RuntimeError: - type = PyExc_RuntimeError; - break; - case SWIG_IndexError: - type = PyExc_IndexError; - break; - case SWIG_TypeError: - type = PyExc_TypeError; - break; - case SWIG_DivisionByZero: - type = PyExc_ZeroDivisionError; - break; - case SWIG_OverflowError: - type = PyExc_OverflowError; - break; - case SWIG_SyntaxError: - type = PyExc_SyntaxError; - break; - case SWIG_ValueError: - type = PyExc_ValueError; - break; - case SWIG_SystemError: - type = PyExc_SystemError; - break; - case SWIG_AttributeError: - type = PyExc_AttributeError; - break; - default: - type = PyExc_RuntimeError; - } - return type; -} - - -SWIGRUNTIME void -SWIG_Python_AddErrorMsg(const char* mesg) -{ - PyObject *type = 0; - PyObject *value = 0; - PyObject *traceback = 0; - - if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); - if (value) { - char *tmp; - PyObject *old_str = PyObject_Str(value); - PyErr_Clear(); - Py_XINCREF(type); - - PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); - SWIG_Python_str_DelForPy3(tmp); - Py_DECREF(old_str); - Py_DECREF(value); - } else { - PyErr_SetString(PyExc_RuntimeError, mesg); - } -} - -#if defined(SWIG_PYTHON_NO_THREADS) -# if defined(SWIG_PYTHON_THREADS) -# undef SWIG_PYTHON_THREADS -# endif -#endif -#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ -# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) -# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ -# define SWIG_PYTHON_USE_GIL -# endif -# endif -# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ -# ifndef SWIG_PYTHON_INITIALIZE_THREADS -# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() -# endif -# ifdef __cplusplus /* C++ code */ - class SWIG_Python_Thread_Block { - bool status; - PyGILState_STATE state; - public: - void end() { if (status) { PyGILState_Release(state); status = false;} } - SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} - ~SWIG_Python_Thread_Block() { end(); } - }; - class SWIG_Python_Thread_Allow { - bool status; - PyThreadState *save; - public: - void end() { if (status) { PyEval_RestoreThread(save); status = false; }} - SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} - ~SWIG_Python_Thread_Allow() { end(); } - }; -# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block -# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() -# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow -# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() -# else /* C code */ -# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() -# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) -# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() -# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) -# endif -# else /* Old thread way, not implemented, user must provide it */ -# if !defined(SWIG_PYTHON_INITIALIZE_THREADS) -# define SWIG_PYTHON_INITIALIZE_THREADS -# endif -# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) -# define SWIG_PYTHON_THREAD_BEGIN_BLOCK -# endif -# if !defined(SWIG_PYTHON_THREAD_END_BLOCK) -# define SWIG_PYTHON_THREAD_END_BLOCK -# endif -# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) -# define SWIG_PYTHON_THREAD_BEGIN_ALLOW -# endif -# if !defined(SWIG_PYTHON_THREAD_END_ALLOW) -# define SWIG_PYTHON_THREAD_END_ALLOW -# endif -# endif -#else /* No thread support */ -# define SWIG_PYTHON_INITIALIZE_THREADS -# define SWIG_PYTHON_THREAD_BEGIN_BLOCK -# define SWIG_PYTHON_THREAD_END_BLOCK -# define SWIG_PYTHON_THREAD_BEGIN_ALLOW -# define SWIG_PYTHON_THREAD_END_ALLOW -#endif - -/* ----------------------------------------------------------------------------- - * Python API portion that goes into the runtime - * ----------------------------------------------------------------------------- */ - -#ifdef __cplusplus -extern "C" { -#endif - -/* ----------------------------------------------------------------------------- - * Constant declarations - * ----------------------------------------------------------------------------- */ - -/* Constant Types */ -#define SWIG_PY_POINTER 4 -#define SWIG_PY_BINARY 5 - -/* Constant information structure */ -typedef struct swig_const_info { - int type; - char *name; - long lvalue; - double dvalue; - void *pvalue; - swig_type_info **ptype; -} swig_const_info; - - -/* ----------------------------------------------------------------------------- - * Wrapper of PyInstanceMethod_New() used in Python 3 - * It is exported to the generated module, used for -fastproxy - * ----------------------------------------------------------------------------- */ -#if PY_VERSION_HEX >= 0x03000000 -SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) -{ - return PyInstanceMethod_New(func); -} -#else -SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func)) -{ - return NULL; -} -#endif - -#ifdef __cplusplus -} -#endif - - -/* ----------------------------------------------------------------------------- - * pyrun.swg - * - * This file contains the runtime support for Python modules - * and includes code for managing global variables and pointer - * type checking. - * - * ----------------------------------------------------------------------------- */ - -/* Common SWIG API */ - -/* for raw pointers */ -#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) -#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) -#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) - -#ifdef SWIGPYTHON_BUILTIN -#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags) -#else -#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) -#endif - -#define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) - -#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) -#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) -#define swig_owntype int - -/* for raw packed data */ -#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) -#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) - -/* for class or struct pointers */ -#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) -#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) - -/* for C or C++ function pointers */ -#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) -#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(NULL, ptr, type, 0) - -/* for C++ member pointers, ie, member methods */ -#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) -#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) - - -/* Runtime API */ - -#define SWIG_GetModule(clientdata) SWIG_Python_GetModule(clientdata) -#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) -#define SWIG_NewClientData(obj) SwigPyClientData_New(obj) - -#define SWIG_SetErrorObj SWIG_Python_SetErrorObj -#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg -#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) -#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) -#define SWIG_fail goto fail - - -/* Runtime API implementation */ - -/* Error manipulation */ - -SWIGINTERN void -SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { - SWIG_PYTHON_THREAD_BEGIN_BLOCK; - PyErr_SetObject(errtype, obj); - Py_DECREF(obj); - SWIG_PYTHON_THREAD_END_BLOCK; -} - -SWIGINTERN void -SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { - SWIG_PYTHON_THREAD_BEGIN_BLOCK; - PyErr_SetString(errtype, msg); - SWIG_PYTHON_THREAD_END_BLOCK; -} - -#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) - -/* Set a constant value */ - -#if defined(SWIGPYTHON_BUILTIN) - -SWIGINTERN void -SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) { - PyObject *s = PyString_InternFromString(key); - PyList_Append(seq, s); - Py_DECREF(s); -} - -SWIGINTERN void -SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) { -#if PY_VERSION_HEX < 0x02030000 - PyDict_SetItemString(d, (char *)name, obj); -#else - PyDict_SetItemString(d, name, obj); -#endif - Py_DECREF(obj); - if (public_interface) - SwigPyBuiltin_AddPublicSymbol(public_interface, name); -} - -#else - -SWIGINTERN void -SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { -#if PY_VERSION_HEX < 0x02030000 - PyDict_SetItemString(d, (char *)name, obj); -#else - PyDict_SetItemString(d, name, obj); -#endif - Py_DECREF(obj); -} - -#endif - -/* Append a value to the result obj */ - -SWIGINTERN PyObject* -SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { -#if !defined(SWIG_PYTHON_OUTPUT_TUPLE) - if (!result) { - result = obj; - } else if (result == Py_None) { - Py_DECREF(result); - result = obj; - } else { - if (!PyList_Check(result)) { - PyObject *o2 = result; - result = PyList_New(1); - PyList_SetItem(result, 0, o2); - } - PyList_Append(result,obj); - Py_DECREF(obj); - } - return result; -#else - PyObject* o2; - PyObject* o3; - if (!result) { - result = obj; - } else if (result == Py_None) { - Py_DECREF(result); - result = obj; - } else { - if (!PyTuple_Check(result)) { - o2 = result; - result = PyTuple_New(1); - PyTuple_SET_ITEM(result, 0, o2); - } - o3 = PyTuple_New(1); - PyTuple_SET_ITEM(o3, 0, obj); - o2 = result; - result = PySequence_Concat(o2, o3); - Py_DECREF(o2); - Py_DECREF(o3); - } - return result; -#endif -} - -/* Unpack the argument tuple */ - -SWIGINTERN int -SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs) -{ - if (!args) { - if (!min && !max) { - return 1; - } else { - PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", - name, (min == max ? "" : "at least "), (int)min); - return 0; - } - } - if (!PyTuple_Check(args)) { - if (min <= 1 && max >= 1) { - register int i; - objs[0] = args; - for (i = 1; i < max; ++i) { - objs[i] = 0; - } - return 2; - } - PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); - return 0; - } else { - register Py_ssize_t l = PyTuple_GET_SIZE(args); - if (l < min) { - PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", - name, (min == max ? "" : "at least "), (int)min, (int)l); - return 0; - } else if (l > max) { - PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", - name, (min == max ? "" : "at most "), (int)max, (int)l); - return 0; - } else { - register int i; - for (i = 0; i < l; ++i) { - objs[i] = PyTuple_GET_ITEM(args, i); - } - for (; l < max; ++l) { - objs[l] = 0; - } - return i + 1; - } - } -} - -/* A functor is a function object with one single object argument */ -#if PY_VERSION_HEX >= 0x02020000 -#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); -#else -#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); -#endif - -/* - Helper for static pointer initialization for both C and C++ code, for example - static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); -*/ -#ifdef __cplusplus -#define SWIG_STATIC_POINTER(var) var -#else -#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var -#endif - -/* ----------------------------------------------------------------------------- - * Pointer declarations - * ----------------------------------------------------------------------------- */ - -/* Flags for new pointer objects */ -#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) -#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) - -#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) - -#define SWIG_BUILTIN_TP_INIT (SWIG_POINTER_OWN << 2) -#define SWIG_BUILTIN_INIT (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN) - -#ifdef __cplusplus -extern "C" { -#endif - -/* How to access Py_None */ -#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# ifndef SWIG_PYTHON_NO_BUILD_NONE -# ifndef SWIG_PYTHON_BUILD_NONE -# define SWIG_PYTHON_BUILD_NONE -# endif -# endif -#endif - -#ifdef SWIG_PYTHON_BUILD_NONE -# ifdef Py_None -# undef Py_None -# define Py_None SWIG_Py_None() -# endif -SWIGRUNTIMEINLINE PyObject * -_SWIG_Py_None(void) -{ - PyObject *none = Py_BuildValue((char*)""); - Py_DECREF(none); - return none; -} -SWIGRUNTIME PyObject * -SWIG_Py_None(void) -{ - static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); - return none; -} -#endif - -/* The python void return value */ - -SWIGRUNTIMEINLINE PyObject * -SWIG_Py_Void(void) -{ - PyObject *none = Py_None; - Py_INCREF(none); - return none; -} - -/* SwigPyClientData */ - -typedef struct { - PyObject *klass; - PyObject *newraw; - PyObject *newargs; - PyObject *destroy; - int delargs; - int implicitconv; - PyTypeObject *pytype; -} SwigPyClientData; - -SWIGRUNTIMEINLINE int -SWIG_Python_CheckImplicit(swig_type_info *ty) -{ - SwigPyClientData *data = (SwigPyClientData *)ty->clientdata; - return data ? data->implicitconv : 0; -} - -SWIGRUNTIMEINLINE PyObject * -SWIG_Python_ExceptionType(swig_type_info *desc) { - SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0; - PyObject *klass = data ? data->klass : 0; - return (klass ? klass : PyExc_RuntimeError); -} - - -SWIGRUNTIME SwigPyClientData * -SwigPyClientData_New(PyObject* obj) -{ - if (!obj) { - return 0; - } else { - SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData)); - /* the klass element */ - data->klass = obj; - Py_INCREF(data->klass); - /* the newraw method and newargs arguments used to create a new raw instance */ - if (PyClass_Check(obj)) { - data->newraw = 0; - data->newargs = obj; - Py_INCREF(obj); - } else { -#if (PY_VERSION_HEX < 0x02020000) - data->newraw = 0; -#else - data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); -#endif - if (data->newraw) { - Py_INCREF(data->newraw); - data->newargs = PyTuple_New(1); - PyTuple_SetItem(data->newargs, 0, obj); - } else { - data->newargs = obj; - } - Py_INCREF(data->newargs); - } - /* the destroy method, aka as the C++ delete method */ - data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); - if (PyErr_Occurred()) { - PyErr_Clear(); - data->destroy = 0; - } - if (data->destroy) { - int flags; - Py_INCREF(data->destroy); - flags = PyCFunction_GET_FLAGS(data->destroy); -#ifdef METH_O - data->delargs = !(flags & (METH_O)); -#else - data->delargs = 0; -#endif - } else { - data->delargs = 0; - } - data->implicitconv = 0; - data->pytype = 0; - return data; - } -} - -SWIGRUNTIME void -SwigPyClientData_Del(SwigPyClientData *data) { - Py_XDECREF(data->newraw); - Py_XDECREF(data->newargs); - Py_XDECREF(data->destroy); -} - -/* =============== SwigPyObject =====================*/ - -typedef struct { - PyObject_HEAD - void *ptr; - swig_type_info *ty; - int own; - PyObject *next; -#ifdef SWIGPYTHON_BUILTIN - PyObject *dict; -#endif -} SwigPyObject; - -SWIGRUNTIME PyObject * -SwigPyObject_long(SwigPyObject *v) -{ - return PyLong_FromVoidPtr(v->ptr); -} - -SWIGRUNTIME PyObject * -SwigPyObject_format(const char* fmt, SwigPyObject *v) -{ - PyObject *res = NULL; - PyObject *args = PyTuple_New(1); - if (args) { - if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) { - PyObject *ofmt = SWIG_Python_str_FromChar(fmt); - if (ofmt) { -#if PY_VERSION_HEX >= 0x03000000 - res = PyUnicode_Format(ofmt,args); -#else - res = PyString_Format(ofmt,args); -#endif - Py_DECREF(ofmt); - } - Py_DECREF(args); - } - } - return res; -} - -SWIGRUNTIME PyObject * -SwigPyObject_oct(SwigPyObject *v) -{ - return SwigPyObject_format("%o",v); -} - -SWIGRUNTIME PyObject * -SwigPyObject_hex(SwigPyObject *v) -{ - return SwigPyObject_format("%x",v); -} - -SWIGRUNTIME PyObject * -#ifdef METH_NOARGS -SwigPyObject_repr(SwigPyObject *v) -#else -SwigPyObject_repr(SwigPyObject *v, PyObject *args) -#endif -{ - const char *name = SWIG_TypePrettyName(v->ty); - PyObject *repr = SWIG_Python_str_FromFormat("", (name ? name : "unknown"), (void *)v); - if (v->next) { -# ifdef METH_NOARGS - PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next); -# else - PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args); -# endif -# if PY_VERSION_HEX >= 0x03000000 - PyObject *joined = PyUnicode_Concat(repr, nrep); - Py_DecRef(repr); - Py_DecRef(nrep); - repr = joined; -# else - PyString_ConcatAndDel(&repr,nrep); -# endif - } - return repr; -} - -SWIGRUNTIME int -SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w) -{ - void *i = v->ptr; - void *j = w->ptr; - return (i < j) ? -1 : ((i > j) ? 1 : 0); -} - -/* Added for Python 3.x, would it also be useful for Python 2.x? */ -SWIGRUNTIME PyObject* -SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op) -{ - PyObject* res; - if( op != Py_EQ && op != Py_NE ) { - Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; - } - res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0); - return res; -} - - -SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void); - -#ifdef SWIGPYTHON_BUILTIN -static swig_type_info *SwigPyObject_stype = 0; -SWIGRUNTIME PyTypeObject* -SwigPyObject_type(void) { - SwigPyClientData *cd; - assert(SwigPyObject_stype); - cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; - assert(cd); - assert(cd->pytype); - return cd->pytype; -} -#else -SWIGRUNTIME PyTypeObject* -SwigPyObject_type(void) { - static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce(); - return type; -} -#endif - -SWIGRUNTIMEINLINE int -SwigPyObject_Check(PyObject *op) { -#ifdef SWIGPYTHON_BUILTIN - PyTypeObject *target_tp = SwigPyObject_type(); - if (PyType_IsSubtype(op->ob_type, target_tp)) - return 1; - return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0); -#else - return (Py_TYPE(op) == SwigPyObject_type()) - || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0); -#endif -} - -SWIGRUNTIME PyObject * -SwigPyObject_New(void *ptr, swig_type_info *ty, int own); - -SWIGRUNTIME void -SwigPyObject_dealloc(PyObject *v) -{ - SwigPyObject *sobj = (SwigPyObject *) v; - PyObject *next = sobj->next; - if (sobj->own == SWIG_POINTER_OWN) { - swig_type_info *ty = sobj->ty; - SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; - PyObject *destroy = data ? data->destroy : 0; - if (destroy) { - /* destroy is always a VARARGS method */ - PyObject *res; - if (data->delargs) { - /* we need to create a temporary object to carry the destroy operation */ - PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); - res = SWIG_Python_CallFunctor(destroy, tmp); - Py_DECREF(tmp); - } else { - PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); - PyObject *mself = PyCFunction_GET_SELF(destroy); - res = ((*meth)(mself, v)); - } - Py_XDECREF(res); - } -#if !defined(SWIG_PYTHON_SILENT_MEMLEAK) - else { - const char *name = SWIG_TypePrettyName(ty); - printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown")); - } -#endif - } - Py_XDECREF(next); - PyObject_DEL(v); -} - -SWIGRUNTIME PyObject* -SwigPyObject_append(PyObject* v, PyObject* next) -{ - SwigPyObject *sobj = (SwigPyObject *) v; -#ifndef METH_O - PyObject *tmp = 0; - if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; - next = tmp; -#endif - if (!SwigPyObject_Check(next)) { - return NULL; - } - sobj->next = next; - Py_INCREF(next); - return SWIG_Py_Void(); -} - -SWIGRUNTIME PyObject* -#ifdef METH_NOARGS -SwigPyObject_next(PyObject* v) -#else -SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) -#endif -{ - SwigPyObject *sobj = (SwigPyObject *) v; - if (sobj->next) { - Py_INCREF(sobj->next); - return sobj->next; - } else { - return SWIG_Py_Void(); - } -} - -SWIGINTERN PyObject* -#ifdef METH_NOARGS -SwigPyObject_disown(PyObject *v) -#else -SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) -#endif -{ - SwigPyObject *sobj = (SwigPyObject *)v; - sobj->own = 0; - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject* -#ifdef METH_NOARGS -SwigPyObject_acquire(PyObject *v) -#else -SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) -#endif -{ - SwigPyObject *sobj = (SwigPyObject *)v; - sobj->own = SWIG_POINTER_OWN; - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject* -SwigPyObject_own(PyObject *v, PyObject *args) -{ - PyObject *val = 0; -#if (PY_VERSION_HEX < 0x02020000) - if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) -#elif (PY_VERSION_HEX < 0x02050000) - if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) -#else - if (!PyArg_UnpackTuple(args, "own", 0, 1, &val)) -#endif - { - return NULL; - } - else - { - SwigPyObject *sobj = (SwigPyObject *)v; - PyObject *obj = PyBool_FromLong(sobj->own); - if (val) { -#ifdef METH_NOARGS - if (PyObject_IsTrue(val)) { - SwigPyObject_acquire(v); - } else { - SwigPyObject_disown(v); - } -#else - if (PyObject_IsTrue(val)) { - SwigPyObject_acquire(v,args); - } else { - SwigPyObject_disown(v,args); - } -#endif - } - return obj; - } -} - -#ifdef METH_O -static PyMethodDef -swigobject_methods[] = { - {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, - {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"acquires ownership of the pointer"}, - {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, - {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O, (char *)"appends another 'this' object"}, - {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, - {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS, (char *)"returns object representation"}, - {0, 0, 0, 0} -}; -#else -static PyMethodDef -swigobject_methods[] = { - {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, - {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, - {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, - {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, - {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, - {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS, (char *)"returns object representation"}, - {0, 0, 0, 0} -}; -#endif - -#if PY_VERSION_HEX < 0x02020000 -SWIGINTERN PyObject * -SwigPyObject_getattr(SwigPyObject *sobj,char *name) -{ - return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); -} -#endif - -SWIGRUNTIME PyTypeObject* -SwigPyObject_TypeOnce(void) { - static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; - - static PyNumberMethods SwigPyObject_as_number = { - (binaryfunc)0, /*nb_add*/ - (binaryfunc)0, /*nb_subtract*/ - (binaryfunc)0, /*nb_multiply*/ - /* nb_divide removed in Python 3 */ -#if PY_VERSION_HEX < 0x03000000 - (binaryfunc)0, /*nb_divide*/ -#endif - (binaryfunc)0, /*nb_remainder*/ - (binaryfunc)0, /*nb_divmod*/ - (ternaryfunc)0,/*nb_power*/ - (unaryfunc)0, /*nb_negative*/ - (unaryfunc)0, /*nb_positive*/ - (unaryfunc)0, /*nb_absolute*/ - (inquiry)0, /*nb_nonzero*/ - 0, /*nb_invert*/ - 0, /*nb_lshift*/ - 0, /*nb_rshift*/ - 0, /*nb_and*/ - 0, /*nb_xor*/ - 0, /*nb_or*/ -#if PY_VERSION_HEX < 0x03000000 - 0, /*nb_coerce*/ -#endif - (unaryfunc)SwigPyObject_long, /*nb_int*/ -#if PY_VERSION_HEX < 0x03000000 - (unaryfunc)SwigPyObject_long, /*nb_long*/ -#else - 0, /*nb_reserved*/ -#endif - (unaryfunc)0, /*nb_float*/ -#if PY_VERSION_HEX < 0x03000000 - (unaryfunc)SwigPyObject_oct, /*nb_oct*/ - (unaryfunc)SwigPyObject_hex, /*nb_hex*/ -#endif -#if PY_VERSION_HEX >= 0x03000000 /* 3.0 */ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */ -#elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */ -#elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */ - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ -#elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */ - 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ -#endif - }; - - static PyTypeObject swigpyobject_type; - static int type_init = 0; - if (!type_init) { - const PyTypeObject tmp = { - /* PyObject header changed in Python 3 */ -#if PY_VERSION_HEX >= 0x03000000 - PyVarObject_HEAD_INIT(NULL, 0) -#else - PyObject_HEAD_INIT(NULL) - 0, /* ob_size */ -#endif - (char *)"SwigPyObject", /* tp_name */ - sizeof(SwigPyObject), /* tp_basicsize */ - 0, /* tp_itemsize */ - (destructor)SwigPyObject_dealloc, /* tp_dealloc */ - 0, /* tp_print */ -#if PY_VERSION_HEX < 0x02020000 - (getattrfunc)SwigPyObject_getattr, /* tp_getattr */ -#else - (getattrfunc)0, /* tp_getattr */ -#endif - (setattrfunc)0, /* tp_setattr */ -#if PY_VERSION_HEX >= 0x03000000 - 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */ -#else - (cmpfunc)SwigPyObject_compare, /* tp_compare */ -#endif - (reprfunc)SwigPyObject_repr, /* tp_repr */ - &SwigPyObject_as_number, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - (hashfunc)0, /* tp_hash */ - (ternaryfunc)0, /* tp_call */ - 0, /* tp_str */ - PyObject_GenericGetAttr, /* tp_getattro */ - 0, /* tp_setattro */ - 0, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT, /* tp_flags */ - swigobject_doc, /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */ - 0, /* tp_weaklistoffset */ -#if PY_VERSION_HEX >= 0x02020000 - 0, /* tp_iter */ - 0, /* tp_iternext */ - swigobject_methods, /* tp_methods */ - 0, /* tp_members */ - 0, /* tp_getset */ - 0, /* tp_base */ - 0, /* tp_dict */ - 0, /* tp_descr_get */ - 0, /* tp_descr_set */ - 0, /* tp_dictoffset */ - 0, /* tp_init */ - 0, /* tp_alloc */ - 0, /* tp_new */ - 0, /* tp_free */ - 0, /* tp_is_gc */ - 0, /* tp_bases */ - 0, /* tp_mro */ - 0, /* tp_cache */ - 0, /* tp_subclasses */ - 0, /* tp_weaklist */ -#endif -#if PY_VERSION_HEX >= 0x02030000 - 0, /* tp_del */ -#endif -#if PY_VERSION_HEX >= 0x02060000 - 0, /* tp_version */ -#endif -#ifdef COUNT_ALLOCS - 0,0,0,0 /* tp_alloc -> tp_next */ -#endif - }; - swigpyobject_type = tmp; - type_init = 1; -#if PY_VERSION_HEX < 0x02020000 - swigpyobject_type.ob_type = &PyType_Type; -#else - if (PyType_Ready(&swigpyobject_type) < 0) - return NULL; -#endif - } - return &swigpyobject_type; -} - -SWIGRUNTIME PyObject * -SwigPyObject_New(void *ptr, swig_type_info *ty, int own) -{ - SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type()); - if (sobj) { - sobj->ptr = ptr; - sobj->ty = ty; - sobj->own = own; - sobj->next = 0; - } - return (PyObject *)sobj; -} - -/* ----------------------------------------------------------------------------- - * Implements a simple Swig Packed type, and use it instead of string - * ----------------------------------------------------------------------------- */ - -typedef struct { - PyObject_HEAD - void *pack; - swig_type_info *ty; - size_t size; -} SwigPyPacked; - -SWIGRUNTIME int -SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) -{ - char result[SWIG_BUFFER_SIZE]; - fputs("pack, v->size, 0, sizeof(result))) { - fputs("at ", fp); - fputs(result, fp); - } - fputs(v->ty->name,fp); - fputs(">", fp); - return 0; -} - -SWIGRUNTIME PyObject * -SwigPyPacked_repr(SwigPyPacked *v) -{ - char result[SWIG_BUFFER_SIZE]; - if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { - return SWIG_Python_str_FromFormat("", result, v->ty->name); - } else { - return SWIG_Python_str_FromFormat("", v->ty->name); - } -} - -SWIGRUNTIME PyObject * -SwigPyPacked_str(SwigPyPacked *v) -{ - char result[SWIG_BUFFER_SIZE]; - if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ - return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name); - } else { - return SWIG_Python_str_FromChar(v->ty->name); - } -} - -SWIGRUNTIME int -SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w) -{ - size_t i = v->size; - size_t j = w->size; - int s = (i < j) ? -1 : ((i > j) ? 1 : 0); - return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); -} - -SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void); - -SWIGRUNTIME PyTypeObject* -SwigPyPacked_type(void) { - static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce(); - return type; -} - -SWIGRUNTIMEINLINE int -SwigPyPacked_Check(PyObject *op) { - return ((op)->ob_type == SwigPyPacked_TypeOnce()) - || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0); -} - -SWIGRUNTIME void -SwigPyPacked_dealloc(PyObject *v) -{ - if (SwigPyPacked_Check(v)) { - SwigPyPacked *sobj = (SwigPyPacked *) v; - free(sobj->pack); - } - PyObject_DEL(v); -} - -SWIGRUNTIME PyTypeObject* -SwigPyPacked_TypeOnce(void) { - static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; - static PyTypeObject swigpypacked_type; - static int type_init = 0; - if (!type_init) { - const PyTypeObject tmp = { - /* PyObject header changed in Python 3 */ -#if PY_VERSION_HEX>=0x03000000 - PyVarObject_HEAD_INIT(NULL, 0) -#else - PyObject_HEAD_INIT(NULL) - 0, /* ob_size */ -#endif - (char *)"SwigPyPacked", /* tp_name */ - sizeof(SwigPyPacked), /* tp_basicsize */ - 0, /* tp_itemsize */ - (destructor)SwigPyPacked_dealloc, /* tp_dealloc */ - (printfunc)SwigPyPacked_print, /* tp_print */ - (getattrfunc)0, /* tp_getattr */ - (setattrfunc)0, /* tp_setattr */ -#if PY_VERSION_HEX>=0x03000000 - 0, /* tp_reserved in 3.0.1 */ -#else - (cmpfunc)SwigPyPacked_compare, /* tp_compare */ -#endif - (reprfunc)SwigPyPacked_repr, /* tp_repr */ - 0, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - (hashfunc)0, /* tp_hash */ - (ternaryfunc)0, /* tp_call */ - (reprfunc)SwigPyPacked_str, /* tp_str */ - PyObject_GenericGetAttr, /* tp_getattro */ - 0, /* tp_setattro */ - 0, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT, /* tp_flags */ - swigpacked_doc, /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - 0, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ -#if PY_VERSION_HEX >= 0x02020000 - 0, /* tp_iter */ - 0, /* tp_iternext */ - 0, /* tp_methods */ - 0, /* tp_members */ - 0, /* tp_getset */ - 0, /* tp_base */ - 0, /* tp_dict */ - 0, /* tp_descr_get */ - 0, /* tp_descr_set */ - 0, /* tp_dictoffset */ - 0, /* tp_init */ - 0, /* tp_alloc */ - 0, /* tp_new */ - 0, /* tp_free */ - 0, /* tp_is_gc */ - 0, /* tp_bases */ - 0, /* tp_mro */ - 0, /* tp_cache */ - 0, /* tp_subclasses */ - 0, /* tp_weaklist */ -#endif -#if PY_VERSION_HEX >= 0x02030000 - 0, /* tp_del */ -#endif -#if PY_VERSION_HEX >= 0x02060000 - 0, /* tp_version */ -#endif -#ifdef COUNT_ALLOCS - 0,0,0,0 /* tp_alloc -> tp_next */ -#endif - }; - swigpypacked_type = tmp; - type_init = 1; -#if PY_VERSION_HEX < 0x02020000 - swigpypacked_type.ob_type = &PyType_Type; -#else - if (PyType_Ready(&swigpypacked_type) < 0) - return NULL; -#endif - } - return &swigpypacked_type; -} - -SWIGRUNTIME PyObject * -SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty) -{ - SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type()); - if (sobj) { - void *pack = malloc(size); - if (pack) { - memcpy(pack, ptr, size); - sobj->pack = pack; - sobj->ty = ty; - sobj->size = size; - } else { - PyObject_DEL((PyObject *) sobj); - sobj = 0; - } - } - return (PyObject *) sobj; -} - -SWIGRUNTIME swig_type_info * -SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size) -{ - if (SwigPyPacked_Check(obj)) { - SwigPyPacked *sobj = (SwigPyPacked *)obj; - if (sobj->size != size) return 0; - memcpy(ptr, sobj->pack, size); - return sobj->ty; - } else { - return 0; - } -} - -/* ----------------------------------------------------------------------------- - * pointers/data manipulation - * ----------------------------------------------------------------------------- */ - -SWIGRUNTIMEINLINE PyObject * -_SWIG_This(void) -{ - return SWIG_Python_str_FromChar("this"); -} - -static PyObject *swig_this = NULL; - -SWIGRUNTIME PyObject * -SWIG_This(void) -{ - if (swig_this == NULL) - swig_this = _SWIG_This(); - return swig_this; -} - -/* #define SWIG_PYTHON_SLOW_GETSET_THIS */ - -/* TODO: I don't know how to implement the fast getset in Python 3 right now */ -#if PY_VERSION_HEX>=0x03000000 -#define SWIG_PYTHON_SLOW_GETSET_THIS -#endif - -SWIGRUNTIME SwigPyObject * -SWIG_Python_GetSwigThis(PyObject *pyobj) -{ - PyObject *obj; - - if (SwigPyObject_Check(pyobj)) - return (SwigPyObject *) pyobj; - -#ifdef SWIGPYTHON_BUILTIN - (void)obj; -# ifdef PyWeakref_CheckProxy - if (PyWeakref_CheckProxy(pyobj)) { - pyobj = PyWeakref_GET_OBJECT(pyobj); - if (pyobj && SwigPyObject_Check(pyobj)) - return (SwigPyObject*) pyobj; - } -# endif - return NULL; -#else - - obj = 0; - -#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) - if (PyInstance_Check(pyobj)) { - obj = _PyInstance_Lookup(pyobj, SWIG_This()); - } else { - PyObject **dictptr = _PyObject_GetDictPtr(pyobj); - if (dictptr != NULL) { - PyObject *dict = *dictptr; - obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; - } else { -#ifdef PyWeakref_CheckProxy - if (PyWeakref_CheckProxy(pyobj)) { - PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); - return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; - } -#endif - obj = PyObject_GetAttr(pyobj,SWIG_This()); - if (obj) { - Py_DECREF(obj); - } else { - if (PyErr_Occurred()) PyErr_Clear(); - return 0; - } - } - } -#else - obj = PyObject_GetAttr(pyobj,SWIG_This()); - if (obj) { - Py_DECREF(obj); - } else { - if (PyErr_Occurred()) PyErr_Clear(); - return 0; - } -#endif - if (obj && !SwigPyObject_Check(obj)) { - /* a PyObject is called 'this', try to get the 'real this' - SwigPyObject from it */ - return SWIG_Python_GetSwigThis(obj); - } - return (SwigPyObject *)obj; -#endif -} - -/* Acquire a pointer value */ - -SWIGRUNTIME int -SWIG_Python_AcquirePtr(PyObject *obj, int own) { - if (own == SWIG_POINTER_OWN) { - SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj); - if (sobj) { - int oldown = sobj->own; - sobj->own = own; - return oldown; - } - } - return 0; -} - -/* Convert a pointer value */ - -SWIGRUNTIME int -SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { - int res; - SwigPyObject *sobj; - int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0; - - if (!obj) - return SWIG_ERROR; - if (obj == Py_None && !implicit_conv) { - if (ptr) - *ptr = 0; - return SWIG_OK; - } - - res = SWIG_ERROR; - - sobj = SWIG_Python_GetSwigThis(obj); - if (own) - *own = 0; - while (sobj) { - void *vptr = sobj->ptr; - if (ty) { - swig_type_info *to = sobj->ty; - if (to == ty) { - /* no type cast needed */ - if (ptr) *ptr = vptr; - break; - } else { - swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); - if (!tc) { - sobj = (SwigPyObject *)sobj->next; - } else { - if (ptr) { - int newmemory = 0; - *ptr = SWIG_TypeCast(tc,vptr,&newmemory); - if (newmemory == SWIG_CAST_NEW_MEMORY) { - assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */ - if (own) - *own = *own | SWIG_CAST_NEW_MEMORY; - } - } - break; - } - } - } else { - if (ptr) *ptr = vptr; - break; - } - } - if (sobj) { - if (own) - *own = *own | sobj->own; - if (flags & SWIG_POINTER_DISOWN) { - sobj->own = 0; - } - res = SWIG_OK; - } else { - if (implicit_conv) { - SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; - if (data && !data->implicitconv) { - PyObject *klass = data->klass; - if (klass) { - PyObject *impconv; - data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ - impconv = SWIG_Python_CallFunctor(klass, obj); - data->implicitconv = 0; - if (PyErr_Occurred()) { - PyErr_Clear(); - impconv = 0; - } - if (impconv) { - SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv); - if (iobj) { - void *vptr; - res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); - if (SWIG_IsOK(res)) { - if (ptr) { - *ptr = vptr; - /* transfer the ownership to 'ptr' */ - iobj->own = 0; - res = SWIG_AddCast(res); - res = SWIG_AddNewMask(res); - } else { - res = SWIG_AddCast(res); - } - } - } - Py_DECREF(impconv); - } - } - } - } - if (!SWIG_IsOK(res) && obj == Py_None) { - if (ptr) - *ptr = 0; - if (PyErr_Occurred()) - PyErr_Clear(); - res = SWIG_OK; - } - } - return res; -} - -/* Convert a function ptr value */ - -SWIGRUNTIME int -SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { - if (!PyCFunction_Check(obj)) { - return SWIG_ConvertPtr(obj, ptr, ty, 0); - } else { - void *vptr = 0; - - /* here we get the method pointer for callbacks */ - const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); - const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; - if (desc) - desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; - if (!desc) - return SWIG_ERROR; - if (ty) { - swig_cast_info *tc = SWIG_TypeCheck(desc,ty); - if (tc) { - int newmemory = 0; - *ptr = SWIG_TypeCast(tc,vptr,&newmemory); - assert(!newmemory); /* newmemory handling not yet implemented */ - } else { - return SWIG_ERROR; - } - } else { - *ptr = vptr; - } - return SWIG_OK; - } -} - -/* Convert a packed value value */ - -SWIGRUNTIME int -SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { - swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz); - if (!to) return SWIG_ERROR; - if (ty) { - if (to != ty) { - /* check type cast? */ - swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); - if (!tc) return SWIG_ERROR; - } - } - return SWIG_OK; -} - -/* ----------------------------------------------------------------------------- - * Create a new pointer object - * ----------------------------------------------------------------------------- */ - -/* - Create a new instance object, without calling __init__, and set the - 'this' attribute. -*/ - -SWIGRUNTIME PyObject* -SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this) -{ -#if (PY_VERSION_HEX >= 0x02020000) - PyObject *inst = 0; - PyObject *newraw = data->newraw; - if (newraw) { - inst = PyObject_Call(newraw, data->newargs, NULL); - if (inst) { -#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) - PyObject **dictptr = _PyObject_GetDictPtr(inst); - if (dictptr != NULL) { - PyObject *dict = *dictptr; - if (dict == NULL) { - dict = PyDict_New(); - *dictptr = dict; - PyDict_SetItem(dict, SWIG_This(), swig_this); - } - } -#else - PyObject *key = SWIG_This(); - PyObject_SetAttr(inst, key, swig_this); -#endif - } - } else { -#if PY_VERSION_HEX >= 0x03000000 - inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None, Py_None); - if (inst) { - PyObject_SetAttr(inst, SWIG_This(), swig_this); - Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; - } -#else - PyObject *dict = PyDict_New(); - if (dict) { - PyDict_SetItem(dict, SWIG_This(), swig_this); - inst = PyInstance_NewRaw(data->newargs, dict); - Py_DECREF(dict); - } -#endif - } - return inst; -#else -#if (PY_VERSION_HEX >= 0x02010000) - PyObject *inst = 0; - PyObject *dict = PyDict_New(); - if (dict) { - PyDict_SetItem(dict, SWIG_This(), swig_this); - inst = PyInstance_NewRaw(data->newargs, dict); - Py_DECREF(dict); - } - return (PyObject *) inst; -#else - PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); - if (inst == NULL) { - return NULL; - } - inst->in_class = (PyClassObject *)data->newargs; - Py_INCREF(inst->in_class); - inst->in_dict = PyDict_New(); - if (inst->in_dict == NULL) { - Py_DECREF(inst); - return NULL; - } -#ifdef Py_TPFLAGS_HAVE_WEAKREFS - inst->in_weakreflist = NULL; -#endif -#ifdef Py_TPFLAGS_GC - PyObject_GC_Init(inst); -#endif - PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); - return (PyObject *) inst; -#endif -#endif -} - -SWIGRUNTIME void -SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) -{ - PyObject *dict; -#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) - PyObject **dictptr = _PyObject_GetDictPtr(inst); - if (dictptr != NULL) { - dict = *dictptr; - if (dict == NULL) { - dict = PyDict_New(); - *dictptr = dict; - } - PyDict_SetItem(dict, SWIG_This(), swig_this); - return; - } -#endif - dict = PyObject_GetAttrString(inst, (char*)"__dict__"); - PyDict_SetItem(dict, SWIG_This(), swig_this); - Py_DECREF(dict); -} - - -SWIGINTERN PyObject * -SWIG_Python_InitShadowInstance(PyObject *args) { - PyObject *obj[2]; - if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) { - return NULL; - } else { - SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]); - if (sthis) { - SwigPyObject_append((PyObject*) sthis, obj[1]); - } else { - SWIG_Python_SetSwigThis(obj[0], obj[1]); - } - return SWIG_Py_Void(); - } -} - -/* Create a new pointer object */ - -SWIGRUNTIME PyObject * -SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) { - SwigPyClientData *clientdata; - PyObject * robj; - int own; - - if (!ptr) - return SWIG_Py_Void(); - - clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0; - own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; - if (clientdata && clientdata->pytype) { - SwigPyObject *newobj; - if (flags & SWIG_BUILTIN_TP_INIT) { - newobj = (SwigPyObject*) self; - if (newobj->ptr) { - PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0); - while (newobj->next) - newobj = (SwigPyObject *) newobj->next; - newobj->next = next_self; - newobj = (SwigPyObject *)next_self; - } - } else { - newobj = PyObject_New(SwigPyObject, clientdata->pytype); - } - if (newobj) { - newobj->ptr = ptr; - newobj->ty = type; - newobj->own = own; - newobj->next = 0; -#ifdef SWIGPYTHON_BUILTIN - newobj->dict = 0; -#endif - return (PyObject*) newobj; - } - return SWIG_Py_Void(); - } - - assert(!(flags & SWIG_BUILTIN_TP_INIT)); - - robj = SwigPyObject_New(ptr, type, own); - if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { - PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); - Py_DECREF(robj); - robj = inst; - } - return robj; -} - -/* Create a new packed object */ - -SWIGRUNTIMEINLINE PyObject * -SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { - return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); -} - -/* -----------------------------------------------------------------------------* - * Get type list - * -----------------------------------------------------------------------------*/ - -#ifdef SWIG_LINK_RUNTIME -void *SWIG_ReturnGlobalTypeList(void *); -#endif - -SWIGRUNTIME swig_module_info * -SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) { - static void *type_pointer = (void *)0; - /* first check if module already created */ - if (!type_pointer) { -#ifdef SWIG_LINK_RUNTIME - type_pointer = SWIG_ReturnGlobalTypeList((void *)0); -#else -# ifdef SWIGPY_USE_CAPSULE - type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0); -# else - type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, - (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); -# endif - if (PyErr_Occurred()) { - PyErr_Clear(); - type_pointer = (void *)0; - } -#endif - } - return (swig_module_info *) type_pointer; -} - -#if PY_MAJOR_VERSION < 2 -/* PyModule_AddObject function was introduced in Python 2.0. The following function - is copied out of Python/modsupport.c in python version 2.3.4 */ -SWIGINTERN int -PyModule_AddObject(PyObject *m, char *name, PyObject *o) -{ - PyObject *dict; - if (!PyModule_Check(m)) { - PyErr_SetString(PyExc_TypeError, - "PyModule_AddObject() needs module as first arg"); - return SWIG_ERROR; - } - if (!o) { - PyErr_SetString(PyExc_TypeError, - "PyModule_AddObject() needs non-NULL value"); - return SWIG_ERROR; - } - - dict = PyModule_GetDict(m); - if (dict == NULL) { - /* Internal error -- modules must have a dict! */ - PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", - PyModule_GetName(m)); - return SWIG_ERROR; - } - if (PyDict_SetItemString(dict, name, o)) - return SWIG_ERROR; - Py_DECREF(o); - return SWIG_OK; -} -#endif - -SWIGRUNTIME void -#ifdef SWIGPY_USE_CAPSULE -SWIG_Python_DestroyModule(PyObject *obj) -#else -SWIG_Python_DestroyModule(void *vptr) -#endif -{ -#ifdef SWIGPY_USE_CAPSULE - swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME); -#else - swig_module_info *swig_module = (swig_module_info *) vptr; -#endif - swig_type_info **types = swig_module->types; - size_t i; - for (i =0; i < swig_module->size; ++i) { - swig_type_info *ty = types[i]; - if (ty->owndata) { - SwigPyClientData *data = (SwigPyClientData *) ty->clientdata; - if (data) SwigPyClientData_Del(data); - } - } - Py_DECREF(SWIG_This()); - swig_this = NULL; -} - -SWIGRUNTIME void -SWIG_Python_SetModule(swig_module_info *swig_module) { -#if PY_VERSION_HEX >= 0x03000000 - /* Add a dummy module object into sys.modules */ - PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION); -#else - static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */ - PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table); -#endif -#ifdef SWIGPY_USE_CAPSULE - PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule); - if (pointer && module) { - PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer); - } else { - Py_XDECREF(pointer); - } -#else - PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); - if (pointer && module) { - PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); - } else { - Py_XDECREF(pointer); - } -#endif -} - -/* The python cached type query */ -SWIGRUNTIME PyObject * -SWIG_Python_TypeCache(void) { - static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); - return cache; -} - -SWIGRUNTIME swig_type_info * -SWIG_Python_TypeQuery(const char *type) -{ - PyObject *cache = SWIG_Python_TypeCache(); - PyObject *key = SWIG_Python_str_FromChar(type); - PyObject *obj = PyDict_GetItem(cache, key); - swig_type_info *descriptor; - if (obj) { -#ifdef SWIGPY_USE_CAPSULE - descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL); -#else - descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); -#endif - } else { - swig_module_info *swig_module = SWIG_GetModule(0); - descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); - if (descriptor) { -#ifdef SWIGPY_USE_CAPSULE - obj = PyCapsule_New((void*) descriptor, NULL, NULL); -#else - obj = PyCObject_FromVoidPtr(descriptor, NULL); -#endif - PyDict_SetItem(cache, key, obj); - Py_DECREF(obj); - } - } - Py_DECREF(key); - return descriptor; -} - -/* - For backward compatibility only -*/ -#define SWIG_POINTER_EXCEPTION 0 -#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) -#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) - -SWIGRUNTIME int -SWIG_Python_AddErrMesg(const char* mesg, int infront) -{ - if (PyErr_Occurred()) { - PyObject *type = 0; - PyObject *value = 0; - PyObject *traceback = 0; - PyErr_Fetch(&type, &value, &traceback); - if (value) { - char *tmp; - PyObject *old_str = PyObject_Str(value); - Py_XINCREF(type); - PyErr_Clear(); - if (infront) { - PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str)); - } else { - PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); - } - SWIG_Python_str_DelForPy3(tmp); - Py_DECREF(old_str); - } - return 1; - } else { - return 0; - } -} - -SWIGRUNTIME int -SWIG_Python_ArgFail(int argnum) -{ - if (PyErr_Occurred()) { - /* add information about failing argument */ - char mesg[256]; - PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); - return SWIG_Python_AddErrMesg(mesg, 1); - } else { - return 0; - } -} - -SWIGRUNTIMEINLINE const char * -SwigPyObject_GetDesc(PyObject *self) -{ - SwigPyObject *v = (SwigPyObject *)self; - swig_type_info *ty = v ? v->ty : 0; - return ty ? ty->str : ""; -} - -SWIGRUNTIME void -SWIG_Python_TypeError(const char *type, PyObject *obj) -{ - if (type) { -#if defined(SWIG_COBJECT_TYPES) - if (obj && SwigPyObject_Check(obj)) { - const char *otype = (const char *) SwigPyObject_GetDesc(obj); - if (otype) { - PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received", - type, otype); - return; - } - } else -#endif - { - const char *otype = (obj ? obj->ob_type->tp_name : 0); - if (otype) { - PyObject *str = PyObject_Str(obj); - const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0; - if (cstr) { - PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", - type, otype, cstr); - SWIG_Python_str_DelForPy3(cstr); - } else { - PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", - type, otype); - } - Py_XDECREF(str); - return; - } - } - PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); - } else { - PyErr_Format(PyExc_TypeError, "unexpected type is received"); - } -} - - -/* Convert a pointer value, signal an exception on a type mismatch */ -SWIGRUNTIME void * -SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) { - void *result; - if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { - PyErr_Clear(); -#if SWIG_POINTER_EXCEPTION - if (flags) { - SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); - SWIG_Python_ArgFail(argnum); - } -#endif - } - return result; -} - -#ifdef SWIGPYTHON_BUILTIN -SWIGRUNTIME int -SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { - PyTypeObject *tp = obj->ob_type; - PyObject *descr; - PyObject *encoded_name; - descrsetfunc f; - int res = -1; - -# ifdef Py_USING_UNICODE - if (PyString_Check(name)) { - name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL); - if (!name) - return -1; - } else if (!PyUnicode_Check(name)) -# else - if (!PyString_Check(name)) -# endif - { - PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name); - return -1; - } else { - Py_INCREF(name); - } - - if (!tp->tp_dict) { - if (PyType_Ready(tp) < 0) - goto done; - } - - descr = _PyType_Lookup(tp, name); - f = NULL; - if (descr != NULL) - f = descr->ob_type->tp_descr_set; - if (!f) { - if (PyString_Check(name)) { - encoded_name = name; - Py_INCREF(name); - } else { - encoded_name = PyUnicode_AsUTF8String(name); - } - PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name)); - Py_DECREF(encoded_name); - } else { - res = f(descr, obj, value); - } - - done: - Py_DECREF(name); - return res; -} -#endif - - -#ifdef __cplusplus -} -#endif - - - -#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) - -#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else - - - -/* -------- TYPES TABLE (BEGIN) -------- */ - -#define SWIGTYPE_p_FILE swig_types[0] -#define SWIGTYPE_p_FloatArray swig_types[1] -#define SWIGTYPE_p_GLuint swig_types[2] -#define SWIGTYPE_p_IntegerArray swig_types[3] -#define SWIGTYPE_p_PARSE_EVENT_STRUCT swig_types[4] -#define SWIGTYPE_p_QSqlDatabase swig_types[5] -#define SWIGTYPE_p_QSqlError swig_types[6] -#define SWIGTYPE_p_QSqlQuery swig_types[7] -#define SWIGTYPE_p__PARAM_ swig_types[8] -#define SWIGTYPE_p_char swig_types[9] -#define SWIGTYPE_p_double swig_types[10] -#define SWIGTYPE_p_f_p__PARAM___int swig_types[11] -#define SWIGTYPE_p_f_p__PARAM__p_void__int swig_types[12] -#define SWIGTYPE_p_f_p_void__int swig_types[13] -#define SWIGTYPE_p_float swig_types[14] -#define SWIGTYPE_p_glFont swig_types[15] -#define SWIGTYPE_p_int swig_types[16] -#define SWIGTYPE_p_p_char swig_types[17] -#define SWIGTYPE_p_pvAddressTable swig_types[18] -#define SWIGTYPE_p_pvAddressTableItem swig_types[19] -#define SWIGTYPE_p_pvTime swig_types[20] -#define SWIGTYPE_p_pvWidgetIdManager swig_types[21] -#define SWIGTYPE_p_qtDatabase swig_types[22] -#define SWIGTYPE_p_unsigned_char swig_types[23] -#define SWIGTYPE_p_void swig_types[24] -static swig_type_info *swig_types[26]; -static swig_module_info swig_module = {swig_types, 25, 0, 0, 0, 0}; -#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) -#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) - -/* -------- TYPES TABLE (END) -------- */ - -#if (PY_VERSION_HEX <= 0x02000000) -# if !defined(SWIG_PYTHON_CLASSIC) -# error "This python version requires swig to be run with the '-classic' option" -# endif -#endif - -/*----------------------------------------------- - @(target):= _pv.so - ------------------------------------------------*/ -#if PY_VERSION_HEX >= 0x03000000 -# define SWIG_init PyInit__pv - -#else -# define SWIG_init init_pv - -#endif -#define SWIG_name "_pv" - -#define SWIGVERSION 0x020012 -#define SWIG_VERSION SWIGVERSION - - -#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) -#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) - - -#include - - -namespace swig { - class SwigPtr_PyObject { - protected: - PyObject *_obj; - - public: - SwigPtr_PyObject() :_obj(0) - { - } - - SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj) - { - Py_XINCREF(_obj); - } - - SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) - { - if (initial_ref) { - Py_XINCREF(_obj); - } - } - - SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) - { - Py_XINCREF(item._obj); - Py_XDECREF(_obj); - _obj = item._obj; - return *this; - } - - ~SwigPtr_PyObject() - { - Py_XDECREF(_obj); - } - - operator PyObject *() const - { - return _obj; - } - - PyObject *operator->() const - { - return _obj; - } - }; -} - - -namespace swig { - struct SwigVar_PyObject : SwigPtr_PyObject { - SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { } - - SwigVar_PyObject & operator = (PyObject* obj) - { - Py_XDECREF(_obj); - _obj = obj; - return *this; - } - }; -} - - -/* Put headers and other declarations here */ -#include "../pvserver/processviewserver.h" -#include "sql/qtdatabase.h" -PARAM *getParam(unsigned long p); -int pvQImageScript(PARAM *p, int id, int parent, const char *imagename); -int *new_int(int ivalue); -int get_int(int *i); -void delete_int(int *i); - - -SWIGINTERN swig_type_info* -SWIG_pchar_descriptor(void) -{ - static int init = 0; - static swig_type_info* info = 0; - if (!init) { - info = SWIG_TypeQuery("_p_char"); - init = 1; - } - return info; -} - - -SWIGINTERNINLINE PyObject * -SWIG_FromCharPtrAndSize(const char* carray, size_t size) -{ - if (carray) { - if (size > INT_MAX) { - swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); - return pchar_descriptor ? - SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void(); - } else { -#if PY_VERSION_HEX >= 0x03000000 - return PyUnicode_FromStringAndSize(carray, static_cast< int >(size)); -#else - return PyString_FromStringAndSize(carray, static_cast< int >(size)); -#endif - } - } else { - return SWIG_Py_Void(); - } -} - - -SWIGINTERNINLINE PyObject * -SWIG_FromCharPtr(const char *cptr) -{ - return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); -} - - -SWIGINTERNINLINE PyObject* - SWIG_From_int (int value) -{ - return PyInt_FromLong((long) value); -} - - -#include -#if !defined(SWIG_NO_LLONG_MAX) -# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) -# define LLONG_MAX __LONG_LONG_MAX__ -# define LLONG_MIN (-LLONG_MAX - 1LL) -# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) -# endif -#endif - - -SWIGINTERN int -SWIG_AsVal_double (PyObject *obj, double *val) -{ - int res = SWIG_TypeError; - if (PyFloat_Check(obj)) { - if (val) *val = PyFloat_AsDouble(obj); - return SWIG_OK; - } else if (PyInt_Check(obj)) { - if (val) *val = PyInt_AsLong(obj); - return SWIG_OK; - } else if (PyLong_Check(obj)) { - double v = PyLong_AsDouble(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_OK; - } else { - PyErr_Clear(); - } - } -#ifdef SWIG_PYTHON_CAST_MODE - { - int dispatch = 0; - double d = PyFloat_AsDouble(obj); - if (!PyErr_Occurred()) { - if (val) *val = d; - return SWIG_AddCast(SWIG_OK); - } else { - PyErr_Clear(); - } - if (!dispatch) { - long v = PyLong_AsLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_AddCast(SWIG_AddCast(SWIG_OK)); - } else { - PyErr_Clear(); - } - } - } -#endif - return res; -} - - -#include - - -#include - - -SWIGINTERNINLINE int -SWIG_CanCastAsInteger(double *d, double min, double max) { - double x = *d; - if ((min <= x && x <= max)) { - double fx = floor(x); - double cx = ceil(x); - double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ - if ((errno == EDOM) || (errno == ERANGE)) { - errno = 0; - } else { - double summ, reps, diff; - if (rd < x) { - diff = x - rd; - } else if (rd > x) { - diff = rd - x; - } else { - return 1; - } - summ = rd + x; - reps = diff/summ; - if (reps < 8*DBL_EPSILON) { - *d = rd; - return 1; - } - } - } - return 0; -} - - -SWIGINTERN int -SWIG_AsVal_long (PyObject *obj, long* val) -{ - if (PyInt_Check(obj)) { - if (val) *val = PyInt_AsLong(obj); - return SWIG_OK; - } else if (PyLong_Check(obj)) { - long v = PyLong_AsLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_OK; - } else { - PyErr_Clear(); - } - } -#ifdef SWIG_PYTHON_CAST_MODE - { - int dispatch = 0; - long v = PyInt_AsLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_AddCast(SWIG_OK); - } else { - PyErr_Clear(); - } - if (!dispatch) { - double d; - int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); - if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) { - if (val) *val = (long)(d); - return res; - } - } - } -#endif - return SWIG_TypeError; -} - - -SWIGINTERN int -SWIG_AsVal_int (PyObject * obj, int *val) -{ - long v; - int res = SWIG_AsVal_long (obj, &v); - if (SWIG_IsOK(res)) { - if ((v < INT_MIN || v > INT_MAX)) { - return SWIG_OverflowError; - } else { - if (val) *val = static_cast< int >(v); - } - } - return res; -} - - -SWIGINTERN int -SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) -{ -#if PY_VERSION_HEX>=0x03000000 - if (PyUnicode_Check(obj)) -#else - if (PyString_Check(obj)) -#endif - { - char *cstr; Py_ssize_t len; -#if PY_VERSION_HEX>=0x03000000 - if (!alloc && cptr) { - /* We can't allow converting without allocation, since the internal - representation of string in Python 3 is UCS-2/UCS-4 but we require - a UTF-8 representation. - TODO(bhy) More detailed explanation */ - return SWIG_RuntimeError; - } - obj = PyUnicode_AsUTF8String(obj); - PyBytes_AsStringAndSize(obj, &cstr, &len); - if(alloc) *alloc = SWIG_NEWOBJ; -#else - PyString_AsStringAndSize(obj, &cstr, &len); -#endif - if (cptr) { - if (alloc) { - /* - In python the user should not be able to modify the inner - string representation. To warranty that, if you define - SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string - buffer is always returned. - - The default behavior is just to return the pointer value, - so, be careful. - */ -#if defined(SWIG_PYTHON_SAFE_CSTRINGS) - if (*alloc != SWIG_OLDOBJ) -#else - if (*alloc == SWIG_NEWOBJ) -#endif - { - *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1))); - *alloc = SWIG_NEWOBJ; - } - else { - *cptr = cstr; - *alloc = SWIG_OLDOBJ; - } - } else { - #if PY_VERSION_HEX>=0x03000000 - assert(0); /* Should never reach here in Python 3 */ - #endif - *cptr = SWIG_Python_str_AsChar(obj); - } - } - if (psize) *psize = len + 1; -#if PY_VERSION_HEX>=0x03000000 - Py_XDECREF(obj); -#endif - return SWIG_OK; - } else { - swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); - if (pchar_descriptor) { - void* vptr = 0; - if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) { - if (cptr) *cptr = (char *) vptr; - if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; - if (alloc) *alloc = SWIG_OLDOBJ; - return SWIG_OK; - } - } - } - return SWIG_TypeError; -} - - -SWIGINTERN int -SWIG_AsCharArray(PyObject * obj, char *val, size_t size) -{ - char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ; - int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc); - if (SWIG_IsOK(res)) { - if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize; - if (csize <= size) { - if (val) { - if (csize) memcpy(val, cptr, csize*sizeof(char)); - if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char)); - } - if (alloc == SWIG_NEWOBJ) { - delete[] cptr; - res = SWIG_DelNewMask(res); - } - return res; - } - if (alloc == SWIG_NEWOBJ) delete[] cptr; - } - return SWIG_TypeError; -} - - - - - - #define SWIG_From_long PyLong_FromLong - - -/* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */ -#ifndef SWIG_isfinite -# if defined(isfinite) -# define SWIG_isfinite(X) (isfinite(X)) -# elif defined(_MSC_VER) -# define SWIG_isfinite(X) (_finite(X)) -# elif defined(__sun) && defined(__SVR4) -# include -# define SWIG_isfinite(X) (finite(X)) -# endif -#endif - - -/* Accept infinite as a valid float value unless we are unable to check if a value is finite */ -#ifdef SWIG_isfinite -# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX) && SWIG_isfinite(X)) -#else -# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX)) -#endif - - -SWIGINTERN int -SWIG_AsVal_float (PyObject * obj, float *val) -{ - double v; - int res = SWIG_AsVal_double (obj, &v); - if (SWIG_IsOK(res)) { - if (SWIG_Float_Overflow_Check(v)) { - return SWIG_OverflowError; - } else { - if (val) *val = static_cast< float >(v); - } - } - return res; -} - - -SWIGINTERN int -SWIG_AsVal_char (PyObject * obj, char *val) -{ - int res = SWIG_AsCharArray(obj, val, 1); - if (!SWIG_IsOK(res)) { - long v; - res = SWIG_AddCast(SWIG_AsVal_long (obj, &v)); - if (SWIG_IsOK(res)) { - if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) { - if (val) *val = static_cast< char >(v); - } else { - res = SWIG_OverflowError; - } - } - } - return res; -} - - -SWIGINTERN int -SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) -{ -#if PY_VERSION_HEX < 0x03000000 - if (PyInt_Check(obj)) { - long v = PyInt_AsLong(obj); - if (v >= 0) { - if (val) *val = v; - return SWIG_OK; - } else { - return SWIG_OverflowError; - } - } else -#endif - if (PyLong_Check(obj)) { - unsigned long v = PyLong_AsUnsignedLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_OK; - } else { - PyErr_Clear(); -#if PY_VERSION_HEX >= 0x03000000 - { - long v = PyLong_AsLong(obj); - if (!PyErr_Occurred()) { - if (v < 0) { - return SWIG_OverflowError; - } - } else { - PyErr_Clear(); - } - } -#endif - } - } -#ifdef SWIG_PYTHON_CAST_MODE - { - int dispatch = 0; - unsigned long v = PyLong_AsUnsignedLong(obj); - if (!PyErr_Occurred()) { - if (val) *val = v; - return SWIG_AddCast(SWIG_OK); - } else { - PyErr_Clear(); - } - if (!dispatch) { - double d; - int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); - if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { - if (val) *val = (unsigned long)(d); - return res; - } - } - } -#endif - return SWIG_TypeError; -} - - -SWIGINTERN int -SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val) -{ - unsigned long v; - int res = SWIG_AsVal_unsigned_SS_long (obj, &v); - if (SWIG_IsOK(res)) { - if ((v > UCHAR_MAX)) { - return SWIG_OverflowError; - } else { - if (val) *val = static_cast< unsigned char >(v); - } - } - return res; -} - - - #define SWIG_From_double PyFloat_FromDouble - - -SWIGINTERNINLINE PyObject * -SWIG_From_float (float value) -{ - return SWIG_From_double (value); -} - -#ifdef __cplusplus -extern "C" { -#endif -SWIGINTERN int Swig_var_pvserver_version_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable pvserver_version is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_pvserver_version_get(void) { - PyObject *pyobj = 0; - - pyobj = SWIG_FromCharPtr(pvserver_version); - return pyobj; -} - - -SWIGINTERN PyObject *_wrap_PARSE_EVENT_STRUCT_event_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARSE_EVENT_STRUCT *arg1 = (PARSE_EVENT_STRUCT *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARSE_EVENT_STRUCT_event_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PARSE_EVENT_STRUCT, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARSE_EVENT_STRUCT_event_set" "', argument " "1"" of type '" "PARSE_EVENT_STRUCT *""'"); - } - arg1 = reinterpret_cast< PARSE_EVENT_STRUCT * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARSE_EVENT_STRUCT_event_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->event = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARSE_EVENT_STRUCT_event_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARSE_EVENT_STRUCT *arg1 = (PARSE_EVENT_STRUCT *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARSE_EVENT_STRUCT_event_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PARSE_EVENT_STRUCT, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARSE_EVENT_STRUCT_event_get" "', argument " "1"" of type '" "PARSE_EVENT_STRUCT *""'"); - } - arg1 = reinterpret_cast< PARSE_EVENT_STRUCT * >(argp1); - result = (int) ((arg1)->event); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARSE_EVENT_STRUCT_i_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARSE_EVENT_STRUCT *arg1 = (PARSE_EVENT_STRUCT *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARSE_EVENT_STRUCT_i_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PARSE_EVENT_STRUCT, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARSE_EVENT_STRUCT_i_set" "', argument " "1"" of type '" "PARSE_EVENT_STRUCT *""'"); - } - arg1 = reinterpret_cast< PARSE_EVENT_STRUCT * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARSE_EVENT_STRUCT_i_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->i = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARSE_EVENT_STRUCT_i_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARSE_EVENT_STRUCT *arg1 = (PARSE_EVENT_STRUCT *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARSE_EVENT_STRUCT_i_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PARSE_EVENT_STRUCT, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARSE_EVENT_STRUCT_i_get" "', argument " "1"" of type '" "PARSE_EVENT_STRUCT *""'"); - } - arg1 = reinterpret_cast< PARSE_EVENT_STRUCT * >(argp1); - result = (int) ((arg1)->i); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARSE_EVENT_STRUCT_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARSE_EVENT_STRUCT *arg1 = (PARSE_EVENT_STRUCT *) 0 ; - char *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - char temp2[1024] ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARSE_EVENT_STRUCT_text_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PARSE_EVENT_STRUCT, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARSE_EVENT_STRUCT_text_set" "', argument " "1"" of type '" "PARSE_EVENT_STRUCT *""'"); - } - arg1 = reinterpret_cast< PARSE_EVENT_STRUCT * >(argp1); - res2 = SWIG_AsCharArray(obj1, temp2, 1024); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARSE_EVENT_STRUCT_text_set" "', argument " "2"" of type '" "char [1024]""'"); - } - arg2 = reinterpret_cast< char * >(temp2); - if (arg2) memcpy(arg1->text,arg2,1024*sizeof(char)); - else memset(arg1->text,0,1024*sizeof(char)); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARSE_EVENT_STRUCT_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARSE_EVENT_STRUCT *arg1 = (PARSE_EVENT_STRUCT *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARSE_EVENT_STRUCT_text_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PARSE_EVENT_STRUCT, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARSE_EVENT_STRUCT_text_get" "', argument " "1"" of type '" "PARSE_EVENT_STRUCT *""'"); - } - arg1 = reinterpret_cast< PARSE_EVENT_STRUCT * >(argp1); - result = (char *)(char *) ((arg1)->text); - { - size_t size = 1024; - - while (size && (result[size - 1] == '\0')) --size; - - resultobj = SWIG_FromCharPtrAndSize(result, size); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_PARSE_EVENT_STRUCT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARSE_EVENT_STRUCT *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_PARSE_EVENT_STRUCT")) SWIG_fail; - result = (PARSE_EVENT_STRUCT *)new PARSE_EVENT_STRUCT(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PARSE_EVENT_STRUCT, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_PARSE_EVENT_STRUCT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARSE_EVENT_STRUCT *arg1 = (PARSE_EVENT_STRUCT *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_PARSE_EVENT_STRUCT",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_PARSE_EVENT_STRUCT, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PARSE_EVENT_STRUCT" "', argument " "1"" of type '" "PARSE_EVENT_STRUCT *""'"); - } - arg1 = reinterpret_cast< PARSE_EVENT_STRUCT * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *PARSE_EVENT_STRUCT_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_PARSE_EVENT_STRUCT, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_PARAM_s_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_s_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_s_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_s_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->s = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_s_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_s_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_s_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->s); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_os_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_os_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_os_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_os_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->os = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_os_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_os_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_os_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->os); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_port_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_port_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_port_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_port_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->port = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_port_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_port_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_port_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->port); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_language_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_language_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_language_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->language = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_language_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_language_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->language); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_convert_units_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_convert_units_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_convert_units_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_convert_units_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->convert_units = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_convert_units_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_convert_units_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_convert_units_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->convert_units); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_fp_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - FILE *arg2 = (FILE *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_fp_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_fp_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_FILE, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_fp_set" "', argument " "2"" of type '" "FILE *""'"); - } - arg2 = reinterpret_cast< FILE * >(argp2); - if (arg1) (arg1)->fp = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_fp_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - FILE *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_fp_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_fp_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (FILE *) ((arg1)->fp); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FILE, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_sleep_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_sleep_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_sleep_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_sleep_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->sleep = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_sleep_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_sleep_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_sleep_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->sleep); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_cleanup_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int (*arg2)(void *) = (int (*)(void *)) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_cleanup_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_cleanup_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - { - int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_void__int); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "PARAM_cleanup_set" "', argument " "2"" of type '" "int (*)(void *)""'"); - } - } - if (arg1) (arg1)->cleanup = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_cleanup_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int (*result)(void *) = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_cleanup_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_cleanup_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int (*)(void *)) ((arg1)->cleanup); - resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void__int); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_app_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_app_data_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_app_data_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_app_data_set" "', argument " "2"" of type '" "void *""'"); - } - if (arg1) (arg1)->app_data = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_app_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - void *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_app_data_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_app_data_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (void *) ((arg1)->app_data); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_user_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_user_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_user_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_user_set" "', argument " "2"" of type '" "void *""'"); - } - if (arg1) (arg1)->user = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_user_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - void *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_user_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_user_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (void *) ((arg1)->user); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_clipboard_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_clipboard_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_clipboard_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_clipboard_set" "', argument " "2"" of type '" "char *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - if (arg1->clipboard) delete[] arg1->clipboard; - if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->clipboard = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); - } else { - arg1->clipboard = 0; - } - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_clipboard_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_clipboard_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_clipboard_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (char *) ((arg1)->clipboard); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_clipboard_length_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - long arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - long val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_clipboard_length_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_clipboard_length_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_long(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_clipboard_length_set" "', argument " "2"" of type '" "long""'"); - } - arg2 = static_cast< long >(val2); - if (arg1) (arg1)->clipboard_length = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_clipboard_length_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - long result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_clipboard_length_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_clipboard_length_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (long) ((arg1)->clipboard_length); - resultobj = SWIG_From_long(static_cast< long >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_modal_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_modal_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_modal_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_modal_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->modal = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_modal_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_modal_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_modal_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->modal); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_readData_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int (*arg2)(void *) = (int (*)(void *)) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_readData_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_readData_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - { - int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_void__int); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "PARAM_readData_set" "', argument " "2"" of type '" "int (*)(void *)""'"); - } - } - if (arg1) (arg1)->readData = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_readData_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int (*result)(void *) = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_readData_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_readData_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int (*)(void *)) ((arg1)->readData); - resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_void__int); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_showData_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int (*arg2)(_PARAM_ *,void *) = (int (*)(_PARAM_ *,void *)) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_showData_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_showData_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - { - int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p__PARAM__p_void__int); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "PARAM_showData_set" "', argument " "2"" of type '" "int (*)(_PARAM_ *,void *)""'"); - } - } - if (arg1) (arg1)->showData = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_showData_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int (*result)(_PARAM_ *,void *) = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_showData_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_showData_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int (*)(_PARAM_ *,void *)) ((arg1)->showData); - resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p__PARAM__p_void__int); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_modal_d_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_modal_d_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_modal_d_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_modal_d_set" "', argument " "2"" of type '" "void *""'"); - } - if (arg1) (arg1)->modal_d = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_modal_d_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - void *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_modal_d_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_modal_d_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (void *) ((arg1)->modal_d); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_modalUserData_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *arg2 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_modalUserData_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_modalUserData_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_modalUserData_set" "', argument " "2"" of type '" "void *""'"); - } - if (arg1) (arg1)->modalUserData = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_modalUserData_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - void *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_modalUserData_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_modalUserData_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (void *) ((arg1)->modalUserData); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_parse_event_struct_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - PARSE_EVENT_STRUCT *arg2 = (PARSE_EVENT_STRUCT *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_parse_event_struct_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_parse_event_struct_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_PARSE_EVENT_STRUCT, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_parse_event_struct_set" "', argument " "2"" of type '" "PARSE_EVENT_STRUCT *""'"); - } - arg2 = reinterpret_cast< PARSE_EVENT_STRUCT * >(argp2); - if (arg1) (arg1)->parse_event_struct = *arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_parse_event_struct_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - PARSE_EVENT_STRUCT *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_parse_event_struct_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_parse_event_struct_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (PARSE_EVENT_STRUCT *)& ((arg1)->parse_event_struct); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PARSE_EVENT_STRUCT, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - float *arg2 = (float *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_x_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_x_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_x_set" "', argument " "2"" of type '" "float *""'"); - } - arg2 = reinterpret_cast< float * >(argp2); - if (arg1) (arg1)->x = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - float *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_x_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_x_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (float *) ((arg1)->x); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - float *arg2 = (float *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_y_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_y_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_y_set" "', argument " "2"" of type '" "float *""'"); - } - arg2 = reinterpret_cast< float * >(argp2); - if (arg1) (arg1)->y = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - float *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_y_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_y_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (float *) ((arg1)->y); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_nxy_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_nxy_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_nxy_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_nxy_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->nxy = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_nxy_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_nxy_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_nxy_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->nxy); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_url_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - char *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - char temp2[1024] ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_url_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_url_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_AsCharArray(obj1, temp2, 1024); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_url_set" "', argument " "2"" of type '" "char [1024]""'"); - } - arg2 = reinterpret_cast< char * >(temp2); - if (arg2) memcpy(arg1->url,arg2,1024*sizeof(char)); - else memset(arg1->url,0,1024*sizeof(char)); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_url_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_url_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_url_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (char *)(char *) ((arg1)->url); - { - size_t size = 1024; - - while (size && (result[size - 1] == '\0')) --size; - - resultobj = SWIG_FromCharPtrAndSize(result, size); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_initial_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - char *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - char temp2[1024] ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_initial_mask_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_initial_mask_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_AsCharArray(obj1, temp2, 1024); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_initial_mask_set" "', argument " "2"" of type '" "char [1024]""'"); - } - arg2 = reinterpret_cast< char * >(temp2); - if (arg2) memcpy(arg1->initial_mask,arg2,1024*sizeof(char)); - else memset(arg1->initial_mask,0,1024*sizeof(char)); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_initial_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_initial_mask_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_initial_mask_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (char *)(char *) ((arg1)->initial_mask); - { - size_t size = 1024; - - while (size && (result[size - 1] == '\0')) --size; - - resultobj = SWIG_FromCharPtrAndSize(result, size); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_file_prefix_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - char *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - char temp2[32] ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_file_prefix_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_file_prefix_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_AsCharArray(obj1, temp2, 32); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_file_prefix_set" "', argument " "2"" of type '" "char [32]""'"); - } - arg2 = reinterpret_cast< char * >(temp2); - if (arg2) memcpy(arg1->file_prefix,arg2,32*sizeof(char)); - else memset(arg1->file_prefix,0,32*sizeof(char)); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_file_prefix_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_file_prefix_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_file_prefix_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (char *)(char *) ((arg1)->file_prefix); - { - size_t size = 32; - - while (size && (result[size - 1] == '\0')) --size; - - resultobj = SWIG_FromCharPtrAndSize(result, size); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_free_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_free_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_free_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_free_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->free = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_free_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_free_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_free_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->free); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - char *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - char temp2[32] ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_version_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_version_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_AsCharArray(obj1, temp2, 32); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_version_set" "', argument " "2"" of type '" "char [32]""'"); - } - arg2 = reinterpret_cast< char * >(temp2); - if (arg2) memcpy(arg1->version,arg2,32*sizeof(char)); - else memset(arg1->version,0,32*sizeof(char)); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_version_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_version_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (char *)(char *) ((arg1)->version); - { - size_t size = 32; - - while (size && (result[size - 1] == '\0')) --size; - - resultobj = SWIG_FromCharPtrAndSize(result, size); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_pvserver_version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - char *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - char temp2[32] ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_pvserver_version_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_pvserver_version_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_AsCharArray(obj1, temp2, 32); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_pvserver_version_set" "', argument " "2"" of type '" "char [32]""'"); - } - arg2 = reinterpret_cast< char * >(temp2); - if (arg2) memcpy(arg1->pvserver_version,arg2,32*sizeof(char)); - else memset(arg1->pvserver_version,0,32*sizeof(char)); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_pvserver_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_pvserver_version_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_pvserver_version_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (char *)(char *) ((arg1)->pvserver_version); - { - size_t size = 32; - - while (size && (result[size - 1] == '\0')) --size; - - resultobj = SWIG_FromCharPtrAndSize(result, size); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_exit_on_bind_error_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_exit_on_bind_error_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_exit_on_bind_error_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_exit_on_bind_error_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->exit_on_bind_error = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_exit_on_bind_error_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_exit_on_bind_error_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_exit_on_bind_error_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->exit_on_bind_error); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_hello_counter_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_hello_counter_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_hello_counter_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_hello_counter_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->hello_counter = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_hello_counter_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_hello_counter_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_hello_counter_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->hello_counter); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_local_milliseconds_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_local_milliseconds_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_local_milliseconds_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_local_milliseconds_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->local_milliseconds = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_local_milliseconds_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_local_milliseconds_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_local_milliseconds_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->local_milliseconds); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_force_null_event_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_force_null_event_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_force_null_event_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_force_null_event_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->force_null_event = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_force_null_event_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_force_null_event_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_force_null_event_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->force_null_event); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_allow_pause_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_allow_pause_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_allow_pause_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_allow_pause_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->allow_pause = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_allow_pause_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_allow_pause_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_allow_pause_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->allow_pause); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_pause_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_pause_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_pause_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_pause_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->pause = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_pause_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_pause_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_pause_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->pause); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_my_pvlock_count_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_my_pvlock_count_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_my_pvlock_count_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_my_pvlock_count_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->my_pvlock_count = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_my_pvlock_count_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_my_pvlock_count_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_my_pvlock_count_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->my_pvlock_count); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_num_additional_widgets_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_num_additional_widgets_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_num_additional_widgets_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_num_additional_widgets_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->num_additional_widgets = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_num_additional_widgets_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_num_additional_widgets_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_num_additional_widgets_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->num_additional_widgets); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_mouse_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_mouse_x_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_mouse_x_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_mouse_x_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->mouse_x = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_mouse_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_mouse_x_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_mouse_x_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->mouse_x); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_mouse_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_mouse_y_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_mouse_y_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_mouse_y_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->mouse_y = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_mouse_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_mouse_y_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_mouse_y_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->mouse_y); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_mytext_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_mytext_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_mytext_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_mytext_set" "', argument " "2"" of type '" "char *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - if (arg1->mytext) delete[] arg1->mytext; - if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->mytext = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); - } else { - arg1->mytext = 0; - } - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_mytext_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_mytext_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_mytext_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (char *) ((arg1)->mytext); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_communication_plugin_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_communication_plugin_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_communication_plugin_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_communication_plugin_set" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(reinterpret_cast< const char * >(arg2))) + 1; - arg1->communication_plugin = (char const *)reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size))); - } else { - arg1->communication_plugin = 0; - } - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_communication_plugin_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_communication_plugin_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_communication_plugin_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (char *) ((arg1)->communication_plugin); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_use_communication_plugin_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_use_communication_plugin_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_use_communication_plugin_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_use_communication_plugin_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->use_communication_plugin = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_use_communication_plugin_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_use_communication_plugin_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_use_communication_plugin_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->use_communication_plugin); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_lang_section_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - char *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - char temp2[32] ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_lang_section_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_lang_section_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_AsCharArray(obj1, temp2, 32); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_lang_section_set" "', argument " "2"" of type '" "char [32]""'"); - } - arg2 = reinterpret_cast< char * >(temp2); - if (arg2) memcpy(arg1->lang_section,arg2,32*sizeof(char)); - else memset(arg1->lang_section,0,32*sizeof(char)); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_lang_section_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_lang_section_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_lang_section_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (char *)(char *) ((arg1)->lang_section); - { - size_t size = 32; - - while (size && (result[size - 1] == '\0')) --size; - - resultobj = SWIG_FromCharPtrAndSize(result, size); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_mytext2_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_mytext2_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_mytext2_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_mytext2_set" "', argument " "2"" of type '" "char *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - if (arg1->mytext2) delete[] arg1->mytext2; - if (arg2) { - size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1; - arg1->mytext2 = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size))); - } else { - arg1->mytext2 = 0; - } - resultobj = SWIG_Py_Void(); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_mytext2_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_mytext2_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_mytext2_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (char *) ((arg1)->mytext2); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_http_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_http_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_http_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_http_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->http = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_http_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_http_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_http_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->http); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_fptmp_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - FILE *arg2 = (FILE *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_fptmp_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_fptmp_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_FILE, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PARAM_fptmp_set" "', argument " "2"" of type '" "FILE *""'"); - } - arg2 = reinterpret_cast< FILE * >(argp2); - if (arg1) (arg1)->fptmp = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_fptmp_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - FILE *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_fptmp_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_fptmp_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (FILE *) ((arg1)->fptmp); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FILE, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_fhdltmp_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:PARAM_fhdltmp_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_fhdltmp_set" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PARAM_fhdltmp_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->fhdltmp = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_PARAM_fhdltmp_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:PARAM_fhdltmp_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PARAM_fhdltmp_get" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - result = (int) ((arg1)->fhdltmp); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_PARAM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_PARAM")) SWIG_fail; - result = (_PARAM_ *)new _PARAM_(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__PARAM_, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_PARAM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - _PARAM_ *arg1 = (_PARAM_ *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_PARAM",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PARAM" "', argument " "1"" of type '" "_PARAM_ *""'"); - } - arg1 = reinterpret_cast< _PARAM_ * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *PARAM_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p__PARAM_, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN int Swig_var_null_string_set(PyObject *) { - SWIG_Error(SWIG_AttributeError,"Variable null_string is read-only."); - return 1; -} - - -SWIGINTERN PyObject *Swig_var_null_string_get(void) { - PyObject *pyobj = 0; - - pyobj = SWIG_FromCharPtr(null_string); - return pyobj; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - int *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:IntegerArray_i_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i_set" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntegerArray_i_set" "', argument " "2"" of type '" "int [10]""'"); - } - arg2 = reinterpret_cast< int * >(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)10; ++ii) arg1->i[ii] = arg2[ii]; - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""i""' of type '""int [10]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:IntegerArray_i_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i_get" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - result = (int *)(int *) ((arg1)->i); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i0_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:IntegerArray_i0_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i0_set" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntegerArray_i0_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->i0 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i0_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:IntegerArray_i0_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i0_get" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - result = (int) ((arg1)->i0); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i1_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:IntegerArray_i1_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i1_set" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntegerArray_i1_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->i1 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i1_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:IntegerArray_i1_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i1_get" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - result = (int) ((arg1)->i1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i2_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:IntegerArray_i2_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i2_set" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntegerArray_i2_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->i2 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i2_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:IntegerArray_i2_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i2_get" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - result = (int) ((arg1)->i2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i3_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:IntegerArray_i3_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i3_set" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntegerArray_i3_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->i3 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i3_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:IntegerArray_i3_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i3_get" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - result = (int) ((arg1)->i3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i4_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:IntegerArray_i4_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i4_set" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntegerArray_i4_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->i4 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i4_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:IntegerArray_i4_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i4_get" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - result = (int) ((arg1)->i4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i5_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:IntegerArray_i5_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i5_set" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntegerArray_i5_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->i5 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i5_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:IntegerArray_i5_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i5_get" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - result = (int) ((arg1)->i5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i6_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:IntegerArray_i6_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i6_set" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntegerArray_i6_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->i6 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i6_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:IntegerArray_i6_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i6_get" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - result = (int) ((arg1)->i6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i7_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:IntegerArray_i7_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i7_set" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntegerArray_i7_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->i7 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i7_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:IntegerArray_i7_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i7_get" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - result = (int) ((arg1)->i7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i8_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:IntegerArray_i8_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i8_set" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntegerArray_i8_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->i8 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i8_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:IntegerArray_i8_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i8_get" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - result = (int) ((arg1)->i8); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i9_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:IntegerArray_i9_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i9_set" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IntegerArray_i9_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->i9 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_IntegerArray_i9_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:IntegerArray_i9_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntegerArray_i9_get" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - result = (int) ((arg1)->i9); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_IntegerArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_IntegerArray")) SWIG_fail; - result = (IntegerArray *)new IntegerArray(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IntegerArray, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_IntegerArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IntegerArray *arg1 = (IntegerArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_IntegerArray",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_IntegerArray, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IntegerArray" "', argument " "1"" of type '" "IntegerArray *""'"); - } - arg1 = reinterpret_cast< IntegerArray * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *IntegerArray_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_IntegerArray, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_FloatArray_f_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - float *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:FloatArray_f_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f_set" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FloatArray_f_set" "', argument " "2"" of type '" "float [10]""'"); - } - arg2 = reinterpret_cast< float * >(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)10; ++ii) arg1->f[ii] = arg2[ii]; - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""f""' of type '""float [10]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - float *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:FloatArray_f_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f_get" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - result = (float *)(float *) ((arg1)->f); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f0_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:FloatArray_f0_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f0_set" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatArray_f0_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->f0 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f0_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:FloatArray_f0_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f0_get" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - result = (int) ((arg1)->f0); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f1_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:FloatArray_f1_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f1_set" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatArray_f1_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->f1 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f1_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:FloatArray_f1_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f1_get" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - result = (int) ((arg1)->f1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f2_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:FloatArray_f2_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f2_set" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatArray_f2_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->f2 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f2_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:FloatArray_f2_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f2_get" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - result = (int) ((arg1)->f2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f3_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:FloatArray_f3_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f3_set" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatArray_f3_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->f3 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f3_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:FloatArray_f3_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f3_get" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - result = (int) ((arg1)->f3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f4_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:FloatArray_f4_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f4_set" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatArray_f4_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->f4 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f4_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:FloatArray_f4_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f4_get" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - result = (int) ((arg1)->f4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f5_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:FloatArray_f5_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f5_set" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatArray_f5_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->f5 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f5_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:FloatArray_f5_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f5_get" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - result = (int) ((arg1)->f5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f6_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:FloatArray_f6_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f6_set" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatArray_f6_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->f6 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f6_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:FloatArray_f6_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f6_get" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - result = (int) ((arg1)->f6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f7_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:FloatArray_f7_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f7_set" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatArray_f7_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->f7 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f7_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:FloatArray_f7_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f7_get" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - result = (int) ((arg1)->f7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f8_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:FloatArray_f8_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f8_set" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatArray_f8_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->f8 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f8_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:FloatArray_f8_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f8_get" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - result = (int) ((arg1)->f8); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f9_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:FloatArray_f9_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f9_set" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatArray_f9_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->f9 = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_FloatArray_f9_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:FloatArray_f9_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatArray_f9_get" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - result = (int) ((arg1)->f9); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_FloatArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_FloatArray")) SWIG_fail; - result = (FloatArray *)new FloatArray(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FloatArray, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_FloatArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - FloatArray *arg1 = (FloatArray *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_FloatArray",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_FloatArray, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FloatArray" "', argument " "1"" of type '" "FloatArray *""'"); - } - arg1 = reinterpret_cast< FloatArray * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *FloatArray_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_FloatArray, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_pvTime_millisecond_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvTime_millisecond_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_millisecond_set" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvTime_millisecond_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->millisecond = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTime_millisecond_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvTime_millisecond_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_millisecond_get" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - result = (int) ((arg1)->millisecond); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTime_second_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvTime_second_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_second_set" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvTime_second_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->second = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTime_second_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvTime_second_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_second_get" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - result = (int) ((arg1)->second); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTime_minute_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvTime_minute_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_minute_set" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvTime_minute_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->minute = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTime_minute_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvTime_minute_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_minute_get" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - result = (int) ((arg1)->minute); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTime_hour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvTime_hour_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_hour_set" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvTime_hour_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->hour = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTime_hour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvTime_hour_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_hour_get" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - result = (int) ((arg1)->hour); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTime_day_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvTime_day_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_day_set" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvTime_day_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->day = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTime_day_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvTime_day_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_day_get" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - result = (int) ((arg1)->day); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTime_month_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvTime_month_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_month_set" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvTime_month_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->month = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTime_month_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvTime_month_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_month_get" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - result = (int) ((arg1)->month); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTime_year_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvTime_year_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_year_set" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvTime_year_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->year = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTime_year_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvTime_year_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTime_year_get" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - result = (int) ((arg1)->year); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_pvTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_pvTime")) SWIG_fail; - result = (pvTime *)new pvTime(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pvTime, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_pvTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_pvTime",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_pvTime" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *pvTime_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_pvTime, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_pvAddressTableItem_s_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvAddressTableItem *arg1 = (pvAddressTableItem *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvAddressTableItem_s_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvAddressTableItem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddressTableItem_s_set" "', argument " "1"" of type '" "pvAddressTableItem *""'"); - } - arg1 = reinterpret_cast< pvAddressTableItem * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvAddressTableItem_s_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->s = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddressTableItem_s_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvAddressTableItem *arg1 = (pvAddressTableItem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvAddressTableItem_s_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvAddressTableItem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddressTableItem_s_get" "', argument " "1"" of type '" "pvAddressTableItem *""'"); - } - arg1 = reinterpret_cast< pvAddressTableItem * >(argp1); - result = (int) ((arg1)->s); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddressTableItem_version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvAddressTableItem *arg1 = (pvAddressTableItem *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvAddressTableItem_version_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvAddressTableItem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddressTableItem_version_set" "', argument " "1"" of type '" "pvAddressTableItem *""'"); - } - arg1 = reinterpret_cast< pvAddressTableItem * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvAddressTableItem_version_set" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - if (arg1) (arg1)->version = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddressTableItem_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvAddressTableItem *arg1 = (pvAddressTableItem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvAddressTableItem_version_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvAddressTableItem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddressTableItem_version_get" "', argument " "1"" of type '" "pvAddressTableItem *""'"); - } - arg1 = reinterpret_cast< pvAddressTableItem * >(argp1); - result = (int) ((arg1)->version); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddressTableItem_adr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvAddressTableItem *arg1 = (pvAddressTableItem *) 0 ; - unsigned char *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvAddressTableItem_adr_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvAddressTableItem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddressTableItem_adr_set" "', argument " "1"" of type '" "pvAddressTableItem *""'"); - } - arg1 = reinterpret_cast< pvAddressTableItem * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvAddressTableItem_adr_set" "', argument " "2"" of type '" "unsigned char [16]""'"); - } - arg2 = reinterpret_cast< unsigned char * >(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)16; ++ii) arg1->adr[ii] = arg2[ii]; - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""adr""' of type '""unsigned char [16]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddressTableItem_adr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvAddressTableItem *arg1 = (pvAddressTableItem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - unsigned char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:pvAddressTableItem_adr_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvAddressTableItem, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddressTableItem_adr_get" "', argument " "1"" of type '" "pvAddressTableItem *""'"); - } - arg1 = reinterpret_cast< pvAddressTableItem * >(argp1); - result = (unsigned char *)(unsigned char *) ((arg1)->adr); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_pvAddressTableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvAddressTableItem *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_pvAddressTableItem")) SWIG_fail; - result = (pvAddressTableItem *)new pvAddressTableItem(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pvAddressTableItem, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_pvAddressTableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvAddressTableItem *arg1 = (pvAddressTableItem *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_pvAddressTableItem",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvAddressTableItem, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_pvAddressTableItem" "', argument " "1"" of type '" "pvAddressTableItem *""'"); - } - arg1 = reinterpret_cast< pvAddressTableItem * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *pvAddressTableItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_pvAddressTableItem, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_pvAddressTable_adr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvAddressTable *arg1 = (pvAddressTable *) 0 ; - pvAddressTableItem *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvAddressTable_adr_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvAddressTable, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddressTable_adr_set" "', argument " "1"" of type '" "pvAddressTable *""'"); - } - arg1 = reinterpret_cast< pvAddressTable * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_pvAddressTableItem, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvAddressTable_adr_set" "', argument " "2"" of type '" "pvAddressTableItem [100]""'"); - } - arg2 = reinterpret_cast< pvAddressTableItem * >(argp2); - { - if (arg2) { - size_t ii = 0; - for (; ii < (size_t)100; ++ii) arg1->adr[ii] = arg2[ii]; - } else { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""adr""' of type '""pvAddressTableItem [100]""'"); - } - } - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddressTable_adr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvAddressTable *arg1 = (pvAddressTable *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - pvAddressTableItem *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:pvAddressTable_adr_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvAddressTable, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddressTable_adr_get" "', argument " "1"" of type '" "pvAddressTable *""'"); - } - arg1 = reinterpret_cast< pvAddressTable * >(argp1); - result = (pvAddressTableItem *)(pvAddressTableItem *) ((arg1)->adr); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pvAddressTableItem, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_pvAddressTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvAddressTable *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_pvAddressTable")) SWIG_fail; - result = (pvAddressTable *)new pvAddressTable(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pvAddressTable, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_pvAddressTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvAddressTable *arg1 = (pvAddressTable *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_pvAddressTable",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvAddressTable, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_pvAddressTable" "', argument " "1"" of type '" "pvAddressTable *""'"); - } - arg1 = reinterpret_cast< pvAddressTable * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *pvAddressTable_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_pvAddressTable, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_glencode_set_param(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:glencode_set_param",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "glencode_set_param" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)glencode_set_param(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvlock",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvlock" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvlock(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvunlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvunlock",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvunlock" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvunlock(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvsystem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvsystem",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvsystem" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (int)pvsystem((char const *)arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvGetLocalTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvTime *arg1 = (pvTime *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:pvGetLocalTime",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvTime, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvGetLocalTime" "', argument " "1"" of type '" "pvTime *""'"); - } - arg1 = reinterpret_cast< pvTime * >(argp1); - pvGetLocalTime(arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvIsAccessAllowed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int arg2 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvIsAccessAllowed",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvIsAccessAllowed" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvIsAccessAllowed" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvIsAccessAllowed((char const *)arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSendVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvSendVersion",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSendVersion" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvSendVersion(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvXYAllocate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvXYAllocate",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvXYAllocate" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvXYAllocate" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvXYAllocate(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_getIntegers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - IntegerArray *arg2 = (IntegerArray *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:getIntegers",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getIntegers" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_IntegerArray, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "getIntegers" "', argument " "2"" of type '" "IntegerArray *""'"); - } - arg2 = reinterpret_cast< IntegerArray * >(argp2); - result = (int)getIntegers((char const *)arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_getFloats(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - FloatArray *arg2 = (FloatArray *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:getFloats",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getFloats" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_FloatArray, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "getFloats" "', argument " "2"" of type '" "FloatArray *""'"); - } - arg2 = reinterpret_cast< FloatArray * >(argp2); - result = (int)getFloats((char const *)arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_getTextFromText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:getTextFromText",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getTextFromText" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (char *)getTextFromText((char const *)arg1); - resultobj = SWIG_FromCharPtr((const char *)result); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetXY",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetXY" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetXY" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetXY" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetXY" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - result = (int)pvSetXY(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvGetSocketPointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:pvGetSocketPointer",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvGetSocketPointer" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int *)pvGetSocketPointer(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvInitInternal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvInitInternal",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvInitInternal" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvInitInternal(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvInit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - char **arg2 = (char **) 0 ; - PARAM *arg3 = (PARAM *) 0 ; - int val1 ; - int ecode1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvInit",&obj0,&obj1,&obj2)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pvInit" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_char, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvInit" "', argument " "2"" of type '" "char **""'"); - } - arg2 = reinterpret_cast< char ** >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvInit" "', argument " "3"" of type '" "PARAM *""'"); - } - arg3 = reinterpret_cast< PARAM * >(argp3); - result = (int)pvInit(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAccept(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvAccept",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAccept" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvAccept(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvCreateThread(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvCreateThread",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvCreateThread" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvCreateThread" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvCreateThread(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvGetInitialMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvGetInitialMask",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvGetInitialMask" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvGetInitialMask(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvMain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvMain",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvMain" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvMain(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetCleanup(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int (*arg2)(void *) = (int (*)(void *)) 0 ; - void *arg3 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetCleanup",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetCleanup" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - { - int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_void__int); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "pvSetCleanup" "', argument " "2"" of type '" "int (*)(void *)""'"); - } - } - res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetCleanup" "', argument " "3"" of type '" "void *""'"); - } - result = (int)pvSetCleanup(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvGetEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:pvGetEvent",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvGetEvent" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (char *)pvGetEvent(arg1); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPollEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvPollEvent",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvPollEvent" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvPollEvent" "', argument " "2"" of type '" "char *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvPollEvent(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWait(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvWait",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWait" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvWait" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvWait(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvGlUpdate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvGlUpdate",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvGlUpdate" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvGlUpdate" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvGlUpdate(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSleep(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvSleep",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pvSleep" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (int)pvSleep(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWarning(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvWarning",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWarning" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvWarning" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvWarning(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvMainFatal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvMainFatal",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvMainFatal" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvMainFatal" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvMainFatal(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvThreadFatal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvThreadFatal",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvThreadFatal" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvThreadFatal" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvThreadFatal(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvScreenHint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvScreenHint",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvScreenHint" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvScreenHint" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvScreenHint" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvScreenHint(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMouseShape(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvSetMouseShape",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMouseShape" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMouseShape" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvSetMouseShape(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetWhatsThis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetWhatsThis",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetWhatsThis" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetWhatsThis" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetWhatsThis" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvSetWhatsThis(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWhatsThisPrintf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvWhatsThisPrintf",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWhatsThisPrintf" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvWhatsThisPrintf" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvWhatsThisPrintf" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvWhatsThisPrintf(arg1,arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWhatsThisPrintf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,3); - varargs = PyTuple_GetSlice(args,3,PyTuple_Size(args)); - resultobj = _wrap_pvWhatsThisPrintf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_pvClientCommand__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvClientCommand",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvClientCommand" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvClientCommand" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvClientCommand" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvClientCommand" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvClientCommand(arg1,(char const *)arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvClientCommand__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvClientCommand",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvClientCommand" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvClientCommand" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvClientCommand" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvClientCommand(arg1,(char const *)arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvClientCommand(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvClientCommand__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvClientCommand__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvClientCommand'.\n" - " Possible C/C++ prototypes are:\n" - " pvClientCommand(PARAM *,char const *,char const *,int)\n" - " pvClientCommand(PARAM *,char const *,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvWriteTextToFileAtClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvWriteTextToFileAtClient",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWriteTextToFileAtClient" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvWriteTextToFileAtClient" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvWriteTextToFileAtClient" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvWriteTextToFileAtClient(arg1,(char const *)arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvZoomMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvZoomMask",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvZoomMask" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvZoomMask" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvZoomMask(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetManualUrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvSetManualUrl",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetManualUrl" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvSetManualUrl" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvSetManualUrl(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSelectLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvSelectLanguage",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSelectLanguage" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvSelectLanguage" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvSelectLanguage(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvStartDefinition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvStartDefinition",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvStartDefinition" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvStartDefinition" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvStartDefinition(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQWidget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQWidget",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQWidget" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQWidget(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQLayoutVbox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQLayoutVbox",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQLayoutVbox" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQLayoutVbox" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQLayoutVbox" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQLayoutVbox(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQLayoutHbox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQLayoutHbox",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQLayoutHbox" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQLayoutHbox" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQLayoutHbox" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQLayoutHbox(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQLayoutGrid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQLayoutGrid",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQLayoutGrid" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQLayoutGrid" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQLayoutGrid" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQLayoutGrid(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQLabel",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQLabel" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQLabel" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQLabel" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQLabel(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvQComboBox",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQComboBox" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQComboBox" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQComboBox" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQComboBox" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvQComboBox" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvQComboBox(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQLineEdit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQLineEdit",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQLineEdit" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQLineEdit" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQLineEdit" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQLineEdit(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQPushButton",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQPushButton" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQPushButton" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQPushButton" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQPushButton(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQLCDNumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvQLCDNumber",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQLCDNumber" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQLCDNumber" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQLCDNumber" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQLCDNumber" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvQLCDNumber" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvQLCDNumber" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvQLCDNumber(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:pvQSlider",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQSlider" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQSlider" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQSlider" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQSlider" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvQSlider" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvQSlider" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "pvQSlider" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "pvQSlider" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - result = (int)pvQSlider(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQButtonGroup(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - char *arg6 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int res6 ; - char *buf6 = 0 ; - int alloc6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvQButtonGroup",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQButtonGroup" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQButtonGroup" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQButtonGroup" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQButtonGroup" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvQButtonGroup" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - res6 = SWIG_AsCharPtrAndSize(obj5, &buf6, NULL, &alloc6); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "pvQButtonGroup" "', argument " "6"" of type '" "char const *""'"); - } - arg6 = reinterpret_cast< char * >(buf6); - result = (int)pvQButtonGroup(arg1,arg2,arg3,arg4,arg5,(char const *)arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc6 == SWIG_NEWOBJ) delete[] buf6; - return resultobj; -fail: - if (alloc6 == SWIG_NEWOBJ) delete[] buf6; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQRadioButton",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQRadioButton" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQRadioButton" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQRadioButton" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQRadioButton(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQCheckBox",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQCheckBox" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQCheckBox" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQCheckBox" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQCheckBox(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:pvQFrame",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQFrame" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQFrame" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQFrame" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQFrame" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvQFrame" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvQFrame" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "pvQFrame" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - result = (int)pvQFrame(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQDraw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQDraw",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQDraw" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQDraw" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQDraw" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQDraw(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - int *arg5 = (int *) 0 ; - int *arg6 = (int *) 0 ; - int *arg7 = (int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; - void *argp7 = 0 ; - int res7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:pvQImage",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQImage" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQImage" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQImage" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvQImage" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvQImage" "', argument " "5"" of type '" "int *""'"); - } - arg5 = reinterpret_cast< int * >(argp5); - res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "pvQImage" "', argument " "6"" of type '" "int *""'"); - } - arg6 = reinterpret_cast< int * >(argp6); - res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "pvQImage" "', argument " "7"" of type '" "int *""'"); - } - arg7 = reinterpret_cast< int * >(argp7); - result = (int)pvQImage(arg1,arg2,arg3,(char const *)arg4,arg5,arg6,arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - int *arg5 = (int *) 0 ; - int *arg6 = (int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvQImage",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQImage" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQImage" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQImage" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvQImage" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvQImage" "', argument " "5"" of type '" "int *""'"); - } - arg5 = reinterpret_cast< int * >(argp5); - res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "pvQImage" "', argument " "6"" of type '" "int *""'"); - } - arg6 = reinterpret_cast< int * >(argp6); - result = (int)pvQImage(arg1,arg2,arg3,(char const *)arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - int *arg5 = (int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvQImage",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQImage" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQImage" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQImage" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvQImage" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvQImage" "', argument " "5"" of type '" "int *""'"); - } - arg5 = reinterpret_cast< int * >(argp5); - result = (int)pvQImage(arg1,arg2,arg3,(char const *)arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQImage__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvQImage",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQImage" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQImage" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQImage" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvQImage" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)pvQImage(arg1,arg2,arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQImage(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[8]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 7) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvQImage__SWIG_3(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvQImage__SWIG_2(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvQImage__SWIG_1(self, args); - } - } - } - } - } - } - } - if (argc == 7) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_int, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvQImage__SWIG_0(self, args); - } - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvQImage'.\n" - " Possible C/C++ prototypes are:\n" - " pvQImage(PARAM *,int,int,char const *,int *,int *,int *)\n" - " pvQImage(PARAM *,int,int,char const *,int *,int *)\n" - " pvQImage(PARAM *,int,int,char const *,int *)\n" - " pvQImage(PARAM *,int,int,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvQGL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQGL",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQGL" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQGL" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQGL" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQGL(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQTabWidget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQTabWidget",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQTabWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQTabWidget" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQTabWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQTabWidget(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQToolBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQToolBox",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQToolBox" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQToolBox" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQToolBox" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQToolBox(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQGroupBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - char *arg6 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int res6 ; - char *buf6 = 0 ; - int alloc6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvQGroupBox",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQGroupBox" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQGroupBox" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQGroupBox" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQGroupBox" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvQGroupBox" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - res6 = SWIG_AsCharPtrAndSize(obj5, &buf6, NULL, &alloc6); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "pvQGroupBox" "', argument " "6"" of type '" "char const *""'"); - } - arg6 = reinterpret_cast< char * >(buf6); - result = (int)pvQGroupBox(arg1,arg2,arg3,arg4,arg5,(char const *)arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc6 == SWIG_NEWOBJ) delete[] buf6; - return resultobj; -fail: - if (alloc6 == SWIG_NEWOBJ) delete[] buf6; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQListBox",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQListBox" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQListBox" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQListBox" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQListBox(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvQTable",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQTable" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQTable" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQTable" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQTable" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvQTable" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvQTable(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQSpinBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvQSpinBox",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQSpinBox" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQSpinBox" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQSpinBox" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQSpinBox" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvQSpinBox" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvQSpinBox" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvQSpinBox(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQDial(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:pvQDial",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQDial" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQDial" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQDial" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQDial" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvQDial" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvQDial" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "pvQDial" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - result = (int)pvQDial(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQProgressBar__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvQProgressBar",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQProgressBar" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQProgressBar" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQProgressBar" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQProgressBar" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvQProgressBar" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvQProgressBar(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQProgressBar__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvQProgressBar",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQProgressBar" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQProgressBar" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQProgressBar" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQProgressBar" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvQProgressBar(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQProgressBar(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvQProgressBar__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvQProgressBar__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvQProgressBar'.\n" - " Possible C/C++ prototypes are:\n" - " pvQProgressBar(PARAM *,int,int,int,int)\n" - " pvQProgressBar(PARAM *,int,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvQMultiLineEdit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvQMultiLineEdit",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQMultiLineEdit" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQMultiLineEdit" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQMultiLineEdit" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQMultiLineEdit" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvQMultiLineEdit" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvQMultiLineEdit(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQTextBrowser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQTextBrowser",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQTextBrowser" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQTextBrowser" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQTextBrowser" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQTextBrowser(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQListView",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQListView" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQListView" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQListView" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQListView(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQIconView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQIconView",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQIconView" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQIconView" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQIconView" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQIconView(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQVtkTclWidget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQVtkTclWidget",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQVtkTclWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQVtkTclWidget" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQVtkTclWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQVtkTclWidget(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQwtPlotWidget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvQwtPlotWidget",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQwtPlotWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQwtPlotWidget" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQwtPlotWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQwtPlotWidget" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvQwtPlotWidget" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvQwtPlotWidget(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQwtScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvQwtScale",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQwtScale" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQwtScale" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQwtScale" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvQwtScale" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvQwtScale(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQwtThermo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQwtThermo",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQwtThermo" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQwtThermo" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQwtThermo" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQwtThermo(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQwtKnob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQwtKnob",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQwtKnob" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQwtKnob" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQwtKnob" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQwtKnob(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQwtCounter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQwtCounter",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQwtCounter" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQwtCounter" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQwtCounter" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQwtCounter(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQwtWheel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQwtWheel",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQwtWheel" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQwtWheel" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQwtWheel" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQwtWheel(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQwtSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQwtSlider",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQwtSlider" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQwtSlider" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQwtSlider" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQwtSlider(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQwtDial(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQwtDial",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQwtDial" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQwtDial" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQwtDial" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQwtDial(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQwtCompass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQwtCompass",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQwtCompass" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQwtCompass" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQwtCompass" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQwtCompass(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQwtAnalogClock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQwtAnalogClock",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQwtAnalogClock" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQwtAnalogClock" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQwtAnalogClock" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQwtAnalogClock(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQDateEdit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQDateEdit",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQDateEdit" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQDateEdit" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQDateEdit" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQDateEdit(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQTimeEdit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQTimeEdit",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQTimeEdit" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQTimeEdit" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQTimeEdit" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQTimeEdit(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQDateTimeEdit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvQDateTimeEdit",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQDateTimeEdit" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQDateTimeEdit" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQDateTimeEdit" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvQDateTimeEdit(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQCustomWidget__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvQCustomWidget",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQCustomWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQCustomWidget" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQCustomWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvQCustomWidget" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvQCustomWidget" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - result = (int)pvQCustomWidget(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQCustomWidget__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvQCustomWidget",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQCustomWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQCustomWidget" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQCustomWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvQCustomWidget" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)pvQCustomWidget(arg1,arg2,arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQCustomWidget(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvQCustomWidget__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[4], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvQCustomWidget__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvQCustomWidget'.\n" - " Possible C/C++ prototypes are:\n" - " pvQCustomWidget(PARAM *,int,int,char const *,char const *)\n" - " pvQCustomWidget(PARAM *,int,int,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvEndDefinition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvEndDefinition",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvEndDefinition" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvEndDefinition(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddWidgetOrLayout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvAddWidgetOrLayout",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddWidgetOrLayout" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvAddWidgetOrLayout" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvAddWidgetOrLayout" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvAddWidgetOrLayout" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvAddWidgetOrLayout" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvAddWidgetOrLayout(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddStretch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvAddStretch",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddStretch" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvAddStretch" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvAddStretch" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvAddStretch(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTabOrder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvTabOrder",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTabOrder" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvTabOrder" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvTabOrder" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvTabOrder(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvDeleteWidget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvDeleteWidget",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvDeleteWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvDeleteWidget" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvDeleteWidget(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetCaption(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvSetCaption",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetCaption" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvSetCaption" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvSetCaption(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPlaySound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvPlaySound",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvPlaySound" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvPlaySound" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvPlaySound(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvBeep(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvBeep",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvBeep" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvBeep(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvStatusMessage__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - char *arg5 = (char *) 0 ; - void *arg6 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvStatusMessage",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvStatusMessage" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvStatusMessage" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvStatusMessage" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvStatusMessage" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvStatusMessage" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - result = (int)pvStatusMessage(arg1,arg2,arg3,arg4,(char const *)arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvStatusMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,5); - varargs = PyTuple_GetSlice(args,5,PyTuple_Size(args)); - resultobj = _wrap_pvStatusMessage__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_pvToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvToolTip",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvToolTip" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvToolTip" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvToolTip" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvToolTip(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTextEx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetTextEx",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTextEx" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTextEx" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetTextEx" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetTextEx" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSetTextEx(arg1,arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetText",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetText" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetText" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetText" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvSetText(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPrintf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvPrintf",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvPrintf" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvPrintf" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvPrintf" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvPrintf(arg1,arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPrintf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,3); - varargs = PyTuple_GetSlice(args,3,PyTuple_Size(args)); - resultobj = _wrap_pvPrintf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_pvSetStyleSheet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetStyleSheet",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetStyleSheet" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetStyleSheet" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetStyleSheet" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvSetStyleSheet(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPrintfStyleSheet__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvPrintfStyleSheet",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvPrintfStyleSheet" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvPrintfStyleSheet" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvPrintfStyleSheet" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvPrintfStyleSheet(arg1,arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPrintfStyleSheet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,3); - varargs = PyTuple_GetSlice(args,3,PyTuple_Size(args)); - resultobj = _wrap_pvPrintfStyleSheet__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_pvSetMinValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetMinValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMinValue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMinValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMinValue" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetMinValue(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMaxValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetMaxValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMaxValue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMaxValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMaxValue" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetMaxValue(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetValue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetValue" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetValue(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvClear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvClear",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvClear" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvClear" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvClear(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvChangeItem__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvChangeItem",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvChangeItem" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvChangeItem" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvChangeItem" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvChangeItem" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvChangeItem" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvChangeItem" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvChangeItem(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvChangeItem__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvChangeItem",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvChangeItem" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvChangeItem" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvChangeItem" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvChangeItem" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvChangeItem" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - result = (int)pvChangeItem(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvChangeItem(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[4], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvChangeItem__SWIG_1(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[4], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvChangeItem__SWIG_0(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvChangeItem'.\n" - " Possible C/C++ prototypes are:\n" - " pvChangeItem(PARAM *,int,int,char const *,char const *,int)\n" - " pvChangeItem(PARAM *,int,int,char const *,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvInsertItem__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvInsertItem",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvInsertItem" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvInsertItem" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvInsertItem" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvInsertItem" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvInsertItem" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvInsertItem" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvInsertItem(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvInsertItem__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvInsertItem",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvInsertItem" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvInsertItem" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvInsertItem" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvInsertItem" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvInsertItem" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - result = (int)pvInsertItem(arg1,arg2,arg3,(char const *)arg4,(char const *)arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvInsertItem(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[4], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvInsertItem__SWIG_1(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[4], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvInsertItem__SWIG_0(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvInsertItem'.\n" - " Possible C/C++ prototypes are:\n" - " pvInsertItem(PARAM *,int,int,char const *,char const *,int)\n" - " pvInsertItem(PARAM *,int,int,char const *,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvRemoveItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvRemoveItem",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRemoveItem" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRemoveItem" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvRemoveItem" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvRemoveItem(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvRemoveItemByName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvRemoveItemByName",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRemoveItemByName" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRemoveItemByName" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvRemoveItemByName" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvRemoveItemByName(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvAddColumn",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddColumn" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvAddColumn" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvAddColumn" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvAddColumn" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvAddColumn(arg1,arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvRemoveAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvRemoveAllColumns",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRemoveAllColumns" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRemoveAllColumns" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvRemoveAllColumns(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTableText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - char *arg5 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetTableText",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTableText" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTableText" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetTableText" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetTableText" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvSetTableText" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - result = (int)pvSetTableText(arg1,arg2,arg3,arg4,(char const *)arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTableButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - char *arg5 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetTableButton",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTableButton" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTableButton" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetTableButton" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetTableButton" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvSetTableButton" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - result = (int)pvSetTableButton(arg1,arg2,arg3,arg4,(char const *)arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTableCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - char *arg6 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int res6 ; - char *buf6 = 0 ; - int alloc6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvSetTableCheckBox",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTableCheckBox" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTableCheckBox" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetTableCheckBox" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetTableCheckBox" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetTableCheckBox" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - res6 = SWIG_AsCharPtrAndSize(obj5, &buf6, NULL, &alloc6); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "pvSetTableCheckBox" "', argument " "6"" of type '" "char const *""'"); - } - arg6 = reinterpret_cast< char * >(buf6); - result = (int)pvSetTableCheckBox(arg1,arg2,arg3,arg4,arg5,(char const *)arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc6 == SWIG_NEWOBJ) delete[] buf6; - return resultobj; -fail: - if (alloc6 == SWIG_NEWOBJ) delete[] buf6; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTableComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - char *arg6 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int res6 ; - char *buf6 = 0 ; - int alloc6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvSetTableComboBox",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTableComboBox" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTableComboBox" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetTableComboBox" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetTableComboBox" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetTableComboBox" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - res6 = SWIG_AsCharPtrAndSize(obj5, &buf6, NULL, &alloc6); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "pvSetTableComboBox" "', argument " "6"" of type '" "char const *""'"); - } - arg6 = reinterpret_cast< char * >(buf6); - result = (int)pvSetTableComboBox(arg1,arg2,arg3,arg4,arg5,(char const *)arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc6 == SWIG_NEWOBJ) delete[] buf6; - return resultobj; -fail: - if (alloc6 == SWIG_NEWOBJ) delete[] buf6; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTableLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - char *arg5 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetTableLabel",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTableLabel" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTableLabel" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetTableLabel" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetTableLabel" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvSetTableLabel" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - result = (int)pvSetTableLabel(arg1,arg2,arg3,arg4,(char const *)arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTablePrintf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - char *arg5 = (char *) 0 ; - void *arg6 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvTablePrintf",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTablePrintf" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvTablePrintf" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvTablePrintf" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvTablePrintf" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvTablePrintf" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - result = (int)pvTablePrintf(arg1,arg2,arg3,arg4,(char const *)arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTablePrintf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,5); - varargs = PyTuple_GetSlice(args,5,PyTuple_Size(args)); - resultobj = _wrap_pvTablePrintf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_pvSetTableTextAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetTableTextAlignment",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTableTextAlignment" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTableTextAlignment" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetTableTextAlignment" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetTableTextAlignment" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetTableTextAlignment" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetTableTextAlignment(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvMysqldump(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvMysqldump",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvMysqldump" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvMysqldump" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvMysqldump" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvMysqldump(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvCSVdump__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - char arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - char val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvCSVdump",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvCSVdump" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvCSVdump" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvCSVdump" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - ecode4 = SWIG_AsVal_char(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvCSVdump" "', argument " "4"" of type '" "char""'"); - } - arg4 = static_cast< char >(val4); - result = (int)pvCSVdump(arg1,arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvCSVdump__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvCSVdump",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvCSVdump" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvCSVdump" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvCSVdump" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvCSVdump(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvCSVdump(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvCSVdump__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_char(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvCSVdump__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvCSVdump'.\n" - " Possible C/C++ prototypes are:\n" - " pvCSVdump(PARAM *,int,char const *,char)\n" - " pvCSVdump(PARAM *,int,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvCSVcreate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvCSVcreate",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvCSVcreate" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvCSVcreate" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvCSVcreate" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvCSVcreate(arg1,(char const *)arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvCSV__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - char arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - char val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvCSV",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvCSV" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvCSV" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvCSV" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - ecode4 = SWIG_AsVal_char(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvCSV" "', argument " "4"" of type '" "char""'"); - } - arg4 = static_cast< char >(val4); - result = (int)pvCSV(arg1,arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvCSV__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvCSV",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvCSV" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvCSV" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvCSV" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvCSV(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvCSV(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvCSV__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_char(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvCSV__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvCSV'.\n" - " Possible C/C++ prototypes are:\n" - " pvCSV(PARAM *,int,char const *,char)\n" - " pvCSV(PARAM *,int,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvSetListViewText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - int arg4 ; - char *arg5 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetListViewText",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetListViewText" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetListViewText" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetListViewText" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetListViewText" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvSetListViewText" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - result = (int)pvSetListViewText(arg1,arg2,(char const *)arg3,arg4,(char const *)arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvListViewPrintf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - int arg4 ; - char *arg5 = (char *) 0 ; - void *arg6 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvListViewPrintf",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvListViewPrintf" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvListViewPrintf" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvListViewPrintf" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvListViewPrintf" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvListViewPrintf" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - result = (int)pvListViewPrintf(arg1,arg2,(char const *)arg3,arg4,(char const *)arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvListViewPrintf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,5); - varargs = PyTuple_GetSlice(args,5,PyTuple_Size(args)); - resultobj = _wrap_pvListViewPrintf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_pvListViewSetSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvListViewSetSelected",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvListViewSetSelected" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvListViewSetSelected" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvListViewSetSelected" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvListViewSetSelected" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvListViewSetSelected" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvListViewSetSelected(arg1,arg2,(char const *)arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvListBoxSetSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvListBoxSetSelected",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvListBoxSetSelected" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvListBoxSetSelected" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvListBoxSetSelected" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvListBoxSetSelected" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvListBoxSetSelected(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetColumnWidth",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetColumnWidth" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetColumnWidth" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetColumnWidth" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetColumnWidth" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSetColumnWidth(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetRowHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetRowHeight",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetRowHeight" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetRowHeight" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetRowHeight" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetRowHeight" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSetRowHeight(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetWordWrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetWordWrap",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetWordWrap" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetWordWrap" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetWordWrap" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetWordWrap(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetPixmap__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetPixmap",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetPixmap" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetPixmap" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetPixmap" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetPixmap" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSetPixmap(arg1,arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetPixmap__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetPixmap",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetPixmap" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetPixmap" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetPixmap" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvSetPixmap(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetPixmap(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvSetPixmap__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetPixmap__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvSetPixmap'.\n" - " Possible C/C++ prototypes are:\n" - " pvSetPixmap(PARAM *,int,char const *,int)\n" - " pvSetPixmap(PARAM *,int,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvSetTablePixmap__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - char *arg5 = (char *) 0 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvSetTablePixmap",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTablePixmap" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTablePixmap" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetTablePixmap" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetTablePixmap" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvSetTablePixmap" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvSetTablePixmap" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvSetTablePixmap(arg1,arg2,arg3,arg4,(char const *)arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTablePixmap__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - char *arg5 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetTablePixmap",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTablePixmap" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTablePixmap" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetTablePixmap" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetTablePixmap" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvSetTablePixmap" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - result = (int)pvSetTablePixmap(arg1,arg2,arg3,arg4,(char const *)arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return resultobj; -fail: - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTablePixmap(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[4], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvSetTablePixmap__SWIG_1(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[4], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetTablePixmap__SWIG_0(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvSetTablePixmap'.\n" - " Possible C/C++ prototypes are:\n" - " pvSetTablePixmap(PARAM *,int,int,int,char const *,int)\n" - " pvSetTablePixmap(PARAM *,int,int,int,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvSetSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetSource",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetSource" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetSource" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetSource" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvSetSource(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetImage",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetImage" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetImage" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetImage" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetImage" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSetImage(arg1,arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetImage",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetImage" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetImage" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetImage" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvSetImage(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetImage(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvSetImage__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetImage__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvSetImage'.\n" - " Possible C/C++ prototypes are:\n" - " pvSetImage(PARAM *,int,char const *,int)\n" - " pvSetImage(PARAM *,int,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvSetBufferedJpgImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - unsigned char *arg3 = (unsigned char *) 0 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetBufferedJpgImage",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetBufferedJpgImage" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetBufferedJpgImage" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetBufferedJpgImage" "', argument " "3"" of type '" "unsigned char const *""'"); - } - arg3 = reinterpret_cast< unsigned char * >(argp3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetBufferedJpgImage" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetBufferedJpgImage" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetBufferedJpgImage(arg1,arg2,(unsigned char const *)arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetBufferedJpgImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - unsigned char *arg3 = (unsigned char *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetBufferedJpgImage",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetBufferedJpgImage" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetBufferedJpgImage" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetBufferedJpgImage" "', argument " "3"" of type '" "unsigned char const *""'"); - } - arg3 = reinterpret_cast< unsigned char * >(argp3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetBufferedJpgImage" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSetBufferedJpgImage(arg1,arg2,(unsigned char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetBufferedJpgImage(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetBufferedJpgImage__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetBufferedJpgImage__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvSetBufferedJpgImage'.\n" - " Possible C/C++ prototypes are:\n" - " pvSetBufferedJpgImage(PARAM *,int,unsigned char const *,int,int)\n" - " pvSetBufferedJpgImage(PARAM *,int,unsigned char const *,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvSetBufferTransparency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetBufferTransparency",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetBufferTransparency" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetBufferTransparency" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetBufferTransparency" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetBufferTransparency(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetBackgroundColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetBackgroundColor",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetBackgroundColor" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetBackgroundColor" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetBackgroundColor" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetBackgroundColor" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetBackgroundColor" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetBackgroundColor(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetPaletteBackgroundColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetPaletteBackgroundColor",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetPaletteBackgroundColor" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetPaletteBackgroundColor" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetPaletteBackgroundColor" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetPaletteBackgroundColor" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetPaletteBackgroundColor" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetPaletteBackgroundColor(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetPaletteForegroundColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetPaletteForegroundColor",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetPaletteForegroundColor" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetPaletteForegroundColor" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetPaletteForegroundColor" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetPaletteForegroundColor" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetPaletteForegroundColor" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetPaletteForegroundColor(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetFontColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetFontColor",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetFontColor" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetFontColor" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetFontColor" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetFontColor" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetFontColor" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetFontColor(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:pvSetFont",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetFont" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetFont" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetFont" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetFont" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetFont" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvSetFont" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "pvSetFont" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "pvSetFont" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - result = (int)pvSetFont(arg1,arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvDisplayNum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvDisplayNum",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvDisplayNum" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvDisplayNum" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvDisplayNum" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvDisplayNum(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvDisplayFloat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvDisplayFloat",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvDisplayFloat" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvDisplayFloat" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvDisplayFloat" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)pvDisplayFloat(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvDisplayStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvDisplayStr",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvDisplayStr" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvDisplayStr" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvDisplayStr" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvDisplayStr(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddTab(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvAddTab",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddTab" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvAddTab" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvAddTab" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvAddTab" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)pvAddTab(arg1,arg2,arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetListViewPixmap__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvSetListViewPixmap",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetListViewPixmap" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetListViewPixmap" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetListViewPixmap" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvSetListViewPixmap" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetListViewPixmap" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvSetListViewPixmap" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvSetListViewPixmap(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetListViewPixmap__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetListViewPixmap",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetListViewPixmap" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetListViewPixmap" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetListViewPixmap" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvSetListViewPixmap" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetListViewPixmap" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetListViewPixmap(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetListViewPixmap(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetListViewPixmap__SWIG_1(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetListViewPixmap__SWIG_0(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvSetListViewPixmap'.\n" - " Possible C/C++ prototypes are:\n" - " pvSetListViewPixmap(PARAM *,int,char const *,char const *,int,int)\n" - " pvSetListViewPixmap(PARAM *,int,char const *,char const *,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvRemoveListViewItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvRemoveListViewItem",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRemoveListViewItem" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRemoveListViewItem" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvRemoveListViewItem" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvRemoveListViewItem(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvRemoveIconViewItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvRemoveIconViewItem",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRemoveIconViewItem" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRemoveIconViewItem" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvRemoveIconViewItem" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvRemoveIconViewItem(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetIconViewItem__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetIconViewItem",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetIconViewItem" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetIconViewItem" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetIconViewItem" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvSetIconViewItem" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetIconViewItem" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetIconViewItem(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetIconViewItem__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetIconViewItem",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetIconViewItem" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetIconViewItem" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetIconViewItem" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvSetIconViewItem" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)pvSetIconViewItem(arg1,arg2,(char const *)arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetIconViewItem(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvSetIconViewItem__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetIconViewItem__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvSetIconViewItem'.\n" - " Possible C/C++ prototypes are:\n" - " pvSetIconViewItem(PARAM *,int,char const *,char const *,int)\n" - " pvSetIconViewItem(PARAM *,int,char const *,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvSetDateOrder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetDateOrder",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetDateOrder" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetDateOrder" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetDateOrder" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetDateOrder(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetDate",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetDate" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetDate" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetDate" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetDate" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetDate" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetDate(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMinDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetMinDate",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMinDate" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMinDate" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMinDate" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetMinDate" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetMinDate" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetMinDate(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMaxDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetMaxDate",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMaxDate" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMaxDate" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMaxDate" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetMaxDate" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetMaxDate" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetMaxDate(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTime__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvSetTime",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTime" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTime" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetTime" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetTime" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetTime" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvSetTime" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvSetTime(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTime__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetTime",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTime" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTime" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetTime" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetTime" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetTime" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetTime(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTime__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetTime",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTime" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTime" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetTime" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetTime" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSetTime(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTime(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetTime__SWIG_2(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetTime__SWIG_1(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetTime__SWIG_0(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvSetTime'.\n" - " Possible C/C++ prototypes are:\n" - " pvSetTime(PARAM *,int,int,int,int,int)\n" - " pvSetTime(PARAM *,int,int,int,int)\n" - " pvSetTime(PARAM *,int,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvSetMinTime__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvSetMinTime",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMinTime" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMinTime" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMinTime" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetMinTime" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetMinTime" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvSetMinTime" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvSetMinTime(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMinTime__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetMinTime",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMinTime" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMinTime" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMinTime" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetMinTime" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetMinTime" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetMinTime(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMinTime__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetMinTime",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMinTime" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMinTime" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMinTime" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetMinTime" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSetMinTime(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMinTime(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetMinTime__SWIG_2(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetMinTime__SWIG_1(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetMinTime__SWIG_0(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvSetMinTime'.\n" - " Possible C/C++ prototypes are:\n" - " pvSetMinTime(PARAM *,int,int,int,int,int)\n" - " pvSetMinTime(PARAM *,int,int,int,int)\n" - " pvSetMinTime(PARAM *,int,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvSetMaxTime__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvSetMaxTime",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMaxTime" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMaxTime" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMaxTime" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetMaxTime" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetMaxTime" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvSetMaxTime" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvSetMaxTime(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMaxTime__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetMaxTime",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMaxTime" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMaxTime" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMaxTime" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetMaxTime" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetMaxTime" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetMaxTime(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMaxTime__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetMaxTime",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMaxTime" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMaxTime" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMaxTime" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetMaxTime" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSetMaxTime(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMaxTime(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetMaxTime__SWIG_2(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetMaxTime__SWIG_1(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSetMaxTime__SWIG_0(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvSetMaxTime'.\n" - " Possible C/C++ prototypes are:\n" - " pvSetMaxTime(PARAM *,int,int,int,int,int)\n" - " pvSetMaxTime(PARAM *,int,int,int,int)\n" - " pvSetMaxTime(PARAM *,int,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvEnsureCellVisible__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvEnsureCellVisible",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvEnsureCellVisible" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvEnsureCellVisible" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvEnsureCellVisible" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvEnsureCellVisible" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvEnsureCellVisible(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvEnsureCellVisible__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvEnsureCellVisible",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvEnsureCellVisible" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvEnsureCellVisible" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvEnsureCellVisible" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvEnsureCellVisible(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvEnsureCellVisible(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvEnsureCellVisible__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvEnsureCellVisible__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvEnsureCellVisible'.\n" - " Possible C/C++ prototypes are:\n" - " pvEnsureCellVisible(PARAM *,int,int,int)\n" - " pvEnsureCellVisible(PARAM *,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvMoveCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvMoveCursor",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvMoveCursor" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvMoveCursor" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvMoveCursor" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvMoveCursor(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvScrollToAnchor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvScrollToAnchor",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvScrollToAnchor" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvScrollToAnchor" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvScrollToAnchor" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvScrollToAnchor(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetZoomFactor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetZoomFactor",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetZoomFactor" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetZoomFactor" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetZoomFactor" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)pvSetZoomFactor(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPrintHtmlOnPrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvPrintHtmlOnPrinter",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvPrintHtmlOnPrinter" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvPrintHtmlOnPrinter" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvPrintHtmlOnPrinter(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetWidgetProperty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetWidgetProperty",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetWidgetProperty" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetWidgetProperty" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSetWidgetProperty" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvSetWidgetProperty" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)pvSetWidgetProperty(arg1,arg2,(char const *)arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPassThroughOneJpegFrame__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvPassThroughOneJpegFrame",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvPassThroughOneJpegFrame" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvPassThroughOneJpegFrame" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvPassThroughOneJpegFrame" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvPassThroughOneJpegFrame" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvPassThroughOneJpegFrame" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvPassThroughOneJpegFrame(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPassThroughOneJpegFrame__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvPassThroughOneJpegFrame",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvPassThroughOneJpegFrame" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvPassThroughOneJpegFrame" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvPassThroughOneJpegFrame" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvPassThroughOneJpegFrame" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvPassThroughOneJpegFrame(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPassThroughOneJpegFrame__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvPassThroughOneJpegFrame",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvPassThroughOneJpegFrame" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvPassThroughOneJpegFrame" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvPassThroughOneJpegFrame" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvPassThroughOneJpegFrame(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPassThroughOneJpegFrame(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvPassThroughOneJpegFrame__SWIG_2(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvPassThroughOneJpegFrame__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvPassThroughOneJpegFrame__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvPassThroughOneJpegFrame'.\n" - " Possible C/C++ prototypes are:\n" - " pvPassThroughOneJpegFrame(PARAM *,int,int,int,int)\n" - " pvPassThroughOneJpegFrame(PARAM *,int,int,int)\n" - " pvPassThroughOneJpegFrame(PARAM *,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvSendJpegFrame__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - unsigned char *arg3 = (unsigned char *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSendJpegFrame",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSendJpegFrame" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSendJpegFrame" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSendJpegFrame" "', argument " "3"" of type '" "unsigned char *""'"); - } - arg3 = reinterpret_cast< unsigned char * >(argp3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSendJpegFrame" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSendJpegFrame(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSendJpegFrame__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - unsigned char *arg3 = (unsigned char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSendJpegFrame",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSendJpegFrame" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSendJpegFrame" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSendJpegFrame" "', argument " "3"" of type '" "unsigned char *""'"); - } - arg3 = reinterpret_cast< unsigned char * >(argp3); - result = (int)pvSendJpegFrame(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSendJpegFrame(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvSendJpegFrame__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSendJpegFrame__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvSendJpegFrame'.\n" - " Possible C/C++ prototypes are:\n" - " pvSendJpegFrame(PARAM *,int,unsigned char *,int)\n" - " pvSendJpegFrame(PARAM *,int,unsigned char *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvSendRGBA__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - unsigned char *arg3 = (unsigned char *) 0 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvSendRGBA",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSendRGBA" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSendRGBA" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSendRGBA" "', argument " "3"" of type '" "unsigned char const *""'"); - } - arg3 = reinterpret_cast< unsigned char * >(argp3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSendRGBA" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSendRGBA" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvSendRGBA" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvSendRGBA(arg1,arg2,(unsigned char const *)arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSendRGBA__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - unsigned char *arg3 = (unsigned char *) 0 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSendRGBA",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSendRGBA" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSendRGBA" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSendRGBA" "', argument " "3"" of type '" "unsigned char const *""'"); - } - arg3 = reinterpret_cast< unsigned char * >(argp3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSendRGBA" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSendRGBA" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSendRGBA(arg1,arg2,(unsigned char const *)arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSendRGBA(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSendRGBA__SWIG_1(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSendRGBA__SWIG_0(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvSendRGBA'.\n" - " Possible C/C++ prototypes are:\n" - " pvSendRGBA(PARAM *,int,unsigned char const *,int,int,int)\n" - " pvSendRGBA(PARAM *,int,unsigned char const *,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvSaveDrawBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSaveDrawBuffer",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSaveDrawBuffer" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSaveDrawBuffer" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSaveDrawBuffer" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvSaveDrawBuffer(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvText",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvText" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvText" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvText(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvRequestJpeg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvRequestJpeg",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRequestJpeg" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRequestJpeg" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvRequestJpeg(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvRequestGeometry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvRequestGeometry",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRequestGeometry" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRequestGeometry" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvRequestGeometry(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvRequestParentWidgetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvRequestParentWidgetId",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRequestParentWidgetId" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRequestParentWidgetId" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvRequestParentWidgetId(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvSelection",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSelection" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSelection" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvSelection(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvRequestSvgBoundsOnElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvRequestSvgBoundsOnElement",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRequestSvgBoundsOnElement" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRequestSvgBoundsOnElement" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvRequestSvgBoundsOnElement" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvRequestSvgBoundsOnElement(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvRequestSvgMatrixForElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvRequestSvgMatrixForElement",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRequestSvgMatrixForElement" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRequestSvgMatrixForElement" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvRequestSvgMatrixForElement" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvRequestSvgMatrixForElement(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvMoveContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvMoveContent",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvMoveContent" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvMoveContent" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvMoveContent" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvMoveContent(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetGeometry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvSetGeometry",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetGeometry" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetGeometry" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetGeometry" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetGeometry" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetGeometry" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvSetGeometry" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvSetGeometry(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMinSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetMinSize",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMinSize" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMinSize" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMinSize" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetMinSize" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSetMinSize(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMaxSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetMaxSize",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMaxSize" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMaxSize" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMaxSize" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetMaxSize" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSetMaxSize(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetAlignment",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetAlignment" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetAlignment" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetAlignment" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetAlignment(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetChecked",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetChecked" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetChecked" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetChecked" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetChecked(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvMove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvMove",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvMove" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvMove" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvMove" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvMove" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvMove(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvResize",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvResize" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvResize" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvResize" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvResize" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvResize(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvHide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvHide",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvHide" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvHide" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvHide(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvShow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvShow",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvShow" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvShow" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvShow(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetParent",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetParent" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetParent" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetParent" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetParent(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMultiSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetMultiSelection",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMultiSelection" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMultiSelection" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMultiSelection" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetMultiSelection(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetEchoMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetEchoMode",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetEchoMode" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetEchoMode" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetEchoMode" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetEchoMode(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetEditable",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetEditable" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetEditable" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetEditable" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetEditable(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetEnabled",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetEnabled" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetEnabled" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetEnabled" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetEnabled(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvSetFocus",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetFocus" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetFocus" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvSetFocus(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTableSetEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvTableSetEnabled",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTableSetEnabled" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvTableSetEnabled" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvTableSetEnabled" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvTableSetEnabled" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvTableSetEnabled" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvTableSetEnabled(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTableSetHeaderResizeEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvTableSetHeaderResizeEnabled",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTableSetHeaderResizeEnabled" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvTableSetHeaderResizeEnabled" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvTableSetHeaderResizeEnabled" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvTableSetHeaderResizeEnabled" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvTableSetHeaderResizeEnabled" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvTableSetHeaderResizeEnabled(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetSorting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetSorting",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetSorting" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetSorting" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetSorting" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetSorting" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSetSorting(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTabPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetTabPosition",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTabPosition" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTabPosition" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetTabPosition" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetTabPosition(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvEnableTabBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvEnableTabBar",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvEnableTabBar" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvEnableTabBar" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvEnableTabBar" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvEnableTabBar(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetNumRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetNumRows",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetNumRows" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetNumRows" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetNumRows" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetNumRows(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetNumCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetNumCols",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetNumCols" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetNumCols" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetNumCols" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetNumCols(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvInsertRows__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvInsertRows",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvInsertRows" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvInsertRows" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvInsertRows" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvInsertRows" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvInsertRows(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvInsertRows__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvInsertRows",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvInsertRows" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvInsertRows" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvInsertRows" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvInsertRows(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvInsertRows(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvInsertRows__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvInsertRows__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvInsertRows'.\n" - " Possible C/C++ prototypes are:\n" - " pvInsertRows(PARAM *,int,int,int)\n" - " pvInsertRows(PARAM *,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvInsertColumns__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvInsertColumns",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvInsertColumns" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvInsertColumns" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvInsertColumns" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvInsertColumns" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvInsertColumns(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvInsertColumns__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvInsertColumns",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvInsertColumns" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvInsertColumns" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvInsertColumns" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvInsertColumns(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvInsertColumns(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 4) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvInsertColumns__SWIG_1(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvInsertColumns__SWIG_0(self, args); - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvInsertColumns'.\n" - " Possible C/C++ prototypes are:\n" - " pvInsertColumns(PARAM *,int,int,int)\n" - " pvInsertColumns(PARAM *,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvRemoveRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvRemoveRow",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRemoveRow" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRemoveRow" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvRemoveRow" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvRemoveRow(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvRemoveColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvRemoveColumn",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRemoveColumn" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRemoveColumn" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvRemoveColumn" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvRemoveColumn(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetCurrentItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetCurrentItem",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetCurrentItem" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetCurrentItem" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetCurrentItem" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetCurrentItem(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetTimeEditDisplay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvSetTimeEditDisplay",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetTimeEditDisplay" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetTimeEditDisplay" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetTimeEditDisplay" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetTimeEditDisplay" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetTimeEditDisplay" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvSetTimeEditDisplay" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvSetTimeEditDisplay(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvListViewEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvListViewEnsureVisible",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvListViewEnsureVisible" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvListViewEnsureVisible" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvListViewEnsureVisible" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvListViewEnsureVisible(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvListViewSetOpen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvListViewSetOpen",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvListViewSetOpen" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvListViewSetOpen" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvListViewSetOpen" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvListViewSetOpen" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvListViewSetOpen(arg1,arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvListViewSetHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvListViewSetHidden",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvListViewSetHidden" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvListViewSetHidden" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvListViewSetHidden" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvListViewSetHidden" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvListViewSetHidden(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvListViewSetStandardPopupMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvListViewSetStandardPopupMenu",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvListViewSetStandardPopupMenu" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvListViewSetStandardPopupMenu" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvListViewSetStandardPopupMenu" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvListViewSetStandardPopupMenu(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvSetStyle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetStyle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetStyle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetStyle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetStyle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetStyle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvSetStyle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvSetStyle(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMovie(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSetMovie",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetMovie" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetMovie" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetMovie" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvSetMovie" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)pvSetMovie(arg1,arg2,arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvMovieControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvMovieControl",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvMovieControl" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvMovieControl" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvMovieControl" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvMovieControl(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvMovieSpeed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvMovieSpeed",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvMovieSpeed" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvMovieSpeed" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvMovieSpeed" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvMovieSpeed(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddTabIcon__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvAddTabIcon",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddTabIcon" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvAddTabIcon" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvAddTabIcon" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvAddTabIcon" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvAddTabIcon" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvAddTabIcon(arg1,arg2,arg3,(char const *)arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddTabIcon__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvAddTabIcon",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddTabIcon" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvAddTabIcon" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvAddTabIcon" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvAddTabIcon" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)pvAddTabIcon(arg1,arg2,arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddTabIcon(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvAddTabIcon__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvAddTabIcon__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvAddTabIcon'.\n" - " Possible C/C++ prototypes are:\n" - " pvAddTabIcon(PARAM *,int,int,char const *,int)\n" - " pvAddTabIcon(PARAM *,int,int,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvSetCellWidget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSetCellWidget",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetCellWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetCellWidget" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetCellWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetCellWidget" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetCellWidget" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvSetCellWidget(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetContentsMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvSetContentsMargins",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetContentsMargins" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetContentsMargins" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetContentsMargins" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSetContentsMargins" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvSetContentsMargins" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvSetContentsMargins" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvSetContentsMargins(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetSpacing",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetSpacing" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetSpacing" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetSpacing" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetSpacing(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvVtkTcl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvVtkTcl",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvVtkTcl" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvVtkTcl" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvVtkTcl" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvVtkTcl(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvVtkTclPrintf__varargs__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *varargs) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *arg4 = 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvVtkTclPrintf",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvVtkTclPrintf" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvVtkTclPrintf" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvVtkTclPrintf" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvVtkTclPrintf(arg1,arg2,(char const *)arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvVtkTclPrintf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj; - PyObject *varargs; - PyObject *newargs; - - newargs = PyTuple_GetSlice(args,0,3); - varargs = PyTuple_GetSlice(args,3,PyTuple_Size(args)); - resultobj = _wrap_pvVtkTclPrintf__varargs__(NULL,newargs,varargs); - Py_XDECREF(newargs); - Py_XDECREF(varargs); - return resultobj; -} - - -SWIGINTERN PyObject *_wrap_pvVtkTclScript(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvVtkTclScript",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvVtkTclScript" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvVtkTclScript" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvVtkTclScript" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvVtkTclScript(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvHyperlink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvHyperlink",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvHyperlink" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvHyperlink" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvHyperlink(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSendUserEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSendUserEvent",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSendUserEvent" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSendUserEvent" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSendUserEvent" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvSendUserEvent(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWriteFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvWriteFile",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWriteFile" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvWriteFile" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvWriteFile" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvWriteFile" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvWriteFile(arg1,(char const *)arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvCloseFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvCloseFile",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvCloseFile" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvCloseFile(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvGetTextParam(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvGetTextParam",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvGetTextParam" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvGetTextParam" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (char *)pvGetTextParam(arg1,(char const *)arg2); - resultobj = SWIG_FromCharPtr((const char *)result); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvGetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvGetText",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvGetText" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvGetText" "', argument " "2"" of type '" "char *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvGetText((char const *)arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvParseEventStruct(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PARSE_EVENT_STRUCT *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvParseEventStruct",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvParseEventStruct" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvParseEventStruct" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (PARSE_EVENT_STRUCT *)pvParseEventStruct(arg1,(char const *)arg2); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PARSE_EVENT_STRUCT, 0 | 0 ); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvParseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int *arg2 = (int *) 0 ; - char *arg3 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvParseEvent",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvParseEvent" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvParseEvent" "', argument " "2"" of type '" "int *""'"); - } - arg2 = reinterpret_cast< int * >(argp2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvParseEvent" "', argument " "3"" of type '" "char *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvParseEvent((char const *)arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvCopyToClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvCopyToClipboard",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvCopyToClipboard" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvCopyToClipboard" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvCopyToClipboard(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPrint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvPrint",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvPrint" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvPrint" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvPrint(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSave__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvSave",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSave" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSave" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvSave(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSave__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSave",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSave" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSave" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSave" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvSave(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSave(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSave__SWIG_0(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvSave__SWIG_1(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvSave'.\n" - " Possible C/C++ prototypes are:\n" - " pvSave(PARAM *,int)\n" - " pvSave(PARAM *,int,char const *)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvSaveAsBmp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSaveAsBmp",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSaveAsBmp" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSaveAsBmp" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSaveAsBmp" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvSaveAsBmp(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvHtmlOrSvgDump(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvHtmlOrSvgDump",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvHtmlOrSvgDump" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvHtmlOrSvgDump" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvHtmlOrSvgDump" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvHtmlOrSvgDump(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvRenderTreeDump(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvRenderTreeDump",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRenderTreeDump" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRenderTreeDump" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvRenderTreeDump" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvRenderTreeDump(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSendFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvSendFile",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSendFile" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvSendFile" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvSendFile(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvDownloadFileAs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvDownloadFileAs",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvDownloadFileAs" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvDownloadFileAs" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvDownloadFileAs" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvDownloadFileAs(arg1,(char const *)arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvDownloadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvDownloadFile",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvDownloadFile" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvDownloadFile" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvDownloadFile(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSendHttpChunks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvSendHttpChunks",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSendHttpChunks" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvSendHttpChunks" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvSendHttpChunks(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSendHttpContentLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvSendHttpContentLength",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSendHttpContentLength" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvSendHttpContentLength" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvSendHttpContentLength(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMaxClientsPerIpAdr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvSetMaxClientsPerIpAdr",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pvSetMaxClientsPerIpAdr" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (int)pvSetMaxClientsPerIpAdr(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvMaxClientsPerIpAdr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int result; - - if (!PyArg_ParseTuple(args,(char *)":pvMaxClientsPerIpAdr")) SWIG_fail; - result = (int)pvMaxClientsPerIpAdr(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetMaxClients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvSetMaxClients",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "pvSetMaxClients" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (int)pvSetMaxClients(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvMaxClients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int result; - - if (!PyArg_ParseTuple(args,(char *)":pvMaxClients")) SWIG_fail; - result = (int)pvMaxClients(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvGetAdrTableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvAddressTableItem *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":pvGetAdrTableItem")) SWIG_fail; - result = (pvAddressTableItem *)pvGetAdrTableItem(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pvAddressTableItem, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvClearMessageQueue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvClearMessageQueue",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvClearMessageQueue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvClearMessageQueue(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvtcpsend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvtcpsend",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvtcpsend" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvtcpsend" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvtcpsend" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvtcpsend(arg1,(char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvtcpsendstring(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvtcpsendstring",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvtcpsendstring" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvtcpsendstring" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)pvtcpsendstring(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvtcpsend_binary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvtcpsend_binary",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvtcpsend_binary" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvtcpsend_binary" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvtcpsend_binary" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvtcpsend_binary(arg1,(char const *)arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvtcpreceive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvtcpreceive",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvtcpreceive" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvtcpreceive" "', argument " "2"" of type '" "char *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvtcpreceive" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvtcpreceive(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvtcpreceive_binary(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvtcpreceive_binary",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvtcpreceive_binary" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvtcpreceive_binary" "', argument " "2"" of type '" "char *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvtcpreceive_binary" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvtcpreceive_binary(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvGlBegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvGlBegin",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvGlBegin" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvGlBegin" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvGlBegin(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_glFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - glFont *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_glFont")) SWIG_fail; - result = (glFont *)new glFont(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_glFont, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_glFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - glFont *arg1 = (glFont *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_glFont",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_glFont, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_glFont" "', argument " "1"" of type '" "glFont *""'"); - } - arg1 = reinterpret_cast< glFont * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_glFont_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - glFont *arg1 = (glFont *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:glFont_read",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_glFont, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "glFont_read" "', argument " "1"" of type '" "glFont *""'"); - } - arg1 = reinterpret_cast< glFont * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "glFont_read" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->read((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_glFont_lineHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - glFont *arg1 = (glFont *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:glFont_lineHeight",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_glFont, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "glFont_lineHeight" "', argument " "1"" of type '" "glFont *""'"); - } - arg1 = reinterpret_cast< glFont * >(argp1); - result = (int)(arg1)->lineHeight(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_glFont_charWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - glFont *arg1 = (glFont *) 0 ; - unsigned char arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - unsigned char val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:glFont_charWidth",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_glFont, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "glFont_charWidth" "', argument " "1"" of type '" "glFont *""'"); - } - arg1 = reinterpret_cast< glFont * >(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "glFont_charWidth" "', argument " "2"" of type '" "unsigned char""'"); - } - arg2 = static_cast< unsigned char >(val2); - result = (int)(arg1)->charWidth(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_glFont_stringWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - glFont *arg1 = (glFont *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:glFont_stringWidth",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_glFont, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "glFont_stringWidth" "', argument " "1"" of type '" "glFont *""'"); - } - arg1 = reinterpret_cast< glFont * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "glFont_stringWidth" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->stringWidth((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_glFont_drawString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - glFont *arg1 = (glFont *) 0 ; - float arg2 ; - float arg3 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:glFont_drawString",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_glFont, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "glFont_drawString" "', argument " "1"" of type '" "glFont *""'"); - } - arg1 = reinterpret_cast< glFont * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "glFont_drawString" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "glFont_drawString" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "glFont_drawString" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - (arg1)->drawString(arg2,arg3,(char const *)arg4); - resultobj = SWIG_Py_Void(); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_glFont_setZoom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - glFont *arg1 = (glFont *) 0 ; - float arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:glFont_setZoom",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_glFont, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "glFont_setZoom" "', argument " "1"" of type '" "glFont *""'"); - } - arg1 = reinterpret_cast< glFont * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "glFont_setZoom" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - (arg1)->setZoom(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_glFont_setRotation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - glFont *arg1 = (glFont *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:glFont_setRotation",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_glFont, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "glFont_setRotation" "', argument " "1"" of type '" "glFont *""'"); - } - arg1 = reinterpret_cast< glFont * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "glFont_setRotation" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - (arg1)->setRotation(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_glFont_setFontSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - glFont *arg1 = (glFont *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:glFont_setFontSize",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_glFont, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "glFont_setFontSize" "', argument " "1"" of type '" "glFont *""'"); - } - arg1 = reinterpret_cast< glFont * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "glFont_setFontSize" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "glFont_setFontSize" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - (arg1)->setFontSize(arg2,arg3); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *glFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_glFont, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_pvSendOpenGL__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - GLuint *arg3 = (GLuint *) 0 ; - int arg4 ; - glFont *arg5 = (glFont *) 0 ; - glFont *arg6 = (glFont *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int val4 ; - int ecode4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvSendOpenGL",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSendOpenGL" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvSendOpenGL" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_GLuint, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSendOpenGL" "', argument " "3"" of type '" "GLuint *""'"); - } - arg3 = reinterpret_cast< GLuint * >(argp3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSendOpenGL" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_glFont, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvSendOpenGL" "', argument " "5"" of type '" "glFont *""'"); - } - arg5 = reinterpret_cast< glFont * >(argp5); - res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_glFont, 0 | 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "pvSendOpenGL" "', argument " "6"" of type '" "glFont *""'"); - } - arg6 = reinterpret_cast< glFont * >(argp6); - result = (int)pvSendOpenGL(arg1,(char const *)arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSendOpenGL__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - GLuint *arg3 = (GLuint *) 0 ; - int arg4 ; - glFont *arg5 = (glFont *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int val4 ; - int ecode4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvSendOpenGL",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSendOpenGL" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvSendOpenGL" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_GLuint, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSendOpenGL" "', argument " "3"" of type '" "GLuint *""'"); - } - arg3 = reinterpret_cast< GLuint * >(argp3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSendOpenGL" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_glFont, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvSendOpenGL" "', argument " "5"" of type '" "glFont *""'"); - } - arg5 = reinterpret_cast< glFont * >(argp5); - result = (int)pvSendOpenGL(arg1,(char const *)arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSendOpenGL__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - GLuint *arg3 = (GLuint *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvSendOpenGL",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSendOpenGL" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvSendOpenGL" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_GLuint, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvSendOpenGL" "', argument " "3"" of type '" "GLuint *""'"); - } - arg3 = reinterpret_cast< GLuint * >(argp3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvSendOpenGL" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvSendOpenGL(arg1,(char const *)arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSendOpenGL(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[7]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 6) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_GLuint, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvSendOpenGL__SWIG_2(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_GLuint, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_glFont, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvSendOpenGL__SWIG_1(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_GLuint, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_glFont, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_glFont, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvSendOpenGL__SWIG_0(self, args); - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvSendOpenGL'.\n" - " Possible C/C++ prototypes are:\n" - " pvSendOpenGL(PARAM *,char const *,GLuint *,int,glFont *,glFont *)\n" - " pvSendOpenGL(PARAM *,char const *,GLuint *,int,glFont *)\n" - " pvSendOpenGL(PARAM *,char const *,GLuint *,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvGlEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvGlEnd",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvGlEnd" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvGlEnd(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvFileDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvFileDialog",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvFileDialog" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvFileDialog" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvFileDialog" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvFileDialog(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPopupMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvPopupMenu",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvPopupMenu" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvPopupMenu" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvPopupMenu" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)pvPopupMenu(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvMessageBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - int arg5 ; - int arg6 ; - int arg7 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:pvMessageBox",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvMessageBox" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvMessageBox" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvMessageBox" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvMessageBox" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvMessageBox" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvMessageBox" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "pvMessageBox" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - result = (int)pvMessageBox(arg1,arg2,arg3,(char const *)arg4,arg5,arg6,arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvInputDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvInputDialog",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvInputDialog" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvInputDialog" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvInputDialog" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvInputDialog" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)pvInputDialog(arg1,arg2,(char const *)arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvRunModalDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int (*arg4)(PARAM *) = (int (*)(PARAM *)) 0 ; - void *arg5 = (void *) 0 ; - int (*arg6)(void *) = (int (*)(void *)) 0 ; - int (*arg7)(PARAM *,void *) = (int (*)(PARAM *,void *)) 0 ; - void *arg8 = (void *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res5 ; - int res8 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:pvRunModalDialog",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRunModalDialog" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRunModalDialog" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvRunModalDialog" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - { - int res = SWIG_ConvertFunctionPtr(obj3, (void**)(&arg4), SWIGTYPE_p_f_p__PARAM___int); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "pvRunModalDialog" "', argument " "4"" of type '" "int (*)(PARAM *)""'"); - } - } - res5 = SWIG_ConvertPtr(obj4,SWIG_as_voidptrptr(&arg5), 0, 0); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "pvRunModalDialog" "', argument " "5"" of type '" "void *""'"); - } - { - int res = SWIG_ConvertFunctionPtr(obj5, (void**)(&arg6), SWIGTYPE_p_f_p_void__int); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "pvRunModalDialog" "', argument " "6"" of type '" "int (*)(void *)""'"); - } - } - { - int res = SWIG_ConvertFunctionPtr(obj6, (void**)(&arg7), SWIGTYPE_p_f_p__PARAM__p_void__int); - if (!SWIG_IsOK(res)) { - SWIG_exception_fail(SWIG_ArgError(res), "in method '" "pvRunModalDialog" "', argument " "7"" of type '" "int (*)(PARAM *,void *)""'"); - } - } - res8 = SWIG_ConvertPtr(obj7,SWIG_as_voidptrptr(&arg8), 0, 0); - if (!SWIG_IsOK(res8)) { - SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "pvRunModalDialog" "', argument " "8"" of type '" "void *""'"); - } - result = (int)pvRunModalDialog(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvRunModalDialogScript(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvRunModalDialogScript",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvRunModalDialogScript" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvRunModalDialogScript" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvRunModalDialogScript" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvRunModalDialogScript(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvTerminateModalDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvTerminateModalDialog",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvTerminateModalDialog" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvTerminateModalDialog(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvUpdateBaseWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvUpdateBaseWindow",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvUpdateBaseWindow" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)pvUpdateBaseWindow(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvUpdateBaseWindowOnOff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvUpdateBaseWindowOnOff",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvUpdateBaseWindowOnOff" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvUpdateBaseWindowOnOff" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvUpdateBaseWindowOnOff(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddDockWidget__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - int arg10 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - int val10 ; - int ecode10 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:pvAddDockWidget",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddDockWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvAddDockWidget" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvAddDockWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvAddDockWidget" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvAddDockWidget" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvAddDockWidget" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "pvAddDockWidget" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "pvAddDockWidget" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "pvAddDockWidget" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - ecode10 = SWIG_AsVal_int(obj9, &val10); - if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "pvAddDockWidget" "', argument " "10"" of type '" "int""'"); - } - arg10 = static_cast< int >(val10); - result = (int)pvAddDockWidget(arg1,(char const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddDockWidget__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:pvAddDockWidget",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddDockWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvAddDockWidget" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvAddDockWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvAddDockWidget" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvAddDockWidget" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvAddDockWidget" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "pvAddDockWidget" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "pvAddDockWidget" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "pvAddDockWidget" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - result = (int)pvAddDockWidget(arg1,(char const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddDockWidget__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:pvAddDockWidget",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddDockWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvAddDockWidget" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvAddDockWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvAddDockWidget" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvAddDockWidget" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvAddDockWidget" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "pvAddDockWidget" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "pvAddDockWidget" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - result = (int)pvAddDockWidget(arg1,(char const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddDockWidget__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:pvAddDockWidget",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddDockWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvAddDockWidget" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvAddDockWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvAddDockWidget" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvAddDockWidget" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvAddDockWidget" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "pvAddDockWidget" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - result = (int)pvAddDockWidget(arg1,(char const *)arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddDockWidget__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:pvAddDockWidget",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddDockWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvAddDockWidget" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvAddDockWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvAddDockWidget" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvAddDockWidget" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "pvAddDockWidget" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)pvAddDockWidget(arg1,(char const *)arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddDockWidget__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:pvAddDockWidget",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddDockWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvAddDockWidget" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvAddDockWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvAddDockWidget" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "pvAddDockWidget" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)pvAddDockWidget(arg1,(char const *)arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddDockWidget__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvAddDockWidget",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvAddDockWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvAddDockWidget" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvAddDockWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "pvAddDockWidget" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)pvAddDockWidget(arg1,(char const *)arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvAddDockWidget(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[11]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 10) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvAddDockWidget__SWIG_6(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvAddDockWidget__SWIG_5(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvAddDockWidget__SWIG_4(self, args); - } - } - } - } - } - } - } - if (argc == 7) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvAddDockWidget__SWIG_3(self, args); - } - } - } - } - } - } - } - } - if (argc == 8) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvAddDockWidget__SWIG_2(self, args); - } - } - } - } - } - } - } - } - } - if (argc == 9) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvAddDockWidget__SWIG_1(self, args); - } - } - } - } - } - } - } - } - } - } - if (argc == 10) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[9], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvAddDockWidget__SWIG_0(self, args); - } - } - } - } - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvAddDockWidget'.\n" - " Possible C/C++ prototypes are:\n" - " pvAddDockWidget(PARAM *,char const *,int,int,int,int,int,int,int,int)\n" - " pvAddDockWidget(PARAM *,char const *,int,int,int,int,int,int,int)\n" - " pvAddDockWidget(PARAM *,char const *,int,int,int,int,int,int)\n" - " pvAddDockWidget(PARAM *,char const *,int,int,int,int,int)\n" - " pvAddDockWidget(PARAM *,char const *,int,int,int,int)\n" - " pvAddDockWidget(PARAM *,char const *,int,int,int)\n" - " pvAddDockWidget(PARAM *,char const *,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvDeleteDockWidget__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvDeleteDockWidget",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvDeleteDockWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvDeleteDockWidget" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvDeleteDockWidget" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvDeleteDockWidget(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvDeleteDockWidget__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvDeleteDockWidget",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvDeleteDockWidget" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvDeleteDockWidget" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvDeleteDockWidget(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvDeleteDockWidget(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[4]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 3) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvDeleteDockWidget__SWIG_1(self, args); - } - } - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvDeleteDockWidget__SWIG_0(self, args); - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvDeleteDockWidget'.\n" - " Possible C/C++ prototypes are:\n" - " pvDeleteDockWidget(PARAM *,int,int)\n" - " pvDeleteDockWidget(PARAM *,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_qpwSetCurveData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - double *arg5 = (double *) 0 ; - double *arg6 = (double *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:qpwSetCurveData",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetCurveData" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetCurveData" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetCurveData" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetCurveData" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_double, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "qpwSetCurveData" "', argument " "5"" of type '" "double *""'"); - } - arg5 = reinterpret_cast< double * >(argp5); - res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_double, 0 | 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "qpwSetCurveData" "', argument " "6"" of type '" "double *""'"); - } - arg6 = reinterpret_cast< double * >(argp6); - result = (int)qpwSetCurveData(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetBufferedCurveData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qpwSetBufferedCurveData",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetBufferedCurveData" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetBufferedCurveData" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetBufferedCurveData" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qpwSetBufferedCurveData(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwReplot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:qpwReplot",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwReplot" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwReplot" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)qpwReplot(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qpwSetTitle",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetTitle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetTitle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "qpwSetTitle" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)qpwSetTitle(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetCanvasBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qpwSetCanvasBackground",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetCanvasBackground" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetCanvasBackground" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetCanvasBackground" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetCanvasBackground" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwSetCanvasBackground" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)qpwSetCanvasBackground(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwEnableOutline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qpwEnableOutline",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwEnableOutline" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwEnableOutline" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwEnableOutline" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qpwEnableOutline(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetOutlinePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qpwSetOutlinePen",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetOutlinePen" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetOutlinePen" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetOutlinePen" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetOutlinePen" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwSetOutlinePen" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)qpwSetOutlinePen(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetAutoLegend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qpwSetAutoLegend",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetAutoLegend" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetAutoLegend" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetAutoLegend" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qpwSetAutoLegend(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwEnableLegend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qpwEnableLegend",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwEnableLegend" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwEnableLegend" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwEnableLegend" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qpwEnableLegend(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetLegendPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qpwSetLegendPos",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetLegendPos" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetLegendPos" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetLegendPos" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qpwSetLegendPos(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetLegendFrameStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qpwSetLegendFrameStyle",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetLegendFrameStyle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetLegendFrameStyle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetLegendFrameStyle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qpwSetLegendFrameStyle(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwEnableGridXMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:qpwEnableGridXMin",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwEnableGridXMin" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwEnableGridXMin" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)qpwEnableGridXMin(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetGridMajPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:qpwSetGridMajPen",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetGridMajPen" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetGridMajPen" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetGridMajPen" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetGridMajPen" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwSetGridMajPen" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qpwSetGridMajPen" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)qpwSetGridMajPen(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetGridMinPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:qpwSetGridMinPen",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetGridMinPen" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetGridMinPen" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetGridMinPen" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetGridMinPen" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwSetGridMinPen" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qpwSetGridMinPen" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)qpwSetGridMinPen(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwEnableAxis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qpwEnableAxis",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwEnableAxis" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwEnableAxis" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwEnableAxis" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qpwEnableAxis(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetAxisTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qpwSetAxisTitle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetAxisTitle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetAxisTitle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetAxisTitle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "qpwSetAxisTitle" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)qpwSetAxisTitle(arg1,arg2,arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetAxisOptions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qpwSetAxisOptions",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetAxisOptions" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetAxisOptions" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetAxisOptions" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetAxisOptions" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qpwSetAxisOptions(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetAxisMaxMajor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qpwSetAxisMaxMajor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetAxisMaxMajor" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetAxisMaxMajor" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetAxisMaxMajor" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetAxisMaxMajor" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qpwSetAxisMaxMajor(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetAxisMaxMinor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qpwSetAxisMaxMinor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetAxisMaxMinor" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetAxisMaxMinor" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetAxisMaxMinor" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetAxisMaxMinor" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qpwSetAxisMaxMinor(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwInsertCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qpwInsertCurve",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwInsertCurve" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwInsertCurve" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwInsertCurve" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "qpwInsertCurve" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)qpwInsertCurve(arg1,arg2,arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwRemoveCurve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qpwRemoveCurve",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwRemoveCurve" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwRemoveCurve" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwRemoveCurve" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qpwRemoveCurve(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetCurvePen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:qpwSetCurvePen",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetCurvePen" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetCurvePen" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetCurvePen" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetCurvePen" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwSetCurvePen" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qpwSetCurvePen" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qpwSetCurvePen" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qpwSetCurvePen" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - result = (int)qpwSetCurvePen(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetCurvePen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:qpwSetCurvePen",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetCurvePen" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetCurvePen" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetCurvePen" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetCurvePen" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwSetCurvePen" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qpwSetCurvePen" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qpwSetCurvePen" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - result = (int)qpwSetCurvePen(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetCurvePen__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:qpwSetCurvePen",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetCurvePen" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetCurvePen" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetCurvePen" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetCurvePen" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwSetCurvePen" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qpwSetCurvePen" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)qpwSetCurvePen(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetCurvePen(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[9]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 8) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qpwSetCurvePen__SWIG_2(self, args); - } - } - } - } - } - } - } - if (argc == 7) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qpwSetCurvePen__SWIG_1(self, args); - } - } - } - } - } - } - } - } - if (argc == 8) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qpwSetCurvePen__SWIG_0(self, args); - } - } - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'qpwSetCurvePen'.\n" - " Possible C/C++ prototypes are:\n" - " qpwSetCurvePen(PARAM *,int,int,int,int,int,int,int)\n" - " qpwSetCurvePen(PARAM *,int,int,int,int,int,int)\n" - " qpwSetCurvePen(PARAM *,int,int,int,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_qpwSetCurveSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - int arg10 ; - int arg11 ; - int arg12 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - int val10 ; - int ecode10 = 0 ; - int val11 ; - int ecode11 = 0 ; - int val12 ; - int ecode12 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - PyObject * obj10 = 0 ; - PyObject * obj11 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOO:qpwSetCurveSymbol",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetCurveSymbol" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetCurveSymbol" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetCurveSymbol" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetCurveSymbol" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwSetCurveSymbol" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qpwSetCurveSymbol" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qpwSetCurveSymbol" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qpwSetCurveSymbol" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qpwSetCurveSymbol" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - ecode10 = SWIG_AsVal_int(obj9, &val10); - if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "qpwSetCurveSymbol" "', argument " "10"" of type '" "int""'"); - } - arg10 = static_cast< int >(val10); - ecode11 = SWIG_AsVal_int(obj10, &val11); - if (!SWIG_IsOK(ecode11)) { - SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "qpwSetCurveSymbol" "', argument " "11"" of type '" "int""'"); - } - arg11 = static_cast< int >(val11); - ecode12 = SWIG_AsVal_int(obj11, &val12); - if (!SWIG_IsOK(ecode12)) { - SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "qpwSetCurveSymbol" "', argument " "12"" of type '" "int""'"); - } - arg12 = static_cast< int >(val12); - result = (int)qpwSetCurveSymbol(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetCurveYAxis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qpwSetCurveYAxis",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetCurveYAxis" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetCurveYAxis" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetCurveYAxis" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetCurveYAxis" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qpwSetCurveYAxis(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwInsertMarker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qpwInsertMarker",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwInsertMarker" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwInsertMarker" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwInsertMarker" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qpwInsertMarker(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetMarkerLineStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qpwSetMarkerLineStyle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetMarkerLineStyle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetMarkerLineStyle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetMarkerLineStyle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetMarkerLineStyle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qpwSetMarkerLineStyle(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetMarkerPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - float arg4 ; - float arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - float val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qpwSetMarkerPos",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetMarkerPos" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetMarkerPos" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetMarkerPos" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetMarkerPos" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - ecode5 = SWIG_AsVal_float(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwSetMarkerPos" "', argument " "5"" of type '" "float""'"); - } - arg5 = static_cast< float >(val5); - result = (int)qpwSetMarkerPos(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetMarkerLabelAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qpwSetMarkerLabelAlign",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetMarkerLabelAlign" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetMarkerLabelAlign" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetMarkerLabelAlign" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetMarkerLabelAlign" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qpwSetMarkerLabelAlign(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetMarkerPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:qpwSetMarkerPen",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetMarkerPen" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetMarkerPen" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetMarkerPen" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetMarkerPen" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwSetMarkerPen" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qpwSetMarkerPen" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qpwSetMarkerPen" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - result = (int)qpwSetMarkerPen(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetMarkerLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qpwSetMarkerLabel",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetMarkerLabel" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetMarkerLabel" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetMarkerLabel" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "qpwSetMarkerLabel" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)qpwSetMarkerLabel(arg1,arg2,arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetMarkerFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:qpwSetMarkerFont",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetMarkerFont" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetMarkerFont" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetMarkerFont" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "qpwSetMarkerFont" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwSetMarkerFont" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qpwSetMarkerFont" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)qpwSetMarkerFont(arg1,arg2,arg3,(char const *)arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetMarkerSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - int arg10 ; - int arg11 ; - int arg12 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - int val10 ; - int ecode10 = 0 ; - int val11 ; - int ecode11 = 0 ; - int val12 ; - int ecode12 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - PyObject * obj10 = 0 ; - PyObject * obj11 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOO:qpwSetMarkerSymbol",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetMarkerSymbol" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetMarkerSymbol" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetMarkerSymbol" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetMarkerSymbol" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwSetMarkerSymbol" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qpwSetMarkerSymbol" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qpwSetMarkerSymbol" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qpwSetMarkerSymbol" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qpwSetMarkerSymbol" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - ecode10 = SWIG_AsVal_int(obj9, &val10); - if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "qpwSetMarkerSymbol" "', argument " "10"" of type '" "int""'"); - } - arg10 = static_cast< int >(val10); - ecode11 = SWIG_AsVal_int(obj10, &val11); - if (!SWIG_IsOK(ecode11)) { - SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "qpwSetMarkerSymbol" "', argument " "11"" of type '" "int""'"); - } - arg11 = static_cast< int >(val11); - ecode12 = SWIG_AsVal_int(obj11, &val12); - if (!SWIG_IsOK(ecode12)) { - SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "qpwSetMarkerSymbol" "', argument " "12"" of type '" "int""'"); - } - arg12 = static_cast< int >(val12); - result = (int)qpwSetMarkerSymbol(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwInsertLineMarker(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qpwInsertLineMarker",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwInsertLineMarker" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwInsertLineMarker" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwInsertLineMarker" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "qpwInsertLineMarker" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwInsertLineMarker" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)qpwInsertLineMarker(arg1,arg2,arg3,(char const *)arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetAxisScaleDraw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qpwSetAxisScaleDraw",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetAxisScaleDraw" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetAxisScaleDraw" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetAxisScaleDraw" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "qpwSetAxisScaleDraw" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)qpwSetAxisScaleDraw(arg1,arg2,arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qpwSetAxisScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - float arg4 ; - float arg5 ; - float arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - float val5 ; - int ecode5 = 0 ; - float val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:qpwSetAxisScale",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qpwSetAxisScale" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qpwSetAxisScale" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qpwSetAxisScale" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qpwSetAxisScale" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - ecode5 = SWIG_AsVal_float(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qpwSetAxisScale" "', argument " "5"" of type '" "float""'"); - } - arg5 = static_cast< float >(val5); - ecode6 = SWIG_AsVal_float(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qpwSetAxisScale" "', argument " "6"" of type '" "float""'"); - } - arg6 = static_cast< float >(val6); - result = (int)qpwSetAxisScale(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetZoomX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetZoomX",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetZoomX" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetZoomX" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetZoomX" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)pvSetZoomX(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetZoomY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetZoomY",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetZoomY" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetZoomY" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetZoomY" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)pvSetZoomY(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gWriteFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:gWriteFile",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gWriteFile" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (int)gWriteFile((char const *)arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gCloseFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int result; - - if (!PyArg_ParseTuple(args,(char *)":gCloseFile")) SWIG_fail; - result = (int)gCloseFile(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gBeginDraw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:gBeginDraw",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gBeginDraw" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gBeginDraw" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)gBeginDraw(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:gBox",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gBox" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gBox" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gBox" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gBox" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gBox" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)gBox(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:gRect",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gRect" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gRect" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gRect" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gRect" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gRect" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)gRect(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gEndDraw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:gEndDraw",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gEndDraw" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)gEndDraw(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gLineTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:gLineTo",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gLineTo" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gLineTo" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gLineTo" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)gLineTo(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gBufferedLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:gBufferedLine",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gBufferedLine" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)gBufferedLine(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - float *arg2 = (float *) 0 ; - float *arg3 = (float *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:gLine",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gLine" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gLine" "', argument " "2"" of type '" "float *""'"); - } - arg2 = reinterpret_cast< float * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gLine" "', argument " "3"" of type '" "float *""'"); - } - arg3 = reinterpret_cast< float * >(argp3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gLine" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)gLine(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gMoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:gMoveTo",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gMoveTo" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gMoveTo" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gMoveTo" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)gMoveTo(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gRightYAxis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - float arg2 ; - float arg3 ; - float arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:gRightYAxis",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gRightYAxis" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gRightYAxis" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gRightYAxis" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gRightYAxis" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gRightYAxis" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)gRightYAxis(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gSetColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:gSetColor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gSetColor" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gSetColor" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gSetColor" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gSetColor" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)gSetColor(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gSetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:gSetWidth",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gSetWidth" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gSetWidth" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)gSetWidth(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gSetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:gSetStyle",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gSetStyle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gSetStyle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)gSetStyle(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gDrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:gDrawArc",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gDrawArc" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gDrawArc" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gDrawArc" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gDrawArc" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gDrawArc" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gDrawArc" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "gDrawArc" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - result = (int)gDrawArc(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gDrawPie(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:gDrawPie",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gDrawPie" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gDrawPie" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gDrawPie" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gDrawPie" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gDrawPie" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gDrawPie" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "gDrawPie" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - result = (int)gDrawPie(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gDrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:gDrawPolygon",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gDrawPolygon" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gDrawPolygon" "', argument " "2"" of type '" "int *""'"); - } - arg2 = reinterpret_cast< int * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "gDrawPolygon" "', argument " "3"" of type '" "int *""'"); - } - arg3 = reinterpret_cast< int * >(argp3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gDrawPolygon" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)gDrawPolygon(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gSetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:gSetFont",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gSetFont" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gSetFont" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gSetFont" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gSetFont" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gSetFont" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)gSetFont(arg1,(char const *)arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gSetLinestyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:gSetLinestyle",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gSetLinestyle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gSetLinestyle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)gSetLinestyle(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:gText",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gText" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gText" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gText" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gText" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gText" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)gText(arg1,arg2,arg3,(char const *)arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gTextInAxis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - float arg2 ; - float arg3 ; - char *arg4 = (char *) 0 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:gTextInAxis",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gTextInAxis" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gTextInAxis" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gTextInAxis" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "gTextInAxis" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gTextInAxis" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)gTextInAxis(arg1,arg2,arg3,(char const *)arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gSetFloatFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:gSetFloatFormat",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gSetFloatFormat" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gSetFloatFormat" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)gSetFloatFormat(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gXAxis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - float arg2 ; - float arg3 ; - float arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:gXAxis",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gXAxis" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gXAxis" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gXAxis" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gXAxis" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gXAxis" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)gXAxis(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gYAxis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - float arg2 ; - float arg3 ; - float arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:gYAxis",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gYAxis" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gYAxis" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gYAxis" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gYAxis" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gYAxis" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)gYAxis(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gXGrid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:gXGrid",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gXGrid" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)gXGrid(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gYGrid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:gYGrid",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gYGrid" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - result = (int)gYGrid(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gBoxWithText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - char *arg7 = (char *) 0 ; - char *arg8 = (char *) 0 ; - char *arg9 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int res7 ; - char *buf7 = 0 ; - int alloc7 = 0 ; - int res8 ; - char *buf8 = 0 ; - int alloc8 = 0 ; - int res9 ; - char *buf9 = 0 ; - int alloc9 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:gBoxWithText",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gBoxWithText" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gBoxWithText" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gBoxWithText" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "gBoxWithText" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "gBoxWithText" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "gBoxWithText" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - res7 = SWIG_AsCharPtrAndSize(obj6, &buf7, NULL, &alloc7); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "gBoxWithText" "', argument " "7"" of type '" "char const *""'"); - } - arg7 = reinterpret_cast< char * >(buf7); - res8 = SWIG_AsCharPtrAndSize(obj7, &buf8, NULL, &alloc8); - if (!SWIG_IsOK(res8)) { - SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "gBoxWithText" "', argument " "8"" of type '" "char const *""'"); - } - arg8 = reinterpret_cast< char * >(buf8); - res9 = SWIG_AsCharPtrAndSize(obj8, &buf9, NULL, &alloc9); - if (!SWIG_IsOK(res9)) { - SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "gBoxWithText" "', argument " "9"" of type '" "char const *""'"); - } - arg9 = reinterpret_cast< char * >(buf9); - result = (int)gBoxWithText(arg1,arg2,arg3,arg4,arg5,arg6,(char const *)arg7,(char const *)arg8,(char const *)arg9); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc7 == SWIG_NEWOBJ) delete[] buf7; - if (alloc8 == SWIG_NEWOBJ) delete[] buf8; - if (alloc9 == SWIG_NEWOBJ) delete[] buf9; - return resultobj; -fail: - if (alloc7 == SWIG_NEWOBJ) delete[] buf7; - if (alloc8 == SWIG_NEWOBJ) delete[] buf8; - if (alloc9 == SWIG_NEWOBJ) delete[] buf9; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gComment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:gComment",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gComment" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gComment" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)gComment(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gPlaySVG(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:gPlaySVG",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gPlaySVG" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gPlaySVG" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)gPlaySVG(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gSocketPlaySVG(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:gSocketPlaySVG",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gSocketPlaySVG" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "gSocketPlaySVG" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)gSocketPlaySVG(arg1,(char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gTranslate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - float arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:gTranslate",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gTranslate" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gTranslate" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gTranslate" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)gTranslate(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gRotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - float arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:gRotate",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gRotate" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gRotate" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - result = (int)gRotate(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_gScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - float arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:gScale",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "gScale" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "gScale" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "gScale" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)gScale(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvSetSelector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvSetSelector",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvSetSelector" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvSetSelector" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvSetSelector" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)pvSetSelector(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvPrintSvgOnPrinter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvPrintSvgOnPrinter",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvPrintSvgOnPrinter" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvPrintSvgOnPrinter" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)pvPrintSvgOnPrinter(arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtScaleSetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtScaleSetTitle",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtScaleSetTitle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtScaleSetTitle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "qwtScaleSetTitle" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)qwtScaleSetTitle(arg1,arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtScaleSetTitleColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtScaleSetTitleColor",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtScaleSetTitleColor" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtScaleSetTitleColor" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtScaleSetTitleColor" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtScaleSetTitleColor" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtScaleSetTitleColor" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)qwtScaleSetTitleColor(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtScaleSetTitleFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - char *arg3 = (char *) 0 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:qwtScaleSetTitleFont",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtScaleSetTitleFont" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtScaleSetTitleFont" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "qwtScaleSetTitleFont" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtScaleSetTitleFont" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtScaleSetTitleFont" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtScaleSetTitleFont" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtScaleSetTitleFont" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtScaleSetTitleFont" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - result = (int)qwtScaleSetTitleFont(arg1,arg2,(char const *)arg3,arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtScaleSetTitleAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtScaleSetTitleAlignment",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtScaleSetTitleAlignment" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtScaleSetTitleAlignment" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtScaleSetTitleAlignment" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtScaleSetTitleAlignment(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtScaleSetBorderDist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtScaleSetBorderDist",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtScaleSetBorderDist" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtScaleSetBorderDist" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtScaleSetBorderDist" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtScaleSetBorderDist" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qwtScaleSetBorderDist(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtScaleSetBaselineDist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtScaleSetBaselineDist",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtScaleSetBaselineDist" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtScaleSetBaselineDist" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtScaleSetBaselineDist" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtScaleSetBaselineDist(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtScaleSetScaleDiv(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - float arg8 ; - int arg9 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - float val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:qwtScaleSetScaleDiv",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtScaleSetScaleDiv" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtScaleSetScaleDiv" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtScaleSetScaleDiv" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtScaleSetScaleDiv" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtScaleSetScaleDiv" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtScaleSetScaleDiv" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtScaleSetScaleDiv" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_float(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtScaleSetScaleDiv" "', argument " "8"" of type '" "float""'"); - } - arg8 = static_cast< float >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qwtScaleSetScaleDiv" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - result = (int)qwtScaleSetScaleDiv(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtScaleSetLabelFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtScaleSetLabelFormat",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtScaleSetLabelFormat" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtScaleSetLabelFormat" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtScaleSetLabelFormat" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtScaleSetLabelFormat" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtScaleSetLabelFormat" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)qwtScaleSetLabelFormat(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtScaleSetLabelAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtScaleSetLabelAlignment",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtScaleSetLabelAlignment" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtScaleSetLabelAlignment" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtScaleSetLabelAlignment" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtScaleSetLabelAlignment(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtScaleSetLabelRotation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtScaleSetLabelRotation",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtScaleSetLabelRotation" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtScaleSetLabelRotation" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtScaleSetLabelRotation" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtScaleSetLabelRotation(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtScaleSetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtScaleSetPosition",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtScaleSetPosition" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtScaleSetPosition" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtScaleSetPosition" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtScaleSetPosition(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtThermoSetScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - float arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - float val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:qwtThermoSetScale",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtThermoSetScale" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtThermoSetScale" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtThermoSetScale" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtThermoSetScale" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - ecode5 = SWIG_AsVal_float(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtThermoSetScale" "', argument " "5"" of type '" "float""'"); - } - arg5 = static_cast< float >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtThermoSetScale" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)qwtThermoSetScale(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtThermoSetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtThermoSetOrientation",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtThermoSetOrientation" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtThermoSetOrientation" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtThermoSetOrientation" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtThermoSetOrientation" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qwtThermoSetOrientation(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtThermoSetBorderWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtThermoSetBorderWidth",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtThermoSetBorderWidth" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtThermoSetBorderWidth" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtThermoSetBorderWidth" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtThermoSetBorderWidth(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtThermoSetFillColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtThermoSetFillColor",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtThermoSetFillColor" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtThermoSetFillColor" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtThermoSetFillColor" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtThermoSetFillColor" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtThermoSetFillColor" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)qwtThermoSetFillColor(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtThermoSetAlarmColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtThermoSetAlarmColor",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtThermoSetAlarmColor" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtThermoSetAlarmColor" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtThermoSetAlarmColor" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtThermoSetAlarmColor" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtThermoSetAlarmColor" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)qwtThermoSetAlarmColor(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtThermoSetAlarmLevel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtThermoSetAlarmLevel",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtThermoSetAlarmLevel" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtThermoSetAlarmLevel" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtThermoSetAlarmLevel" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtThermoSetAlarmLevel(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtThermoSetAlarmEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtThermoSetAlarmEnabled",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtThermoSetAlarmEnabled" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtThermoSetAlarmEnabled" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtThermoSetAlarmEnabled" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtThermoSetAlarmEnabled(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtThermoSetPipeWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtThermoSetPipeWidth",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtThermoSetPipeWidth" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtThermoSetPipeWidth" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtThermoSetPipeWidth" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtThermoSetPipeWidth(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtThermoSetRange__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - float arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - float val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtThermoSetRange",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtThermoSetRange" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtThermoSetRange" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtThermoSetRange" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtThermoSetRange" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - ecode5 = SWIG_AsVal_float(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtThermoSetRange" "', argument " "5"" of type '" "float""'"); - } - arg5 = static_cast< float >(val5); - result = (int)qwtThermoSetRange(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtThermoSetRange__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtThermoSetRange",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtThermoSetRange" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtThermoSetRange" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtThermoSetRange" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtThermoSetRange" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - result = (int)qwtThermoSetRange(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtThermoSetRange(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtThermoSetRange__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtThermoSetRange__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'qwtThermoSetRange'.\n" - " Possible C/C++ prototypes are:\n" - " qwtThermoSetRange(PARAM *,int,float,float,float)\n" - " qwtThermoSetRange(PARAM *,int,float,float)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_qwtThermoSetMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtThermoSetMargin",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtThermoSetMargin" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtThermoSetMargin" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtThermoSetMargin" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtThermoSetMargin(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtThermoSetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtThermoSetValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtThermoSetValue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtThermoSetValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtThermoSetValue" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtThermoSetValue(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtKnobSetScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - float arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - float val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:qwtKnobSetScale",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtKnobSetScale" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtKnobSetScale" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtKnobSetScale" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtKnobSetScale" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - ecode5 = SWIG_AsVal_float(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtKnobSetScale" "', argument " "5"" of type '" "float""'"); - } - arg5 = static_cast< float >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtKnobSetScale" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)qwtKnobSetScale(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtKnobSetMass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtKnobSetMass",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtKnobSetMass" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtKnobSetMass" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtKnobSetMass" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtKnobSetMass(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtKnobSetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtKnobSetOrientation",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtKnobSetOrientation" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtKnobSetOrientation" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtKnobSetOrientation" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtKnobSetOrientation(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtKnobSetReadOnly(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtKnobSetReadOnly",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtKnobSetReadOnly" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtKnobSetReadOnly" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtKnobSetReadOnly" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtKnobSetReadOnly(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtKnobSetKnobWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtKnobSetKnobWidth",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtKnobSetKnobWidth" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtKnobSetKnobWidth" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtKnobSetKnobWidth" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtKnobSetKnobWidth(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtKnobSetTotalAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtKnobSetTotalAngle",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtKnobSetTotalAngle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtKnobSetTotalAngle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtKnobSetTotalAngle" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtKnobSetTotalAngle(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtKnobSetBorderWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtKnobSetBorderWidth",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtKnobSetBorderWidth" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtKnobSetBorderWidth" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtKnobSetBorderWidth" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtKnobSetBorderWidth(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtKnobSetSymbol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtKnobSetSymbol",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtKnobSetSymbol" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtKnobSetSymbol" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtKnobSetSymbol" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtKnobSetSymbol(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtKnobSetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtKnobSetValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtKnobSetValue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtKnobSetValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtKnobSetValue" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtKnobSetValue(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCounterSetStep(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCounterSetStep",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCounterSetStep" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCounterSetStep" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCounterSetStep" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtCounterSetStep(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCounterSetMinValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCounterSetMinValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCounterSetMinValue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCounterSetMinValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCounterSetMinValue" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtCounterSetMinValue(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCounterSetMaxValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCounterSetMaxValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCounterSetMaxValue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCounterSetMaxValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCounterSetMaxValue" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtCounterSetMaxValue(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCounterSetStepButton1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCounterSetStepButton1",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCounterSetStepButton1" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCounterSetStepButton1" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCounterSetStepButton1" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtCounterSetStepButton1(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCounterSetStepButton2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCounterSetStepButton2",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCounterSetStepButton2" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCounterSetStepButton2" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCounterSetStepButton2" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtCounterSetStepButton2(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCounterSetStepButton3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCounterSetStepButton3",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCounterSetStepButton3" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCounterSetStepButton3" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCounterSetStepButton3" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtCounterSetStepButton3(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCounterSetNumButtons(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCounterSetNumButtons",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCounterSetNumButtons" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCounterSetNumButtons" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCounterSetNumButtons" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtCounterSetNumButtons(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCounterSetIncSteps(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtCounterSetIncSteps",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCounterSetIncSteps" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCounterSetIncSteps" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCounterSetIncSteps" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCounterSetIncSteps" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qwtCounterSetIncSteps(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCounterSetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCounterSetValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCounterSetValue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCounterSetValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCounterSetValue" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtCounterSetValue(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtWheelSetMass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtWheelSetMass",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtWheelSetMass" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtWheelSetMass" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtWheelSetMass" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtWheelSetMass(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtWheelSetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtWheelSetOrientation",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtWheelSetOrientation" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtWheelSetOrientation" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtWheelSetOrientation" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtWheelSetOrientation(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtWheelSetReadOnly(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtWheelSetReadOnly",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtWheelSetReadOnly" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtWheelSetReadOnly" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtWheelSetReadOnly" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtWheelSetReadOnly(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtWheelSetTotalAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtWheelSetTotalAngle",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtWheelSetTotalAngle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtWheelSetTotalAngle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtWheelSetTotalAngle" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtWheelSetTotalAngle(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtWheelSetTickCnt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtWheelSetTickCnt",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtWheelSetTickCnt" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtWheelSetTickCnt" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtWheelSetTickCnt" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtWheelSetTickCnt(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtWheelSetViewAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtWheelSetViewAngle",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtWheelSetViewAngle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtWheelSetViewAngle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtWheelSetViewAngle" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtWheelSetViewAngle(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtWheelSetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtWheelSetInternalBorder",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtWheelSetInternalBorder" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtWheelSetInternalBorder" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtWheelSetInternalBorder" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtWheelSetInternalBorder(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtWheelSetWheelWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtWheelSetWheelWidth",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtWheelSetWheelWidth" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtWheelSetWheelWidth" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtWheelSetWheelWidth" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtWheelSetWheelWidth(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtWheelSetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtWheelSetValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtWheelSetValue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtWheelSetValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtWheelSetValue" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtWheelSetValue(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtSliderSetScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - float arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - float val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:qwtSliderSetScale",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtSliderSetScale" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtSliderSetScale" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtSliderSetScale" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtSliderSetScale" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - ecode5 = SWIG_AsVal_float(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtSliderSetScale" "', argument " "5"" of type '" "float""'"); - } - arg5 = static_cast< float >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtSliderSetScale" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)qwtSliderSetScale(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtSliderSetMass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtSliderSetMass",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtSliderSetMass" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtSliderSetMass" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtSliderSetMass" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtSliderSetMass(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtSliderSetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtSliderSetOrientation",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtSliderSetOrientation" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtSliderSetOrientation" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtSliderSetOrientation" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtSliderSetOrientation(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtSliderSetReadOnly(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtSliderSetReadOnly",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtSliderSetReadOnly" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtSliderSetReadOnly" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtSliderSetReadOnly" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtSliderSetReadOnly(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtSliderSetBgStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtSliderSetBgStyle",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtSliderSetBgStyle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtSliderSetBgStyle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtSliderSetBgStyle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtSliderSetBgStyle(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtSliderSetScalePos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtSliderSetScalePos",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtSliderSetScalePos" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtSliderSetScalePos" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtSliderSetScalePos" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtSliderSetScalePos(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtSliderSetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtSliderSetThumbLength",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtSliderSetThumbLength" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtSliderSetThumbLength" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtSliderSetThumbLength" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtSliderSetThumbLength(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtSliderSetThumbWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtSliderSetThumbWidth",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtSliderSetThumbWidth" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtSliderSetThumbWidth" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtSliderSetThumbWidth" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtSliderSetThumbWidth(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtSliderSetBorderWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtSliderSetBorderWidth",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtSliderSetBorderWidth" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtSliderSetBorderWidth" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtSliderSetBorderWidth" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtSliderSetBorderWidth(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtSliderSetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtSliderSetMargins",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtSliderSetMargins" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtSliderSetMargins" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtSliderSetMargins" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtSliderSetMargins" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qwtSliderSetMargins(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtSliderSetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtSliderSetValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtSliderSetValue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtSliderSetValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtSliderSetValue" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtSliderSetValue(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetSimpleCompassRose__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - float arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - float val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtCompassSetSimpleCompassRose",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetSimpleCompassRose" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetSimpleCompassRose" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetSimpleCompassRose" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetSimpleCompassRose" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_float(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtCompassSetSimpleCompassRose" "', argument " "5"" of type '" "float""'"); - } - arg5 = static_cast< float >(val5); - result = (int)qwtCompassSetSimpleCompassRose(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetSimpleCompassRose__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtCompassSetSimpleCompassRose",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetSimpleCompassRose" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetSimpleCompassRose" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetSimpleCompassRose" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetSimpleCompassRose" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qwtCompassSetSimpleCompassRose(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetSimpleCompassRose(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetSimpleCompassRose__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetSimpleCompassRose__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'qwtCompassSetSimpleCompassRose'.\n" - " Possible C/C++ prototypes are:\n" - " qwtCompassSetSimpleCompassRose(PARAM *,int,int,int,float)\n" - " qwtCompassSetSimpleCompassRose(PARAM *,int,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetRange__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - float arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - float val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtCompassSetRange",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetRange" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetRange" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetRange" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetRange" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - ecode5 = SWIG_AsVal_float(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtCompassSetRange" "', argument " "5"" of type '" "float""'"); - } - arg5 = static_cast< float >(val5); - result = (int)qwtCompassSetRange(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetRange__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtCompassSetRange",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetRange" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetRange" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetRange" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetRange" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - result = (int)qwtCompassSetRange(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetRange(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetRange__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetRange__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'qwtCompassSetRange'.\n" - " Possible C/C++ prototypes are:\n" - " qwtCompassSetRange(PARAM *,int,float,float,float)\n" - " qwtCompassSetRange(PARAM *,int,float,float)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetMass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCompassSetMass",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetMass" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetMass" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetMass" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtCompassSetMass(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetReadOnly(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCompassSetReadOnly",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetReadOnly" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetReadOnly" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetReadOnly" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtCompassSetReadOnly(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetFrameShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCompassSetFrameShadow",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetFrameShadow" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetFrameShadow" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetFrameShadow" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtCompassSetFrameShadow(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassShowBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCompassShowBackground",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassShowBackground" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassShowBackground" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassShowBackground" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtCompassShowBackground(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetLineWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCompassSetLineWidth",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetLineWidth" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetLineWidth" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetLineWidth" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtCompassSetLineWidth(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCompassSetMode",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetMode" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetMode" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetMode" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtCompassSetMode(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetWrapping(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCompassSetWrapping",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetWrapping" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetWrapping" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetWrapping" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtCompassSetWrapping(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - float arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - float val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtCompassSetScale",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetScale" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetScale" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetScale" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetScale" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_float(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtCompassSetScale" "', argument " "5"" of type '" "float""'"); - } - arg5 = static_cast< float >(val5); - result = (int)qwtCompassSetScale(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetScaleArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtCompassSetScaleArc",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetScaleArc" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetScaleArc" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetScaleArc" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetScaleArc" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - result = (int)qwtCompassSetScaleArc(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCompassSetOrigin",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetOrigin" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetOrigin" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetOrigin" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtCompassSetOrigin(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetNeedle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - int arg10 ; - int arg11 ; - int arg12 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - int val10 ; - int ecode10 = 0 ; - int val11 ; - int ecode11 = 0 ; - int val12 ; - int ecode12 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - PyObject * obj10 = 0 ; - PyObject * obj11 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOO:qwtCompassSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtCompassSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtCompassSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtCompassSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtCompassSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qwtCompassSetNeedle" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - ecode10 = SWIG_AsVal_int(obj9, &val10); - if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "qwtCompassSetNeedle" "', argument " "10"" of type '" "int""'"); - } - arg10 = static_cast< int >(val10); - ecode11 = SWIG_AsVal_int(obj10, &val11); - if (!SWIG_IsOK(ecode11)) { - SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "qwtCompassSetNeedle" "', argument " "11"" of type '" "int""'"); - } - arg11 = static_cast< int >(val11); - ecode12 = SWIG_AsVal_int(obj11, &val12); - if (!SWIG_IsOK(ecode12)) { - SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "qwtCompassSetNeedle" "', argument " "12"" of type '" "int""'"); - } - arg12 = static_cast< int >(val12); - result = (int)qwtCompassSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetNeedle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - int arg10 ; - int arg11 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - int val10 ; - int ecode10 = 0 ; - int val11 ; - int ecode11 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - PyObject * obj10 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOO:qwtCompassSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtCompassSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtCompassSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtCompassSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtCompassSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qwtCompassSetNeedle" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - ecode10 = SWIG_AsVal_int(obj9, &val10); - if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "qwtCompassSetNeedle" "', argument " "10"" of type '" "int""'"); - } - arg10 = static_cast< int >(val10); - ecode11 = SWIG_AsVal_int(obj10, &val11); - if (!SWIG_IsOK(ecode11)) { - SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "qwtCompassSetNeedle" "', argument " "11"" of type '" "int""'"); - } - arg11 = static_cast< int >(val11); - result = (int)qwtCompassSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetNeedle__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - int arg10 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - int val10 ; - int ecode10 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:qwtCompassSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtCompassSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtCompassSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtCompassSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtCompassSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qwtCompassSetNeedle" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - ecode10 = SWIG_AsVal_int(obj9, &val10); - if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "qwtCompassSetNeedle" "', argument " "10"" of type '" "int""'"); - } - arg10 = static_cast< int >(val10); - result = (int)qwtCompassSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetNeedle__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:qwtCompassSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtCompassSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtCompassSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtCompassSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtCompassSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qwtCompassSetNeedle" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - result = (int)qwtCompassSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetNeedle__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:qwtCompassSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtCompassSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtCompassSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtCompassSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtCompassSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - result = (int)qwtCompassSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetNeedle__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:qwtCompassSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtCompassSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtCompassSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtCompassSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - result = (int)qwtCompassSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetNeedle__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:qwtCompassSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtCompassSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtCompassSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)qwtCompassSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetNeedle__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtCompassSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtCompassSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)qwtCompassSetNeedle(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetNeedle__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtCompassSetNeedle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtCompassSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qwtCompassSetNeedle(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetNeedle__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCompassSetNeedle",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtCompassSetNeedle(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetNeedle(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[13]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 12) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetNeedle__SWIG_9(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetNeedle__SWIG_8(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetNeedle__SWIG_7(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetNeedle__SWIG_6(self, args); - } - } - } - } - } - } - } - if (argc == 7) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetNeedle__SWIG_5(self, args); - } - } - } - } - } - } - } - } - if (argc == 8) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetNeedle__SWIG_4(self, args); - } - } - } - } - } - } - } - } - } - if (argc == 9) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetNeedle__SWIG_3(self, args); - } - } - } - } - } - } - } - } - } - } - if (argc == 10) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[9], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetNeedle__SWIG_2(self, args); - } - } - } - } - } - } - } - } - } - } - } - if (argc == 11) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[9], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[10], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetNeedle__SWIG_1(self, args); - } - } - } - } - } - } - } - } - } - } - } - } - if (argc == 12) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[9], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[10], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[11], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtCompassSetNeedle__SWIG_0(self, args); - } - } - } - } - } - } - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'qwtCompassSetNeedle'.\n" - " Possible C/C++ prototypes are:\n" - " qwtCompassSetNeedle(PARAM *,int,int,int,int,int,int,int,int,int,int,int)\n" - " qwtCompassSetNeedle(PARAM *,int,int,int,int,int,int,int,int,int,int)\n" - " qwtCompassSetNeedle(PARAM *,int,int,int,int,int,int,int,int,int)\n" - " qwtCompassSetNeedle(PARAM *,int,int,int,int,int,int,int,int)\n" - " qwtCompassSetNeedle(PARAM *,int,int,int,int,int,int,int)\n" - " qwtCompassSetNeedle(PARAM *,int,int,int,int,int,int)\n" - " qwtCompassSetNeedle(PARAM *,int,int,int,int,int)\n" - " qwtCompassSetNeedle(PARAM *,int,int,int,int)\n" - " qwtCompassSetNeedle(PARAM *,int,int,int)\n" - " qwtCompassSetNeedle(PARAM *,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_qwtCompassSetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtCompassSetValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtCompassSetValue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtCompassSetValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtCompassSetValue" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtCompassSetValue(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetRange__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - float arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - float val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtDialSetRange",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetRange" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetRange" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetRange" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtDialSetRange" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - ecode5 = SWIG_AsVal_float(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtDialSetRange" "', argument " "5"" of type '" "float""'"); - } - arg5 = static_cast< float >(val5); - result = (int)qwtDialSetRange(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetRange__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtDialSetRange",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetRange" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetRange" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetRange" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtDialSetRange" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - result = (int)qwtDialSetRange(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetRange(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 5) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtDialSetRange__SWIG_1(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_float(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtDialSetRange__SWIG_0(self, args); - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'qwtDialSetRange'.\n" - " Possible C/C++ prototypes are:\n" - " qwtDialSetRange(PARAM *,int,float,float,float)\n" - " qwtDialSetRange(PARAM *,int,float,float)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetMass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtDialSetMass",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetMass" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetMass" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetMass" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtDialSetMass(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetReadOnly(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtDialSetReadOnly",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetReadOnly" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetReadOnly" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetReadOnly" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtDialSetReadOnly(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetFrameShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtDialSetFrameShadow",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetFrameShadow" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetFrameShadow" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetFrameShadow" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtDialSetFrameShadow(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialShowBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtDialShowBackground",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialShowBackground" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialShowBackground" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialShowBackground" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtDialShowBackground(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetLineWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtDialSetLineWidth",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetLineWidth" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetLineWidth" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetLineWidth" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtDialSetLineWidth(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtDialSetMode",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetMode" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetMode" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetMode" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtDialSetMode(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetWrapping(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtDialSetWrapping",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetWrapping" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetWrapping" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetWrapping" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtDialSetWrapping(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - float arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - float val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtDialSetScale",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetScale" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetScale" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetScale" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtDialSetScale" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_float(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtDialSetScale" "', argument " "5"" of type '" "float""'"); - } - arg5 = static_cast< float >(val5); - result = (int)qwtDialSetScale(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetScaleArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtDialSetScaleArc",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetScaleArc" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetScaleArc" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetScaleArc" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtDialSetScaleArc" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - result = (int)qwtDialSetScaleArc(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtDialSetOrigin",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetOrigin" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetOrigin" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetOrigin" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtDialSetOrigin(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetNeedle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - int arg10 ; - int arg11 ; - int arg12 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - int val10 ; - int ecode10 = 0 ; - int val11 ; - int ecode11 = 0 ; - int val12 ; - int ecode12 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - PyObject * obj10 = 0 ; - PyObject * obj11 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOO:qwtDialSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtDialSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtDialSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtDialSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtDialSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtDialSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qwtDialSetNeedle" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - ecode10 = SWIG_AsVal_int(obj9, &val10); - if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "qwtDialSetNeedle" "', argument " "10"" of type '" "int""'"); - } - arg10 = static_cast< int >(val10); - ecode11 = SWIG_AsVal_int(obj10, &val11); - if (!SWIG_IsOK(ecode11)) { - SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "qwtDialSetNeedle" "', argument " "11"" of type '" "int""'"); - } - arg11 = static_cast< int >(val11); - ecode12 = SWIG_AsVal_int(obj11, &val12); - if (!SWIG_IsOK(ecode12)) { - SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "qwtDialSetNeedle" "', argument " "12"" of type '" "int""'"); - } - arg12 = static_cast< int >(val12); - result = (int)qwtDialSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetNeedle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - int arg10 ; - int arg11 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - int val10 ; - int ecode10 = 0 ; - int val11 ; - int ecode11 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - PyObject * obj10 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOO:qwtDialSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtDialSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtDialSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtDialSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtDialSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtDialSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qwtDialSetNeedle" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - ecode10 = SWIG_AsVal_int(obj9, &val10); - if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "qwtDialSetNeedle" "', argument " "10"" of type '" "int""'"); - } - arg10 = static_cast< int >(val10); - ecode11 = SWIG_AsVal_int(obj10, &val11); - if (!SWIG_IsOK(ecode11)) { - SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "qwtDialSetNeedle" "', argument " "11"" of type '" "int""'"); - } - arg11 = static_cast< int >(val11); - result = (int)qwtDialSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetNeedle__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - int arg10 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - int val10 ; - int ecode10 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:qwtDialSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtDialSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtDialSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtDialSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtDialSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtDialSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qwtDialSetNeedle" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - ecode10 = SWIG_AsVal_int(obj9, &val10); - if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "qwtDialSetNeedle" "', argument " "10"" of type '" "int""'"); - } - arg10 = static_cast< int >(val10); - result = (int)qwtDialSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetNeedle__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:qwtDialSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtDialSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtDialSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtDialSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtDialSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtDialSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qwtDialSetNeedle" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - result = (int)qwtDialSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetNeedle__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:qwtDialSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtDialSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtDialSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtDialSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtDialSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtDialSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - result = (int)qwtDialSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetNeedle__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:qwtDialSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtDialSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtDialSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtDialSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtDialSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - result = (int)qwtDialSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetNeedle__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:qwtDialSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtDialSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtDialSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtDialSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)qwtDialSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetNeedle__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtDialSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtDialSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtDialSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)qwtDialSetNeedle(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetNeedle__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtDialSetNeedle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtDialSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qwtDialSetNeedle(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetNeedle__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtDialSetNeedle",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtDialSetNeedle(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetNeedle(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[13]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 12) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtDialSetNeedle__SWIG_9(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtDialSetNeedle__SWIG_8(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtDialSetNeedle__SWIG_7(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtDialSetNeedle__SWIG_6(self, args); - } - } - } - } - } - } - } - if (argc == 7) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtDialSetNeedle__SWIG_5(self, args); - } - } - } - } - } - } - } - } - if (argc == 8) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtDialSetNeedle__SWIG_4(self, args); - } - } - } - } - } - } - } - } - } - if (argc == 9) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtDialSetNeedle__SWIG_3(self, args); - } - } - } - } - } - } - } - } - } - } - if (argc == 10) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[9], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtDialSetNeedle__SWIG_2(self, args); - } - } - } - } - } - } - } - } - } - } - } - if (argc == 11) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[9], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[10], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtDialSetNeedle__SWIG_1(self, args); - } - } - } - } - } - } - } - } - } - } - } - } - if (argc == 12) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[9], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[10], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[11], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtDialSetNeedle__SWIG_0(self, args); - } - } - } - } - } - } - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'qwtDialSetNeedle'.\n" - " Possible C/C++ prototypes are:\n" - " qwtDialSetNeedle(PARAM *,int,int,int,int,int,int,int,int,int,int,int)\n" - " qwtDialSetNeedle(PARAM *,int,int,int,int,int,int,int,int,int,int)\n" - " qwtDialSetNeedle(PARAM *,int,int,int,int,int,int,int,int,int)\n" - " qwtDialSetNeedle(PARAM *,int,int,int,int,int,int,int,int)\n" - " qwtDialSetNeedle(PARAM *,int,int,int,int,int,int,int)\n" - " qwtDialSetNeedle(PARAM *,int,int,int,int,int,int)\n" - " qwtDialSetNeedle(PARAM *,int,int,int,int,int)\n" - " qwtDialSetNeedle(PARAM *,int,int,int,int)\n" - " qwtDialSetNeedle(PARAM *,int,int,int)\n" - " qwtDialSetNeedle(PARAM *,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_qwtDialSetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtDialSetValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtDialSetValue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtDialSetValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtDialSetValue" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtDialSetValue(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtAnalogClockSetTime",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetTime" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetTime" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetTime" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtAnalogClockSetTime" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtAnalogClockSetTime" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)qwtAnalogClockSetTime(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetMass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtAnalogClockSetMass",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetMass" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetMass" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetMass" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtAnalogClockSetMass(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetReadOnly(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtAnalogClockSetReadOnly",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetReadOnly" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetReadOnly" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetReadOnly" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtAnalogClockSetReadOnly(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetFrameShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtAnalogClockSetFrameShadow",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetFrameShadow" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetFrameShadow" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetFrameShadow" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtAnalogClockSetFrameShadow(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockShowBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtAnalogClockShowBackground",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockShowBackground" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockShowBackground" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockShowBackground" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtAnalogClockShowBackground(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetLineWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtAnalogClockSetLineWidth",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetLineWidth" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetLineWidth" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetLineWidth" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtAnalogClockSetLineWidth(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtAnalogClockSetMode",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetMode" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetMode" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetMode" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtAnalogClockSetMode(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetWrapping(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtAnalogClockSetWrapping",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetWrapping" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetWrapping" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetWrapping" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtAnalogClockSetWrapping(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - float arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - float val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtAnalogClockSetScale",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetScale" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetScale" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetScale" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtAnalogClockSetScale" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_float(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtAnalogClockSetScale" "', argument " "5"" of type '" "float""'"); - } - arg5 = static_cast< float >(val5); - result = (int)qwtAnalogClockSetScale(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetScaleArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - float arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - float val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtAnalogClockSetScaleArc",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetScaleArc" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetScaleArc" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetScaleArc" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - ecode4 = SWIG_AsVal_float(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtAnalogClockSetScaleArc" "', argument " "4"" of type '" "float""'"); - } - arg4 = static_cast< float >(val4); - result = (int)qwtAnalogClockSetScaleArc(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtAnalogClockSetOrigin",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetOrigin" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetOrigin" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetOrigin" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtAnalogClockSetOrigin(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetNeedle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - int arg10 ; - int arg11 ; - int arg12 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - int val10 ; - int ecode10 = 0 ; - int val11 ; - int ecode11 = 0 ; - int val12 ; - int ecode12 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - PyObject * obj10 = 0 ; - PyObject * obj11 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOO:qwtAnalogClockSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtAnalogClockSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtAnalogClockSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtAnalogClockSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtAnalogClockSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtAnalogClockSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qwtAnalogClockSetNeedle" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - ecode10 = SWIG_AsVal_int(obj9, &val10); - if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "qwtAnalogClockSetNeedle" "', argument " "10"" of type '" "int""'"); - } - arg10 = static_cast< int >(val10); - ecode11 = SWIG_AsVal_int(obj10, &val11); - if (!SWIG_IsOK(ecode11)) { - SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "qwtAnalogClockSetNeedle" "', argument " "11"" of type '" "int""'"); - } - arg11 = static_cast< int >(val11); - ecode12 = SWIG_AsVal_int(obj11, &val12); - if (!SWIG_IsOK(ecode12)) { - SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "qwtAnalogClockSetNeedle" "', argument " "12"" of type '" "int""'"); - } - arg12 = static_cast< int >(val12); - result = (int)qwtAnalogClockSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetNeedle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - int arg10 ; - int arg11 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - int val10 ; - int ecode10 = 0 ; - int val11 ; - int ecode11 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - PyObject * obj10 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOO:qwtAnalogClockSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtAnalogClockSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtAnalogClockSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtAnalogClockSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtAnalogClockSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtAnalogClockSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qwtAnalogClockSetNeedle" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - ecode10 = SWIG_AsVal_int(obj9, &val10); - if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "qwtAnalogClockSetNeedle" "', argument " "10"" of type '" "int""'"); - } - arg10 = static_cast< int >(val10); - ecode11 = SWIG_AsVal_int(obj10, &val11); - if (!SWIG_IsOK(ecode11)) { - SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "qwtAnalogClockSetNeedle" "', argument " "11"" of type '" "int""'"); - } - arg11 = static_cast< int >(val11); - result = (int)qwtAnalogClockSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetNeedle__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - int arg10 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - int val10 ; - int ecode10 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - PyObject * obj9 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOO:qwtAnalogClockSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtAnalogClockSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtAnalogClockSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtAnalogClockSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtAnalogClockSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtAnalogClockSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qwtAnalogClockSetNeedle" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - ecode10 = SWIG_AsVal_int(obj9, &val10); - if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "qwtAnalogClockSetNeedle" "', argument " "10"" of type '" "int""'"); - } - arg10 = static_cast< int >(val10); - result = (int)qwtAnalogClockSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetNeedle__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - int arg9 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - int val9 ; - int ecode9 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - PyObject * obj8 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:qwtAnalogClockSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtAnalogClockSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtAnalogClockSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtAnalogClockSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtAnalogClockSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtAnalogClockSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - ecode9 = SWIG_AsVal_int(obj8, &val9); - if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "qwtAnalogClockSetNeedle" "', argument " "9"" of type '" "int""'"); - } - arg9 = static_cast< int >(val9); - result = (int)qwtAnalogClockSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetNeedle__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - int arg8 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - int val8 ; - int ecode8 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:qwtAnalogClockSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtAnalogClockSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtAnalogClockSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtAnalogClockSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtAnalogClockSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - ecode8 = SWIG_AsVal_int(obj7, &val8); - if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "qwtAnalogClockSetNeedle" "', argument " "8"" of type '" "int""'"); - } - arg8 = static_cast< int >(val8); - result = (int)qwtAnalogClockSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetNeedle__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - int arg7 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - int val7 ; - int ecode7 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:qwtAnalogClockSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtAnalogClockSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtAnalogClockSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtAnalogClockSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - ecode7 = SWIG_AsVal_int(obj6, &val7); - if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "qwtAnalogClockSetNeedle" "', argument " "7"" of type '" "int""'"); - } - arg7 = static_cast< int >(val7); - result = (int)qwtAnalogClockSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetNeedle__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - int arg6 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - int val6 ; - int ecode6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:qwtAnalogClockSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtAnalogClockSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtAnalogClockSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - ecode6 = SWIG_AsVal_int(obj5, &val6); - if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "qwtAnalogClockSetNeedle" "', argument " "6"" of type '" "int""'"); - } - arg6 = static_cast< int >(val6); - result = (int)qwtAnalogClockSetNeedle(arg1,arg2,arg3,arg4,arg5,arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetNeedle__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - int arg5 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - int val5 ; - int ecode5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:qwtAnalogClockSetNeedle",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtAnalogClockSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - ecode5 = SWIG_AsVal_int(obj4, &val5); - if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "qwtAnalogClockSetNeedle" "', argument " "5"" of type '" "int""'"); - } - arg5 = static_cast< int >(val5); - result = (int)qwtAnalogClockSetNeedle(arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetNeedle__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int val4 ; - int ecode4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:qwtAnalogClockSetNeedle",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - ecode4 = SWIG_AsVal_int(obj3, &val4); - if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "qwtAnalogClockSetNeedle" "', argument " "4"" of type '" "int""'"); - } - arg4 = static_cast< int >(val4); - result = (int)qwtAnalogClockSetNeedle(arg1,arg2,arg3,arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetNeedle__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtAnalogClockSetNeedle",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetNeedle" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetNeedle" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetNeedle" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)qwtAnalogClockSetNeedle(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetNeedle(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[13]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 12) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 3) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtAnalogClockSetNeedle__SWIG_9(self, args); - } - } - } - } - if (argc == 4) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtAnalogClockSetNeedle__SWIG_8(self, args); - } - } - } - } - } - if (argc == 5) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtAnalogClockSetNeedle__SWIG_7(self, args); - } - } - } - } - } - } - if (argc == 6) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtAnalogClockSetNeedle__SWIG_6(self, args); - } - } - } - } - } - } - } - if (argc == 7) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtAnalogClockSetNeedle__SWIG_5(self, args); - } - } - } - } - } - } - } - } - if (argc == 8) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtAnalogClockSetNeedle__SWIG_4(self, args); - } - } - } - } - } - } - } - } - } - if (argc == 9) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtAnalogClockSetNeedle__SWIG_3(self, args); - } - } - } - } - } - } - } - } - } - } - if (argc == 10) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[9], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtAnalogClockSetNeedle__SWIG_2(self, args); - } - } - } - } - } - } - } - } - } - } - } - if (argc == 11) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[9], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[10], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtAnalogClockSetNeedle__SWIG_1(self, args); - } - } - } - } - } - } - } - } - } - } - } - } - if (argc == 12) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__PARAM_, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[4], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[5], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[6], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[7], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[8], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[9], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[10], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[11], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_qwtAnalogClockSetNeedle__SWIG_0(self, args); - } - } - } - } - } - } - } - } - } - } - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'qwtAnalogClockSetNeedle'.\n" - " Possible C/C++ prototypes are:\n" - " qwtAnalogClockSetNeedle(PARAM *,int,int,int,int,int,int,int,int,int,int,int)\n" - " qwtAnalogClockSetNeedle(PARAM *,int,int,int,int,int,int,int,int,int,int)\n" - " qwtAnalogClockSetNeedle(PARAM *,int,int,int,int,int,int,int,int,int)\n" - " qwtAnalogClockSetNeedle(PARAM *,int,int,int,int,int,int,int,int)\n" - " qwtAnalogClockSetNeedle(PARAM *,int,int,int,int,int,int,int)\n" - " qwtAnalogClockSetNeedle(PARAM *,int,int,int,int,int,int)\n" - " qwtAnalogClockSetNeedle(PARAM *,int,int,int,int,int)\n" - " qwtAnalogClockSetNeedle(PARAM *,int,int,int,int)\n" - " qwtAnalogClockSetNeedle(PARAM *,int,int,int)\n" - " qwtAnalogClockSetNeedle(PARAM *,int,int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_qwtAnalogClockSetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - float arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - float val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qwtAnalogClockSetValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qwtAnalogClockSetValue" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qwtAnalogClockSetValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_float(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qwtAnalogClockSetValue" "', argument " "3"" of type '" "float""'"); - } - arg3 = static_cast< float >(val3); - result = (int)qwtAnalogClockSetValue(arg1,arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_unit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - float arg2 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - float val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - float result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:unit",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "unit" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_float(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "unit" "', argument " "2"" of type '" "float""'"); - } - arg2 = static_cast< float >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "unit" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (float)unit(arg1,arg2,arg3); - resultobj = SWIG_From_float(static_cast< float >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_textEventType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:textEventType",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "textEventType" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (int)textEventType((char const *)arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_svgObjectName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:svgObjectName",&obj0)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "svgObjectName" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - result = (char *)svgObjectName((char const *)arg1); - resultobj = SWIG_FromCharPtr((const char *)result); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_getSvgBoundsOnElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - float *arg2 = (float *) 0 ; - float *arg3 = (float *) 0 ; - float *arg4 = (float *) 0 ; - float *arg5 = (float *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:getSvgBoundsOnElement",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getSvgBoundsOnElement" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "getSvgBoundsOnElement" "', argument " "2"" of type '" "float *""'"); - } - arg2 = reinterpret_cast< float * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "getSvgBoundsOnElement" "', argument " "3"" of type '" "float *""'"); - } - arg3 = reinterpret_cast< float * >(argp3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "getSvgBoundsOnElement" "', argument " "4"" of type '" "float *""'"); - } - arg4 = reinterpret_cast< float * >(argp4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "getSvgBoundsOnElement" "', argument " "5"" of type '" "float *""'"); - } - arg5 = reinterpret_cast< float * >(argp5); - result = (int)getSvgBoundsOnElement((char const *)arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_getSvgMatrixForElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - float *arg2 = (float *) 0 ; - float *arg3 = (float *) 0 ; - float *arg4 = (float *) 0 ; - float *arg5 = (float *) 0 ; - float *arg6 = (float *) 0 ; - float *arg7 = (float *) 0 ; - float *arg8 = (float *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - void *argp6 = 0 ; - int res6 = 0 ; - void *argp7 = 0 ; - int res7 = 0 ; - void *argp8 = 0 ; - int res8 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - PyObject * obj6 = 0 ; - PyObject * obj7 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:getSvgMatrixForElement",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getSvgMatrixForElement" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "getSvgMatrixForElement" "', argument " "2"" of type '" "float *""'"); - } - arg2 = reinterpret_cast< float * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "getSvgMatrixForElement" "', argument " "3"" of type '" "float *""'"); - } - arg3 = reinterpret_cast< float * >(argp3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "getSvgMatrixForElement" "', argument " "4"" of type '" "float *""'"); - } - arg4 = reinterpret_cast< float * >(argp4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "getSvgMatrixForElement" "', argument " "5"" of type '" "float *""'"); - } - arg5 = reinterpret_cast< float * >(argp5); - res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "getSvgMatrixForElement" "', argument " "6"" of type '" "float *""'"); - } - arg6 = reinterpret_cast< float * >(argp6); - res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res7)) { - SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "getSvgMatrixForElement" "', argument " "7"" of type '" "float *""'"); - } - arg7 = reinterpret_cast< float * >(argp7); - res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_float, 0 | 0 ); - if (!SWIG_IsOK(res8)) { - SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "getSvgMatrixForElement" "', argument " "8"" of type '" "float *""'"); - } - arg8 = reinterpret_cast< float * >(argp8); - result = (int)getSvgMatrixForElement((char const *)arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_getGeometry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int *arg4 = (int *) 0 ; - int *arg5 = (int *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; - void *argp5 = 0 ; - int res5 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOO:getGeometry",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getGeometry" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "getGeometry" "', argument " "2"" of type '" "int *""'"); - } - arg2 = reinterpret_cast< int * >(argp2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "getGeometry" "', argument " "3"" of type '" "int *""'"); - } - arg3 = reinterpret_cast< int * >(argp3); - res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "getGeometry" "', argument " "4"" of type '" "int *""'"); - } - arg4 = reinterpret_cast< int * >(argp4); - res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "getGeometry" "', argument " "5"" of type '" "int *""'"); - } - arg5 = reinterpret_cast< int * >(argp5); - result = (int)getGeometry((char const *)arg1,arg2,arg3,arg4,arg5); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_getParentWidgetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - char *arg1 = (char *) 0 ; - int *arg2 = (int *) 0 ; - int res1 ; - char *buf1 = 0 ; - int alloc1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:getParentWidgetId",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "getParentWidgetId" "', argument " "1"" of type '" "char const *""'"); - } - arg1 = reinterpret_cast< char * >(buf1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "getParentWidgetId" "', argument " "2"" of type '" "int *""'"); - } - arg2 = reinterpret_cast< int * >(argp2); - result = (int)getParentWidgetId((char const *)arg1,arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return resultobj; -fail: - if (alloc1 == SWIG_NEWOBJ) delete[] buf1; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_pvWidgetIdManager(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_pvWidgetIdManager")) SWIG_fail; - result = (pvWidgetIdManager *)new pvWidgetIdManager(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pvWidgetIdManager, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_pvWidgetIdManager(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *arg1 = (pvWidgetIdManager *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_pvWidgetIdManager",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvWidgetIdManager, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_pvWidgetIdManager" "', argument " "1"" of type '" "pvWidgetIdManager *""'"); - } - arg1 = reinterpret_cast< pvWidgetIdManager * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWidgetIdManager_init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *arg1 = (pvWidgetIdManager *) 0 ; - PARAM *arg2 = (PARAM *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvWidgetIdManager_init",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvWidgetIdManager, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWidgetIdManager_init" "', argument " "1"" of type '" "pvWidgetIdManager *""'"); - } - arg1 = reinterpret_cast< pvWidgetIdManager * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvWidgetIdManager_init" "', argument " "2"" of type '" "PARAM *""'"); - } - arg2 = reinterpret_cast< PARAM * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvWidgetIdManager_init" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->init(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWidgetIdManager_newId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *arg1 = (pvWidgetIdManager *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvWidgetIdManager_newId",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvWidgetIdManager, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWidgetIdManager_newId" "', argument " "1"" of type '" "pvWidgetIdManager *""'"); - } - arg1 = reinterpret_cast< pvWidgetIdManager * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvWidgetIdManager_newId" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->newId((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWidgetIdManager_deleteWidget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *arg1 = (pvWidgetIdManager *) 0 ; - PARAM *arg2 = (PARAM *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:pvWidgetIdManager_deleteWidget",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvWidgetIdManager, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWidgetIdManager_deleteWidget" "', argument " "1"" of type '" "pvWidgetIdManager *""'"); - } - arg1 = reinterpret_cast< pvWidgetIdManager * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvWidgetIdManager_deleteWidget" "', argument " "2"" of type '" "PARAM *""'"); - } - arg2 = reinterpret_cast< PARAM * >(argp2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "pvWidgetIdManager_deleteWidget" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)(arg1)->deleteWidget(arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWidgetIdManager_id(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *arg1 = (pvWidgetIdManager *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvWidgetIdManager_id",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvWidgetIdManager, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWidgetIdManager_id" "', argument " "1"" of type '" "pvWidgetIdManager *""'"); - } - arg1 = reinterpret_cast< pvWidgetIdManager * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvWidgetIdManager_id" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->id((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWidgetIdManager_isInMap__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *arg1 = (pvWidgetIdManager *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvWidgetIdManager_isInMap",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvWidgetIdManager, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWidgetIdManager_isInMap" "', argument " "1"" of type '" "pvWidgetIdManager *""'"); - } - arg1 = reinterpret_cast< pvWidgetIdManager * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvWidgetIdManager_isInMap" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->isInMap((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWidgetIdManager_isInMap__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *arg1 = (pvWidgetIdManager *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvWidgetIdManager_isInMap",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvWidgetIdManager, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWidgetIdManager_isInMap" "', argument " "1"" of type '" "pvWidgetIdManager *""'"); - } - arg1 = reinterpret_cast< pvWidgetIdManager * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvWidgetIdManager_isInMap" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (int)(arg1)->isInMap(arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWidgetIdManager_isInMap(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[3]; - int ii; - - if (!PyTuple_Check(args)) SWIG_fail; - argc = args ? (int)PyObject_Length(args) : 0; - for (ii = 0; (ii < 2) && (ii < argc); ii++) { - argv[ii] = PyTuple_GET_ITEM(args,ii); - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_pvWidgetIdManager, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_pvWidgetIdManager_isInMap__SWIG_1(self, args); - } - } - } - if (argc == 2) { - int _v; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_pvWidgetIdManager, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_pvWidgetIdManager_isInMap__SWIG_0(self, args); - } - } - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'pvWidgetIdManager_isInMap'.\n" - " Possible C/C++ prototypes are:\n" - " pvWidgetIdManager::isInMap(char const *)\n" - " pvWidgetIdManager::isInMap(int)\n"); - return 0; -} - - -SWIGINTERN PyObject *_wrap_pvWidgetIdManager_firstId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *arg1 = (pvWidgetIdManager *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvWidgetIdManager_firstId",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvWidgetIdManager, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWidgetIdManager_firstId" "', argument " "1"" of type '" "pvWidgetIdManager *""'"); - } - arg1 = reinterpret_cast< pvWidgetIdManager * >(argp1); - result = (int)(arg1)->firstId(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWidgetIdManager_nextId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *arg1 = (pvWidgetIdManager *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvWidgetIdManager_nextId",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvWidgetIdManager, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWidgetIdManager_nextId" "', argument " "1"" of type '" "pvWidgetIdManager *""'"); - } - arg1 = reinterpret_cast< pvWidgetIdManager * >(argp1); - result = (int)(arg1)->nextId(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWidgetIdManager_endId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *arg1 = (pvWidgetIdManager *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvWidgetIdManager_endId",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvWidgetIdManager, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWidgetIdManager_endId" "', argument " "1"" of type '" "pvWidgetIdManager *""'"); - } - arg1 = reinterpret_cast< pvWidgetIdManager * >(argp1); - result = (int)(arg1)->endId(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWidgetIdManager_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *arg1 = (pvWidgetIdManager *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvWidgetIdManager_name",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvWidgetIdManager, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWidgetIdManager_name" "', argument " "1"" of type '" "pvWidgetIdManager *""'"); - } - arg1 = reinterpret_cast< pvWidgetIdManager * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvWidgetIdManager_name" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (char *)(arg1)->name(arg2); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWidgetIdManager_idStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *arg1 = (pvWidgetIdManager *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:pvWidgetIdManager_idStart",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvWidgetIdManager, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWidgetIdManager_idStart" "', argument " "1"" of type '" "pvWidgetIdManager *""'"); - } - arg1 = reinterpret_cast< pvWidgetIdManager * >(argp1); - result = (int)(arg1)->idStart(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvWidgetIdManager_readEnumFromMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - pvWidgetIdManager *arg1 = (pvWidgetIdManager *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OO:pvWidgetIdManager_readEnumFromMask",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_pvWidgetIdManager, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvWidgetIdManager_readEnumFromMask" "', argument " "1"" of type '" "pvWidgetIdManager *""'"); - } - arg1 = reinterpret_cast< pvWidgetIdManager * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pvWidgetIdManager_readEnumFromMask" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (int)(arg1)->readEnumFromMask((char const *)arg2); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *pvWidgetIdManager_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_pvWidgetIdManager, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_new_qtDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)":new_qtDatabase")) SWIG_fail; - result = (qtDatabase *)new qtDatabase(); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_qtDatabase, SWIG_POINTER_NEW | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_qtDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_qtDatabase",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_qtDatabase" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - delete arg1; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_open(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - char *arg2 = (char *) 0 ; - char *arg3 = (char *) 0 ; - char *arg4 = (char *) 0 ; - char *arg5 = (char *) 0 ; - char *arg6 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - int res5 ; - char *buf5 = 0 ; - int alloc5 = 0 ; - int res6 ; - char *buf6 = 0 ; - int alloc6 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOOOO:qtDatabase_open",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_open" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qtDatabase_open" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "qtDatabase_open" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "qtDatabase_open" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5); - if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "qtDatabase_open" "', argument " "5"" of type '" "char const *""'"); - } - arg5 = reinterpret_cast< char * >(buf5); - res6 = SWIG_AsCharPtrAndSize(obj5, &buf6, NULL, &alloc6); - if (!SWIG_IsOK(res6)) { - SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "qtDatabase_open" "', argument " "6"" of type '" "char const *""'"); - } - arg6 = reinterpret_cast< char * >(buf6); - result = (int)(arg1)->open((char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - if (alloc6 == SWIG_NEWOBJ) delete[] buf6; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - if (alloc5 == SWIG_NEWOBJ) delete[] buf5; - if (alloc6 == SWIG_NEWOBJ) delete[] buf6; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:qtDatabase_close",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_close" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - result = (int)(arg1)->close(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_query(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - PARAM *arg2 = (PARAM *) 0 ; - char *arg3 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int res3 ; - char *buf3 = 0 ; - int alloc3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qtDatabase_query",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_query" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qtDatabase_query" "', argument " "2"" of type '" "PARAM *""'"); - } - arg2 = reinterpret_cast< PARAM * >(argp2); - res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "qtDatabase_query" "', argument " "3"" of type '" "char const *""'"); - } - arg3 = reinterpret_cast< char * >(buf3); - result = (int)(arg1)->query(arg2,(char const *)arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return resultobj; -fail: - if (alloc3 == SWIG_NEWOBJ) delete[] buf3; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_populateTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - PARAM *arg2 = (PARAM *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qtDatabase_populateTable",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_populateTable" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qtDatabase_populateTable" "', argument " "2"" of type '" "PARAM *""'"); - } - arg2 = reinterpret_cast< PARAM * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qtDatabase_populateTable" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (int)(arg1)->populateTable(arg2,arg3); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_recordFieldValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - PARAM *arg2 = (PARAM *) 0 ; - int arg3 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - int val3 ; - int ecode3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OOO:qtDatabase_recordFieldValue",&obj0,&obj1,&obj2)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_recordFieldValue" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qtDatabase_recordFieldValue" "', argument " "2"" of type '" "PARAM *""'"); - } - arg2 = reinterpret_cast< PARAM * >(argp2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "qtDatabase_recordFieldValue" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - result = (char *)(arg1)->recordFieldValue(arg2,arg3); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_dbQuery(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - char *arg2 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int res2 ; - char *buf2 = 0 ; - int alloc2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:qtDatabase_dbQuery",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_dbQuery" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qtDatabase_dbQuery" "', argument " "2"" of type '" "char const *""'"); - } - arg2 = reinterpret_cast< char * >(buf2); - result = (char *)(arg1)->dbQuery((char const *)arg2); - resultobj = SWIG_FromCharPtr((const char *)result); - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return resultobj; -fail: - if (alloc2 == SWIG_NEWOBJ) delete[] buf2; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_dbRecordFieldValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:qtDatabase_dbRecordFieldValue",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_dbRecordFieldValue" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "qtDatabase_dbRecordFieldValue" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - result = (char *)(arg1)->dbRecordFieldValue(arg2); - resultobj = SWIG_FromCharPtr((const char *)result); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_nextRecord(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:qtDatabase_nextRecord",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_nextRecord" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - result = (int)(arg1)->nextRecord(); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_connectionName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - char *arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - char temp2[50] ; - int res2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:qtDatabase_connectionName_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_connectionName_set" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - res2 = SWIG_AsCharArray(obj1, temp2, 50); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qtDatabase_connectionName_set" "', argument " "2"" of type '" "char [50]""'"); - } - arg2 = reinterpret_cast< char * >(temp2); - if (arg2) memcpy(arg1->connectionName,arg2,50*sizeof(char)); - else memset(arg1->connectionName,0,50*sizeof(char)); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_connectionName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - char *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:qtDatabase_connectionName_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_connectionName_get" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - result = (char *)(char *) ((arg1)->connectionName); - { - size_t size = 50; - - while (size && (result[size - 1] == '\0')) --size; - - resultobj = SWIG_FromCharPtrAndSize(result, size); - } - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_db_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - QSqlDatabase *arg2 = (QSqlDatabase *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:qtDatabase_db_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_db_set" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_QSqlDatabase, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qtDatabase_db_set" "', argument " "2"" of type '" "QSqlDatabase *""'"); - } - arg2 = reinterpret_cast< QSqlDatabase * >(argp2); - if (arg1) (arg1)->db = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_db_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - QSqlDatabase *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:qtDatabase_db_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_db_get" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - result = (QSqlDatabase *) ((arg1)->db); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QSqlDatabase, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_result_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - QSqlQuery *arg2 = (QSqlQuery *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:qtDatabase_result_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_result_set" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_QSqlQuery, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qtDatabase_result_set" "', argument " "2"" of type '" "QSqlQuery *""'"); - } - arg2 = reinterpret_cast< QSqlQuery * >(argp2); - if (arg1) (arg1)->result = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_result_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - QSqlQuery *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:qtDatabase_result_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_result_get" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - result = (QSqlQuery *) ((arg1)->result); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QSqlQuery, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_error_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - QSqlError *arg2 = (QSqlError *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 = 0 ; - int res2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"OO:qtDatabase_error_set",&obj0,&obj1)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_error_set" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_QSqlError, SWIG_POINTER_DISOWN | 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "qtDatabase_error_set" "', argument " "2"" of type '" "QSqlError *""'"); - } - arg2 = reinterpret_cast< QSqlError * >(argp2); - if (arg1) (arg1)->error = arg2; - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_qtDatabase_error_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - qtDatabase *arg1 = (qtDatabase *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - QSqlError *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:qtDatabase_error_get",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_qtDatabase, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "qtDatabase_error_get" "', argument " "1"" of type '" "qtDatabase *""'"); - } - arg1 = reinterpret_cast< qtDatabase * >(argp1); - result = (QSqlError *) ((arg1)->error); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_QSqlError, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *qtDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *obj; - if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; - SWIG_TypeNewClientData(SWIGTYPE_p_qtDatabase, SWIG_NewClientData(obj)); - return SWIG_Py_Void(); -} - -SWIGINTERN PyObject *_wrap_getParam(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - unsigned long arg1 ; - unsigned long val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - PARAM *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:getParam",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "getParam" "', argument " "1"" of type '" "unsigned long""'"); - } - arg1 = static_cast< unsigned long >(val1); - result = (PARAM *)getParam(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__PARAM_, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_pvQImageScript(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - PARAM *arg1 = (PARAM *) 0 ; - int arg2 ; - int arg3 ; - char *arg4 = (char *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - int val3 ; - int ecode3 = 0 ; - int res4 ; - char *buf4 = 0 ; - int alloc4 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"OOOO:pvQImageScript",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__PARAM_, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pvQImageScript" "', argument " "1"" of type '" "PARAM *""'"); - } - arg1 = reinterpret_cast< PARAM * >(argp1); - ecode2 = SWIG_AsVal_int(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pvQImageScript" "', argument " "2"" of type '" "int""'"); - } - arg2 = static_cast< int >(val2); - ecode3 = SWIG_AsVal_int(obj2, &val3); - if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "pvQImageScript" "', argument " "3"" of type '" "int""'"); - } - arg3 = static_cast< int >(val3); - res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "pvQImageScript" "', argument " "4"" of type '" "char const *""'"); - } - arg4 = reinterpret_cast< char * >(buf4); - result = (int)pvQImageScript(arg1,arg2,arg3,(char const *)arg4); - resultobj = SWIG_From_int(static_cast< int >(result)); - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return resultobj; -fail: - if (alloc4 == SWIG_NEWOBJ) delete[] buf4; - return NULL; -} - - -SWIGINTERN PyObject *_wrap_new_int(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int arg1 ; - int val1 ; - int ecode1 = 0 ; - PyObject * obj0 = 0 ; - int *result = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:new_int",&obj0)) SWIG_fail; - ecode1 = SWIG_AsVal_int(obj0, &val1); - if (!SWIG_IsOK(ecode1)) { - SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_int" "', argument " "1"" of type '" "int""'"); - } - arg1 = static_cast< int >(val1); - result = (int *)new_int(arg1); - resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 ); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_get_int(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int *arg1 = (int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - int result; - - if (!PyArg_ParseTuple(args,(char *)"O:get_int",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get_int" "', argument " "1"" of type '" "int *""'"); - } - arg1 = reinterpret_cast< int * >(argp1); - result = (int)get_int(arg1); - resultobj = SWIG_From_int(static_cast< int >(result)); - return resultobj; -fail: - return NULL; -} - - -SWIGINTERN PyObject *_wrap_delete_int(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - int *arg1 = (int *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - PyObject * obj0 = 0 ; - - if (!PyArg_ParseTuple(args,(char *)"O:delete_int",&obj0)) SWIG_fail; - res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_int, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_int" "', argument " "1"" of type '" "int *""'"); - } - arg1 = reinterpret_cast< int * >(argp1); - delete_int(arg1); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - -static PyMethodDef SwigMethods[] = { - { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL}, - { (char *)"PARSE_EVENT_STRUCT_event_set", _wrap_PARSE_EVENT_STRUCT_event_set, METH_VARARGS, NULL}, - { (char *)"PARSE_EVENT_STRUCT_event_get", _wrap_PARSE_EVENT_STRUCT_event_get, METH_VARARGS, NULL}, - { (char *)"PARSE_EVENT_STRUCT_i_set", _wrap_PARSE_EVENT_STRUCT_i_set, METH_VARARGS, NULL}, - { (char *)"PARSE_EVENT_STRUCT_i_get", _wrap_PARSE_EVENT_STRUCT_i_get, METH_VARARGS, NULL}, - { (char *)"PARSE_EVENT_STRUCT_text_set", _wrap_PARSE_EVENT_STRUCT_text_set, METH_VARARGS, NULL}, - { (char *)"PARSE_EVENT_STRUCT_text_get", _wrap_PARSE_EVENT_STRUCT_text_get, METH_VARARGS, NULL}, - { (char *)"new_PARSE_EVENT_STRUCT", _wrap_new_PARSE_EVENT_STRUCT, METH_VARARGS, NULL}, - { (char *)"delete_PARSE_EVENT_STRUCT", _wrap_delete_PARSE_EVENT_STRUCT, METH_VARARGS, NULL}, - { (char *)"PARSE_EVENT_STRUCT_swigregister", PARSE_EVENT_STRUCT_swigregister, METH_VARARGS, NULL}, - { (char *)"PARAM_s_set", _wrap_PARAM_s_set, METH_VARARGS, NULL}, - { (char *)"PARAM_s_get", _wrap_PARAM_s_get, METH_VARARGS, NULL}, - { (char *)"PARAM_os_set", _wrap_PARAM_os_set, METH_VARARGS, NULL}, - { (char *)"PARAM_os_get", _wrap_PARAM_os_get, METH_VARARGS, NULL}, - { (char *)"PARAM_port_set", _wrap_PARAM_port_set, METH_VARARGS, NULL}, - { (char *)"PARAM_port_get", _wrap_PARAM_port_get, METH_VARARGS, NULL}, - { (char *)"PARAM_language_set", _wrap_PARAM_language_set, METH_VARARGS, NULL}, - { (char *)"PARAM_language_get", _wrap_PARAM_language_get, METH_VARARGS, NULL}, - { (char *)"PARAM_convert_units_set", _wrap_PARAM_convert_units_set, METH_VARARGS, NULL}, - { (char *)"PARAM_convert_units_get", _wrap_PARAM_convert_units_get, METH_VARARGS, NULL}, - { (char *)"PARAM_fp_set", _wrap_PARAM_fp_set, METH_VARARGS, NULL}, - { (char *)"PARAM_fp_get", _wrap_PARAM_fp_get, METH_VARARGS, NULL}, - { (char *)"PARAM_sleep_set", _wrap_PARAM_sleep_set, METH_VARARGS, NULL}, - { (char *)"PARAM_sleep_get", _wrap_PARAM_sleep_get, METH_VARARGS, NULL}, - { (char *)"PARAM_cleanup_set", _wrap_PARAM_cleanup_set, METH_VARARGS, NULL}, - { (char *)"PARAM_cleanup_get", _wrap_PARAM_cleanup_get, METH_VARARGS, NULL}, - { (char *)"PARAM_app_data_set", _wrap_PARAM_app_data_set, METH_VARARGS, NULL}, - { (char *)"PARAM_app_data_get", _wrap_PARAM_app_data_get, METH_VARARGS, NULL}, - { (char *)"PARAM_user_set", _wrap_PARAM_user_set, METH_VARARGS, NULL}, - { (char *)"PARAM_user_get", _wrap_PARAM_user_get, METH_VARARGS, NULL}, - { (char *)"PARAM_clipboard_set", _wrap_PARAM_clipboard_set, METH_VARARGS, NULL}, - { (char *)"PARAM_clipboard_get", _wrap_PARAM_clipboard_get, METH_VARARGS, NULL}, - { (char *)"PARAM_clipboard_length_set", _wrap_PARAM_clipboard_length_set, METH_VARARGS, NULL}, - { (char *)"PARAM_clipboard_length_get", _wrap_PARAM_clipboard_length_get, METH_VARARGS, NULL}, - { (char *)"PARAM_modal_set", _wrap_PARAM_modal_set, METH_VARARGS, NULL}, - { (char *)"PARAM_modal_get", _wrap_PARAM_modal_get, METH_VARARGS, NULL}, - { (char *)"PARAM_readData_set", _wrap_PARAM_readData_set, METH_VARARGS, NULL}, - { (char *)"PARAM_readData_get", _wrap_PARAM_readData_get, METH_VARARGS, NULL}, - { (char *)"PARAM_showData_set", _wrap_PARAM_showData_set, METH_VARARGS, NULL}, - { (char *)"PARAM_showData_get", _wrap_PARAM_showData_get, METH_VARARGS, NULL}, - { (char *)"PARAM_modal_d_set", _wrap_PARAM_modal_d_set, METH_VARARGS, NULL}, - { (char *)"PARAM_modal_d_get", _wrap_PARAM_modal_d_get, METH_VARARGS, NULL}, - { (char *)"PARAM_modalUserData_set", _wrap_PARAM_modalUserData_set, METH_VARARGS, NULL}, - { (char *)"PARAM_modalUserData_get", _wrap_PARAM_modalUserData_get, METH_VARARGS, NULL}, - { (char *)"PARAM_parse_event_struct_set", _wrap_PARAM_parse_event_struct_set, METH_VARARGS, NULL}, - { (char *)"PARAM_parse_event_struct_get", _wrap_PARAM_parse_event_struct_get, METH_VARARGS, NULL}, - { (char *)"PARAM_x_set", _wrap_PARAM_x_set, METH_VARARGS, NULL}, - { (char *)"PARAM_x_get", _wrap_PARAM_x_get, METH_VARARGS, NULL}, - { (char *)"PARAM_y_set", _wrap_PARAM_y_set, METH_VARARGS, NULL}, - { (char *)"PARAM_y_get", _wrap_PARAM_y_get, METH_VARARGS, NULL}, - { (char *)"PARAM_nxy_set", _wrap_PARAM_nxy_set, METH_VARARGS, NULL}, - { (char *)"PARAM_nxy_get", _wrap_PARAM_nxy_get, METH_VARARGS, NULL}, - { (char *)"PARAM_url_set", _wrap_PARAM_url_set, METH_VARARGS, NULL}, - { (char *)"PARAM_url_get", _wrap_PARAM_url_get, METH_VARARGS, NULL}, - { (char *)"PARAM_initial_mask_set", _wrap_PARAM_initial_mask_set, METH_VARARGS, NULL}, - { (char *)"PARAM_initial_mask_get", _wrap_PARAM_initial_mask_get, METH_VARARGS, NULL}, - { (char *)"PARAM_file_prefix_set", _wrap_PARAM_file_prefix_set, METH_VARARGS, NULL}, - { (char *)"PARAM_file_prefix_get", _wrap_PARAM_file_prefix_get, METH_VARARGS, NULL}, - { (char *)"PARAM_free_set", _wrap_PARAM_free_set, METH_VARARGS, NULL}, - { (char *)"PARAM_free_get", _wrap_PARAM_free_get, METH_VARARGS, NULL}, - { (char *)"PARAM_version_set", _wrap_PARAM_version_set, METH_VARARGS, NULL}, - { (char *)"PARAM_version_get", _wrap_PARAM_version_get, METH_VARARGS, NULL}, - { (char *)"PARAM_pvserver_version_set", _wrap_PARAM_pvserver_version_set, METH_VARARGS, NULL}, - { (char *)"PARAM_pvserver_version_get", _wrap_PARAM_pvserver_version_get, METH_VARARGS, NULL}, - { (char *)"PARAM_exit_on_bind_error_set", _wrap_PARAM_exit_on_bind_error_set, METH_VARARGS, NULL}, - { (char *)"PARAM_exit_on_bind_error_get", _wrap_PARAM_exit_on_bind_error_get, METH_VARARGS, NULL}, - { (char *)"PARAM_hello_counter_set", _wrap_PARAM_hello_counter_set, METH_VARARGS, NULL}, - { (char *)"PARAM_hello_counter_get", _wrap_PARAM_hello_counter_get, METH_VARARGS, NULL}, - { (char *)"PARAM_local_milliseconds_set", _wrap_PARAM_local_milliseconds_set, METH_VARARGS, NULL}, - { (char *)"PARAM_local_milliseconds_get", _wrap_PARAM_local_milliseconds_get, METH_VARARGS, NULL}, - { (char *)"PARAM_force_null_event_set", _wrap_PARAM_force_null_event_set, METH_VARARGS, NULL}, - { (char *)"PARAM_force_null_event_get", _wrap_PARAM_force_null_event_get, METH_VARARGS, NULL}, - { (char *)"PARAM_allow_pause_set", _wrap_PARAM_allow_pause_set, METH_VARARGS, NULL}, - { (char *)"PARAM_allow_pause_get", _wrap_PARAM_allow_pause_get, METH_VARARGS, NULL}, - { (char *)"PARAM_pause_set", _wrap_PARAM_pause_set, METH_VARARGS, NULL}, - { (char *)"PARAM_pause_get", _wrap_PARAM_pause_get, METH_VARARGS, NULL}, - { (char *)"PARAM_my_pvlock_count_set", _wrap_PARAM_my_pvlock_count_set, METH_VARARGS, NULL}, - { (char *)"PARAM_my_pvlock_count_get", _wrap_PARAM_my_pvlock_count_get, METH_VARARGS, NULL}, - { (char *)"PARAM_num_additional_widgets_set", _wrap_PARAM_num_additional_widgets_set, METH_VARARGS, NULL}, - { (char *)"PARAM_num_additional_widgets_get", _wrap_PARAM_num_additional_widgets_get, METH_VARARGS, NULL}, - { (char *)"PARAM_mouse_x_set", _wrap_PARAM_mouse_x_set, METH_VARARGS, NULL}, - { (char *)"PARAM_mouse_x_get", _wrap_PARAM_mouse_x_get, METH_VARARGS, NULL}, - { (char *)"PARAM_mouse_y_set", _wrap_PARAM_mouse_y_set, METH_VARARGS, NULL}, - { (char *)"PARAM_mouse_y_get", _wrap_PARAM_mouse_y_get, METH_VARARGS, NULL}, - { (char *)"PARAM_mytext_set", _wrap_PARAM_mytext_set, METH_VARARGS, NULL}, - { (char *)"PARAM_mytext_get", _wrap_PARAM_mytext_get, METH_VARARGS, NULL}, - { (char *)"PARAM_communication_plugin_set", _wrap_PARAM_communication_plugin_set, METH_VARARGS, NULL}, - { (char *)"PARAM_communication_plugin_get", _wrap_PARAM_communication_plugin_get, METH_VARARGS, NULL}, - { (char *)"PARAM_use_communication_plugin_set", _wrap_PARAM_use_communication_plugin_set, METH_VARARGS, NULL}, - { (char *)"PARAM_use_communication_plugin_get", _wrap_PARAM_use_communication_plugin_get, METH_VARARGS, NULL}, - { (char *)"PARAM_lang_section_set", _wrap_PARAM_lang_section_set, METH_VARARGS, NULL}, - { (char *)"PARAM_lang_section_get", _wrap_PARAM_lang_section_get, METH_VARARGS, NULL}, - { (char *)"PARAM_mytext2_set", _wrap_PARAM_mytext2_set, METH_VARARGS, NULL}, - { (char *)"PARAM_mytext2_get", _wrap_PARAM_mytext2_get, METH_VARARGS, NULL}, - { (char *)"PARAM_http_set", _wrap_PARAM_http_set, METH_VARARGS, NULL}, - { (char *)"PARAM_http_get", _wrap_PARAM_http_get, METH_VARARGS, NULL}, - { (char *)"PARAM_fptmp_set", _wrap_PARAM_fptmp_set, METH_VARARGS, NULL}, - { (char *)"PARAM_fptmp_get", _wrap_PARAM_fptmp_get, METH_VARARGS, NULL}, - { (char *)"PARAM_fhdltmp_set", _wrap_PARAM_fhdltmp_set, METH_VARARGS, NULL}, - { (char *)"PARAM_fhdltmp_get", _wrap_PARAM_fhdltmp_get, METH_VARARGS, NULL}, - { (char *)"new_PARAM", _wrap_new_PARAM, METH_VARARGS, NULL}, - { (char *)"delete_PARAM", _wrap_delete_PARAM, METH_VARARGS, NULL}, - { (char *)"PARAM_swigregister", PARAM_swigregister, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i_set", _wrap_IntegerArray_i_set, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i_get", _wrap_IntegerArray_i_get, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i0_set", _wrap_IntegerArray_i0_set, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i0_get", _wrap_IntegerArray_i0_get, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i1_set", _wrap_IntegerArray_i1_set, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i1_get", _wrap_IntegerArray_i1_get, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i2_set", _wrap_IntegerArray_i2_set, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i2_get", _wrap_IntegerArray_i2_get, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i3_set", _wrap_IntegerArray_i3_set, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i3_get", _wrap_IntegerArray_i3_get, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i4_set", _wrap_IntegerArray_i4_set, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i4_get", _wrap_IntegerArray_i4_get, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i5_set", _wrap_IntegerArray_i5_set, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i5_get", _wrap_IntegerArray_i5_get, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i6_set", _wrap_IntegerArray_i6_set, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i6_get", _wrap_IntegerArray_i6_get, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i7_set", _wrap_IntegerArray_i7_set, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i7_get", _wrap_IntegerArray_i7_get, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i8_set", _wrap_IntegerArray_i8_set, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i8_get", _wrap_IntegerArray_i8_get, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i9_set", _wrap_IntegerArray_i9_set, METH_VARARGS, NULL}, - { (char *)"IntegerArray_i9_get", _wrap_IntegerArray_i9_get, METH_VARARGS, NULL}, - { (char *)"new_IntegerArray", _wrap_new_IntegerArray, METH_VARARGS, NULL}, - { (char *)"delete_IntegerArray", _wrap_delete_IntegerArray, METH_VARARGS, NULL}, - { (char *)"IntegerArray_swigregister", IntegerArray_swigregister, METH_VARARGS, NULL}, - { (char *)"FloatArray_f_set", _wrap_FloatArray_f_set, METH_VARARGS, NULL}, - { (char *)"FloatArray_f_get", _wrap_FloatArray_f_get, METH_VARARGS, NULL}, - { (char *)"FloatArray_f0_set", _wrap_FloatArray_f0_set, METH_VARARGS, NULL}, - { (char *)"FloatArray_f0_get", _wrap_FloatArray_f0_get, METH_VARARGS, NULL}, - { (char *)"FloatArray_f1_set", _wrap_FloatArray_f1_set, METH_VARARGS, NULL}, - { (char *)"FloatArray_f1_get", _wrap_FloatArray_f1_get, METH_VARARGS, NULL}, - { (char *)"FloatArray_f2_set", _wrap_FloatArray_f2_set, METH_VARARGS, NULL}, - { (char *)"FloatArray_f2_get", _wrap_FloatArray_f2_get, METH_VARARGS, NULL}, - { (char *)"FloatArray_f3_set", _wrap_FloatArray_f3_set, METH_VARARGS, NULL}, - { (char *)"FloatArray_f3_get", _wrap_FloatArray_f3_get, METH_VARARGS, NULL}, - { (char *)"FloatArray_f4_set", _wrap_FloatArray_f4_set, METH_VARARGS, NULL}, - { (char *)"FloatArray_f4_get", _wrap_FloatArray_f4_get, METH_VARARGS, NULL}, - { (char *)"FloatArray_f5_set", _wrap_FloatArray_f5_set, METH_VARARGS, NULL}, - { (char *)"FloatArray_f5_get", _wrap_FloatArray_f5_get, METH_VARARGS, NULL}, - { (char *)"FloatArray_f6_set", _wrap_FloatArray_f6_set, METH_VARARGS, NULL}, - { (char *)"FloatArray_f6_get", _wrap_FloatArray_f6_get, METH_VARARGS, NULL}, - { (char *)"FloatArray_f7_set", _wrap_FloatArray_f7_set, METH_VARARGS, NULL}, - { (char *)"FloatArray_f7_get", _wrap_FloatArray_f7_get, METH_VARARGS, NULL}, - { (char *)"FloatArray_f8_set", _wrap_FloatArray_f8_set, METH_VARARGS, NULL}, - { (char *)"FloatArray_f8_get", _wrap_FloatArray_f8_get, METH_VARARGS, NULL}, - { (char *)"FloatArray_f9_set", _wrap_FloatArray_f9_set, METH_VARARGS, NULL}, - { (char *)"FloatArray_f9_get", _wrap_FloatArray_f9_get, METH_VARARGS, NULL}, - { (char *)"new_FloatArray", _wrap_new_FloatArray, METH_VARARGS, NULL}, - { (char *)"delete_FloatArray", _wrap_delete_FloatArray, METH_VARARGS, NULL}, - { (char *)"FloatArray_swigregister", FloatArray_swigregister, METH_VARARGS, NULL}, - { (char *)"pvTime_millisecond_set", _wrap_pvTime_millisecond_set, METH_VARARGS, NULL}, - { (char *)"pvTime_millisecond_get", _wrap_pvTime_millisecond_get, METH_VARARGS, NULL}, - { (char *)"pvTime_second_set", _wrap_pvTime_second_set, METH_VARARGS, NULL}, - { (char *)"pvTime_second_get", _wrap_pvTime_second_get, METH_VARARGS, NULL}, - { (char *)"pvTime_minute_set", _wrap_pvTime_minute_set, METH_VARARGS, NULL}, - { (char *)"pvTime_minute_get", _wrap_pvTime_minute_get, METH_VARARGS, NULL}, - { (char *)"pvTime_hour_set", _wrap_pvTime_hour_set, METH_VARARGS, NULL}, - { (char *)"pvTime_hour_get", _wrap_pvTime_hour_get, METH_VARARGS, NULL}, - { (char *)"pvTime_day_set", _wrap_pvTime_day_set, METH_VARARGS, NULL}, - { (char *)"pvTime_day_get", _wrap_pvTime_day_get, METH_VARARGS, NULL}, - { (char *)"pvTime_month_set", _wrap_pvTime_month_set, METH_VARARGS, NULL}, - { (char *)"pvTime_month_get", _wrap_pvTime_month_get, METH_VARARGS, NULL}, - { (char *)"pvTime_year_set", _wrap_pvTime_year_set, METH_VARARGS, NULL}, - { (char *)"pvTime_year_get", _wrap_pvTime_year_get, METH_VARARGS, NULL}, - { (char *)"new_pvTime", _wrap_new_pvTime, METH_VARARGS, NULL}, - { (char *)"delete_pvTime", _wrap_delete_pvTime, METH_VARARGS, NULL}, - { (char *)"pvTime_swigregister", pvTime_swigregister, METH_VARARGS, NULL}, - { (char *)"pvAddressTableItem_s_set", _wrap_pvAddressTableItem_s_set, METH_VARARGS, NULL}, - { (char *)"pvAddressTableItem_s_get", _wrap_pvAddressTableItem_s_get, METH_VARARGS, NULL}, - { (char *)"pvAddressTableItem_version_set", _wrap_pvAddressTableItem_version_set, METH_VARARGS, NULL}, - { (char *)"pvAddressTableItem_version_get", _wrap_pvAddressTableItem_version_get, METH_VARARGS, NULL}, - { (char *)"pvAddressTableItem_adr_set", _wrap_pvAddressTableItem_adr_set, METH_VARARGS, NULL}, - { (char *)"pvAddressTableItem_adr_get", _wrap_pvAddressTableItem_adr_get, METH_VARARGS, NULL}, - { (char *)"new_pvAddressTableItem", _wrap_new_pvAddressTableItem, METH_VARARGS, NULL}, - { (char *)"delete_pvAddressTableItem", _wrap_delete_pvAddressTableItem, METH_VARARGS, NULL}, - { (char *)"pvAddressTableItem_swigregister", pvAddressTableItem_swigregister, METH_VARARGS, NULL}, - { (char *)"pvAddressTable_adr_set", _wrap_pvAddressTable_adr_set, METH_VARARGS, NULL}, - { (char *)"pvAddressTable_adr_get", _wrap_pvAddressTable_adr_get, METH_VARARGS, NULL}, - { (char *)"new_pvAddressTable", _wrap_new_pvAddressTable, METH_VARARGS, NULL}, - { (char *)"delete_pvAddressTable", _wrap_delete_pvAddressTable, METH_VARARGS, NULL}, - { (char *)"pvAddressTable_swigregister", pvAddressTable_swigregister, METH_VARARGS, NULL}, - { (char *)"glencode_set_param", _wrap_glencode_set_param, METH_VARARGS, NULL}, - { (char *)"pvlock", _wrap_pvlock, METH_VARARGS, NULL}, - { (char *)"pvunlock", _wrap_pvunlock, METH_VARARGS, NULL}, - { (char *)"pvsystem", _wrap_pvsystem, METH_VARARGS, NULL}, - { (char *)"pvGetLocalTime", _wrap_pvGetLocalTime, METH_VARARGS, NULL}, - { (char *)"pvIsAccessAllowed", _wrap_pvIsAccessAllowed, METH_VARARGS, NULL}, - { (char *)"pvSendVersion", _wrap_pvSendVersion, METH_VARARGS, NULL}, - { (char *)"pvXYAllocate", _wrap_pvXYAllocate, METH_VARARGS, NULL}, - { (char *)"getIntegers", _wrap_getIntegers, METH_VARARGS, NULL}, - { (char *)"getFloats", _wrap_getFloats, METH_VARARGS, NULL}, - { (char *)"getTextFromText", _wrap_getTextFromText, METH_VARARGS, NULL}, - { (char *)"pvSetXY", _wrap_pvSetXY, METH_VARARGS, NULL}, - { (char *)"pvGetSocketPointer", _wrap_pvGetSocketPointer, METH_VARARGS, NULL}, - { (char *)"pvInitInternal", _wrap_pvInitInternal, METH_VARARGS, NULL}, - { (char *)"pvInit", _wrap_pvInit, METH_VARARGS, NULL}, - { (char *)"pvAccept", _wrap_pvAccept, METH_VARARGS, NULL}, - { (char *)"pvCreateThread", _wrap_pvCreateThread, METH_VARARGS, NULL}, - { (char *)"pvGetInitialMask", _wrap_pvGetInitialMask, METH_VARARGS, NULL}, - { (char *)"pvMain", _wrap_pvMain, METH_VARARGS, NULL}, - { (char *)"pvSetCleanup", _wrap_pvSetCleanup, METH_VARARGS, NULL}, - { (char *)"pvGetEvent", _wrap_pvGetEvent, METH_VARARGS, NULL}, - { (char *)"pvPollEvent", _wrap_pvPollEvent, METH_VARARGS, NULL}, - { (char *)"pvWait", _wrap_pvWait, METH_VARARGS, NULL}, - { (char *)"pvGlUpdate", _wrap_pvGlUpdate, METH_VARARGS, NULL}, - { (char *)"pvSleep", _wrap_pvSleep, METH_VARARGS, NULL}, - { (char *)"pvWarning", _wrap_pvWarning, METH_VARARGS, NULL}, - { (char *)"pvMainFatal", _wrap_pvMainFatal, METH_VARARGS, NULL}, - { (char *)"pvThreadFatal", _wrap_pvThreadFatal, METH_VARARGS, NULL}, - { (char *)"pvScreenHint", _wrap_pvScreenHint, METH_VARARGS, NULL}, - { (char *)"pvSetMouseShape", _wrap_pvSetMouseShape, METH_VARARGS, NULL}, - { (char *)"pvSetWhatsThis", _wrap_pvSetWhatsThis, METH_VARARGS, NULL}, - { (char *)"pvWhatsThisPrintf", _wrap_pvWhatsThisPrintf, METH_VARARGS, NULL}, - { (char *)"pvClientCommand", _wrap_pvClientCommand, METH_VARARGS, NULL}, - { (char *)"pvWriteTextToFileAtClient", _wrap_pvWriteTextToFileAtClient, METH_VARARGS, NULL}, - { (char *)"pvZoomMask", _wrap_pvZoomMask, METH_VARARGS, NULL}, - { (char *)"pvSetManualUrl", _wrap_pvSetManualUrl, METH_VARARGS, NULL}, - { (char *)"pvSelectLanguage", _wrap_pvSelectLanguage, METH_VARARGS, NULL}, - { (char *)"pvStartDefinition", _wrap_pvStartDefinition, METH_VARARGS, NULL}, - { (char *)"pvQWidget", _wrap_pvQWidget, METH_VARARGS, NULL}, - { (char *)"pvQLayoutVbox", _wrap_pvQLayoutVbox, METH_VARARGS, NULL}, - { (char *)"pvQLayoutHbox", _wrap_pvQLayoutHbox, METH_VARARGS, NULL}, - { (char *)"pvQLayoutGrid", _wrap_pvQLayoutGrid, METH_VARARGS, NULL}, - { (char *)"pvQLabel", _wrap_pvQLabel, METH_VARARGS, NULL}, - { (char *)"pvQComboBox", _wrap_pvQComboBox, METH_VARARGS, NULL}, - { (char *)"pvQLineEdit", _wrap_pvQLineEdit, METH_VARARGS, NULL}, - { (char *)"pvQPushButton", _wrap_pvQPushButton, METH_VARARGS, NULL}, - { (char *)"pvQLCDNumber", _wrap_pvQLCDNumber, METH_VARARGS, NULL}, - { (char *)"pvQSlider", _wrap_pvQSlider, METH_VARARGS, NULL}, - { (char *)"pvQButtonGroup", _wrap_pvQButtonGroup, METH_VARARGS, NULL}, - { (char *)"pvQRadioButton", _wrap_pvQRadioButton, METH_VARARGS, NULL}, - { (char *)"pvQCheckBox", _wrap_pvQCheckBox, METH_VARARGS, NULL}, - { (char *)"pvQFrame", _wrap_pvQFrame, METH_VARARGS, NULL}, - { (char *)"pvQDraw", _wrap_pvQDraw, METH_VARARGS, NULL}, - { (char *)"pvQImage", _wrap_pvQImage, METH_VARARGS, NULL}, - { (char *)"pvQGL", _wrap_pvQGL, METH_VARARGS, NULL}, - { (char *)"pvQTabWidget", _wrap_pvQTabWidget, METH_VARARGS, NULL}, - { (char *)"pvQToolBox", _wrap_pvQToolBox, METH_VARARGS, NULL}, - { (char *)"pvQGroupBox", _wrap_pvQGroupBox, METH_VARARGS, NULL}, - { (char *)"pvQListBox", _wrap_pvQListBox, METH_VARARGS, NULL}, - { (char *)"pvQTable", _wrap_pvQTable, METH_VARARGS, NULL}, - { (char *)"pvQSpinBox", _wrap_pvQSpinBox, METH_VARARGS, NULL}, - { (char *)"pvQDial", _wrap_pvQDial, METH_VARARGS, NULL}, - { (char *)"pvQProgressBar", _wrap_pvQProgressBar, METH_VARARGS, NULL}, - { (char *)"pvQMultiLineEdit", _wrap_pvQMultiLineEdit, METH_VARARGS, NULL}, - { (char *)"pvQTextBrowser", _wrap_pvQTextBrowser, METH_VARARGS, NULL}, - { (char *)"pvQListView", _wrap_pvQListView, METH_VARARGS, NULL}, - { (char *)"pvQIconView", _wrap_pvQIconView, METH_VARARGS, NULL}, - { (char *)"pvQVtkTclWidget", _wrap_pvQVtkTclWidget, METH_VARARGS, NULL}, - { (char *)"pvQwtPlotWidget", _wrap_pvQwtPlotWidget, METH_VARARGS, NULL}, - { (char *)"pvQwtScale", _wrap_pvQwtScale, METH_VARARGS, NULL}, - { (char *)"pvQwtThermo", _wrap_pvQwtThermo, METH_VARARGS, NULL}, - { (char *)"pvQwtKnob", _wrap_pvQwtKnob, METH_VARARGS, NULL}, - { (char *)"pvQwtCounter", _wrap_pvQwtCounter, METH_VARARGS, NULL}, - { (char *)"pvQwtWheel", _wrap_pvQwtWheel, METH_VARARGS, NULL}, - { (char *)"pvQwtSlider", _wrap_pvQwtSlider, METH_VARARGS, NULL}, - { (char *)"pvQwtDial", _wrap_pvQwtDial, METH_VARARGS, NULL}, - { (char *)"pvQwtCompass", _wrap_pvQwtCompass, METH_VARARGS, NULL}, - { (char *)"pvQwtAnalogClock", _wrap_pvQwtAnalogClock, METH_VARARGS, NULL}, - { (char *)"pvQDateEdit", _wrap_pvQDateEdit, METH_VARARGS, NULL}, - { (char *)"pvQTimeEdit", _wrap_pvQTimeEdit, METH_VARARGS, NULL}, - { (char *)"pvQDateTimeEdit", _wrap_pvQDateTimeEdit, METH_VARARGS, NULL}, - { (char *)"pvQCustomWidget", _wrap_pvQCustomWidget, METH_VARARGS, NULL}, - { (char *)"pvEndDefinition", _wrap_pvEndDefinition, METH_VARARGS, NULL}, - { (char *)"pvAddWidgetOrLayout", _wrap_pvAddWidgetOrLayout, METH_VARARGS, NULL}, - { (char *)"pvAddStretch", _wrap_pvAddStretch, METH_VARARGS, NULL}, - { (char *)"pvTabOrder", _wrap_pvTabOrder, METH_VARARGS, NULL}, - { (char *)"pvDeleteWidget", _wrap_pvDeleteWidget, METH_VARARGS, NULL}, - { (char *)"pvSetCaption", _wrap_pvSetCaption, METH_VARARGS, NULL}, - { (char *)"pvPlaySound", _wrap_pvPlaySound, METH_VARARGS, NULL}, - { (char *)"pvBeep", _wrap_pvBeep, METH_VARARGS, NULL}, - { (char *)"pvStatusMessage", _wrap_pvStatusMessage, METH_VARARGS, NULL}, - { (char *)"pvToolTip", _wrap_pvToolTip, METH_VARARGS, NULL}, - { (char *)"pvSetTextEx", _wrap_pvSetTextEx, METH_VARARGS, NULL}, - { (char *)"pvSetText", _wrap_pvSetText, METH_VARARGS, NULL}, - { (char *)"pvPrintf", _wrap_pvPrintf, METH_VARARGS, NULL}, - { (char *)"pvSetStyleSheet", _wrap_pvSetStyleSheet, METH_VARARGS, NULL}, - { (char *)"pvPrintfStyleSheet", _wrap_pvPrintfStyleSheet, METH_VARARGS, NULL}, - { (char *)"pvSetMinValue", _wrap_pvSetMinValue, METH_VARARGS, NULL}, - { (char *)"pvSetMaxValue", _wrap_pvSetMaxValue, METH_VARARGS, NULL}, - { (char *)"pvSetValue", _wrap_pvSetValue, METH_VARARGS, NULL}, - { (char *)"pvClear", _wrap_pvClear, METH_VARARGS, NULL}, - { (char *)"pvChangeItem", _wrap_pvChangeItem, METH_VARARGS, NULL}, - { (char *)"pvInsertItem", _wrap_pvInsertItem, METH_VARARGS, NULL}, - { (char *)"pvRemoveItem", _wrap_pvRemoveItem, METH_VARARGS, NULL}, - { (char *)"pvRemoveItemByName", _wrap_pvRemoveItemByName, METH_VARARGS, NULL}, - { (char *)"pvAddColumn", _wrap_pvAddColumn, METH_VARARGS, NULL}, - { (char *)"pvRemoveAllColumns", _wrap_pvRemoveAllColumns, METH_VARARGS, NULL}, - { (char *)"pvSetTableText", _wrap_pvSetTableText, METH_VARARGS, NULL}, - { (char *)"pvSetTableButton", _wrap_pvSetTableButton, METH_VARARGS, NULL}, - { (char *)"pvSetTableCheckBox", _wrap_pvSetTableCheckBox, METH_VARARGS, NULL}, - { (char *)"pvSetTableComboBox", _wrap_pvSetTableComboBox, METH_VARARGS, NULL}, - { (char *)"pvSetTableLabel", _wrap_pvSetTableLabel, METH_VARARGS, NULL}, - { (char *)"pvTablePrintf", _wrap_pvTablePrintf, METH_VARARGS, NULL}, - { (char *)"pvSetTableTextAlignment", _wrap_pvSetTableTextAlignment, METH_VARARGS, NULL}, - { (char *)"pvMysqldump", _wrap_pvMysqldump, METH_VARARGS, NULL}, - { (char *)"pvCSVdump", _wrap_pvCSVdump, METH_VARARGS, NULL}, - { (char *)"pvCSVcreate", _wrap_pvCSVcreate, METH_VARARGS, NULL}, - { (char *)"pvCSV", _wrap_pvCSV, METH_VARARGS, NULL}, - { (char *)"pvSetListViewText", _wrap_pvSetListViewText, METH_VARARGS, NULL}, - { (char *)"pvListViewPrintf", _wrap_pvListViewPrintf, METH_VARARGS, NULL}, - { (char *)"pvListViewSetSelected", _wrap_pvListViewSetSelected, METH_VARARGS, NULL}, - { (char *)"pvListBoxSetSelected", _wrap_pvListBoxSetSelected, METH_VARARGS, NULL}, - { (char *)"pvSetColumnWidth", _wrap_pvSetColumnWidth, METH_VARARGS, NULL}, - { (char *)"pvSetRowHeight", _wrap_pvSetRowHeight, METH_VARARGS, NULL}, - { (char *)"pvSetWordWrap", _wrap_pvSetWordWrap, METH_VARARGS, NULL}, - { (char *)"pvSetPixmap", _wrap_pvSetPixmap, METH_VARARGS, NULL}, - { (char *)"pvSetTablePixmap", _wrap_pvSetTablePixmap, METH_VARARGS, NULL}, - { (char *)"pvSetSource", _wrap_pvSetSource, METH_VARARGS, NULL}, - { (char *)"pvSetImage", _wrap_pvSetImage, METH_VARARGS, NULL}, - { (char *)"pvSetBufferedJpgImage", _wrap_pvSetBufferedJpgImage, METH_VARARGS, NULL}, - { (char *)"pvSetBufferTransparency", _wrap_pvSetBufferTransparency, METH_VARARGS, NULL}, - { (char *)"pvSetBackgroundColor", _wrap_pvSetBackgroundColor, METH_VARARGS, NULL}, - { (char *)"pvSetPaletteBackgroundColor", _wrap_pvSetPaletteBackgroundColor, METH_VARARGS, NULL}, - { (char *)"pvSetPaletteForegroundColor", _wrap_pvSetPaletteForegroundColor, METH_VARARGS, NULL}, - { (char *)"pvSetFontColor", _wrap_pvSetFontColor, METH_VARARGS, NULL}, - { (char *)"pvSetFont", _wrap_pvSetFont, METH_VARARGS, NULL}, - { (char *)"pvDisplayNum", _wrap_pvDisplayNum, METH_VARARGS, NULL}, - { (char *)"pvDisplayFloat", _wrap_pvDisplayFloat, METH_VARARGS, NULL}, - { (char *)"pvDisplayStr", _wrap_pvDisplayStr, METH_VARARGS, NULL}, - { (char *)"pvAddTab", _wrap_pvAddTab, METH_VARARGS, NULL}, - { (char *)"pvSetListViewPixmap", _wrap_pvSetListViewPixmap, METH_VARARGS, NULL}, - { (char *)"pvRemoveListViewItem", _wrap_pvRemoveListViewItem, METH_VARARGS, NULL}, - { (char *)"pvRemoveIconViewItem", _wrap_pvRemoveIconViewItem, METH_VARARGS, NULL}, - { (char *)"pvSetIconViewItem", _wrap_pvSetIconViewItem, METH_VARARGS, NULL}, - { (char *)"pvSetDateOrder", _wrap_pvSetDateOrder, METH_VARARGS, NULL}, - { (char *)"pvSetDate", _wrap_pvSetDate, METH_VARARGS, NULL}, - { (char *)"pvSetMinDate", _wrap_pvSetMinDate, METH_VARARGS, NULL}, - { (char *)"pvSetMaxDate", _wrap_pvSetMaxDate, METH_VARARGS, NULL}, - { (char *)"pvSetTime", _wrap_pvSetTime, METH_VARARGS, NULL}, - { (char *)"pvSetMinTime", _wrap_pvSetMinTime, METH_VARARGS, NULL}, - { (char *)"pvSetMaxTime", _wrap_pvSetMaxTime, METH_VARARGS, NULL}, - { (char *)"pvEnsureCellVisible", _wrap_pvEnsureCellVisible, METH_VARARGS, NULL}, - { (char *)"pvMoveCursor", _wrap_pvMoveCursor, METH_VARARGS, NULL}, - { (char *)"pvScrollToAnchor", _wrap_pvScrollToAnchor, METH_VARARGS, NULL}, - { (char *)"pvSetZoomFactor", _wrap_pvSetZoomFactor, METH_VARARGS, NULL}, - { (char *)"pvPrintHtmlOnPrinter", _wrap_pvPrintHtmlOnPrinter, METH_VARARGS, NULL}, - { (char *)"pvSetWidgetProperty", _wrap_pvSetWidgetProperty, METH_VARARGS, NULL}, - { (char *)"pvPassThroughOneJpegFrame", _wrap_pvPassThroughOneJpegFrame, METH_VARARGS, NULL}, - { (char *)"pvSendJpegFrame", _wrap_pvSendJpegFrame, METH_VARARGS, NULL}, - { (char *)"pvSendRGBA", _wrap_pvSendRGBA, METH_VARARGS, NULL}, - { (char *)"pvSaveDrawBuffer", _wrap_pvSaveDrawBuffer, METH_VARARGS, NULL}, - { (char *)"pvText", _wrap_pvText, METH_VARARGS, NULL}, - { (char *)"pvRequestJpeg", _wrap_pvRequestJpeg, METH_VARARGS, NULL}, - { (char *)"pvRequestGeometry", _wrap_pvRequestGeometry, METH_VARARGS, NULL}, - { (char *)"pvRequestParentWidgetId", _wrap_pvRequestParentWidgetId, METH_VARARGS, NULL}, - { (char *)"pvSelection", _wrap_pvSelection, METH_VARARGS, NULL}, - { (char *)"pvRequestSvgBoundsOnElement", _wrap_pvRequestSvgBoundsOnElement, METH_VARARGS, NULL}, - { (char *)"pvRequestSvgMatrixForElement", _wrap_pvRequestSvgMatrixForElement, METH_VARARGS, NULL}, - { (char *)"pvMoveContent", _wrap_pvMoveContent, METH_VARARGS, NULL}, - { (char *)"pvSetGeometry", _wrap_pvSetGeometry, METH_VARARGS, NULL}, - { (char *)"pvSetMinSize", _wrap_pvSetMinSize, METH_VARARGS, NULL}, - { (char *)"pvSetMaxSize", _wrap_pvSetMaxSize, METH_VARARGS, NULL}, - { (char *)"pvSetAlignment", _wrap_pvSetAlignment, METH_VARARGS, NULL}, - { (char *)"pvSetChecked", _wrap_pvSetChecked, METH_VARARGS, NULL}, - { (char *)"pvMove", _wrap_pvMove, METH_VARARGS, NULL}, - { (char *)"pvResize", _wrap_pvResize, METH_VARARGS, NULL}, - { (char *)"pvHide", _wrap_pvHide, METH_VARARGS, NULL}, - { (char *)"pvShow", _wrap_pvShow, METH_VARARGS, NULL}, - { (char *)"pvSetParent", _wrap_pvSetParent, METH_VARARGS, NULL}, - { (char *)"pvSetMultiSelection", _wrap_pvSetMultiSelection, METH_VARARGS, NULL}, - { (char *)"pvSetEchoMode", _wrap_pvSetEchoMode, METH_VARARGS, NULL}, - { (char *)"pvSetEditable", _wrap_pvSetEditable, METH_VARARGS, NULL}, - { (char *)"pvSetEnabled", _wrap_pvSetEnabled, METH_VARARGS, NULL}, - { (char *)"pvSetFocus", _wrap_pvSetFocus, METH_VARARGS, NULL}, - { (char *)"pvTableSetEnabled", _wrap_pvTableSetEnabled, METH_VARARGS, NULL}, - { (char *)"pvTableSetHeaderResizeEnabled", _wrap_pvTableSetHeaderResizeEnabled, METH_VARARGS, NULL}, - { (char *)"pvSetSorting", _wrap_pvSetSorting, METH_VARARGS, NULL}, - { (char *)"pvSetTabPosition", _wrap_pvSetTabPosition, METH_VARARGS, NULL}, - { (char *)"pvEnableTabBar", _wrap_pvEnableTabBar, METH_VARARGS, NULL}, - { (char *)"pvSetNumRows", _wrap_pvSetNumRows, METH_VARARGS, NULL}, - { (char *)"pvSetNumCols", _wrap_pvSetNumCols, METH_VARARGS, NULL}, - { (char *)"pvInsertRows", _wrap_pvInsertRows, METH_VARARGS, NULL}, - { (char *)"pvInsertColumns", _wrap_pvInsertColumns, METH_VARARGS, NULL}, - { (char *)"pvRemoveRow", _wrap_pvRemoveRow, METH_VARARGS, NULL}, - { (char *)"pvRemoveColumn", _wrap_pvRemoveColumn, METH_VARARGS, NULL}, - { (char *)"pvSetCurrentItem", _wrap_pvSetCurrentItem, METH_VARARGS, NULL}, - { (char *)"pvSetTimeEditDisplay", _wrap_pvSetTimeEditDisplay, METH_VARARGS, NULL}, - { (char *)"pvListViewEnsureVisible", _wrap_pvListViewEnsureVisible, METH_VARARGS, NULL}, - { (char *)"pvListViewSetOpen", _wrap_pvListViewSetOpen, METH_VARARGS, NULL}, - { (char *)"pvListViewSetHidden", _wrap_pvListViewSetHidden, METH_VARARGS, NULL}, - { (char *)"pvListViewSetStandardPopupMenu", _wrap_pvListViewSetStandardPopupMenu, METH_VARARGS, NULL}, - { (char *)"pvSetStyle", _wrap_pvSetStyle, METH_VARARGS, NULL}, - { (char *)"pvSetMovie", _wrap_pvSetMovie, METH_VARARGS, NULL}, - { (char *)"pvMovieControl", _wrap_pvMovieControl, METH_VARARGS, NULL}, - { (char *)"pvMovieSpeed", _wrap_pvMovieSpeed, METH_VARARGS, NULL}, - { (char *)"pvAddTabIcon", _wrap_pvAddTabIcon, METH_VARARGS, NULL}, - { (char *)"pvSetCellWidget", _wrap_pvSetCellWidget, METH_VARARGS, NULL}, - { (char *)"pvSetContentsMargins", _wrap_pvSetContentsMargins, METH_VARARGS, NULL}, - { (char *)"pvSetSpacing", _wrap_pvSetSpacing, METH_VARARGS, NULL}, - { (char *)"pvVtkTcl", _wrap_pvVtkTcl, METH_VARARGS, NULL}, - { (char *)"pvVtkTclPrintf", _wrap_pvVtkTclPrintf, METH_VARARGS, NULL}, - { (char *)"pvVtkTclScript", _wrap_pvVtkTclScript, METH_VARARGS, NULL}, - { (char *)"pvHyperlink", _wrap_pvHyperlink, METH_VARARGS, NULL}, - { (char *)"pvSendUserEvent", _wrap_pvSendUserEvent, METH_VARARGS, NULL}, - { (char *)"pvWriteFile", _wrap_pvWriteFile, METH_VARARGS, NULL}, - { (char *)"pvCloseFile", _wrap_pvCloseFile, METH_VARARGS, NULL}, - { (char *)"pvGetTextParam", _wrap_pvGetTextParam, METH_VARARGS, NULL}, - { (char *)"pvGetText", _wrap_pvGetText, METH_VARARGS, NULL}, - { (char *)"pvParseEventStruct", _wrap_pvParseEventStruct, METH_VARARGS, NULL}, - { (char *)"pvParseEvent", _wrap_pvParseEvent, METH_VARARGS, NULL}, - { (char *)"pvCopyToClipboard", _wrap_pvCopyToClipboard, METH_VARARGS, NULL}, - { (char *)"pvPrint", _wrap_pvPrint, METH_VARARGS, NULL}, - { (char *)"pvSave", _wrap_pvSave, METH_VARARGS, NULL}, - { (char *)"pvSaveAsBmp", _wrap_pvSaveAsBmp, METH_VARARGS, NULL}, - { (char *)"pvHtmlOrSvgDump", _wrap_pvHtmlOrSvgDump, METH_VARARGS, NULL}, - { (char *)"pvRenderTreeDump", _wrap_pvRenderTreeDump, METH_VARARGS, NULL}, - { (char *)"pvSendFile", _wrap_pvSendFile, METH_VARARGS, NULL}, - { (char *)"pvDownloadFileAs", _wrap_pvDownloadFileAs, METH_VARARGS, NULL}, - { (char *)"pvDownloadFile", _wrap_pvDownloadFile, METH_VARARGS, NULL}, - { (char *)"pvSendHttpChunks", _wrap_pvSendHttpChunks, METH_VARARGS, NULL}, - { (char *)"pvSendHttpContentLength", _wrap_pvSendHttpContentLength, METH_VARARGS, NULL}, - { (char *)"pvSetMaxClientsPerIpAdr", _wrap_pvSetMaxClientsPerIpAdr, METH_VARARGS, NULL}, - { (char *)"pvMaxClientsPerIpAdr", _wrap_pvMaxClientsPerIpAdr, METH_VARARGS, NULL}, - { (char *)"pvSetMaxClients", _wrap_pvSetMaxClients, METH_VARARGS, NULL}, - { (char *)"pvMaxClients", _wrap_pvMaxClients, METH_VARARGS, NULL}, - { (char *)"pvGetAdrTableItem", _wrap_pvGetAdrTableItem, METH_VARARGS, NULL}, - { (char *)"pvClearMessageQueue", _wrap_pvClearMessageQueue, METH_VARARGS, NULL}, - { (char *)"pvtcpsend", _wrap_pvtcpsend, METH_VARARGS, NULL}, - { (char *)"pvtcpsendstring", _wrap_pvtcpsendstring, METH_VARARGS, NULL}, - { (char *)"pvtcpsend_binary", _wrap_pvtcpsend_binary, METH_VARARGS, NULL}, - { (char *)"pvtcpreceive", _wrap_pvtcpreceive, METH_VARARGS, NULL}, - { (char *)"pvtcpreceive_binary", _wrap_pvtcpreceive_binary, METH_VARARGS, NULL}, - { (char *)"pvGlBegin", _wrap_pvGlBegin, METH_VARARGS, NULL}, - { (char *)"new_glFont", _wrap_new_glFont, METH_VARARGS, NULL}, - { (char *)"delete_glFont", _wrap_delete_glFont, METH_VARARGS, NULL}, - { (char *)"glFont_read", _wrap_glFont_read, METH_VARARGS, NULL}, - { (char *)"glFont_lineHeight", _wrap_glFont_lineHeight, METH_VARARGS, NULL}, - { (char *)"glFont_charWidth", _wrap_glFont_charWidth, METH_VARARGS, NULL}, - { (char *)"glFont_stringWidth", _wrap_glFont_stringWidth, METH_VARARGS, NULL}, - { (char *)"glFont_drawString", _wrap_glFont_drawString, METH_VARARGS, NULL}, - { (char *)"glFont_setZoom", _wrap_glFont_setZoom, METH_VARARGS, NULL}, - { (char *)"glFont_setRotation", _wrap_glFont_setRotation, METH_VARARGS, NULL}, - { (char *)"glFont_setFontSize", _wrap_glFont_setFontSize, METH_VARARGS, NULL}, - { (char *)"glFont_swigregister", glFont_swigregister, METH_VARARGS, NULL}, - { (char *)"pvSendOpenGL", _wrap_pvSendOpenGL, METH_VARARGS, NULL}, - { (char *)"pvGlEnd", _wrap_pvGlEnd, METH_VARARGS, NULL}, - { (char *)"pvFileDialog", _wrap_pvFileDialog, METH_VARARGS, NULL}, - { (char *)"pvPopupMenu", _wrap_pvPopupMenu, METH_VARARGS, NULL}, - { (char *)"pvMessageBox", _wrap_pvMessageBox, METH_VARARGS, NULL}, - { (char *)"pvInputDialog", _wrap_pvInputDialog, METH_VARARGS, NULL}, - { (char *)"pvRunModalDialog", _wrap_pvRunModalDialog, METH_VARARGS, NULL}, - { (char *)"pvRunModalDialogScript", _wrap_pvRunModalDialogScript, METH_VARARGS, NULL}, - { (char *)"pvTerminateModalDialog", _wrap_pvTerminateModalDialog, METH_VARARGS, NULL}, - { (char *)"pvUpdateBaseWindow", _wrap_pvUpdateBaseWindow, METH_VARARGS, NULL}, - { (char *)"pvUpdateBaseWindowOnOff", _wrap_pvUpdateBaseWindowOnOff, METH_VARARGS, NULL}, - { (char *)"pvAddDockWidget", _wrap_pvAddDockWidget, METH_VARARGS, NULL}, - { (char *)"pvDeleteDockWidget", _wrap_pvDeleteDockWidget, METH_VARARGS, NULL}, - { (char *)"qpwSetCurveData", _wrap_qpwSetCurveData, METH_VARARGS, NULL}, - { (char *)"qpwSetBufferedCurveData", _wrap_qpwSetBufferedCurveData, METH_VARARGS, NULL}, - { (char *)"qpwReplot", _wrap_qpwReplot, METH_VARARGS, NULL}, - { (char *)"qpwSetTitle", _wrap_qpwSetTitle, METH_VARARGS, NULL}, - { (char *)"qpwSetCanvasBackground", _wrap_qpwSetCanvasBackground, METH_VARARGS, NULL}, - { (char *)"qpwEnableOutline", _wrap_qpwEnableOutline, METH_VARARGS, NULL}, - { (char *)"qpwSetOutlinePen", _wrap_qpwSetOutlinePen, METH_VARARGS, NULL}, - { (char *)"qpwSetAutoLegend", _wrap_qpwSetAutoLegend, METH_VARARGS, NULL}, - { (char *)"qpwEnableLegend", _wrap_qpwEnableLegend, METH_VARARGS, NULL}, - { (char *)"qpwSetLegendPos", _wrap_qpwSetLegendPos, METH_VARARGS, NULL}, - { (char *)"qpwSetLegendFrameStyle", _wrap_qpwSetLegendFrameStyle, METH_VARARGS, NULL}, - { (char *)"qpwEnableGridXMin", _wrap_qpwEnableGridXMin, METH_VARARGS, NULL}, - { (char *)"qpwSetGridMajPen", _wrap_qpwSetGridMajPen, METH_VARARGS, NULL}, - { (char *)"qpwSetGridMinPen", _wrap_qpwSetGridMinPen, METH_VARARGS, NULL}, - { (char *)"qpwEnableAxis", _wrap_qpwEnableAxis, METH_VARARGS, NULL}, - { (char *)"qpwSetAxisTitle", _wrap_qpwSetAxisTitle, METH_VARARGS, NULL}, - { (char *)"qpwSetAxisOptions", _wrap_qpwSetAxisOptions, METH_VARARGS, NULL}, - { (char *)"qpwSetAxisMaxMajor", _wrap_qpwSetAxisMaxMajor, METH_VARARGS, NULL}, - { (char *)"qpwSetAxisMaxMinor", _wrap_qpwSetAxisMaxMinor, METH_VARARGS, NULL}, - { (char *)"qpwInsertCurve", _wrap_qpwInsertCurve, METH_VARARGS, NULL}, - { (char *)"qpwRemoveCurve", _wrap_qpwRemoveCurve, METH_VARARGS, NULL}, - { (char *)"qpwSetCurvePen", _wrap_qpwSetCurvePen, METH_VARARGS, NULL}, - { (char *)"qpwSetCurveSymbol", _wrap_qpwSetCurveSymbol, METH_VARARGS, NULL}, - { (char *)"qpwSetCurveYAxis", _wrap_qpwSetCurveYAxis, METH_VARARGS, NULL}, - { (char *)"qpwInsertMarker", _wrap_qpwInsertMarker, METH_VARARGS, NULL}, - { (char *)"qpwSetMarkerLineStyle", _wrap_qpwSetMarkerLineStyle, METH_VARARGS, NULL}, - { (char *)"qpwSetMarkerPos", _wrap_qpwSetMarkerPos, METH_VARARGS, NULL}, - { (char *)"qpwSetMarkerLabelAlign", _wrap_qpwSetMarkerLabelAlign, METH_VARARGS, NULL}, - { (char *)"qpwSetMarkerPen", _wrap_qpwSetMarkerPen, METH_VARARGS, NULL}, - { (char *)"qpwSetMarkerLabel", _wrap_qpwSetMarkerLabel, METH_VARARGS, NULL}, - { (char *)"qpwSetMarkerFont", _wrap_qpwSetMarkerFont, METH_VARARGS, NULL}, - { (char *)"qpwSetMarkerSymbol", _wrap_qpwSetMarkerSymbol, METH_VARARGS, NULL}, - { (char *)"qpwInsertLineMarker", _wrap_qpwInsertLineMarker, METH_VARARGS, NULL}, - { (char *)"qpwSetAxisScaleDraw", _wrap_qpwSetAxisScaleDraw, METH_VARARGS, NULL}, - { (char *)"qpwSetAxisScale", _wrap_qpwSetAxisScale, METH_VARARGS, NULL}, - { (char *)"pvSetZoomX", _wrap_pvSetZoomX, METH_VARARGS, NULL}, - { (char *)"pvSetZoomY", _wrap_pvSetZoomY, METH_VARARGS, NULL}, - { (char *)"gWriteFile", _wrap_gWriteFile, METH_VARARGS, NULL}, - { (char *)"gCloseFile", _wrap_gCloseFile, METH_VARARGS, NULL}, - { (char *)"gBeginDraw", _wrap_gBeginDraw, METH_VARARGS, NULL}, - { (char *)"gBox", _wrap_gBox, METH_VARARGS, NULL}, - { (char *)"gRect", _wrap_gRect, METH_VARARGS, NULL}, - { (char *)"gEndDraw", _wrap_gEndDraw, METH_VARARGS, NULL}, - { (char *)"gLineTo", _wrap_gLineTo, METH_VARARGS, NULL}, - { (char *)"gBufferedLine", _wrap_gBufferedLine, METH_VARARGS, NULL}, - { (char *)"gLine", _wrap_gLine, METH_VARARGS, NULL}, - { (char *)"gMoveTo", _wrap_gMoveTo, METH_VARARGS, NULL}, - { (char *)"gRightYAxis", _wrap_gRightYAxis, METH_VARARGS, NULL}, - { (char *)"gSetColor", _wrap_gSetColor, METH_VARARGS, NULL}, - { (char *)"gSetWidth", _wrap_gSetWidth, METH_VARARGS, NULL}, - { (char *)"gSetStyle", _wrap_gSetStyle, METH_VARARGS, NULL}, - { (char *)"gDrawArc", _wrap_gDrawArc, METH_VARARGS, NULL}, - { (char *)"gDrawPie", _wrap_gDrawPie, METH_VARARGS, NULL}, - { (char *)"gDrawPolygon", _wrap_gDrawPolygon, METH_VARARGS, NULL}, - { (char *)"gSetFont", _wrap_gSetFont, METH_VARARGS, NULL}, - { (char *)"gSetLinestyle", _wrap_gSetLinestyle, METH_VARARGS, NULL}, - { (char *)"gText", _wrap_gText, METH_VARARGS, NULL}, - { (char *)"gTextInAxis", _wrap_gTextInAxis, METH_VARARGS, NULL}, - { (char *)"gSetFloatFormat", _wrap_gSetFloatFormat, METH_VARARGS, NULL}, - { (char *)"gXAxis", _wrap_gXAxis, METH_VARARGS, NULL}, - { (char *)"gYAxis", _wrap_gYAxis, METH_VARARGS, NULL}, - { (char *)"gXGrid", _wrap_gXGrid, METH_VARARGS, NULL}, - { (char *)"gYGrid", _wrap_gYGrid, METH_VARARGS, NULL}, - { (char *)"gBoxWithText", _wrap_gBoxWithText, METH_VARARGS, NULL}, - { (char *)"gComment", _wrap_gComment, METH_VARARGS, NULL}, - { (char *)"gPlaySVG", _wrap_gPlaySVG, METH_VARARGS, NULL}, - { (char *)"gSocketPlaySVG", _wrap_gSocketPlaySVG, METH_VARARGS, NULL}, - { (char *)"gTranslate", _wrap_gTranslate, METH_VARARGS, NULL}, - { (char *)"gRotate", _wrap_gRotate, METH_VARARGS, NULL}, - { (char *)"gScale", _wrap_gScale, METH_VARARGS, NULL}, - { (char *)"pvSetSelector", _wrap_pvSetSelector, METH_VARARGS, NULL}, - { (char *)"pvPrintSvgOnPrinter", _wrap_pvPrintSvgOnPrinter, METH_VARARGS, NULL}, - { (char *)"qwtScaleSetTitle", _wrap_qwtScaleSetTitle, METH_VARARGS, NULL}, - { (char *)"qwtScaleSetTitleColor", _wrap_qwtScaleSetTitleColor, METH_VARARGS, NULL}, - { (char *)"qwtScaleSetTitleFont", _wrap_qwtScaleSetTitleFont, METH_VARARGS, NULL}, - { (char *)"qwtScaleSetTitleAlignment", _wrap_qwtScaleSetTitleAlignment, METH_VARARGS, NULL}, - { (char *)"qwtScaleSetBorderDist", _wrap_qwtScaleSetBorderDist, METH_VARARGS, NULL}, - { (char *)"qwtScaleSetBaselineDist", _wrap_qwtScaleSetBaselineDist, METH_VARARGS, NULL}, - { (char *)"qwtScaleSetScaleDiv", _wrap_qwtScaleSetScaleDiv, METH_VARARGS, NULL}, - { (char *)"qwtScaleSetLabelFormat", _wrap_qwtScaleSetLabelFormat, METH_VARARGS, NULL}, - { (char *)"qwtScaleSetLabelAlignment", _wrap_qwtScaleSetLabelAlignment, METH_VARARGS, NULL}, - { (char *)"qwtScaleSetLabelRotation", _wrap_qwtScaleSetLabelRotation, METH_VARARGS, NULL}, - { (char *)"qwtScaleSetPosition", _wrap_qwtScaleSetPosition, METH_VARARGS, NULL}, - { (char *)"qwtThermoSetScale", _wrap_qwtThermoSetScale, METH_VARARGS, NULL}, - { (char *)"qwtThermoSetOrientation", _wrap_qwtThermoSetOrientation, METH_VARARGS, NULL}, - { (char *)"qwtThermoSetBorderWidth", _wrap_qwtThermoSetBorderWidth, METH_VARARGS, NULL}, - { (char *)"qwtThermoSetFillColor", _wrap_qwtThermoSetFillColor, METH_VARARGS, NULL}, - { (char *)"qwtThermoSetAlarmColor", _wrap_qwtThermoSetAlarmColor, METH_VARARGS, NULL}, - { (char *)"qwtThermoSetAlarmLevel", _wrap_qwtThermoSetAlarmLevel, METH_VARARGS, NULL}, - { (char *)"qwtThermoSetAlarmEnabled", _wrap_qwtThermoSetAlarmEnabled, METH_VARARGS, NULL}, - { (char *)"qwtThermoSetPipeWidth", _wrap_qwtThermoSetPipeWidth, METH_VARARGS, NULL}, - { (char *)"qwtThermoSetRange", _wrap_qwtThermoSetRange, METH_VARARGS, NULL}, - { (char *)"qwtThermoSetMargin", _wrap_qwtThermoSetMargin, METH_VARARGS, NULL}, - { (char *)"qwtThermoSetValue", _wrap_qwtThermoSetValue, METH_VARARGS, NULL}, - { (char *)"qwtKnobSetScale", _wrap_qwtKnobSetScale, METH_VARARGS, NULL}, - { (char *)"qwtKnobSetMass", _wrap_qwtKnobSetMass, METH_VARARGS, NULL}, - { (char *)"qwtKnobSetOrientation", _wrap_qwtKnobSetOrientation, METH_VARARGS, NULL}, - { (char *)"qwtKnobSetReadOnly", _wrap_qwtKnobSetReadOnly, METH_VARARGS, NULL}, - { (char *)"qwtKnobSetKnobWidth", _wrap_qwtKnobSetKnobWidth, METH_VARARGS, NULL}, - { (char *)"qwtKnobSetTotalAngle", _wrap_qwtKnobSetTotalAngle, METH_VARARGS, NULL}, - { (char *)"qwtKnobSetBorderWidth", _wrap_qwtKnobSetBorderWidth, METH_VARARGS, NULL}, - { (char *)"qwtKnobSetSymbol", _wrap_qwtKnobSetSymbol, METH_VARARGS, NULL}, - { (char *)"qwtKnobSetValue", _wrap_qwtKnobSetValue, METH_VARARGS, NULL}, - { (char *)"qwtCounterSetStep", _wrap_qwtCounterSetStep, METH_VARARGS, NULL}, - { (char *)"qwtCounterSetMinValue", _wrap_qwtCounterSetMinValue, METH_VARARGS, NULL}, - { (char *)"qwtCounterSetMaxValue", _wrap_qwtCounterSetMaxValue, METH_VARARGS, NULL}, - { (char *)"qwtCounterSetStepButton1", _wrap_qwtCounterSetStepButton1, METH_VARARGS, NULL}, - { (char *)"qwtCounterSetStepButton2", _wrap_qwtCounterSetStepButton2, METH_VARARGS, NULL}, - { (char *)"qwtCounterSetStepButton3", _wrap_qwtCounterSetStepButton3, METH_VARARGS, NULL}, - { (char *)"qwtCounterSetNumButtons", _wrap_qwtCounterSetNumButtons, METH_VARARGS, NULL}, - { (char *)"qwtCounterSetIncSteps", _wrap_qwtCounterSetIncSteps, METH_VARARGS, NULL}, - { (char *)"qwtCounterSetValue", _wrap_qwtCounterSetValue, METH_VARARGS, NULL}, - { (char *)"qwtWheelSetMass", _wrap_qwtWheelSetMass, METH_VARARGS, NULL}, - { (char *)"qwtWheelSetOrientation", _wrap_qwtWheelSetOrientation, METH_VARARGS, NULL}, - { (char *)"qwtWheelSetReadOnly", _wrap_qwtWheelSetReadOnly, METH_VARARGS, NULL}, - { (char *)"qwtWheelSetTotalAngle", _wrap_qwtWheelSetTotalAngle, METH_VARARGS, NULL}, - { (char *)"qwtWheelSetTickCnt", _wrap_qwtWheelSetTickCnt, METH_VARARGS, NULL}, - { (char *)"qwtWheelSetViewAngle", _wrap_qwtWheelSetViewAngle, METH_VARARGS, NULL}, - { (char *)"qwtWheelSetInternalBorder", _wrap_qwtWheelSetInternalBorder, METH_VARARGS, NULL}, - { (char *)"qwtWheelSetWheelWidth", _wrap_qwtWheelSetWheelWidth, METH_VARARGS, NULL}, - { (char *)"qwtWheelSetValue", _wrap_qwtWheelSetValue, METH_VARARGS, NULL}, - { (char *)"qwtSliderSetScale", _wrap_qwtSliderSetScale, METH_VARARGS, NULL}, - { (char *)"qwtSliderSetMass", _wrap_qwtSliderSetMass, METH_VARARGS, NULL}, - { (char *)"qwtSliderSetOrientation", _wrap_qwtSliderSetOrientation, METH_VARARGS, NULL}, - { (char *)"qwtSliderSetReadOnly", _wrap_qwtSliderSetReadOnly, METH_VARARGS, NULL}, - { (char *)"qwtSliderSetBgStyle", _wrap_qwtSliderSetBgStyle, METH_VARARGS, NULL}, - { (char *)"qwtSliderSetScalePos", _wrap_qwtSliderSetScalePos, METH_VARARGS, NULL}, - { (char *)"qwtSliderSetThumbLength", _wrap_qwtSliderSetThumbLength, METH_VARARGS, NULL}, - { (char *)"qwtSliderSetThumbWidth", _wrap_qwtSliderSetThumbWidth, METH_VARARGS, NULL}, - { (char *)"qwtSliderSetBorderWidth", _wrap_qwtSliderSetBorderWidth, METH_VARARGS, NULL}, - { (char *)"qwtSliderSetMargins", _wrap_qwtSliderSetMargins, METH_VARARGS, NULL}, - { (char *)"qwtSliderSetValue", _wrap_qwtSliderSetValue, METH_VARARGS, NULL}, - { (char *)"qwtCompassSetSimpleCompassRose", _wrap_qwtCompassSetSimpleCompassRose, METH_VARARGS, NULL}, - { (char *)"qwtCompassSetRange", _wrap_qwtCompassSetRange, METH_VARARGS, NULL}, - { (char *)"qwtCompassSetMass", _wrap_qwtCompassSetMass, METH_VARARGS, NULL}, - { (char *)"qwtCompassSetReadOnly", _wrap_qwtCompassSetReadOnly, METH_VARARGS, NULL}, - { (char *)"qwtCompassSetFrameShadow", _wrap_qwtCompassSetFrameShadow, METH_VARARGS, NULL}, - { (char *)"qwtCompassShowBackground", _wrap_qwtCompassShowBackground, METH_VARARGS, NULL}, - { (char *)"qwtCompassSetLineWidth", _wrap_qwtCompassSetLineWidth, METH_VARARGS, NULL}, - { (char *)"qwtCompassSetMode", _wrap_qwtCompassSetMode, METH_VARARGS, NULL}, - { (char *)"qwtCompassSetWrapping", _wrap_qwtCompassSetWrapping, METH_VARARGS, NULL}, - { (char *)"qwtCompassSetScale", _wrap_qwtCompassSetScale, METH_VARARGS, NULL}, - { (char *)"qwtCompassSetScaleArc", _wrap_qwtCompassSetScaleArc, METH_VARARGS, NULL}, - { (char *)"qwtCompassSetOrigin", _wrap_qwtCompassSetOrigin, METH_VARARGS, NULL}, - { (char *)"qwtCompassSetNeedle", _wrap_qwtCompassSetNeedle, METH_VARARGS, NULL}, - { (char *)"qwtCompassSetValue", _wrap_qwtCompassSetValue, METH_VARARGS, NULL}, - { (char *)"qwtDialSetRange", _wrap_qwtDialSetRange, METH_VARARGS, NULL}, - { (char *)"qwtDialSetMass", _wrap_qwtDialSetMass, METH_VARARGS, NULL}, - { (char *)"qwtDialSetReadOnly", _wrap_qwtDialSetReadOnly, METH_VARARGS, NULL}, - { (char *)"qwtDialSetFrameShadow", _wrap_qwtDialSetFrameShadow, METH_VARARGS, NULL}, - { (char *)"qwtDialShowBackground", _wrap_qwtDialShowBackground, METH_VARARGS, NULL}, - { (char *)"qwtDialSetLineWidth", _wrap_qwtDialSetLineWidth, METH_VARARGS, NULL}, - { (char *)"qwtDialSetMode", _wrap_qwtDialSetMode, METH_VARARGS, NULL}, - { (char *)"qwtDialSetWrapping", _wrap_qwtDialSetWrapping, METH_VARARGS, NULL}, - { (char *)"qwtDialSetScale", _wrap_qwtDialSetScale, METH_VARARGS, NULL}, - { (char *)"qwtDialSetScaleArc", _wrap_qwtDialSetScaleArc, METH_VARARGS, NULL}, - { (char *)"qwtDialSetOrigin", _wrap_qwtDialSetOrigin, METH_VARARGS, NULL}, - { (char *)"qwtDialSetNeedle", _wrap_qwtDialSetNeedle, METH_VARARGS, NULL}, - { (char *)"qwtDialSetValue", _wrap_qwtDialSetValue, METH_VARARGS, NULL}, - { (char *)"qwtAnalogClockSetTime", _wrap_qwtAnalogClockSetTime, METH_VARARGS, NULL}, - { (char *)"qwtAnalogClockSetMass", _wrap_qwtAnalogClockSetMass, METH_VARARGS, NULL}, - { (char *)"qwtAnalogClockSetReadOnly", _wrap_qwtAnalogClockSetReadOnly, METH_VARARGS, NULL}, - { (char *)"qwtAnalogClockSetFrameShadow", _wrap_qwtAnalogClockSetFrameShadow, METH_VARARGS, NULL}, - { (char *)"qwtAnalogClockShowBackground", _wrap_qwtAnalogClockShowBackground, METH_VARARGS, NULL}, - { (char *)"qwtAnalogClockSetLineWidth", _wrap_qwtAnalogClockSetLineWidth, METH_VARARGS, NULL}, - { (char *)"qwtAnalogClockSetMode", _wrap_qwtAnalogClockSetMode, METH_VARARGS, NULL}, - { (char *)"qwtAnalogClockSetWrapping", _wrap_qwtAnalogClockSetWrapping, METH_VARARGS, NULL}, - { (char *)"qwtAnalogClockSetScale", _wrap_qwtAnalogClockSetScale, METH_VARARGS, NULL}, - { (char *)"qwtAnalogClockSetScaleArc", _wrap_qwtAnalogClockSetScaleArc, METH_VARARGS, NULL}, - { (char *)"qwtAnalogClockSetOrigin", _wrap_qwtAnalogClockSetOrigin, METH_VARARGS, NULL}, - { (char *)"qwtAnalogClockSetNeedle", _wrap_qwtAnalogClockSetNeedle, METH_VARARGS, NULL}, - { (char *)"qwtAnalogClockSetValue", _wrap_qwtAnalogClockSetValue, METH_VARARGS, NULL}, - { (char *)"unit", _wrap_unit, METH_VARARGS, NULL}, - { (char *)"textEventType", _wrap_textEventType, METH_VARARGS, NULL}, - { (char *)"svgObjectName", _wrap_svgObjectName, METH_VARARGS, NULL}, - { (char *)"getSvgBoundsOnElement", _wrap_getSvgBoundsOnElement, METH_VARARGS, NULL}, - { (char *)"getSvgMatrixForElement", _wrap_getSvgMatrixForElement, METH_VARARGS, NULL}, - { (char *)"getGeometry", _wrap_getGeometry, METH_VARARGS, NULL}, - { (char *)"getParentWidgetId", _wrap_getParentWidgetId, METH_VARARGS, NULL}, - { (char *)"new_pvWidgetIdManager", _wrap_new_pvWidgetIdManager, METH_VARARGS, NULL}, - { (char *)"delete_pvWidgetIdManager", _wrap_delete_pvWidgetIdManager, METH_VARARGS, NULL}, - { (char *)"pvWidgetIdManager_init", _wrap_pvWidgetIdManager_init, METH_VARARGS, NULL}, - { (char *)"pvWidgetIdManager_newId", _wrap_pvWidgetIdManager_newId, METH_VARARGS, NULL}, - { (char *)"pvWidgetIdManager_deleteWidget", _wrap_pvWidgetIdManager_deleteWidget, METH_VARARGS, NULL}, - { (char *)"pvWidgetIdManager_id", _wrap_pvWidgetIdManager_id, METH_VARARGS, NULL}, - { (char *)"pvWidgetIdManager_isInMap", _wrap_pvWidgetIdManager_isInMap, METH_VARARGS, NULL}, - { (char *)"pvWidgetIdManager_firstId", _wrap_pvWidgetIdManager_firstId, METH_VARARGS, NULL}, - { (char *)"pvWidgetIdManager_nextId", _wrap_pvWidgetIdManager_nextId, METH_VARARGS, NULL}, - { (char *)"pvWidgetIdManager_endId", _wrap_pvWidgetIdManager_endId, METH_VARARGS, NULL}, - { (char *)"pvWidgetIdManager_name", _wrap_pvWidgetIdManager_name, METH_VARARGS, NULL}, - { (char *)"pvWidgetIdManager_idStart", _wrap_pvWidgetIdManager_idStart, METH_VARARGS, NULL}, - { (char *)"pvWidgetIdManager_readEnumFromMask", _wrap_pvWidgetIdManager_readEnumFromMask, METH_VARARGS, NULL}, - { (char *)"pvWidgetIdManager_swigregister", pvWidgetIdManager_swigregister, METH_VARARGS, NULL}, - { (char *)"new_qtDatabase", _wrap_new_qtDatabase, METH_VARARGS, NULL}, - { (char *)"delete_qtDatabase", _wrap_delete_qtDatabase, METH_VARARGS, NULL}, - { (char *)"qtDatabase_open", _wrap_qtDatabase_open, METH_VARARGS, NULL}, - { (char *)"qtDatabase_close", _wrap_qtDatabase_close, METH_VARARGS, NULL}, - { (char *)"qtDatabase_query", _wrap_qtDatabase_query, METH_VARARGS, NULL}, - { (char *)"qtDatabase_populateTable", _wrap_qtDatabase_populateTable, METH_VARARGS, NULL}, - { (char *)"qtDatabase_recordFieldValue", _wrap_qtDatabase_recordFieldValue, METH_VARARGS, NULL}, - { (char *)"qtDatabase_dbQuery", _wrap_qtDatabase_dbQuery, METH_VARARGS, NULL}, - { (char *)"qtDatabase_dbRecordFieldValue", _wrap_qtDatabase_dbRecordFieldValue, METH_VARARGS, NULL}, - { (char *)"qtDatabase_nextRecord", _wrap_qtDatabase_nextRecord, METH_VARARGS, NULL}, - { (char *)"qtDatabase_connectionName_set", _wrap_qtDatabase_connectionName_set, METH_VARARGS, NULL}, - { (char *)"qtDatabase_connectionName_get", _wrap_qtDatabase_connectionName_get, METH_VARARGS, NULL}, - { (char *)"qtDatabase_db_set", _wrap_qtDatabase_db_set, METH_VARARGS, NULL}, - { (char *)"qtDatabase_db_get", _wrap_qtDatabase_db_get, METH_VARARGS, NULL}, - { (char *)"qtDatabase_result_set", _wrap_qtDatabase_result_set, METH_VARARGS, NULL}, - { (char *)"qtDatabase_result_get", _wrap_qtDatabase_result_get, METH_VARARGS, NULL}, - { (char *)"qtDatabase_error_set", _wrap_qtDatabase_error_set, METH_VARARGS, NULL}, - { (char *)"qtDatabase_error_get", _wrap_qtDatabase_error_get, METH_VARARGS, NULL}, - { (char *)"qtDatabase_swigregister", qtDatabase_swigregister, METH_VARARGS, NULL}, - { (char *)"getParam", _wrap_getParam, METH_VARARGS, NULL}, - { (char *)"pvQImageScript", _wrap_pvQImageScript, METH_VARARGS, NULL}, - { (char *)"new_int", _wrap_new_int, METH_VARARGS, NULL}, - { (char *)"get_int", _wrap_get_int, METH_VARARGS, NULL}, - { (char *)"delete_int", _wrap_delete_int, METH_VARARGS, NULL}, - { NULL, NULL, 0, NULL } -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ - -static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_FloatArray = {"_p_FloatArray", "FloatArray *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_GLuint = {"_p_GLuint", "GLuint *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_IntegerArray = {"_p_IntegerArray", "IntegerArray *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_PARSE_EVENT_STRUCT = {"_p_PARSE_EVENT_STRUCT", "PARSE_EVENT_STRUCT *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_QSqlDatabase = {"_p_QSqlDatabase", "QSqlDatabase *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_QSqlError = {"_p_QSqlError", "QSqlError *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_QSqlQuery = {"_p_QSqlQuery", "QSqlQuery *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p__PARAM_ = {"_p__PARAM_", "PARAM *|_PARAM_ *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_f_p__PARAM___int = {"_p_f_p__PARAM___int", "int (*)(PARAM *)|int (*)(_PARAM_ *)", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_f_p__PARAM__p_void__int = {"_p_f_p__PARAM__p_void__int", "int (*)(_PARAM_ *,void *)|int (*)(PARAM *,void *)", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_f_p_void__int = {"_p_f_p_void__int", "int (*)(void *)", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_float = {"_p_float", "float *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_glFont = {"_p_glFont", "glFont *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_pvAddressTable = {"_p_pvAddressTable", "pvAddressTable *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_pvAddressTableItem = {"_p_pvAddressTableItem", "pvAddressTableItem *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_pvTime = {"_p_pvTime", "pvTime *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_pvWidgetIdManager = {"_p_pvWidgetIdManager", "pvWidgetIdManager *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_qtDatabase = {"_p_qtDatabase", "qtDatabase *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; - -static swig_type_info *swig_type_initial[] = { - &_swigt__p_FILE, - &_swigt__p_FloatArray, - &_swigt__p_GLuint, - &_swigt__p_IntegerArray, - &_swigt__p_PARSE_EVENT_STRUCT, - &_swigt__p_QSqlDatabase, - &_swigt__p_QSqlError, - &_swigt__p_QSqlQuery, - &_swigt__p__PARAM_, - &_swigt__p_char, - &_swigt__p_double, - &_swigt__p_f_p__PARAM___int, - &_swigt__p_f_p__PARAM__p_void__int, - &_swigt__p_f_p_void__int, - &_swigt__p_float, - &_swigt__p_glFont, - &_swigt__p_int, - &_swigt__p_p_char, - &_swigt__p_pvAddressTable, - &_swigt__p_pvAddressTableItem, - &_swigt__p_pvTime, - &_swigt__p_pvWidgetIdManager, - &_swigt__p_qtDatabase, - &_swigt__p_unsigned_char, - &_swigt__p_void, -}; - -static swig_cast_info _swigc__p_FILE[] = { {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_FloatArray[] = { {&_swigt__p_FloatArray, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_GLuint[] = { {&_swigt__p_GLuint, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_IntegerArray[] = { {&_swigt__p_IntegerArray, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_PARSE_EVENT_STRUCT[] = { {&_swigt__p_PARSE_EVENT_STRUCT, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_QSqlDatabase[] = { {&_swigt__p_QSqlDatabase, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_QSqlError[] = { {&_swigt__p_QSqlError, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_QSqlQuery[] = { {&_swigt__p_QSqlQuery, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p__PARAM_[] = { {&_swigt__p__PARAM_, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_f_p__PARAM___int[] = { {&_swigt__p_f_p__PARAM___int, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_f_p__PARAM__p_void__int[] = { {&_swigt__p_f_p__PARAM__p_void__int, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_f_p_void__int[] = { {&_swigt__p_f_p_void__int, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_float[] = { {&_swigt__p_float, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_glFont[] = { {&_swigt__p_glFont, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_pvAddressTable[] = { {&_swigt__p_pvAddressTable, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_pvAddressTableItem[] = { {&_swigt__p_pvAddressTableItem, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_pvTime[] = { {&_swigt__p_pvTime, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_pvWidgetIdManager[] = { {&_swigt__p_pvWidgetIdManager, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_qtDatabase[] = { {&_swigt__p_qtDatabase, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; - -static swig_cast_info *swig_cast_initial[] = { - _swigc__p_FILE, - _swigc__p_FloatArray, - _swigc__p_GLuint, - _swigc__p_IntegerArray, - _swigc__p_PARSE_EVENT_STRUCT, - _swigc__p_QSqlDatabase, - _swigc__p_QSqlError, - _swigc__p_QSqlQuery, - _swigc__p__PARAM_, - _swigc__p_char, - _swigc__p_double, - _swigc__p_f_p__PARAM___int, - _swigc__p_f_p__PARAM__p_void__int, - _swigc__p_f_p_void__int, - _swigc__p_float, - _swigc__p_glFont, - _swigc__p_int, - _swigc__p_p_char, - _swigc__p_pvAddressTable, - _swigc__p_pvAddressTableItem, - _swigc__p_pvTime, - _swigc__p_pvWidgetIdManager, - _swigc__p_qtDatabase, - _swigc__p_unsigned_char, - _swigc__p_void, -}; - - -/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ - -static swig_const_info swig_const_table[] = { -{0, 0, 0, 0.0, 0, 0}}; - -#ifdef __cplusplus -} -#endif -/* ----------------------------------------------------------------------------- - * Type initialization: - * This problem is tough by the requirement that no dynamic - * memory is used. Also, since swig_type_info structures store pointers to - * swig_cast_info structures and swig_cast_info structures store pointers back - * to swig_type_info structures, we need some lookup code at initialization. - * The idea is that swig generates all the structures that are needed. - * The runtime then collects these partially filled structures. - * The SWIG_InitializeModule function takes these initial arrays out of - * swig_module, and does all the lookup, filling in the swig_module.types - * array with the correct data and linking the correct swig_cast_info - * structures together. - * - * The generated swig_type_info structures are assigned staticly to an initial - * array. We just loop through that array, and handle each type individually. - * First we lookup if this type has been already loaded, and if so, use the - * loaded structure instead of the generated one. Then we have to fill in the - * cast linked list. The cast data is initially stored in something like a - * two-dimensional array. Each row corresponds to a type (there are the same - * number of rows as there are in the swig_type_initial array). Each entry in - * a column is one of the swig_cast_info structures for that type. - * The cast_initial array is actually an array of arrays, because each row has - * a variable number of columns. So to actually build the cast linked list, - * we find the array of casts associated with the type, and loop through it - * adding the casts to the list. The one last trick we need to do is making - * sure the type pointer in the swig_cast_info struct is correct. - * - * First off, we lookup the cast->type name to see if it is already loaded. - * There are three cases to handle: - * 1) If the cast->type has already been loaded AND the type we are adding - * casting info to has not been loaded (it is in this module), THEN we - * replace the cast->type pointer with the type pointer that has already - * been loaded. - * 2) If BOTH types (the one we are adding casting info to, and the - * cast->type) are loaded, THEN the cast info has already been loaded by - * the previous module so we just ignore it. - * 3) Finally, if cast->type has not already been loaded, then we add that - * swig_cast_info to the linked list (because the cast->type) pointer will - * be correct. - * ----------------------------------------------------------------------------- */ - -#ifdef __cplusplus -extern "C" { -#if 0 -} /* c-mode */ -#endif -#endif - -#if 0 -#define SWIGRUNTIME_DEBUG -#endif - - -SWIGRUNTIME void -SWIG_InitializeModule(void *clientdata) { - size_t i; - swig_module_info *module_head, *iter; - int found, init; - - /* check to see if the circular list has been setup, if not, set it up */ - if (swig_module.next==0) { - /* Initialize the swig_module */ - swig_module.type_initial = swig_type_initial; - swig_module.cast_initial = swig_cast_initial; - swig_module.next = &swig_module; - init = 1; - } else { - init = 0; - } - - /* Try and load any already created modules */ - module_head = SWIG_GetModule(clientdata); - if (!module_head) { - /* This is the first module loaded for this interpreter */ - /* so set the swig module into the interpreter */ - SWIG_SetModule(clientdata, &swig_module); - module_head = &swig_module; - } else { - /* the interpreter has loaded a SWIG module, but has it loaded this one? */ - found=0; - iter=module_head; - do { - if (iter==&swig_module) { - found=1; - break; - } - iter=iter->next; - } while (iter!= module_head); - - /* if the is found in the list, then all is done and we may leave */ - if (found) return; - /* otherwise we must add out module into the list */ - swig_module.next = module_head->next; - module_head->next = &swig_module; - } - - /* When multiple interpreters are used, a module could have already been initialized in - a different interpreter, but not yet have a pointer in this interpreter. - In this case, we do not want to continue adding types... everything should be - set up already */ - if (init == 0) return; - - /* Now work on filling in swig_module.types */ -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: size %d\n", swig_module.size); -#endif - for (i = 0; i < swig_module.size; ++i) { - swig_type_info *type = 0; - swig_type_info *ret; - swig_cast_info *cast; - -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); -#endif - - /* if there is another module already loaded */ - if (swig_module.next != &swig_module) { - type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); - } - if (type) { - /* Overwrite clientdata field */ -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: found type %s\n", type->name); -#endif - if (swig_module.type_initial[i]->clientdata) { - type->clientdata = swig_module.type_initial[i]->clientdata; -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); -#endif - } - } else { - type = swig_module.type_initial[i]; - } - - /* Insert casting types */ - cast = swig_module.cast_initial[i]; - while (cast->type) { - /* Don't need to add information already in the list */ - ret = 0; -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); -#endif - if (swig_module.next != &swig_module) { - ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); -#ifdef SWIGRUNTIME_DEBUG - if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); -#endif - } - if (ret) { - if (type == swig_module.type_initial[i]) { -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: skip old type %s\n", ret->name); -#endif - cast->type = ret; - ret = 0; - } else { - /* Check for casting already in the list */ - swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); -#ifdef SWIGRUNTIME_DEBUG - if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); -#endif - if (!ocast) ret = 0; - } - } - - if (!ret) { -#ifdef SWIGRUNTIME_DEBUG - printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); -#endif - if (type->cast) { - type->cast->prev = cast; - cast->next = type->cast; - } - type->cast = cast; - } - cast++; - } - /* Set entry in modules->types array equal to the type */ - swig_module.types[i] = type; - } - swig_module.types[i] = 0; - -#ifdef SWIGRUNTIME_DEBUG - printf("**** SWIG_InitializeModule: Cast List ******\n"); - for (i = 0; i < swig_module.size; ++i) { - int j = 0; - swig_cast_info *cast = swig_module.cast_initial[i]; - printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); - while (cast->type) { - printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); - cast++; - ++j; - } - printf("---- Total casts: %d\n",j); - } - printf("**** SWIG_InitializeModule: Cast List ******\n"); -#endif -} - -/* This function will propagate the clientdata field of type to -* any new swig_type_info structures that have been added into the list -* of equivalent types. It is like calling -* SWIG_TypeClientData(type, clientdata) a second time. -*/ -SWIGRUNTIME void -SWIG_PropagateClientData(void) { - size_t i; - swig_cast_info *equiv; - static int init_run = 0; - - if (init_run) return; - init_run = 1; - - for (i = 0; i < swig_module.size; i++) { - if (swig_module.types[i]->clientdata) { - equiv = swig_module.types[i]->cast; - while (equiv) { - if (!equiv->converter) { - if (equiv->type && !equiv->type->clientdata) - SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); - } - equiv = equiv->next; - } - } - } -} - -#ifdef __cplusplus -#if 0 -{ - /* c-mode */ -#endif -} -#endif - - - -#ifdef __cplusplus -extern "C" { -#endif - - /* Python-specific SWIG API */ -#define SWIG_newvarlink() SWIG_Python_newvarlink() -#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) -#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) - - /* ----------------------------------------------------------------------------- - * global variable support code. - * ----------------------------------------------------------------------------- */ - - typedef struct swig_globalvar { - char *name; /* Name of global variable */ - PyObject *(*get_attr)(void); /* Return the current value */ - int (*set_attr)(PyObject *); /* Set the value */ - struct swig_globalvar *next; - } swig_globalvar; - - typedef struct swig_varlinkobject { - PyObject_HEAD - swig_globalvar *vars; - } swig_varlinkobject; - - SWIGINTERN PyObject * - swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { -#if PY_VERSION_HEX >= 0x03000000 - return PyUnicode_InternFromString(""); -#else - return PyString_FromString(""); -#endif - } - - SWIGINTERN PyObject * - swig_varlink_str(swig_varlinkobject *v) { -#if PY_VERSION_HEX >= 0x03000000 - PyObject *str = PyUnicode_InternFromString("("); - PyObject *tail; - PyObject *joined; - swig_globalvar *var; - for (var = v->vars; var; var=var->next) { - tail = PyUnicode_FromString(var->name); - joined = PyUnicode_Concat(str, tail); - Py_DecRef(str); - Py_DecRef(tail); - str = joined; - if (var->next) { - tail = PyUnicode_InternFromString(", "); - joined = PyUnicode_Concat(str, tail); - Py_DecRef(str); - Py_DecRef(tail); - str = joined; - } - } - tail = PyUnicode_InternFromString(")"); - joined = PyUnicode_Concat(str, tail); - Py_DecRef(str); - Py_DecRef(tail); - str = joined; -#else - PyObject *str = PyString_FromString("("); - swig_globalvar *var; - for (var = v->vars; var; var=var->next) { - PyString_ConcatAndDel(&str,PyString_FromString(var->name)); - if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); - } - PyString_ConcatAndDel(&str,PyString_FromString(")")); -#endif - return str; - } - - SWIGINTERN int - swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { - char *tmp; - PyObject *str = swig_varlink_str(v); - fprintf(fp,"Swig global variables "); - fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str)); - SWIG_Python_str_DelForPy3(tmp); - Py_DECREF(str); - return 0; - } - - SWIGINTERN void - swig_varlink_dealloc(swig_varlinkobject *v) { - swig_globalvar *var = v->vars; - while (var) { - swig_globalvar *n = var->next; - free(var->name); - free(var); - var = n; - } - } - - SWIGINTERN PyObject * - swig_varlink_getattr(swig_varlinkobject *v, char *n) { - PyObject *res = NULL; - swig_globalvar *var = v->vars; - while (var) { - if (strcmp(var->name,n) == 0) { - res = (*var->get_attr)(); - break; - } - var = var->next; - } - if (res == NULL && !PyErr_Occurred()) { - PyErr_SetString(PyExc_NameError,"Unknown C global variable"); - } - return res; - } - - SWIGINTERN int - swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { - int res = 1; - swig_globalvar *var = v->vars; - while (var) { - if (strcmp(var->name,n) == 0) { - res = (*var->set_attr)(p); - break; - } - var = var->next; - } - if (res == 1 && !PyErr_Occurred()) { - PyErr_SetString(PyExc_NameError,"Unknown C global variable"); - } - return res; - } - - SWIGINTERN PyTypeObject* - swig_varlink_type(void) { - static char varlink__doc__[] = "Swig var link object"; - static PyTypeObject varlink_type; - static int type_init = 0; - if (!type_init) { - const PyTypeObject tmp = { - /* PyObject header changed in Python 3 */ -#if PY_VERSION_HEX >= 0x03000000 - PyVarObject_HEAD_INIT(NULL, 0) -#else - PyObject_HEAD_INIT(NULL) - 0, /* ob_size */ -#endif - (char *)"swigvarlink", /* tp_name */ - sizeof(swig_varlinkobject), /* tp_basicsize */ - 0, /* tp_itemsize */ - (destructor) swig_varlink_dealloc, /* tp_dealloc */ - (printfunc) swig_varlink_print, /* tp_print */ - (getattrfunc) swig_varlink_getattr, /* tp_getattr */ - (setattrfunc) swig_varlink_setattr, /* tp_setattr */ - 0, /* tp_compare */ - (reprfunc) swig_varlink_repr, /* tp_repr */ - 0, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - 0, /* tp_hash */ - 0, /* tp_call */ - (reprfunc) swig_varlink_str, /* tp_str */ - 0, /* tp_getattro */ - 0, /* tp_setattro */ - 0, /* tp_as_buffer */ - 0, /* tp_flags */ - varlink__doc__, /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - 0, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ -#if PY_VERSION_HEX >= 0x02020000 - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ -#endif -#if PY_VERSION_HEX >= 0x02030000 - 0, /* tp_del */ -#endif -#if PY_VERSION_HEX >= 0x02060000 - 0, /* tp_version */ -#endif -#ifdef COUNT_ALLOCS - 0,0,0,0 /* tp_alloc -> tp_next */ -#endif - }; - varlink_type = tmp; - type_init = 1; -#if PY_VERSION_HEX < 0x02020000 - varlink_type.ob_type = &PyType_Type; -#else - if (PyType_Ready(&varlink_type) < 0) - return NULL; -#endif - } - return &varlink_type; - } - - /* Create a variable linking object for use later */ - SWIGINTERN PyObject * - SWIG_Python_newvarlink(void) { - swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); - if (result) { - result->vars = 0; - } - return ((PyObject*) result); - } - - SWIGINTERN void - SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { - swig_varlinkobject *v = (swig_varlinkobject *) p; - swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); - if (gv) { - size_t size = strlen(name)+1; - gv->name = (char *)malloc(size); - if (gv->name) { - strncpy(gv->name,name,size); - gv->get_attr = get_attr; - gv->set_attr = set_attr; - gv->next = v->vars; - } - } - v->vars = gv; - } - - SWIGINTERN PyObject * - SWIG_globals(void) { - static PyObject *_SWIG_globals = 0; - if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); - return _SWIG_globals; - } - - /* ----------------------------------------------------------------------------- - * constants/methods manipulation - * ----------------------------------------------------------------------------- */ - - /* Install Constants */ - SWIGINTERN void - SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { - PyObject *obj = 0; - size_t i; - for (i = 0; constants[i].type; ++i) { - switch(constants[i].type) { - case SWIG_PY_POINTER: - obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); - break; - case SWIG_PY_BINARY: - obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); - break; - default: - obj = 0; - break; - } - if (obj) { - PyDict_SetItemString(d, constants[i].name, obj); - Py_DECREF(obj); - } - } - } - - /* -----------------------------------------------------------------------------*/ - /* Fix SwigMethods to carry the callback ptrs when needed */ - /* -----------------------------------------------------------------------------*/ - - SWIGINTERN void - SWIG_Python_FixMethods(PyMethodDef *methods, - swig_const_info *const_table, - swig_type_info **types, - swig_type_info **types_initial) { - size_t i; - for (i = 0; methods[i].ml_name; ++i) { - const char *c = methods[i].ml_doc; - if (c && (c = strstr(c, "swig_ptr: "))) { - int j; - swig_const_info *ci = 0; - const char *name = c + 10; - for (j = 0; const_table[j].type; ++j) { - if (strncmp(const_table[j].name, name, - strlen(const_table[j].name)) == 0) { - ci = &(const_table[j]); - break; - } - } - if (ci) { - void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; - if (ptr) { - size_t shift = (ci->ptype) - types; - swig_type_info *ty = types_initial[shift]; - size_t ldoc = (c - methods[i].ml_doc); - size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; - char *ndoc = (char*)malloc(ldoc + lptr + 10); - if (ndoc) { - char *buff = ndoc; - strncpy(buff, methods[i].ml_doc, ldoc); - buff += ldoc; - strncpy(buff, "swig_ptr: ", 10); - buff += 10; - SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); - methods[i].ml_doc = ndoc; - } - } - } - } - } - } - -#ifdef __cplusplus -} -#endif - -/* -----------------------------------------------------------------------------* - * Partial Init method - * -----------------------------------------------------------------------------*/ - -#ifdef __cplusplus -extern "C" -#endif - -SWIGEXPORT -#if PY_VERSION_HEX >= 0x03000000 -PyObject* -#else -void -#endif -SWIG_init(void) { - PyObject *m, *d, *md; -#if PY_VERSION_HEX >= 0x03000000 - static struct PyModuleDef SWIG_module = { -# if PY_VERSION_HEX >= 0x03020000 - PyModuleDef_HEAD_INIT, -# else - { - PyObject_HEAD_INIT(NULL) - NULL, /* m_init */ - 0, /* m_index */ - NULL, /* m_copy */ - }, -# endif - (char *) SWIG_name, - NULL, - -1, - SwigMethods, - NULL, - NULL, - NULL, - NULL - }; -#endif - -#if defined(SWIGPYTHON_BUILTIN) - static SwigPyClientData SwigPyObject_clientdata = { - 0, 0, 0, 0, 0, 0, 0 - }; - static PyGetSetDef this_getset_def = { - (char *)"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL - }; - static SwigPyGetSet thisown_getset_closure = { - (PyCFunction) SwigPyObject_own, - (PyCFunction) SwigPyObject_own - }; - static PyGetSetDef thisown_getset_def = { - (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure - }; - PyObject *metatype_args; - PyTypeObject *builtin_pytype; - int builtin_base_count; - swig_type_info *builtin_basetype; - PyObject *tuple; - PyGetSetDescrObject *static_getset; - PyTypeObject *metatype; - SwigPyClientData *cd; - PyObject *public_interface, *public_symbol; - PyObject *this_descr; - PyObject *thisown_descr; - int i; - - (void)builtin_pytype; - (void)builtin_base_count; - (void)builtin_basetype; - (void)tuple; - (void)static_getset; - - /* metatype is used to implement static member variables. */ - metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type); - assert(metatype_args); - metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL); - assert(metatype); - Py_DECREF(metatype_args); - metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro; - assert(PyType_Ready(metatype) >= 0); -#endif - - /* Fix SwigMethods to carry the callback ptrs when needed */ - SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); - -#if PY_VERSION_HEX >= 0x03000000 - m = PyModule_Create(&SWIG_module); -#else - m = Py_InitModule((char *) SWIG_name, SwigMethods); -#endif - md = d = PyModule_GetDict(m); - (void)md; - - SWIG_InitializeModule(0); - -#ifdef SWIGPYTHON_BUILTIN - SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject"); - assert(SwigPyObject_stype); - cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; - if (!cd) { - SwigPyObject_stype->clientdata = &SwigPyObject_clientdata; - SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce(); - } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) { - PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules."); -# if PY_VERSION_HEX >= 0x03000000 - return NULL; -# else - return; -# endif - } - - /* All objects have a 'this' attribute */ - this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def); - (void)this_descr; - - /* All objects have a 'thisown' attribute */ - thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def); - (void)thisown_descr; - - public_interface = PyList_New(0); - public_symbol = 0; - (void)public_symbol; - - PyDict_SetItemString(md, "__all__", public_interface); - Py_DECREF(public_interface); - for (i = 0; SwigMethods[i].ml_name != NULL; ++i) - SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name); - for (i = 0; swig_const_table[i].name != 0; ++i) - SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name); -#endif - - SWIG_InstallConstants(d,swig_const_table); - - PyDict_SetItemString(md,(char*)"cvar", SWIG_globals()); - SWIG_addvarlink(SWIG_globals(),(char*)"pvserver_version",Swig_var_pvserver_version_get, Swig_var_pvserver_version_set); - SWIG_Python_SetConstant(d, "pv_STDIN",SWIG_From_int(static_cast< int >(0))); - SWIG_Python_SetConstant(d, "pv_STDOUT",SWIG_From_int(static_cast< int >(1))); - SWIG_Python_SetConstant(d, "MAX_PRINTF_LENGTH",SWIG_From_int(static_cast< int >(1024))); - SWIG_Python_SetConstant(d, "MAX_EVENT_LENGTH",SWIG_From_int(static_cast< int >(1024))); - SWIG_Python_SetConstant(d, "MAX_CLIENTS",SWIG_From_int(static_cast< int >(100))); - SWIG_Python_SetConstant(d, "ID_ROOTWIDGET",SWIG_From_int(static_cast< int >(ID_ROOTWIDGET))); - SWIG_Python_SetConstant(d, "ID_EDITBAR",SWIG_From_int(static_cast< int >(ID_EDITBAR))); - SWIG_Python_SetConstant(d, "ID_TOOLBAR",SWIG_From_int(static_cast< int >(ID_TOOLBAR))); - SWIG_Python_SetConstant(d, "ID_STATUSBAR",SWIG_From_int(static_cast< int >(ID_STATUSBAR))); - SWIG_Python_SetConstant(d, "ID_MAINWINDOW",SWIG_From_int(static_cast< int >(ID_MAINWINDOW))); - SWIG_Python_SetConstant(d, "ID_HELP",SWIG_From_int(static_cast< int >(ID_HELP))); - SWIG_Python_SetConstant(d, "ID_COOKIE",SWIG_From_int(static_cast< int >(ID_COOKIE))); - SWIG_Python_SetConstant(d, "ID_TAB",SWIG_From_int(static_cast< int >(ID_TAB))); - SWIG_Python_SetConstant(d, "ID_OPTIONS",SWIG_From_int(static_cast< int >(ID_OPTIONS))); - SWIG_Python_SetConstant(d, "ID_DOCK_WIDGETS",SWIG_From_int(static_cast< int >(ID_DOCK_WIDGETS))); - SWIG_Python_SetConstant(d, "MAX_DOCK_WIDGETS",SWIG_From_int(static_cast< int >(32))); - SWIG_Python_SetConstant(d, "NULL_EVENT",SWIG_From_int(static_cast< int >(NULL_EVENT))); - SWIG_Python_SetConstant(d, "BUTTON_EVENT",SWIG_From_int(static_cast< int >(BUTTON_EVENT))); - SWIG_Python_SetConstant(d, "TEXT_EVENT",SWIG_From_int(static_cast< int >(TEXT_EVENT))); - SWIG_Python_SetConstant(d, "SLIDER_EVENT",SWIG_From_int(static_cast< int >(SLIDER_EVENT))); - SWIG_Python_SetConstant(d, "CHECKBOX_EVENT",SWIG_From_int(static_cast< int >(CHECKBOX_EVENT))); - SWIG_Python_SetConstant(d, "RADIOBUTTON_EVENT",SWIG_From_int(static_cast< int >(RADIOBUTTON_EVENT))); - SWIG_Python_SetConstant(d, "GL_IDLE_EVENT",SWIG_From_int(static_cast< int >(GL_IDLE_EVENT))); - SWIG_Python_SetConstant(d, "GL_PAINT_EVENT",SWIG_From_int(static_cast< int >(GL_PAINT_EVENT))); - SWIG_Python_SetConstant(d, "GL_INITIALIZE_EVENT",SWIG_From_int(static_cast< int >(GL_INITIALIZE_EVENT))); - SWIG_Python_SetConstant(d, "GL_RESIZE_EVENT",SWIG_From_int(static_cast< int >(GL_RESIZE_EVENT))); - SWIG_Python_SetConstant(d, "TAB_EVENT",SWIG_From_int(static_cast< int >(TAB_EVENT))); - SWIG_Python_SetConstant(d, "TABLE_CLICKED_EVENT",SWIG_From_int(static_cast< int >(TABLE_CLICKED_EVENT))); - SWIG_Python_SetConstant(d, "TABLE_TEXT_EVENT",SWIG_From_int(static_cast< int >(TABLE_TEXT_EVENT))); - SWIG_Python_SetConstant(d, "SELECTION_EVENT",SWIG_From_int(static_cast< int >(SELECTION_EVENT))); - SWIG_Python_SetConstant(d, "CLIPBOARD_EVENT",SWIG_From_int(static_cast< int >(CLIPBOARD_EVENT))); - SWIG_Python_SetConstant(d, "BUTTON_PRESSED_EVENT",SWIG_From_int(static_cast< int >(BUTTON_PRESSED_EVENT))); - SWIG_Python_SetConstant(d, "BUTTON_RELEASED_EVENT",SWIG_From_int(static_cast< int >(BUTTON_RELEASED_EVENT))); - SWIG_Python_SetConstant(d, "RIGHT_MOUSE_EVENT",SWIG_From_int(static_cast< int >(RIGHT_MOUSE_EVENT))); - SWIG_Python_SetConstant(d, "KEYBOARD_EVENT",SWIG_From_int(static_cast< int >(KEYBOARD_EVENT))); - SWIG_Python_SetConstant(d, "PLOT_MOUSE_MOVED_EVENT",SWIG_From_int(static_cast< int >(PLOT_MOUSE_MOVED_EVENT))); - SWIG_Python_SetConstant(d, "PLOT_MOUSE_PRESSED_EVENT",SWIG_From_int(static_cast< int >(PLOT_MOUSE_PRESSED_EVENT))); - SWIG_Python_SetConstant(d, "PLOT_MOUSE_RELEASED_EVENT",SWIG_From_int(static_cast< int >(PLOT_MOUSE_RELEASED_EVENT))); - SWIG_Python_SetConstant(d, "USER_EVENT",SWIG_From_int(static_cast< int >(USER_EVENT))); - SWIG_Python_SetConstant(d, "MOUSE_OVER_EVENT",SWIG_From_int(static_cast< int >(MOUSE_OVER_EVENT))); - SWIG_Python_SetConstant(d, "TQWidget",SWIG_From_int(static_cast< int >(TQWidget))); - SWIG_Python_SetConstant(d, "TQPushButton",SWIG_From_int(static_cast< int >(TQPushButton))); - SWIG_Python_SetConstant(d, "TQLabel",SWIG_From_int(static_cast< int >(TQLabel))); - SWIG_Python_SetConstant(d, "TQLineEdit",SWIG_From_int(static_cast< int >(TQLineEdit))); - SWIG_Python_SetConstant(d, "TQComboBox",SWIG_From_int(static_cast< int >(TQComboBox))); - SWIG_Python_SetConstant(d, "TQLCDNumber",SWIG_From_int(static_cast< int >(TQLCDNumber))); - SWIG_Python_SetConstant(d, "TQButtonGroup",SWIG_From_int(static_cast< int >(TQButtonGroup))); - SWIG_Python_SetConstant(d, "TQRadio",SWIG_From_int(static_cast< int >(TQRadio))); - SWIG_Python_SetConstant(d, "TQCheck",SWIG_From_int(static_cast< int >(TQCheck))); - SWIG_Python_SetConstant(d, "TQSlider",SWIG_From_int(static_cast< int >(TQSlider))); - SWIG_Python_SetConstant(d, "TQFrame",SWIG_From_int(static_cast< int >(TQFrame))); - SWIG_Python_SetConstant(d, "TQImage",SWIG_From_int(static_cast< int >(TQImage))); - SWIG_Python_SetConstant(d, "TQDraw",SWIG_From_int(static_cast< int >(TQDraw))); - SWIG_Python_SetConstant(d, "TQGl",SWIG_From_int(static_cast< int >(TQGl))); - SWIG_Python_SetConstant(d, "TQTabWidget",SWIG_From_int(static_cast< int >(TQTabWidget))); - SWIG_Python_SetConstant(d, "TQGroupBox",SWIG_From_int(static_cast< int >(TQGroupBox))); - SWIG_Python_SetConstant(d, "TQListBox",SWIG_From_int(static_cast< int >(TQListBox))); - SWIG_Python_SetConstant(d, "TQTable",SWIG_From_int(static_cast< int >(TQTable))); - SWIG_Python_SetConstant(d, "TQSpinBox",SWIG_From_int(static_cast< int >(TQSpinBox))); - SWIG_Python_SetConstant(d, "TQDial",SWIG_From_int(static_cast< int >(TQDial))); - SWIG_Python_SetConstant(d, "TQProgressBar",SWIG_From_int(static_cast< int >(TQProgressBar))); - SWIG_Python_SetConstant(d, "TQMultiLineEdit",SWIG_From_int(static_cast< int >(TQMultiLineEdit))); - SWIG_Python_SetConstant(d, "TQTextBrowser",SWIG_From_int(static_cast< int >(TQTextBrowser))); - SWIG_Python_SetConstant(d, "TQListView",SWIG_From_int(static_cast< int >(TQListView))); - SWIG_Python_SetConstant(d, "TQIconView",SWIG_From_int(static_cast< int >(TQIconView))); - SWIG_Python_SetConstant(d, "TQVtk",SWIG_From_int(static_cast< int >(TQVtk))); - SWIG_Python_SetConstant(d, "TQwtPlotWidget",SWIG_From_int(static_cast< int >(TQwtPlotWidget))); - SWIG_Python_SetConstant(d, "TQwtScale",SWIG_From_int(static_cast< int >(TQwtScale))); - SWIG_Python_SetConstant(d, "TQwtThermo",SWIG_From_int(static_cast< int >(TQwtThermo))); - SWIG_Python_SetConstant(d, "TQwtKnob",SWIG_From_int(static_cast< int >(TQwtKnob))); - SWIG_Python_SetConstant(d, "TQwtCounter",SWIG_From_int(static_cast< int >(TQwtCounter))); - SWIG_Python_SetConstant(d, "TQwtWheel",SWIG_From_int(static_cast< int >(TQwtWheel))); - SWIG_Python_SetConstant(d, "TQwtSlider",SWIG_From_int(static_cast< int >(TQwtSlider))); - SWIG_Python_SetConstant(d, "TQwtDial",SWIG_From_int(static_cast< int >(TQwtDial))); - SWIG_Python_SetConstant(d, "TQwtCompass",SWIG_From_int(static_cast< int >(TQwtCompass))); - SWIG_Python_SetConstant(d, "TQwtAnalogClock",SWIG_From_int(static_cast< int >(TQwtAnalogClock))); - SWIG_Python_SetConstant(d, "TQDateEdit",SWIG_From_int(static_cast< int >(TQDateEdit))); - SWIG_Python_SetConstant(d, "TQTimeEdit",SWIG_From_int(static_cast< int >(TQTimeEdit))); - SWIG_Python_SetConstant(d, "TQDateTimeEdit",SWIG_From_int(static_cast< int >(TQDateTimeEdit))); - SWIG_Python_SetConstant(d, "TQToolBox",SWIG_From_int(static_cast< int >(TQToolBox))); - SWIG_Python_SetConstant(d, "TQVbox",SWIG_From_int(static_cast< int >(TQVbox))); - SWIG_Python_SetConstant(d, "TQHbox",SWIG_From_int(static_cast< int >(TQHbox))); - SWIG_Python_SetConstant(d, "TQGrid",SWIG_From_int(static_cast< int >(TQGrid))); - SWIG_Python_SetConstant(d, "TQCustomWidget",SWIG_From_int(static_cast< int >(TQCustomWidget))); - SWIG_Python_SetConstant(d, "LINESTYLE_NONE",SWIG_From_int(static_cast< int >(LINESTYLE_NONE))); - SWIG_Python_SetConstant(d, "LINESTYLE_CIRCLE",SWIG_From_int(static_cast< int >(LINESTYLE_CIRCLE))); - SWIG_Python_SetConstant(d, "LINESTYLE_CROSS",SWIG_From_int(static_cast< int >(LINESTYLE_CROSS))); - SWIG_Python_SetConstant(d, "LINESTYLE_RECT",SWIG_From_int(static_cast< int >(LINESTYLE_RECT))); - SWIG_Python_SetConstant(d, "HELVETICA",SWIG_FromCharPtr("Helvetica")); - SWIG_Python_SetConstant(d, "TIMES",SWIG_FromCharPtr("Times")); - SWIG_Python_SetConstant(d, "COURIER",SWIG_FromCharPtr("Courier")); - SWIG_Python_SetConstant(d, "OLDENGLISH",SWIG_FromCharPtr("OldEnglish")); - SWIG_Python_SetConstant(d, "SYSTEM",SWIG_FromCharPtr("System")); - SWIG_Python_SetConstant(d, "ANYSTYLE",SWIG_FromCharPtr("AnyStyle")); - SWIG_Python_SetConstant(d, "Light",SWIG_From_int(static_cast< int >(Light))); - SWIG_Python_SetConstant(d, "Normal",SWIG_From_int(static_cast< int >(Normal))); - SWIG_Python_SetConstant(d, "DemiBold",SWIG_From_int(static_cast< int >(DemiBold))); - SWIG_Python_SetConstant(d, "Bold",SWIG_From_int(static_cast< int >(Bold))); - SWIG_Python_SetConstant(d, "Black",SWIG_From_int(static_cast< int >(Black))); - SWIG_Python_SetConstant(d, "ALIGN_LEFT",SWIG_From_int(static_cast< int >(ALIGN_LEFT))); - SWIG_Python_SetConstant(d, "ALIGN_CENTER",SWIG_From_int(static_cast< int >(ALIGN_CENTER))); - SWIG_Python_SetConstant(d, "ALIGN_RIGHT",SWIG_From_int(static_cast< int >(ALIGN_RIGHT))); - SWIG_Python_SetConstant(d, "ALIGN_VERT_CENTER",SWIG_From_int(static_cast< int >(ALIGN_VERT_CENTER))); - SWIG_Python_SetConstant(d, "AlignAuto",SWIG_From_int(static_cast< int >(AlignAuto))); - SWIG_Python_SetConstant(d, "AlignLeft",SWIG_From_int(static_cast< int >(AlignLeft))); - SWIG_Python_SetConstant(d, "AlignRight",SWIG_From_int(static_cast< int >(AlignRight))); - SWIG_Python_SetConstant(d, "AlignHCenter",SWIG_From_int(static_cast< int >(AlignHCenter))); - SWIG_Python_SetConstant(d, "AlignJustify",SWIG_From_int(static_cast< int >(AlignJustify))); - SWIG_Python_SetConstant(d, "AlignHorizontal_Mask",SWIG_From_int(static_cast< int >(AlignHorizontal_Mask))); - SWIG_Python_SetConstant(d, "AlignTop",SWIG_From_int(static_cast< int >(AlignTop))); - SWIG_Python_SetConstant(d, "AlignBottom",SWIG_From_int(static_cast< int >(AlignBottom))); - SWIG_Python_SetConstant(d, "AlignVCenter",SWIG_From_int(static_cast< int >(AlignVCenter))); - SWIG_Python_SetConstant(d, "AlignVertical_Mask",SWIG_From_int(static_cast< int >(AlignVertical_Mask))); - SWIG_Python_SetConstant(d, "AlignCenter",SWIG_From_int(static_cast< int >(AlignCenter))); - SWIG_Python_SetConstant(d, "SingleLine",SWIG_From_int(static_cast< int >(SingleLine))); - SWIG_Python_SetConstant(d, "DontClip",SWIG_From_int(static_cast< int >(DontClip))); - SWIG_Python_SetConstant(d, "ExpandTabs",SWIG_From_int(static_cast< int >(ExpandTabs))); - SWIG_Python_SetConstant(d, "ShowPrefix",SWIG_From_int(static_cast< int >(ShowPrefix))); - SWIG_Python_SetConstant(d, "WordBreak",SWIG_From_int(static_cast< int >(WordBreak))); - SWIG_Python_SetConstant(d, "BreakAnywhere",SWIG_From_int(static_cast< int >(BreakAnywhere))); - SWIG_Python_SetConstant(d, "DontPrint",SWIG_From_int(static_cast< int >(DontPrint))); - SWIG_Python_SetConstant(d, "Underline",SWIG_From_int(static_cast< int >(Underline))); - SWIG_Python_SetConstant(d, "Overline",SWIG_From_int(static_cast< int >(Overline))); - SWIG_Python_SetConstant(d, "StrikeOut",SWIG_From_int(static_cast< int >(StrikeOut))); - SWIG_Python_SetConstant(d, "IncludeTrailingSpaces",SWIG_From_int(static_cast< int >(IncludeTrailingSpaces))); - SWIG_Python_SetConstant(d, "NoAccel",SWIG_From_int(static_cast< int >(NoAccel))); - SWIG_Python_SetConstant(d, "NoMove",SWIG_From_int(static_cast< int >(NoMove))); - SWIG_Python_SetConstant(d, "Start",SWIG_From_int(static_cast< int >(Start))); - SWIG_Python_SetConstant(d, "StartOfLine",SWIG_From_int(static_cast< int >(StartOfLine))); - SWIG_Python_SetConstant(d, "StartOfBlock",SWIG_From_int(static_cast< int >(StartOfBlock))); - SWIG_Python_SetConstant(d, "StartOfWord",SWIG_From_int(static_cast< int >(StartOfWord))); - SWIG_Python_SetConstant(d, "PreviousBlock",SWIG_From_int(static_cast< int >(PreviousBlock))); - SWIG_Python_SetConstant(d, "PreviousCharacter",SWIG_From_int(static_cast< int >(PreviousCharacter))); - SWIG_Python_SetConstant(d, "PreviousWord",SWIG_From_int(static_cast< int >(PreviousWord))); - SWIG_Python_SetConstant(d, "Up",SWIG_From_int(static_cast< int >(Up))); - SWIG_Python_SetConstant(d, "Left",SWIG_From_int(static_cast< int >(Left))); - SWIG_Python_SetConstant(d, "WordLeft",SWIG_From_int(static_cast< int >(WordLeft))); - SWIG_Python_SetConstant(d, "End",SWIG_From_int(static_cast< int >(End))); - SWIG_Python_SetConstant(d, "EndOfLine",SWIG_From_int(static_cast< int >(EndOfLine))); - SWIG_Python_SetConstant(d, "EndOfWord",SWIG_From_int(static_cast< int >(EndOfWord))); - SWIG_Python_SetConstant(d, "EndOfBlock",SWIG_From_int(static_cast< int >(EndOfBlock))); - SWIG_Python_SetConstant(d, "NextBlock",SWIG_From_int(static_cast< int >(NextBlock))); - SWIG_Python_SetConstant(d, "NextCharacter",SWIG_From_int(static_cast< int >(NextCharacter))); - SWIG_Python_SetConstant(d, "NextWord",SWIG_From_int(static_cast< int >(NextWord))); - SWIG_Python_SetConstant(d, "Down",SWIG_From_int(static_cast< int >(Down))); - SWIG_Python_SetConstant(d, "Right",SWIG_From_int(static_cast< int >(Right))); - SWIG_Python_SetConstant(d, "WordRight",SWIG_From_int(static_cast< int >(WordRight))); - SWIG_Python_SetConstant(d, "NORMAL",SWIG_From_int(static_cast< int >(NORMAL))); - SWIG_Python_SetConstant(d, "ITALIC",SWIG_From_int(static_cast< int >(ITALIC))); - SWIG_Python_SetConstant(d, "NoInsertion",SWIG_From_int(static_cast< int >(NoInsertion))); - SWIG_Python_SetConstant(d, "AtTop",SWIG_From_int(static_cast< int >(AtTop))); - SWIG_Python_SetConstant(d, "AtCurrent",SWIG_From_int(static_cast< int >(AtCurrent))); - SWIG_Python_SetConstant(d, "AtBottom",SWIG_From_int(static_cast< int >(AtBottom))); - SWIG_Python_SetConstant(d, "AfterCurrent",SWIG_From_int(static_cast< int >(AfterCurrent))); - SWIG_Python_SetConstant(d, "BeforeCurrent",SWIG_From_int(static_cast< int >(BeforeCurrent))); - SWIG_Python_SetConstant(d, "HEX",SWIG_From_int(static_cast< int >(HEX))); - SWIG_Python_SetConstant(d, "DEC",SWIG_From_int(static_cast< int >(DEC))); - SWIG_Python_SetConstant(d, "OCT",SWIG_From_int(static_cast< int >(OCT))); - SWIG_Python_SetConstant(d, "BINx",SWIG_From_int(static_cast< int >(BINx))); - SWIG_Python_SetConstant(d, "Hex",SWIG_From_int(static_cast< int >(Hex))); - SWIG_Python_SetConstant(d, "Dec",SWIG_From_int(static_cast< int >(Dec))); - SWIG_Python_SetConstant(d, "Oct",SWIG_From_int(static_cast< int >(Oct))); - SWIG_Python_SetConstant(d, "Bin",SWIG_From_int(static_cast< int >(Bin))); - SWIG_Python_SetConstant(d, "Outline",SWIG_From_int(static_cast< int >(Outline))); - SWIG_Python_SetConstant(d, "Filled",SWIG_From_int(static_cast< int >(Filled))); - SWIG_Python_SetConstant(d, "Flat",SWIG_From_int(static_cast< int >(Flat))); - SWIG_Python_SetConstant(d, "HORIZONTAL",SWIG_From_int(static_cast< int >(HORIZONTAL))); - SWIG_Python_SetConstant(d, "VERTICAL",SWIG_From_int(static_cast< int >(VERTICAL))); - SWIG_Python_SetConstant(d, "Horizontal",SWIG_From_int(static_cast< int >(Horizontal))); - SWIG_Python_SetConstant(d, "Vertical",SWIG_From_int(static_cast< int >(Vertical))); - SWIG_Python_SetConstant(d, "ArrowCursor",SWIG_From_int(static_cast< int >(ArrowCursor))); - SWIG_Python_SetConstant(d, "UpArrowCursor",SWIG_From_int(static_cast< int >(UpArrowCursor))); - SWIG_Python_SetConstant(d, "CrossCursor",SWIG_From_int(static_cast< int >(CrossCursor))); - SWIG_Python_SetConstant(d, "WaitCursor",SWIG_From_int(static_cast< int >(WaitCursor))); - SWIG_Python_SetConstant(d, "IBeamCursor",SWIG_From_int(static_cast< int >(IBeamCursor))); - SWIG_Python_SetConstant(d, "SizeVerCursor",SWIG_From_int(static_cast< int >(SizeVerCursor))); - SWIG_Python_SetConstant(d, "SizeHorCursor",SWIG_From_int(static_cast< int >(SizeHorCursor))); - SWIG_Python_SetConstant(d, "SizeFDiagCursor",SWIG_From_int(static_cast< int >(SizeFDiagCursor))); - SWIG_Python_SetConstant(d, "SizeBDiagCursor",SWIG_From_int(static_cast< int >(SizeBDiagCursor))); - SWIG_Python_SetConstant(d, "SizeAllCursor",SWIG_From_int(static_cast< int >(SizeAllCursor))); - SWIG_Python_SetConstant(d, "BlankCursor",SWIG_From_int(static_cast< int >(BlankCursor))); - SWIG_Python_SetConstant(d, "SplitVCursor",SWIG_From_int(static_cast< int >(SplitVCursor))); - SWIG_Python_SetConstant(d, "SplitHCursor",SWIG_From_int(static_cast< int >(SplitHCursor))); - SWIG_Python_SetConstant(d, "PointingHandCursor",SWIG_From_int(static_cast< int >(PointingHandCursor))); - SWIG_Python_SetConstant(d, "ForbiddenCursor",SWIG_From_int(static_cast< int >(ForbiddenCursor))); - SWIG_Python_SetConstant(d, "OpenHandCursor",SWIG_From_int(static_cast< int >(OpenHandCursor))); - SWIG_Python_SetConstant(d, "ClosedHandCursor",SWIG_From_int(static_cast< int >(ClosedHandCursor))); - SWIG_Python_SetConstant(d, "WhatsThisCursor",SWIG_From_int(static_cast< int >(WhatsThisCursor))); - SWIG_Python_SetConstant(d, "BusyCursor",SWIG_From_int(static_cast< int >(BusyCursor))); - SWIG_Python_SetConstant(d, "NoFrame",SWIG_From_int(static_cast< int >(NoFrame))); - SWIG_Python_SetConstant(d, "Box",SWIG_From_int(static_cast< int >(Box))); - SWIG_Python_SetConstant(d, "Panel",SWIG_From_int(static_cast< int >(Panel))); - SWIG_Python_SetConstant(d, "WinPanel",SWIG_From_int(static_cast< int >(WinPanel))); - SWIG_Python_SetConstant(d, "HLine",SWIG_From_int(static_cast< int >(HLine))); - SWIG_Python_SetConstant(d, "VLine",SWIG_From_int(static_cast< int >(VLine))); - SWIG_Python_SetConstant(d, "StyledPanel",SWIG_From_int(static_cast< int >(StyledPanel))); - SWIG_Python_SetConstant(d, "PopupPanel",SWIG_From_int(static_cast< int >(PopupPanel))); - SWIG_Python_SetConstant(d, "MenuBarPanel",SWIG_From_int(static_cast< int >(MenuBarPanel))); - SWIG_Python_SetConstant(d, "ToolBarPanel",SWIG_From_int(static_cast< int >(ToolBarPanel))); - SWIG_Python_SetConstant(d, "LineEditPanel",SWIG_From_int(static_cast< int >(LineEditPanel))); - SWIG_Python_SetConstant(d, "TabWidgetPanel",SWIG_From_int(static_cast< int >(TabWidgetPanel))); - SWIG_Python_SetConstant(d, "GroupBoxPanel",SWIG_From_int(static_cast< int >(GroupBoxPanel))); - SWIG_Python_SetConstant(d, "MShape",SWIG_From_int(static_cast< int >(MShape))); - SWIG_Python_SetConstant(d, "Plain",SWIG_From_int(static_cast< int >(Plain))); - SWIG_Python_SetConstant(d, "Raised",SWIG_From_int(static_cast< int >(Raised))); - SWIG_Python_SetConstant(d, "Sunken",SWIG_From_int(static_cast< int >(Sunken))); - SWIG_Python_SetConstant(d, "MShadow",SWIG_From_int(static_cast< int >(MShadow))); - SWIG_Python_SetConstant(d, "FileOpenDialog",SWIG_From_int(static_cast< int >(FileOpenDialog))); - SWIG_Python_SetConstant(d, "FileSaveDialog",SWIG_From_int(static_cast< int >(FileSaveDialog))); - SWIG_Python_SetConstant(d, "FindDirectoryDialog",SWIG_From_int(static_cast< int >(FindDirectoryDialog))); - SWIG_Python_SetConstant(d, "BoxInformation",SWIG_From_int(static_cast< int >(BoxInformation))); - SWIG_Python_SetConstant(d, "BoxWarning",SWIG_From_int(static_cast< int >(BoxWarning))); - SWIG_Python_SetConstant(d, "BoxCritical",SWIG_From_int(static_cast< int >(BoxCritical))); - SWIG_Python_SetConstant(d, "MessageBoxOk",SWIG_From_int(static_cast< int >(MessageBoxOk))); - SWIG_Python_SetConstant(d, "MessageBoxOpen",SWIG_From_int(static_cast< int >(MessageBoxOpen))); - SWIG_Python_SetConstant(d, "MessageBoxSave",SWIG_From_int(static_cast< int >(MessageBoxSave))); - SWIG_Python_SetConstant(d, "MessageBoxCancel",SWIG_From_int(static_cast< int >(MessageBoxCancel))); - SWIG_Python_SetConstant(d, "MessageBoxClose",SWIG_From_int(static_cast< int >(MessageBoxClose))); - SWIG_Python_SetConstant(d, "MessageBoxDiscard",SWIG_From_int(static_cast< int >(MessageBoxDiscard))); - SWIG_Python_SetConstant(d, "MessageBoxApply",SWIG_From_int(static_cast< int >(MessageBoxApply))); - SWIG_Python_SetConstant(d, "MessageBoxReset",SWIG_From_int(static_cast< int >(MessageBoxReset))); - SWIG_Python_SetConstant(d, "MessageBoxRestoreDefaults",SWIG_From_int(static_cast< int >(MessageBoxRestoreDefaults))); - SWIG_Python_SetConstant(d, "MessageBoxHelp",SWIG_From_int(static_cast< int >(MessageBoxHelp))); - SWIG_Python_SetConstant(d, "MessageBoxSaveAll",SWIG_From_int(static_cast< int >(MessageBoxSaveAll))); - SWIG_Python_SetConstant(d, "MessageBoxYes",SWIG_From_int(static_cast< int >(MessageBoxYes))); - SWIG_Python_SetConstant(d, "MessageBoxYesToAll",SWIG_From_int(static_cast< int >(MessageBoxYesToAll))); - SWIG_Python_SetConstant(d, "MessageBoxNo",SWIG_From_int(static_cast< int >(MessageBoxNo))); - SWIG_Python_SetConstant(d, "MessageBoxNoToAll",SWIG_From_int(static_cast< int >(MessageBoxNoToAll))); - SWIG_Python_SetConstant(d, "MessageBoxAbort",SWIG_From_int(static_cast< int >(MessageBoxAbort))); - SWIG_Python_SetConstant(d, "MessageBoxRetry",SWIG_From_int(static_cast< int >(MessageBoxRetry))); - SWIG_Python_SetConstant(d, "MessageBoxIgnore",SWIG_From_int(static_cast< int >(MessageBoxIgnore))); - SWIG_Python_SetConstant(d, "MessageBoxNoButton",SWIG_From_int(static_cast< int >(MessageBoxNoButton))); - SWIG_Python_SetConstant(d, "Home",SWIG_From_int(static_cast< int >(Home))); - SWIG_Python_SetConstant(d, "Forward",SWIG_From_int(static_cast< int >(Forward))); - SWIG_Python_SetConstant(d, "Backward",SWIG_From_int(static_cast< int >(Backward))); - SWIG_Python_SetConstant(d, "Reload",SWIG_From_int(static_cast< int >(Reload))); - SWIG_Python_SetConstant(d, "Top",SWIG_From_int(static_cast< int >(Top))); - SWIG_Python_SetConstant(d, "Bottom",SWIG_From_int(static_cast< int >(Bottom))); - SWIG_Python_SetConstant(d, "ShiftButton",SWIG_From_int(static_cast< int >(ShiftButton))); - SWIG_Python_SetConstant(d, "ControlButton",SWIG_From_int(static_cast< int >(ControlButton))); - SWIG_Python_SetConstant(d, "AltButton",SWIG_From_int(static_cast< int >(AltButton))); - SWIG_Python_SetConstant(d, "NormalKey",SWIG_From_int(static_cast< int >(NormalKey))); - SWIG_Python_SetConstant(d, "Key_Escape",SWIG_From_int(static_cast< int >(Key_Escape))); - SWIG_Python_SetConstant(d, "Key_Pause",SWIG_From_int(static_cast< int >(Key_Pause))); - SWIG_Python_SetConstant(d, "Key_Print",SWIG_From_int(static_cast< int >(Key_Print))); - SWIG_Python_SetConstant(d, "Key_SysReq",SWIG_From_int(static_cast< int >(Key_SysReq))); - SWIG_Python_SetConstant(d, "Key_PageUp",SWIG_From_int(static_cast< int >(Key_PageUp))); - SWIG_Python_SetConstant(d, "Key_PageDown",SWIG_From_int(static_cast< int >(Key_PageDown))); - SWIG_Python_SetConstant(d, "Key_F1",SWIG_From_int(static_cast< int >(Key_F1))); - SWIG_Python_SetConstant(d, "Key_F2",SWIG_From_int(static_cast< int >(Key_F2))); - SWIG_Python_SetConstant(d, "Key_F3",SWIG_From_int(static_cast< int >(Key_F3))); - SWIG_Python_SetConstant(d, "Key_F4",SWIG_From_int(static_cast< int >(Key_F4))); - SWIG_Python_SetConstant(d, "Key_F5",SWIG_From_int(static_cast< int >(Key_F5))); - SWIG_Python_SetConstant(d, "Key_F6",SWIG_From_int(static_cast< int >(Key_F6))); - SWIG_Python_SetConstant(d, "Key_F7",SWIG_From_int(static_cast< int >(Key_F7))); - SWIG_Python_SetConstant(d, "Key_F8",SWIG_From_int(static_cast< int >(Key_F8))); - SWIG_Python_SetConstant(d, "Key_F9",SWIG_From_int(static_cast< int >(Key_F9))); - SWIG_Python_SetConstant(d, "Key_F10",SWIG_From_int(static_cast< int >(Key_F10))); - SWIG_Python_SetConstant(d, "Key_F11",SWIG_From_int(static_cast< int >(Key_F11))); - SWIG_Python_SetConstant(d, "Key_F12",SWIG_From_int(static_cast< int >(Key_F12))); - SWIG_Python_SetConstant(d, "BottomLegend",SWIG_From_int(static_cast< int >(BottomLegend))); - SWIG_Python_SetConstant(d, "TopLegend",SWIG_From_int(static_cast< int >(TopLegend))); - SWIG_Python_SetConstant(d, "LeftLegend",SWIG_From_int(static_cast< int >(LeftLegend))); - SWIG_Python_SetConstant(d, "RightLegend",SWIG_From_int(static_cast< int >(RightLegend))); - SWIG_Python_SetConstant(d, "yLeft",SWIG_From_int(static_cast< int >(yLeft))); - SWIG_Python_SetConstant(d, "yRight",SWIG_From_int(static_cast< int >(yRight))); - SWIG_Python_SetConstant(d, "xBottom",SWIG_From_int(static_cast< int >(xBottom))); - SWIG_Python_SetConstant(d, "xTop",SWIG_From_int(static_cast< int >(xTop))); - SWIG_Python_SetConstant(d, "axisCnt",SWIG_From_int(static_cast< int >(axisCnt))); - SWIG_Python_SetConstant(d, "pvNone",SWIG_From_int(static_cast< int >(pvNone))); - SWIG_Python_SetConstant(d, "IncludeRef",SWIG_From_int(static_cast< int >(IncludeRef))); - SWIG_Python_SetConstant(d, "Symmetric",SWIG_From_int(static_cast< int >(Symmetric))); - SWIG_Python_SetConstant(d, "Floating",SWIG_From_int(static_cast< int >(Floating))); - SWIG_Python_SetConstant(d, "Logarithmic",SWIG_From_int(static_cast< int >(Logarithmic))); - SWIG_Python_SetConstant(d, "Inverted",SWIG_From_int(static_cast< int >(Inverted))); - SWIG_Python_SetConstant(d, "ScaleLeft",SWIG_From_int(static_cast< int >(ScaleLeft))); - SWIG_Python_SetConstant(d, "ScaleRight",SWIG_From_int(static_cast< int >(ScaleRight))); - SWIG_Python_SetConstant(d, "ScaleTop",SWIG_From_int(static_cast< int >(ScaleTop))); - SWIG_Python_SetConstant(d, "ScaleBottom",SWIG_From_int(static_cast< int >(ScaleBottom))); - SWIG_Python_SetConstant(d, "ThermoNone",SWIG_From_int(static_cast< int >(ThermoNone))); - SWIG_Python_SetConstant(d, "ThermoLeft",SWIG_From_int(static_cast< int >(ThermoLeft))); - SWIG_Python_SetConstant(d, "ThermoRight",SWIG_From_int(static_cast< int >(ThermoRight))); - SWIG_Python_SetConstant(d, "ThermoTop",SWIG_From_int(static_cast< int >(ThermoTop))); - SWIG_Python_SetConstant(d, "ThermoBottom",SWIG_From_int(static_cast< int >(ThermoBottom))); - SWIG_Python_SetConstant(d, "KnobLine",SWIG_From_int(static_cast< int >(KnobLine))); - SWIG_Python_SetConstant(d, "KnobDot",SWIG_From_int(static_cast< int >(KnobDot))); - SWIG_Python_SetConstant(d, "CounterButton1",SWIG_From_int(static_cast< int >(CounterButton1))); - SWIG_Python_SetConstant(d, "CounterButton2",SWIG_From_int(static_cast< int >(CounterButton2))); - SWIG_Python_SetConstant(d, "CounterButton3",SWIG_From_int(static_cast< int >(CounterButton3))); - SWIG_Python_SetConstant(d, "CounterButtonCnt",SWIG_From_int(static_cast< int >(CounterButtonCnt))); - SWIG_Python_SetConstant(d, "SliderNone",SWIG_From_int(static_cast< int >(SliderNone))); - SWIG_Python_SetConstant(d, "SliderLeft",SWIG_From_int(static_cast< int >(SliderLeft))); - SWIG_Python_SetConstant(d, "SliderRight",SWIG_From_int(static_cast< int >(SliderRight))); - SWIG_Python_SetConstant(d, "SliderTop",SWIG_From_int(static_cast< int >(SliderTop))); - SWIG_Python_SetConstant(d, "SliderBottom",SWIG_From_int(static_cast< int >(SliderBottom))); - SWIG_Python_SetConstant(d, "SliderBgTrough",SWIG_From_int(static_cast< int >(SliderBgTrough))); - SWIG_Python_SetConstant(d, "SliderBgSlot",SWIG_From_int(static_cast< int >(SliderBgSlot))); - SWIG_Python_SetConstant(d, "SliderBgBoth",SWIG_From_int(static_cast< int >(SliderBgBoth))); - SWIG_Python_SetConstant(d, "DialPlain",SWIG_From_int(static_cast< int >(DialPlain))); - SWIG_Python_SetConstant(d, "DialRaised",SWIG_From_int(static_cast< int >(DialRaised))); - SWIG_Python_SetConstant(d, "DialSunken",SWIG_From_int(static_cast< int >(DialSunken))); - SWIG_Python_SetConstant(d, "RotateNeedle",SWIG_From_int(static_cast< int >(RotateNeedle))); - SWIG_Python_SetConstant(d, "RotateScale",SWIG_From_int(static_cast< int >(RotateScale))); - SWIG_Python_SetConstant(d, "QwtDialNeedle1",SWIG_From_int(static_cast< int >(QwtDialNeedle1))); - SWIG_Python_SetConstant(d, "QwtDialNeedle2",SWIG_From_int(static_cast< int >(QwtDialNeedle2))); - SWIG_Python_SetConstant(d, "QwtDialNeedle3",SWIG_From_int(static_cast< int >(QwtDialNeedle3))); - SWIG_Python_SetConstant(d, "QwtDialNeedle4",SWIG_From_int(static_cast< int >(QwtDialNeedle4))); - SWIG_Python_SetConstant(d, "QwtDialLineNeedle",SWIG_From_int(static_cast< int >(QwtDialLineNeedle))); - SWIG_Python_SetConstant(d, "QwtDialArrowNeedle",SWIG_From_int(static_cast< int >(QwtDialArrowNeedle))); - SWIG_Python_SetConstant(d, "QwtCompassNeedle1",SWIG_From_int(static_cast< int >(QwtCompassNeedle1))); - SWIG_Python_SetConstant(d, "QwtCompassNeedle2",SWIG_From_int(static_cast< int >(QwtCompassNeedle2))); - SWIG_Python_SetConstant(d, "QwtCompassNeedle3",SWIG_From_int(static_cast< int >(QwtCompassNeedle3))); - SWIG_Python_SetConstant(d, "QwtCompassNeedle4",SWIG_From_int(static_cast< int >(QwtCompassNeedle4))); - SWIG_Python_SetConstant(d, "QwtCompassLineNeedle",SWIG_From_int(static_cast< int >(QwtCompassLineNeedle))); - SWIG_Python_SetConstant(d, "NoPen",SWIG_From_int(static_cast< int >(NoPen))); - SWIG_Python_SetConstant(d, "SolidLine",SWIG_From_int(static_cast< int >(SolidLine))); - SWIG_Python_SetConstant(d, "DashLine",SWIG_From_int(static_cast< int >(DashLine))); - SWIG_Python_SetConstant(d, "DotLine",SWIG_From_int(static_cast< int >(DotLine))); - SWIG_Python_SetConstant(d, "DashDotLine",SWIG_From_int(static_cast< int >(DashDotLine))); - SWIG_Python_SetConstant(d, "DashDotDotLine",SWIG_From_int(static_cast< int >(DashDotDotLine))); - SWIG_Python_SetConstant(d, "MPenStyle",SWIG_From_int(static_cast< int >(MPenStyle))); - SWIG_Python_SetConstant(d, "MarkerNone",SWIG_From_int(static_cast< int >(MarkerNone))); - SWIG_Python_SetConstant(d, "MarkerEllipse",SWIG_From_int(static_cast< int >(MarkerEllipse))); - SWIG_Python_SetConstant(d, "MarkerRect",SWIG_From_int(static_cast< int >(MarkerRect))); - SWIG_Python_SetConstant(d, "MarkerDiamond",SWIG_From_int(static_cast< int >(MarkerDiamond))); - SWIG_Python_SetConstant(d, "MarkerTriangle",SWIG_From_int(static_cast< int >(MarkerTriangle))); - SWIG_Python_SetConstant(d, "MarkerDTriangle",SWIG_From_int(static_cast< int >(MarkerDTriangle))); - SWIG_Python_SetConstant(d, "MarkerUTriangle",SWIG_From_int(static_cast< int >(MarkerUTriangle))); - SWIG_Python_SetConstant(d, "MarkerLTriangle",SWIG_From_int(static_cast< int >(MarkerLTriangle))); - SWIG_Python_SetConstant(d, "MarkerRTriangle",SWIG_From_int(static_cast< int >(MarkerRTriangle))); - SWIG_Python_SetConstant(d, "MarkerCross",SWIG_From_int(static_cast< int >(MarkerCross))); - SWIG_Python_SetConstant(d, "MarkerXCross",SWIG_From_int(static_cast< int >(MarkerXCross))); - SWIG_Python_SetConstant(d, "MarkerStyleCnt",SWIG_From_int(static_cast< int >(MarkerStyleCnt))); - SWIG_Python_SetConstant(d, "NoButton",SWIG_From_int(static_cast< int >(NoButton))); - SWIG_Python_SetConstant(d, "LeftButton",SWIG_From_int(static_cast< int >(LeftButton))); - SWIG_Python_SetConstant(d, "MiddleButton",SWIG_From_int(static_cast< int >(MiddleButton))); - SWIG_Python_SetConstant(d, "RightButton",SWIG_From_int(static_cast< int >(RightButton))); - SWIG_Python_SetConstant(d, "DMY",SWIG_From_int(static_cast< int >(DMY))); - SWIG_Python_SetConstant(d, "MDY",SWIG_From_int(static_cast< int >(MDY))); - SWIG_Python_SetConstant(d, "YMD",SWIG_From_int(static_cast< int >(YMD))); - SWIG_Python_SetConstant(d, "YDM",SWIG_From_int(static_cast< int >(YDM))); - SWIG_Python_SetConstant(d, "HTML_HEADER",SWIG_From_int(static_cast< int >(HTML_HEADER))); - SWIG_Python_SetConstant(d, "HTML_STYLE",SWIG_From_int(static_cast< int >(HTML_STYLE))); - SWIG_Python_SetConstant(d, "HTML_BODY",SWIG_From_int(static_cast< int >(HTML_BODY))); - SWIG_Python_SetConstant(d, "DEFAULT_LANGUAGE",SWIG_From_int(static_cast< int >(0))); - SWIG_Python_SetConstant(d, "MM2INCH",SWIG_From_int(static_cast< int >(MM2INCH))); - SWIG_Python_SetConstant(d, "INCH2MM",SWIG_From_int(static_cast< int >(INCH2MM))); - SWIG_Python_SetConstant(d, "CM2FOOT",SWIG_From_int(static_cast< int >(CM2FOOT))); - SWIG_Python_SetConstant(d, "FOOT2CM",SWIG_From_int(static_cast< int >(FOOT2CM))); - SWIG_Python_SetConstant(d, "CM2YARD",SWIG_From_int(static_cast< int >(CM2YARD))); - SWIG_Python_SetConstant(d, "YARD2CM",SWIG_From_int(static_cast< int >(YARD2CM))); - SWIG_Python_SetConstant(d, "KM2MILE",SWIG_From_int(static_cast< int >(KM2MILE))); - SWIG_Python_SetConstant(d, "MILE2KM",SWIG_From_int(static_cast< int >(MILE2KM))); - SWIG_Python_SetConstant(d, "KM2NAUTICAL_MILE",SWIG_From_int(static_cast< int >(KM2NAUTICAL_MILE))); - SWIG_Python_SetConstant(d, "NAUTICAL_MILE2KM",SWIG_From_int(static_cast< int >(NAUTICAL_MILE2KM))); - SWIG_Python_SetConstant(d, "QMM2SQINCH",SWIG_From_int(static_cast< int >(QMM2SQINCH))); - SWIG_Python_SetConstant(d, "SQINCH2QMM",SWIG_From_int(static_cast< int >(SQINCH2QMM))); - SWIG_Python_SetConstant(d, "QCM2SQFOOT",SWIG_From_int(static_cast< int >(QCM2SQFOOT))); - SWIG_Python_SetConstant(d, "SQFOOT2QCM",SWIG_From_int(static_cast< int >(SQFOOT2QCM))); - SWIG_Python_SetConstant(d, "QM2SQYARD",SWIG_From_int(static_cast< int >(QM2SQYARD))); - SWIG_Python_SetConstant(d, "SQYARD2QM",SWIG_From_int(static_cast< int >(SQYARD2QM))); - SWIG_Python_SetConstant(d, "QM2ACRE",SWIG_From_int(static_cast< int >(QM2ACRE))); - SWIG_Python_SetConstant(d, "ACRE2QM",SWIG_From_int(static_cast< int >(ACRE2QM))); - SWIG_Python_SetConstant(d, "QKM2SQMILE",SWIG_From_int(static_cast< int >(QKM2SQMILE))); - SWIG_Python_SetConstant(d, "SQMILE2QKM",SWIG_From_int(static_cast< int >(SQMILE2QKM))); - SWIG_Python_SetConstant(d, "ML2TEASPOON",SWIG_From_int(static_cast< int >(ML2TEASPOON))); - SWIG_Python_SetConstant(d, "TEASPOON2ML",SWIG_From_int(static_cast< int >(TEASPOON2ML))); - SWIG_Python_SetConstant(d, "ML2TABLESPOON",SWIG_From_int(static_cast< int >(ML2TABLESPOON))); - SWIG_Python_SetConstant(d, "TABLESPOON2ML",SWIG_From_int(static_cast< int >(TABLESPOON2ML))); - SWIG_Python_SetConstant(d, "ML2OUNCE",SWIG_From_int(static_cast< int >(ML2OUNCE))); - SWIG_Python_SetConstant(d, "OUNCE2ML",SWIG_From_int(static_cast< int >(OUNCE2ML))); - SWIG_Python_SetConstant(d, "L2CUP",SWIG_From_int(static_cast< int >(L2CUP))); - SWIG_Python_SetConstant(d, "CUP2L",SWIG_From_int(static_cast< int >(CUP2L))); - SWIG_Python_SetConstant(d, "L2PINT",SWIG_From_int(static_cast< int >(L2PINT))); - SWIG_Python_SetConstant(d, "PINT2L",SWIG_From_int(static_cast< int >(PINT2L))); - SWIG_Python_SetConstant(d, "L2QUART",SWIG_From_int(static_cast< int >(L2QUART))); - SWIG_Python_SetConstant(d, "QUART2L",SWIG_From_int(static_cast< int >(QUART2L))); - SWIG_Python_SetConstant(d, "L2GALLON",SWIG_From_int(static_cast< int >(L2GALLON))); - SWIG_Python_SetConstant(d, "GALLON2L",SWIG_From_int(static_cast< int >(GALLON2L))); - SWIG_Python_SetConstant(d, "GR2OUNCE",SWIG_From_int(static_cast< int >(GR2OUNCE))); - SWIG_Python_SetConstant(d, "OUNCE2GR",SWIG_From_int(static_cast< int >(OUNCE2GR))); - SWIG_Python_SetConstant(d, "KG2POUND",SWIG_From_int(static_cast< int >(KG2POUND))); - SWIG_Python_SetConstant(d, "POUND2KG",SWIG_From_int(static_cast< int >(POUND2KG))); - SWIG_Python_SetConstant(d, "T2TON",SWIG_From_int(static_cast< int >(T2TON))); - SWIG_Python_SetConstant(d, "TON2T",SWIG_From_int(static_cast< int >(TON2T))); - SWIG_Python_SetConstant(d, "C2FAHRENHEIT",SWIG_From_int(static_cast< int >(C2FAHRENHEIT))); - SWIG_Python_SetConstant(d, "FAHRENHEIT2C",SWIG_From_int(static_cast< int >(FAHRENHEIT2C))); - SWIG_addvarlink(SWIG_globals(),(char*)"null_string",Swig_var_null_string_get, Swig_var_null_string_set); - SWIG_Python_SetConstant(d, "PLAIN_TEXT_EVENT",SWIG_From_int(static_cast< int >(PLAIN_TEXT_EVENT))); - SWIG_Python_SetConstant(d, "SVG_LEFT_BUTTON_PRESSED",SWIG_From_int(static_cast< int >(SVG_LEFT_BUTTON_PRESSED))); - SWIG_Python_SetConstant(d, "SVG_MIDDLE_BUTTON_PRESSED",SWIG_From_int(static_cast< int >(SVG_MIDDLE_BUTTON_PRESSED))); - SWIG_Python_SetConstant(d, "SVG_RIGHT_BUTTON_PRESSED",SWIG_From_int(static_cast< int >(SVG_RIGHT_BUTTON_PRESSED))); - SWIG_Python_SetConstant(d, "SVG_LEFT_BUTTON_RELEASED",SWIG_From_int(static_cast< int >(SVG_LEFT_BUTTON_RELEASED))); - SWIG_Python_SetConstant(d, "SVG_MIDDLE_BUTTON_RELEASED",SWIG_From_int(static_cast< int >(SVG_MIDDLE_BUTTON_RELEASED))); - SWIG_Python_SetConstant(d, "SVG_RIGHT_BUTTON_RELEASED",SWIG_From_int(static_cast< int >(SVG_RIGHT_BUTTON_RELEASED))); - SWIG_Python_SetConstant(d, "SVG_BOUNDS_ON_ELEMENT",SWIG_From_int(static_cast< int >(SVG_BOUNDS_ON_ELEMENT))); - SWIG_Python_SetConstant(d, "SVG_MATRIX_FOR_ELEMENT",SWIG_From_int(static_cast< int >(SVG_MATRIX_FOR_ELEMENT))); - SWIG_Python_SetConstant(d, "WIDGET_GEOMETRY",SWIG_From_int(static_cast< int >(WIDGET_GEOMETRY))); - SWIG_Python_SetConstant(d, "PARENT_WIDGET_ID",SWIG_From_int(static_cast< int >(PARENT_WIDGET_ID))); - SWIG_Python_SetConstant(d, "INITIALIZE_GL",SWIG_FromCharPtr("initializeGL")); - SWIG_Python_SetConstant(d, "RESIZE_GL",SWIG_FromCharPtr("resizeGL")); -#if PY_VERSION_HEX >= 0x03000000 - return m; -#else - return; -#endif -} - diff --git a/language_bindings/lua/pvapplua/pvapplua b/language_bindings/lua/pvapplua/pvapplua index d31d9667a3ea0e6517be088122a69515d8ca190f..a5f4a01fb3212abfd5b9622b9bfc0a02cecaf68f 100755 GIT binary patch literal 1752568 zcmb^a31DPZvA~UAV1NJ$LAJ=+>|sx5l9`Mk^h_o*8D{HAW|)9L(vx(OW|DN%-N|GC zp}{SvPa-Hr1Yf|XMsbO#kEp1PYkc}NDC&s#jN%epFfKsco?q3eI(Ml)HN5}-`=UdV zUsu;Xr%s(Zb?Tnmxvgc>x&se5z_VWmd6#?mTd91IK?#1L=~E~2Po9_Xn!Ll{zvp`A zc!vNz82%;rRr!61Rom}XEQi{c!M~;h3CQm!vz+~ITZrHBdfM027mqV9+3%hgGr!~e zu&uS4JU@5AQd`{tge_su;`@3Y^>x&8LL?H~3H|83{j<@Xr8 zhF>xBUy{WilfNwX;QLDdJjT2tzdyOgV9$O>S^U}t@56TfU%#qZu#K;$*=66+Bxt`| z>s&IB*|nnKl7XI!1~Nm#qZf@ft+;4K!^MT{#r3A&s2^q5Z`olK;CQns%Ca?MJ_x^C?k8bQZ z`PsAIbj#^)*mD0n?z+%xZu$Q2KJ#yXJo0nT+sI2ar1`T+&poHo9_ZgbJ?w>+0CzcqnjUbx|_cV!lO(7@+;lEUa@m+(JlYUyqiDv zdN=>mO>X|K8{K?L>F--#-}%DlcnnUB4LZatfn_FSR# zYvn85dNwY1^Ncbth826>qWIMh6u@x#^1IJPNv`0QHubx+&m<_|)0<(gmfhq?Jcy_^5f)o%Xpr@8sp`rZ5seQy3c zWqcnv$1VS0gPXr$o15SDdN*%9%FQ1>-p%*L-FyY)8Zk${@%V9W`3a@JSVjW-|bmakX*q0r=(-*>5-9|?AbDNyls@piZT50w1y>MPvx z&nx?#f|AeoDSr5;QMdjF4{`H-r@Hy!eQti|dN+SgS$}^D7IVeV70NpG_iNnp-`cHk zB~RYk>XtuE$%_tC{H;#0f2P;1|9EA8(XGt)KPdiogVL`%m384YH@e%Chr)%+{zob6 z$O-4T<)>ce=HFK0@ZAZw{51;yw31)FO|j1plzu&tcVG9>oSP3R@wQsY&wqEbThDrB zd`FdjJ*%t>Ma7BQl{oyOvhH7#cDH{_i6<{8dBqFLKJM;A-TFPn{-oDfFYZ$O;n`JgJ^!KXH$SV``O*{IdQOE!)-}JfiXARm=axTl(9N&xbMw2E`TNL8 zZuvhe`?3d>{vN6L^G!;eX;bot<%<5dzS7;!dSzW+uIy8uQT7E-DC2dZk|%ub5O;en zTIS}RaW}t5S;u=7Jr^nS>sTd@-J$sHpt3GJsO&qAQtbJd5^w)-y1T!RDeL3a$~u0} zMQ%OIlzjUcMbG!wxb-}Ct((_e@8(}=aPy*)H-1jZm;S58t!K63|Np6s%Lm~`f-9c9 zQ`v`R6#2=NThFZ*yZKW}zVu^dUX1p*^&DO2=Kna+&974Y;mt~({M(&wJx^rZ{Pe7w zpLL9ze`mnWFIDpDPbvGdvz2lGl@eFC-r>IP{Yo6TQdtMzq~rrXT<6wbujCtdD(l6U zy4`wiSK{IQZEpFW72Q0m_(P2nABJvl>#1Jt=HFM=$MIX;@~f2bdbtvZxAnXA)F0~R z-%<2$Q1X`9lihlbP{y}u#4Z1b5(h3&^7E~V{+}xKy{sbtoU&iOuFu`hhtGENloGd( zRpR7l&T{K%R{Zcf*zCLF@aL7dy}RI+|G47+_bdMSjm>U7OBcHN+b(nSuPAn&u5rsh zudEjrDEq$Cm2r93>)rZ4toZr8O1_t0?$+}O#h-6b^q;EaMJKOt>;LTSZhpcRH@|y_ zn{QXvqXuOhzpv~of2#B=ai06SKT_h)9%Wv9N2%{^=yL17RapnY&Ak}>lV6{Fqg&4& z#SXW@q;t)?2L|2zgUbH>3+K4yPgdgp`;__qXJx+sN?9+KE9>Jz(%qg3W&M5s>2CRN zD(lYQ6hHZf66Zgxs9>WX~k|2DD$pgiEl3|`RAoay6t(s zGA?b^Zuv1q&+Rd{{Fjye%QA?!P&%mix<2pLbIO>TU#;v%W*Xh{*D7)Elp(kLYYuVq zx4q8Y{yUZU|7yj~D^|PpH!Al3g<|KQDSmaVvYvJ;`+^TE?fm}r?slGeyPJRGa5uj} zvGX65yzY0({$jhb|NXkMk9d<3KUXU4|FyzzJJa2-U+i-8yOsF)x8vRNpH=FLA3MM; zf3BkEcgl5VVbZzQm+eY^_+Dikr?{jO8V;kM_zgOn_ua*4g(=Bd2^GaT~>`J%% zA$#2XL1kWCtN8zRWgY+4v2Oj>9_;3CKiAD?dfohY&2IkZ*SPsoo0~6J?EGt`KG}7O zThASezimCtEq~3mZvO0mo0n2%J)Lmtd0ye?EBBF)ztOGd z1m!-|!56#b4?o7u4^!q{|3Pl~lfiFYMm}xvt%(jLUSl)U}T%6ha)*>_*p;=b;qt#1B- zbKQJV*|+}jD7X9#ik_>KeOWy2)-$NAJ3mEg%y;BwYe_qLN zZ`*lk{KIJd#-1?7K{PP55Uhh!i-T_KHX;kcggRuEQu6#`lzqqD$GP= zlLxx_0f)Q!c}g7nm@>bfQm#9r#H;q}+}Hi7vTn{O`=ck6dA+sCt^dvuH$PC>A5AFh z+WVAw_hn`Ob)1qH{aJ})AKu|^=O-2UcY`yy{9(6}&%C?JE&rh_+`L)gKT`bjY-L|? z{v~ex4=HtnE+v1yOF-$wxb+-&sGDEa?&h-xyZNh>_J2>A zFI$v-)3r)`I7i8Qzjm9uJ&!AS)EB`V^=73hJzJ|T~Jzr4l@I7Td ze*86VJx?le{#vD8apswBJ)d}ko1d%HNp_s>mj6Sio1dn{v14*>`QIz+__7n-@`v@f z`J`f>H!5~cDEssUWu9KD#FIa4b+_jaiao!l!+-ql6-2574 zzrX%TmJdAZvGx6-rjSeTmB-&Z(Egh;lf6@o;RN0=2t3tLh&%S{Ew7< z)=i54T&B$5qm{VykW$b2hvJ9pHoM#TzrCS_iKN?9)kPI6!O14`ceT4kPgDgO2qWnBJymHWCAO5S+1k`FY! z+O6l;H@bPNGG1Lu-1~+S$F?ft@=(lu-J=q2{-9E4=snsk|4n7SAED%jJxYGQTxtKJ zvQE8S$rJV{_P@2tbTa|r!ucGHxC2zT_ z&#nJv#jn1pT=(}%Tz$7vCwWoH6S|Z*f4ov3-l4?XE0z5A;w#+!{p%raKCI;71MA)L zzf{_}N8yjZ#;xaDH@W#OE8Kj>bMrbSj@{VmmcK=@+h>${@v>{&de(Qic~6&{*WKdg zo0R-~yAp3dtK>gZ%6?%-0f*o{NZI+yXBuf#?61K>^E0$aLXT@ck@$}dHOS@ zo_2z=-kp7cTmSvadip_S|30M1-wg8_Qp$?2S7bDFZw zzNq*~vr|A~rUeL=}T4=%aw^9m&%UbWgS zf5dh-f2$I=pHs%=MkPM%P~vT`vK~Ehl)F8rUE$_mRrZg!zSb>&v9g~UQ2e>+Mz@}m zU*YCMN_<|f#KYqhJG}SxZvF38^6(`kUhPr*|B8%TKZGSORg-ak~v>t1Dky`cE*0SCLU`)6f*f7s`if0+{Zo>KDvE@eG>;t03?2BofY zgp&V{D{zoP^f{$H#SyojzbN~c zCtvNB-`wctXDa#OUr%+*zrDxJ3wzvrlaj|iq>Ot$?bh?#i`_hNshj_GvzuRbzMG%C z-p${j~^FwuR9=cyW+#F;&0E_yXD`d#KTW0ad`CsZawc);?j4Oc8=uTdfu&! zOI5)w|2kzIe?iHM=9F=nQ|86dZSLznmT>d3GQOWt^4_;7dDQp?Zv7cWe@>CV^<=l6 zNo79Xsm!B)Df_jrD|zD&l=$o*W~73SLW9PO8)b|O8ei~?AHGyB@X}L61RMx z;txkF`d{De)^mz7@9w(REx%4#H!oH4sKb?g==zdd{}V+w@2PV0{(d)qjS@dUuI$qX zl>OHi&UNd5Rg0T9-|FTsDEan~Pj{T{)<3S~QD0H~WcTabdb(g;gCVQ94&nQtw*^?X{%dmnj)TRyI=YnLnjKflqfXHm%?j#l`8EBW)s6#FNXJnblrZs*Sw{U3RQTmIaYZa%lx%}-SNb<{y_`OIoJZ&31(L8YFM>vHRP#bs{(Q6+!w z9Cge0D|M>dmH7ENrGD~zC7--hnb&Pfo_V1%AD=te-Ts>tKD^y6fA*N0zp};6Pf+~) z!&kcHmnrr+SjkJ@zQ?WSKb8D#Z=YNKRAs(gt;B~~#jlzadwyNnZ~jwh&v^=evl90@ zWA1*v<4tbftE`(x-t3mYYn_|FsMNdeQ^x%`WxxNF!aL4!U-xolfA_SK$G%Znj}BGp zKaVSQ;}0qGYqzp5n^5w}pYC<{YxOB^o>BbyX_${^crW)BuRGksFW3f}uLDecKGOR| z9vnFI^+u4d_D=SauLgn8*SlDccRlGjgkQVk4$?oz{DaIPt%JJ3%e^ulJcF+z%zr)a zHlzQf3jLEN&L8g8UQO~W?%mDpsp*Zj$AiDWm>Ve!7V%Fm#=XufM>^ZmeVIZroo^mU z6$wM&R`ggQ>o>|MpCBV>ha;ZvY+5*})w26ol60 zQ-kUD{!~wPPaukN@%r3Iu{)Pfcc(KWftsXI5^v0nY}->z4rGha^1gI2^j_0=)6(tz z>HJ_8F0v+@hbBAv7+-N?ZVw1-PUUx}^XsxhVMW+r+Y*$?47F!&3R;rk7yH&^M|Wn5 z{oB){;djH!prF0J6aJ6gY08bXr3bSk=?%s7;F`T#pxZ&CK@w$F9Css~iz7s|&Yc4|)#q`Qmhz*CK@8LKQWjPz~YbpyO?>`hi~ zqQSlHg5DJ1imp<-_!1Qxjo z-fn#hClOpE868UM2uu_laPT0oTxCDV!&ZhTU3+&bY?t2NUhL?Kz9{eQ#RkBD1T&~} zS7s=c-|IJ%ClZ(vCK5S-|C+h(sy=8_g)e~K#=bT%Xh@j)0w!ro-#DBu6x&B&P7DwA z6t)hv45SCs;aSC=-T>h(JCaE^gHz_S(wQlKtjl%}hdc#))C8soVn&tG7AOO% zTZS+!LTp@<3Oh2qYFw=u8VA7^x(Cx`&2X`p9SU8CJS;pb)@23;Dh%O^1?@3ousYuz zn1)*f%GPF518~935cNVYLyI8L!$c3cI`#oZC7B%r%y3Ft9xC(E1<>`nt)_<9%(JzW(CXI5GW~*umpqrncds&DoyR0Gcw} z=Sx7GU6*OE>ugDm;1A2;2lG4r1ply2;F@Nkgf5e71l_U|8XC4aT`0hc1(PwX8y5jI zY*XLbd}>cJ6B;ReukQvs`_pM0;q4Gz2UZXDMP{kBd*CZO^Ql}eGZgLy3Sl&kM#AXC zh6~!MjovgoP|Q%+fOsBiHFg>X0;ZUmVPP*aEr#*kMm{Otgl51u4d)Ays0a$dh}(<_ ztVi&unW&G8UrWet)>}Yd$JOA8+3v`)K23#s%d2(4)*qJlw#)94pVEhH=!G9PD}y*LI%~6gh6b___cEa& zr4e1(hdH*ivx&sf$zG}1blk=kObi{NC0^IJJ)asX420(xEj?foSS{L%`E;>cp<2DKtc549Nsx&R( zS`>%|U>O-M%4Acr@MyLEo8A;>LMfJER5D(5SjMp@gD~RIdtT)8Ss0~aX#InW@X|(Ga-2q22O7+h1+yNi47gXUC^3MYa3rIN#{Oe4 z%qZ4YFcHqb81;7*tY>ZM9Mt{%7tAFv_L}Xym{Dj7-0+(Czn_d97x;m6I%kwY8$g*! zv1O^vF5}Q?*adHZm;(zRBs+m$;}t=H@fsYP?O6<~tBaKQ_^l2syAozrGL;AKq*2(= z1Ft2qAvS=;>tN=jThq8ZZo!Pnl$K~&-#T2x7k$0tnCM)*Ds`dUAXdt-8iw@D@zeIaeaut(c2d`j+!j?nu2g7ZG{osH}1;CK_9j%73%jS>z zbmi(DRczb$LRKOZ4;u_|+ux2Q@wMq*Ea^oyQrH$;3fM~SNb8uSiXi%!ZM*pnV_8ua zhrWYfZB7jhrv`T9gJ!cuLwSlT8Q)@xj;7kZp$C*esUqJ9vu;BV`2r&kW{FMu;{1wrnBneZ~dg)`6>tLlGGZ zm|%uAsX`h(7h+pzE}JHT1EF6aC0|_sU_|0MC`g)j6uv%9n#xSLN+vA<$|IjyZ zKr@Y#$)IkB&H;^BKd>X$6W&u{BS3yZ`x}7Bh?vO;VQO1wgKwB|`ADX^dLYv`6iN4JCd0Z3 zcOo$3j@%}q7flQpa_xoVO;8#e>V~DZvyd)!=2CD2$nOWX7(#iFPKrx);+qCn=F*{JC|(}-Ah`BK>T6`{I9`||fy-7n@!;;MvjmM{)-PFA)+u0q zx2MA8AG#tq7z9S%jhITjnqn>Y`$^_D2`0G?-tK^fUfeY0J_U&$+?EhJaBZ}+(&Qv! zm*)>H$VGQIl|deo(rx12EY2eEq~)DdF!vJ=yj_U*4e`cjOL%pM3R$EQ&RyW!sm2GR z;f-9+)XAvGV)m**FO7@yZ9<>*y7Bq!ZScG6n3hjH0J~QVchaIFL(AJT-Exgv=yrSI+xS`u!;N@+QZ-I6Q%%Q%6 zdaw>=8@cE?44~U6goUIr1ekW?$XEw6u|iwHVf}9z>TzVp*e_fp)~BuUyzL_L5EHZ4qufOjx@ign5K_e}a~P zi195fEBK8ur$s7nsG8A(a%ncVcY796uiUO|Dj&K-hOfgKM7cF?19oPH!pDE$by4A| zEL)-nSc5jRL1krcKihrB#?A~yq^M>BVZE8V(Zo;Q;o%YqPGcMbbK5O2ov|A@hV1Xw zp{-E8^&_3_wQt>ICg(bqg$`&gV@^;7?>9bxdq5aFe*qQuYk8m>`uO&}duMOTA45Hu zkcs0j$$oPcPH3)zQeb#bjpK^<`sfBf-R|?dXRJU=LJ~HB#bP>`WA0kGX+{xOg^D>$ zaSr#~L4>GW0+TEQF-7Cb-;1&=ngONiRz*j+JG}#LkLhH=W zei;;I*|xS+PbTY%0XPR?e4t20)f~}`dax{~!=fVO+Y#G^jvmZ(k=mHp2utC%=Kgf| z?#f~;hA7&$weE_XbU@AUJ~$OvpgRHfn)m|tDw)sr<>8D(^iT~&MZ6#`Zk5GaQy0d# zQqdGlF<_1cHh>G+@uIs`RGE+7jKSeDN0Y>240vUq386vyfVP0EtbxLwe-%KkN=m~J z9LO^#;?M|~J*_URsjT>$XdF$jU9}ompqtyTs@V3M13chWu-I?K6N!GK$e}Uei0XEX zE&7NJ)08+>BuzZcc^>b8Lwivlwna=3*w#E;C}syMW*DdlqMAwe+jDRvFWO*}XY!`F zxqoq83Nlv_ z0wWfCqY1H5LlJLtcDR5iV&Qa)Z!hd9v~gR+KZ2LdyK!G(&FQXEa_-_>v0ZawWp5^5 zh}wucDUZjP9#R*e5nNJr4Jq_62{l7FAeJ5O>)$$*b}TZSB4R{AV^>BL%zkP2AGHAP zYt0yhFi$L)a&QzF4nP*ut|Me3KRBD(Aatek+u@GA>)vkk z_Mv)GQY^+5K46w(TJ?=@MjPXY23peXfi1_>;oFpz4#B<0xeYl(Ax)tkH*8d;0vnhM zgCSaByOYjC`4X!+=7?-Kp!=?jbW^$^_H4K1`Z{0(?$ zKXeJ|90&Q-s58ie((n;xahktEQM1`h|XRAYW%OLOwo-HtR zycrUQR?L`_yS3+1-O&mOY8THaq;3fNFn8PxO>nEk9;rj!u4QLsrm$gXb1KJ4t~ofc zVJLD}$eboJZHx47O`ouo5rNJ%8@Hk3-oA10MVRU92h8dg!6vna>6;zScZaeYnv=9S z>MmS=lZt2 z=^n0-@R0j4#9itGHx8mSoaY!0JxD=j!0y1V)2tJbdt>yndt~8+C*0=_&IUk_R}UAn z&NF{xE{wwNeYf8O*V9hn; z$g*aKP_dPQ1dA39Xjt@_4e~rR73}#d&tRe*`P68r$Pw7UUVJ626n<^VS+Nfe%Ixp4 zJk%2uA1d!InGz6p#hm!|tzcRL&pze{;6MEABSfk?I0-QTC%9l;h_CF$6O65?!rC-0 zNriNeiB?LuYxh8|NG~+y2OzO*P8H+z`81qf8luV;jtF|#7I+<$Z%z-! z8#6v!%T=zLIW0Zh}Y&$7Ofmyt~09oY-Z!MTa%g z6*=={9Cr}fsyn?3o45w=?ZG2H)HHu2 z;&m{rbTF5W!9b%oWryO_!3MG!6s|__nbr7mxMEPPYsn<(oM>Fg)#GhXxcus&9=!Pi zJ%!W*3W034&>*dXL0X#~hFexN3T(0!MX*)hU`w*TIB2{Kc*xR_-Zt&Q1Gn%4bO|?7 zAxCL6FM&};uoH27D?C-1-Zk83_EB_iFh782Z#YasgCIjG;6teBOLfLs1JCmn;)MW% zcMNss_QH9WV3LrJtTLAdbLPzf`pE2vH}#l~M&=Ni84Us@8hns1j)Q6zqv0HnB@e%` zgD`Y_1(Z_3&~@!;c-#i^bT(tWF+b1>*>E<$x6SNXU=rToQm}#sibn>#f^v}+-KnAO zG(0{B?;(e%rlRLfn%9W-MVMsa~w*77-d2Us4$N-V4L6o6~4{ru7`_; z1|RmhyLV-?yW{mB2Z?=VFa!N;F-{O)4x%G{tA{dhf;*d!*WCoipqimr1Qk5Yg|@&o zAYa@w#3h6+@(m4x@Z<`fe4vM3;dnT{D`n&ur|*1en~}UM}8%C2yF~ zIeOraUd4`?Oq-_{*}i~bG%2SPH>2H5d<;?GfYz`AW>HhP*I-$!(fN^| z2b&&6;WmNih%o8TexB9-pwh?-mu#}deU9zX5vku>N7n(9?o99MP7R_5!&yGQI?RNy zMQFW}VJ8W1re!J|fS}?BkG8-{1x^ng2k#lA28O~-cx-s+Z4zcpSFbd|cFWwSXmKdU|!Pq-9%&UsowHY`O1a0`vqzVQY4v2X>40 z^CAi+V~H-;jqp7CU}^wrJgW=fjBI@0=O9rUSf4HyU^&g^cuhlJqPme;urUX+OEq15 zB?LoLH8OVgN7(laieBJCHV=wZbj|0pd2@@-cmQ4+_cion6I=wADqgMPAul&a54H~U zgnSC~za2d}nl)ftatCaOaKw1rEMYs~#uDs@Af3a64j<;nAV__Iw-01YgKc zMUUJRMkG8LP2#j>FBp<1qzDOhg%KDJ47_HSOr68|Ym>UDe7woXcf%95__-FY3<-_l z8*+u|5V?dOx~%H(dKRxE$#Bo{lSHuR6swG3+lNxQLVwmyys(B9)@<-D94oVqi?jli zQP^#`0oH<+WYXBI-a62xES!Rb=REVg7&I3Ajj3I%Y{ZJ!qs`jV@YEt0f|n{snoDyD zdOQ%FfI*lLIlUd$#sV&tc9lVAF<}Y9F(g1ka00!M?jFqH>*P+*2M9>%Jj{Lg?<&ag zDH*jIK=0;Z$d6Zq793c+Y+a3_2ggiue@Iuc&0>{aIf!?7uI81*c)rb^8jQJu)X7da z9zU}T;|HctwJXTvh0F51gvX62hlEzPLs-f5LB9rDp>{d|b-;BaSei4rqB}|kOJO)j znjWDsA%LWdem@PimgiYW_O|9jD}?MDZ|sHxA|wJOkrZUh{+5lGR*2HLw88*^72%TM zxMA!Xo+s326Epm2VzQs`Y^q4=c*Ur%i|%o#S!)`*M@Qqd{{#P1wmqgLB8qcf8;VoG zf@1braXhEK1!AH3Em$Az5^Q`74kuAW3ip!>4}Krb<#9a36{4}(AF#L?F+9dhcLOLD zFcZTcS(+xWp~eZiZ5Te#pg{R4XrXx>2SdU>8c&6b)LqGTSEQk&QZ&mIG#ISjoZ?Ly z_{{QED;nBhQH1&|cNn6QuQ$GY4{XBxUyTIriZ-PRX6>gC3Ql5{ENv6Xfyj8W*$=yh zEzbLi(0+s_Fa|?^r7_PKz^S4$$vNne7f7A1;h!tGox7nc#BxdrqlqFWpTe`s8GN#Y76;8aLxmD@V(6Z> zi)rw4S3d;UY#=ZSEW_}0kVucg8k7OS_8L-2^MMPn#KXN}lSLY@47*{yx&0q;!pLG3 z&*igtyBt4SiRW!J#QUxazAL&Dj}K&e;UQ>q$8&$45Xy(;Dr8C{!@FSroE(80Taa{s znJJ~TStYb5vY#Fdw#I&BwWSLv>cKq($VA95;jLx}Wk!R^ViJ?f{kU%vj1gt8p*GWE zL@ly8(26{M78fQzcB4+qs@&-k#oCIwv>&O>8VnDFX9|!(U?8Ga!ASGo7>k{tKe;YB z0yb%J+ocK14EUK&^lltvyABB#g4H83Tg~T*VbC%2G?V1nDa?*#w@^`nCqsB$j@Oyp zl<(1Y@>2ien2MS1K|R=*J#b~SoHb`Nn5;%U87IGa|8lrKJoZD*if7R|W1|ClW{`QI zmJ?`|nF0O=)6D#Qwl@RYF|II%(`S9}5!t>(#@4l&Ua>5&Xw!|cq0b;4g;shmJ{NVDhSEu2|dK^qtI8~Wjl zHhj{8slxj=32>>hnY0Z~SPw8h6COOS20FshaaE{pfUFnWs;XGwtQZ zkTu~XLLQ6o*3(=S5ZklhR!7(h^*B?|9q?l%HWady8Q4h$P3FZBA_{#NCq<7?_JIv@ zO;|hedD^0>lN(LFI`G(Fw;B|+Y~SfZ6@?i%Izf+tgBIEmMb{q3sEFH7V36S)Jkn1$ zW*qWyb=PETX;7|6!<_0Vv_r<9Zpmf4`|V=ym_D2-Maw?XyLVish}cTZjTN->;8MF^t zz2j$^fS2*>u((BqG92IE!q;&NAG#A|TVZNNeh6>u#cGiKHP^eZ`L8$k=Vl za=0X>9xxT*AvnnCVf$kuILrBg1w$IXF$k#fI2MDW*(!?r?c!oQRmr%vNK@71UNF$K z52dXdJ}hQ@CS;MIAVM#Renq3TO@{X45n9$m`|rA<`Q!+Hjli*4lPQ`d50qo$)Uq3z zCyDuSG=(+q(LIz_gcdn_LlyuBfK5Ms#4M&;HV{Pf3X_rH+)W09gBSK=VNm;57Z*p7 z16N3Vv}${n9Fi8To@5V=MYIj*V)PLJ*bvCBIl*>CZ+V=6t#2xErub=>h>E+CK~LF# z`RQ5rV$QXN(0W4IvNA8>)2MJRz+O3AA`*EB-A0BC0cz7^2XuL{>-O)n`-dAuK@!$4 z^8^+hW}!h57lOmeP>h3J7T(!362aj5`oYwG;t11eT^sB&gAKV&O=+a;4ydt!hkMQ4 zP4ri@DP27RM<(#dVRV6nSn9V6x zxy@vv#)x@Pzao4)3`Wg;6O99`IW*yaco5kPoR?+|%uYXcg-eP-HO4$py9JiH$PGSo zzK9Y6y2EF4Ux-Wg=oc8(M1bhN#g$PnH#LK+QgG(VKNckVYz_p_L$CC~3dTG9Nk|!4 zMVN^%rvo_lmb1&HIGW;np~VIKL@T^&X0G3zh5I#BtA(_Si?pF=WokK4OwU3&cQ4PW zaKgObT@K$Cs4JR}er_4XW0=?qTr*)%?Z=bCDP~im^WX+R+opBsc)>biYE7n?2txRh z9H_{Fx8QyC(bH}wkTv2HJhW2b#vk)0^XZM8IH6_=Z3gPWbD8-=?vRUzXxphZOyZQxT(k7?-Ni_X~cz&6Ms-t3NHo^%ADqbU zT?gMRpk0T#H!mZ@N>h_lf*>k3F*#BPz=fy1n1`;xC;Zavf_VpHUGzT_7;Aq^bCvOmTG;1|YBU-EdvB75g zsVkc!vL`Uh5ljoS1Y(f^8o{}!uOyNZ1uIObAO*gJMli89d>(<~7b*%8Ewgd6{$@5` zCPCY;5np0P;k@>1{|)dbJ@_0vL?b*gX)k62SkQ%V&oE-FgST2E_?8YYiS^_vNmF%& z;val!o2|LxjsxeEO^OUg`t5Z+;9#aT_SA%!AZrg_Xk~%U?$E_d?17_ANO!~ECgCPP!|bUs zKXjX^99=s75D)|bzkN2M_!)4~&wz0Xhy5co6UiHtKng0!_7%g;l}8+yAghud>^BW& zO-1R6+=*_vqXi-AkpocW5XOx>BRV*^G6b7$W9EwIPlAX{8gS5A2=7QkSrm&d{%bgs z@Z@ZKIX*u@J4Bc=Ep7g|VlUwr&MIM2nU4@`fe&4)>!goWu|?2|=Phs#0t>2g{D_~r z@O8%<%^f+Kv3O(D)CchL+QvP&U1IvP(QmW15eYwYVcrr7Gnsf(_=%SN<+FH_VN>W7 zfNxD}X}gUM?wF7W_&?^cp+{lBIislrt(Djlk%@)RIELIVyxhBDSRNkiwW)u(D9h!`<27o-5y>z`nvdVb80Y zaDdD_#)GLyXyDKUCWM+3XTePcV<0=t2Q$Gm$2W)&X{Ru}ME>iC5bOxm2Z9-F9s$A3 zjw-aY!)5mmVjMqGCD+1Hdn(c~#`Rd>7aMD{lF{75m}_oM@U)Ch`ufPR+n2oU9SOcL z;c)-pqNI<3l)7m1aF%DpFv{E;*IAz)!ilbn^ z;9(T%O_2KY0j3-j{LS$T`~FH__mc)IQnAkXXAeyaD!K_nU>6D;7L#~K&S(Iot#UZe zfjrEAAdxrnmG_iTA5T8i96fXoFG5)YsI5ta)^ENq8`>LDKy%Cr$H|!>9Q%0_SwEaS z`U@@SH1$F-f-5}*^Y|GGALTH2$oR;k-9|)CNU}*eO%!t+ckZyMHzN)<;8a}{x6CD> zWhOkD%|1qy=G4HzF8G^EaGq%dLr)8isP#Hih$v*y@!0A7cDu(QsDecUI+W+|oU1m`bx)i!upDOkn^TCk7U~h*8LSQZQ7vq1b3caebeN`td}xV6YngzCG1{0e*axB2YG5zGcGk z9*2Ne0vuhjZu^1H&NZ4Bjpj^i z) z&miC72nYJ;2|;Ti6Uwcx!sW1f(2z5Ka}q_|4c8uw4z=I78aRsy+>qfzfr7$SxJlq^ z-6Oql3=0p7C+*BJZ{44X9j5~9d2XAGV>WwZZ4vZz12dn;1${KW9R3zT!9O7oS|;rtzT#{s8CXmkv!>u4-Y+9kj)xJ|v^NyA zR=`vKC>pH0TriCkV6Zd?QsJVY(F9|{Ar=OdPZpXnq7~Wv$Q?AHj- zbG!v(J>ICMVUETP$O%X2Pc4O$B+QUtKAU@u<^~HicTXXO3b5w3-ozrVccTr|`r}&h zIRM~%wv-3U6+T}Bp5@;wBhx?w0ounESAvgr`!xZZj=>F!0sM3GJp=f8EA{Y);&XI| zwsUuSZznw*;Pnic91Xq~_71{-F)+cmG|qE;^R{B+`r!;JXyjkpZ#4QEu}>T0b=%-~ zxC;Ou$^tjZS_X4)``FlU<0^c`jA`85MBN3CT;c=3^s;$%T_z1j40(?c(FLIsUNWJR zI$V$1FbP35_AT)Ur4Ll0i-+6QXmruc-WYw$ssVV8%(OAoD)YO&M5r6kKNtnS=o`5< zxTBd(P=3ON4%_w zLPO>3ooN6bPkd4^R0v&)=3vB(4e8NzcUXibaWj0r3e940 z$M#};MQ3}i)0is_f4U9k)P_x4R&{pv4GnkVbFcNCcvrO(a>7ja-j@27mUvy~=FU7k z_W+{Yy1H$q&V&}gat>_I%^!NkJ8^^NlW*({fWmloN3pl5vp+om2hx34Y}#fDdP7A! z#2bCmRJ2F*&3yK`@hiI1=WAby$>b(DE<6;sSFoE&UuFf$tS-P|hKR_G#ZGu~3_r-c zvzY2bYx?hK#CL>SZFNFu3Hlu`m{0EL92$mQI|j)0o9M%>;75+O_kagzM{`~;{Om!y<8@vxyT|Jt$igC5xG`V!y3?5f z4?bA5--EaGd%bxS2ge@r3K@X-Q@scFg>lRF;T8J2!PGR=ojZo`yiaFax-blX%nn}c zrpx#C4nPUhgAswlg1G#e^r5r6f42uY4|>8t+AF|8jUKPpth*qIC4Ued$PV@0FbFdg zWP6KH!AvJ<|IJcjF%?&Ed;MFi+p0k?Bomd%a%BMho}?Jgwvn!{5Ixc6-Ia z940lOqGW>X9=L?LVGADP;a~rP?tzlt zuu+O|$gSx0!kt^lG&?heZ1<{FoxM=(eBudO0I!)U zf82%m^(KC%V9Vr17a zY+XAGA+zAK)yDLuN6yoMbvWK)&JP`grJ-i&uqT^L2p=tG2=a z3Eu4gywd-Pl|uvK4W8@kzzTQ}lVy=t4mQ6Q<{j++9K3wE`Ei+dM1U%O+Fx5LgaQ0t$Px; z0(*vO@bi)0OG#MSqrj#?n=FlfKhW>_OSKE%r(HQ1CF*1Ns#0&|?_ue{3s6qV25k?& zQVm{WzXBfCik@;1+al;gAZy?K(%*x3TiK)S52m$;R2n=cp{m7txK?WrVzj>?~2 zQHcx*w9vIG=S|Qn`YCvaRC$Ec2afT@0#69~g)izF>8*hkeO2NI)DYDf7B~p5pudWe z;a7v!1U(P5;j4i}@RP?8=jG;AsZah+`oixHt`Po-{PLyc?0dr3L5ApnV}GMl*@8;lRvY&8P|rr;u$+~!%=X>>9{wJTI{g%G0eaF) zeW3)->z7r`2K!!$gD<7$|C`qw?#Z zPt3qF_A>8$|MdgC{2laq9mpSj`$LcpReLMob<}zGo6(n!@Gke|5AeD}*CTz0hV(7- z4tqVlHwo|j-p6-?f>(IWtnbF9cR`1a_O|fvd!P6?w71H;j(;zncQ;)BVDAS1dWU*H z=j)X~-`n4QFC=?Mc_S=;Y$gLnKGM70zWrT)a=`ecuTBKFAf>+rHi??2Fgf9vjqLr>ALU?iYO9FKFG&3I4x-CSDRe!}4Q-4=^7W z{D0@^x|4$6cRcBz5d;K>an zKQH(mZqI_?OU|3mF!j}_}p63UoH6Qr&9ZC1fOPm#soi} z~H~)nE zXP@A6tbbl`>u(E!cd@)T7xhm&UR8oyyTt_m$XCezwSre~r}ozg{yg`$N$}~{kbFY$ zzp;F);3bw%3jQya?-0C><+}tw_?OiFe!)GK&k24w%Z~~^cMY|_B=}J*KPLDj%a05G z0=Iuc@Epre3Vtl>pAvk&o!T=k_&F>;BY1-Kmj$n3`B}k}SCRfX!56vx`y{`b!Oq=kr;w#c#``&E_gf3PY51k`ANb5&i*zf_#(%jX~8>K|BT?1EMFG2 z`vgz0y!YLxf0lQVpHvC%^%Jiaywpd$M(}bk@r2+z7swx41@G!2`J~|2vwVl(i`S8S zN$_5l9}|3$+dnS&5X(;po@4p4;JUMu(}=5>N6nKuc(oq0m=4(6?b zU&}lxco*{y!F!l@3Et1VU+@9uIl&9eM+M)*yd?Nd%*O<;UrpmaF8FI%enRj&m`@7+ zHs(`;znS^8;P)_}5&V73%Yxs>d{*#>n9m9RF!Ozaf0FsU;Gbc>Ao%0Vy(gpo{0iP* zR0)3AZ^@q3f*;MiM(`7u#{`ctuNAzWc|!17=B7Ntaj^jSTV|z$`Uhr#K|AOGvBP8#AKkA>wKTv$;O!6_oyFW|%YXvWTk>u+H&vJX31fTyV$tMI~dWQ733ZD23$tMLLV*MS0 z*L{lQy9DoJ`F_DmGbEoAd@sw73ckqgFA07i$A>Y&=RQgL#|6Lnd9we6;HCd0`ANb1 zxjj>Y&vARE1;3T$X9V}SJ!Qe~VEI|W>pns4nG^ihGiki`2_Acd-~Z^iK-Dk;iLF z@OI|Yg4_DujNqT->y`yiJV*0oR`3^_$PecPzs35e;6LYm;=JGs%ohZIj`^bCe__5P z_}`d&KaBdbXZ>058277M@IU>Y@X(yH@ThTf2Z+^!=r!Dm=cLhuV0sQs;id)tU71-EgdL-6?|$#)6<6~1o2;N#bk zd`|FhvHYmurJW>S68uS)9}~QE70Hha{u7p;5PW_s$xjMy&Ql?VlI?A1uEh`1lTzUliQV(ccac32erDdtOpui*WT_jJ@h&tUykf-mqss9Nx| zS-wW_TIMmqJU731MlkvxBI4k$$8(M z6a1dX$^N5)C)-GWN$|#dNq$W5TOz^G~Nv>A#81p*8=U++k zO@dD{PYB+{yjAcR^Q7SOHKe~o@JZ%ff_E|R7d*y1C;0pcq<>WKN#-TNyO@s&9%DW( z`26vte?ss{=97YVF`p7V#(Y}v`Qu3cjNp^Z%Yt_?pA|gDd`|HBV@dx$!6%u|3*Nqd{poR^OE2m^D)7@jwJo# zg2$Lo2tNOElAjd3#C%Hd1oLUZJ?1llmtRKu%Yv7f&kCMkJ}0=xe4pUuBS`Guw$@7DiI%&P=XFs~NeV_qY8`7qKO6THN{R`3M#I>9~WO@f!J zNPj}`67yEU6U>u>d(1loFZ1tRf|vMr``y~jJB8X~-)DJ(xxJ3%CFZtWmY12AxLuZe zr?P&*6U?ohtbB>NwX5Z2<|VeP<=$zmU+@HTJI+?V#N7IYqmUP-HWk)!4u4_ zpISX7=GLz*FEcN(Ut8{-&iVyUFt_u}%9ohid1-l>d5Pzx<=z>rU+@HT8z-!MiMfp{ zmY12AIIdV;I+OH|310mTI?q2TxX1GIf+v{UxG448IBL0f4qdmO^flEduESQ|+S#t#mM7T$C0@5JxAJ3xS2t50J}J0u=ak?vmM;rl;_J=} zZpURo@bPC3Gc(!dDYl(u)?@P;%e`}Hye2uXu{^n+_l1@xn9mDdVs7`TR=&*K?rSag zE@Az=ua$gCaI0rpaC_Yu!4rJlvfv)`S;4Ix<^;EP+b4L!+F5Xq`GVkf92W(*niSk)J|(!_mrV<9_i;0V zC+vPuaF6+{;C5d*C%D~*?h`!0`_Os8J-eUf?>26~|J79Yt`hvWjl``!D}VDU;;lmd z-?NYo%g=H zwS$m9lh4I<3EuSx=_v^wdy1|*Ciq;DcvW?IZZNd0xi^@A?4SNAP8ray%D&J^OQ);H50vNAMF_ z&zRs(@#h;%3hwP@`v`tM>zNgN!Okzi=Rd;svH2I*6E0&tRf5<3lk6N5+$*qs1aGzW z5&VlkXa5mAHqG`Ce5bXK;6LVmO$t7FGuub-w6%}mcUk`t+}q3c;r!S7&yChTf`6on z{2?az{H<&s!Edwn5&T~3KZ1M1Y#+hjX6++*`{C4{Nx@4cwvXWVTl)z99FNz$;E7ML zeR%(2?ejrvAHm=Ma<-4)r7^aT;GePf5qvA3AMO%7b_d%>@UL3?2>!31a{Li|{!X@! z;NP|O5qzh$kKmIJvwe8~XYKP7YahW^@aMq91dsh2+eh%{tbGLk`;lblF2NITWBUmH zcWWQPA7MLB3O;`q+eh#tFQeA4~0- z7rgvlwhz~ztbJy!eFR@~9Q%*p^OI~J!GB`yBltY)>5}{*wvXU1TKfpTmh=Bf!ROz{ z_7VI*-fzwdeiUYQlBzQOTF~Q$;64|*d_#n&A z3jS;U+#%1_K{*fE!}3*vKg#ydC|1sw(c<_xZQu11-Ef> zR&tKRbCPqM-zT_TN9F~$>(qkab{$+4+^(}rg8S=u9gUl{zs(b>B~>Nx}cRoccQ@`1Jcpep>M7Sbj$Ey8j^gvfy81`^*a7 z^(&H}6Z{$0zfbVoLnJ>h_zzfqLGZ~3Nq$lAgV`UJ1g~a)@am)S`F~F)`&0>@xP$zs zTJRTHzDDre?Ia%)e39jA1)nUDe4XIWvV4=^bGMOvLhzrke5>Fd%O?eYg5^5|ue+7> zcM1MqEZ;A9*K0{WC-|3HepK-BTS&en__ug`#{{37r12dW{L3sqA-Ko#lY&3O@>7D( z-%t9d1^*Ds&j>#K9+EE${s7C*3SM^~$O@(Y3|-$n9^f)`kR zN$}XcB=0Sc`u}d0uM#}@PLi({yqo1~1TVdV9%xe3Rg@yGcGF zc!K3y1z#K|`J~`~;&{~|cw&L%y9EE6jsJp|enav(!4Kkn;;7)|-;sPt@Fs5mnBa47 zBl&T`Kg;uLLh$lUG`}VV|2WG}3BEW=^3#I9kL70skL@A(vf%G#`B}k}!z4c^`0H7I zpWw*?$RT8|P$9GKd@f^ud3Es#1>wSWc+I@OsG`_u)d6VGx zG4B`r-&$CbMz8zd z%v%Nj9`jMbf5d!B@Sif@C-^U!S2abi`&;Hsg8z|uzu+%2pAh_?%x48Z=nBf;mIObH zdF`rbdyZn>A^363#{@r#`HbMFGhYz=T;?^eieC33=B5&T8w3xXfQpC4P3h+g+(=B6jh{8;7_f}hBIR`3|}CBe^OUb`{co(q|G2)>;8nBcEsJ|p;Q z<_m&vU|zE+dfjczTLr(G`KaJ2=2L=anC}z(M&?zUqu0HOd6VF;W8N?LTbWM?{!Zqz zg1?vflHea?Ub`jQo@wSCf`5kjnBZS$J|p;(%ohazIrEyW(d+($d8^>Zts}o375rl6 zQ-ZH&zEALO=2gk)b#GzbB=|d-_Y3|Z<`aTH#(Y-r?=W8y{O8PTw?*5t#JofBBi550 z#sn{MoSzZ=RF+>5yq8TYw z`AVvL)CoTQE&ls-f`6LtFC+wyy`Ab6t%6%U_WqcyJB`}=K0@B|alv!f)BXJk!DA0o zoo7<;#aU|ql;E+e$S%`@mzmE9KF`0G1+QB}?U@yPhR-3)2|mr->XUX@5b|>@zbJS$ zUw29Hd6xIMA69>vx$U>*4_JQ?@?9sAM4jND=jUsh1Yi6Z{T0iE;P~$aGI4~>ZZ9RNW@PoM?zE5yl51$u2#^bvnxUGj*aeHlhp0?|<;AinV*e`gF*SiV9 z$C=Lx{x{aYBzQIJujTQy?P+1&A$Wqh9e*otKUaTN$k*}bb<7Fwf8M^}T}P3|dBN@H z`7a0_`!vr}$@z05mjs`CgycP*2e$q8^Yg0&FHMuYoi|o~13!;eE99%cNb+@ppTzP_ zf|ou|@(ID8&$C3xu^;{Ad@#CmdqmwQQmRPgDuh?fMvo%M_fUY92M zalz-$AU+{@7wef6e6pM5rv$G)o%poi7qXri!K-(Xd|B|sX~gFRe+%y~78JfHc!Kka zCBeHsLi-EvT3T1FUrlpfQ6+eZf3FtYYo`4|jo=CXJtp`fuh+GLmzdWHKFZwcv+cBY zXch9~ET0s7j(LaRlgzsWA7fq;-2Xevf_KHKW#fYHHRf=C;0c6 z;N$FXwSvc(*9l(3-0HLbW9`r?hbNx|*k-JTMB{2J={wBV<+{u#lOza;%-!Aob8f6fYC-9h^21Rv(SWuM^V zJ4k+B@G+KO5WL(*@{5As&+r|rB-*(6OmZILEXn@%H#Hi=PUb83XzzLKrPmM|r(NGqjH;`jS{ zJumG(ZnsZ=^tsLb^Yof)u6bS8&hF=Z(D-Zc@@1Cy;XhRUIy`@g!6WZ2nvD^o5p>;ZIV&4Nv~Z@(FwguN6Y8%zx>VC*AQObWc^&gzpeZTp8i4o5C5%xzQhszPp8d}9p7vLpEzkS&T{b^8xc6Jj`|xilUx%01SU!OF zm2beq-&j6`zgGDsJpZ-jBlsrDx8UV3Eg!@0)&ACohZD;u@bl+3KOK1d3(I%m-&DQ_ zFMn?N6#i1JuRc7y!txn>Kh+<=y`Nb=hd)>OA-wxj%NOv6DL;Z&ms`Gse@E|g$MF18 z%UAF%)c-TM_b$uN;qz_H-S@S)zTL%ro|dfc=gvcT%YB{(&-L6A!MpDBG3+*|%10U)+p$pI5^8?&nZy#PNpTT{dcL1-H&*6pKUALS6kN(}(#TfbS zKkR-@;IC1B3XktrpTM_Neg+TkQlG%xx?aG$f3>`)`{TxciS~gSy!eadefSrZufxOJ zE${BXtG}Io4oM67|mb5kJdggga=*A7w~L*^AY?_s#C(VcUyi8FSj$Fz#q`({8RY+B>SAd zf``}I=lt&b@Z5dBK=0RT2e0l+&V6{OeW?zQ&b0Sa0X){e)PPqy4&f86_a;2iaRkqG z+=91MCx%CISC8}1K|WEw3oqn7cq&ifvD}T5KyKKC2Jlh<3mg1h=N zxT`;hyZQ^btM9#WwNJ8R?RmZiFCPBL2fy#zhrf6m%h%!Fkv9GSzM=9BcyNT}L-?!J z&rNuAxaA|b`@EtBPkNS*;qLc7x8cEBcD)JQ{a)-2Jo7Byg>R_w_u%OVY&d)cs^M?gIc!$;Z-n82P|J2V(tHGnUS>A{LNzVy&_~c(Uo&bKK z@(p;ju)O~|(0<;ASK7}Lc&Pon1Fv-4g{LpF=f)m9*KrE(D&L3C zwSQ*tncG+4?s|uCPxT9UEFZxGc?n1S2(&8z+9 z_QM)H|BU(#UenJ@ti$7VY&-$n^?w6i_N{&hcm3alSD&^UcazgzhZJoto-$Nk&_JMz4<-Oqw|ol!kovg~ z&o;2}WbnT719)+pt(P2rg7QPSKeK!Rck6cqPab3ADdBECj^W+o?0PHsPqiLrYw$U| zuJyQp2ZjE9=dG*z=lrMkKBxvyb?n1St*<&f(s2MUlyATzc?fUHT|Ju>&vWz8LOxbL zhG+6NJdr2xmOO>K_1K3;o2%d8Zaog*>1lQ)Ioz$sAv`|C@&(+j#}T}Iy!s7(wqEbX z@b0FTpTJMh=WirZvZrb-X z`*61&>+o!2yI%KmeOzB%=bjIdcOJui_k0L1wZ0PgMC+>quXNmnCok6XAw1V{3XhfV z!z=Z32A|4ZJq_3X+COf6 z)!_Ni@;=bsv`Pn)?--sb zKY>r=Q+O_~;C;EfZa4qeK3)5juG@Kdj`|JW)z9&+!@cd*Z}7g}UpL_0?bL7ZcieBE z^EctuHkOazXKMT{c>FyZe++leZ*6#3SU!Qf_1J;OXIj1sf3dE&2TvL{{uF+L)>j`M z&TV~V@N3qw`!#@1o@VuP_$^xRL%6q<&Z>#KLH z?r+Y0`22PDI#P#w-_z&P@J#Ev0T13|=L_LU%j!4bsg5Iftb7aZ$zyn;WA~?<2lsmc z+ygj&r!L{22btJ@q^TKUdy(=j#3XnY<1Ey}S?qt9%51iXeAU2jAE>pY8WordsZ?$tgC4|cPB1m9Qr7QEQS@-h6OeG(o#$MOmM6772(coted zg|F>?Zu}ZNgDhuHlt=g>SMZ+lGkAEg<>&AxdD>Uu(Lt8?)L(A= z^9O7^HF*3Q%lq(4l&`~+S6e=SXUaF=-Tf>d!e6g^6P~`@@)6v9Zq|awFSUFO-&FP6 z@N{p>C-A@NIj{rITbA#_uT;JVFZZ;33O`NxKD>IN_x<;+z8?Kt?~iJ0a35Z|=O}peeLY9PWA_{dPY$(lgz#uDJx9S49Y^p` z`4)Vp{U?T3a#zo-7dHact89aTr<=yW`a`$Uj-LKmFSJ$I+A3k#H z4qmx+2M^u4gI9-X-NDPAc@v)MID!{$-N6%iOxJM&ch4v8Je;3C@~P@)@Jv2{mpabj zUFFB{EncYCS$HUKd|>r{y;$Cczh2&lzh6Fr_vJJASLAiwH#a|L%UkeEJUh|y0o^@^!1FI!K7>E? z90D(nvwQ@9=s5(QW|oiP4?Ty#i(@UHz#n=JflrRHd>8)Ea|nF?8Ox{ehn_>={--UU z!5?}Kfrp>6dahV);4z0Oc3(sI{Jb0O zeWLfF)%~{oh~;bWVh?j4e!S|`;o*^%58&1A<_-AUR40VzM_9fI_jfao;Crf03+{i& z@-aNx)w~VgOmz}?`a#Qg;N6|gbNDOuJU?867x0N*zee!j2lo0^!skD+*Ud3JI>PSj z1Rfk|K81VASMa%BFJ|zLd=5|KuAbW`-8|HE9_Oj@K71mt!*h86@5(rCvf-r)q$t?TD}W+uU|cQzOZ}>cduW4czKWIGq`*G8o;Z+TRw-o z*RLVmyW8>w+`WE{;K5y%FX8U>YYdP6YWWG=y?#yM$zLpA!QJcE44&R@`8nLZel6g| zZI<^wyt*H{*RLA9y4CVN+`WF);pNSi58&?gs{!}^X!#KCUcZ{~$&Hqe;O_OS1<$Xy zd<=K5Uu}5zI?E?;_xja=N58dv7yeYe-u2+cwU$re_dmj3@A~lI8p~(!tCb(Xv#Twi z!%tLx2rqtR`2v23@*{XPv3v>NQ~5F6zsm9x_~yz_;o+5*ui$q)T+ajWA>CdMi(A`$LjRp>CILrg}djCKD_+4)yd$&O;%?Bch4I+JRDk`A-t@tP65AG zpZ|~G`Ds?CgeNyxoeKVU_w!QL;B$DX=avOs&n@0ZR`=D3o?B}0RL4F%e~G?M10Lx( zfM?1#;5B&&_vEgg>vJ~`E#w2`V|Z8IhDY)Q?#om7JM`Sxhey}h$TIlvcF_A8c)0$f z9{hf~9R44Dz0DAwuV?uJ?!NwK1ozjqd)nQz57_I1`~9VEUHsx1dR<1|c?K`EKMdf>x%R#$ zhZou(hVb;GcApBk|5Do@M(|3x^+KC}HyFVPj0nD2LFKa19*C~<#YI6$`9eiO_ndL+u;zPbt5E$B(tVchu^>v6u2Sc)5Z00r*Xt zpT-(Igb%cinsDztTSpN*(>iLwgHPGGV|dgzZ^Kg^C-AP;Q3oE%yYPnG)w8?gd2Sy1 z$VbX&@K`>8mpabjP36b%U+<;Y1^C^2m^VJQdVkmXAM-Z+$?`sYNBIc;68Q}NMtS|? ztLHsJ-h!Vf@4?TN58+qIr|`eXYoAy>@1tK}*V}|YRo;O|@&Wun`54}lFW{e(H$J&K zp4)W4+VJlx--llzAHi>vyLI6D(EYn-L+iu&{2jJ_L-@{*(fq*uw^=@dZ>@X_o+p-% z;Sa2*euGb5Vfh69OXWN8bYIJN;koiXc({+{Q~3Lp@59TNT0VpCru+cz?QQuS{tV@Z z@NUcU1^mzJ+Wd^**&dcJ;pZtoh8H_qegYpTKZQ@8ZTSkGC_jVGpJDkqd^_bA@N8?# zd)kj(AFi)_4IVzl@;>|;y&l!!@#dBf;16hhHQ?RHS>C-qxbf_AtNlAd3;F6Oecld_ zUu2%bPj_FJy9UqTxqF_Z>vb@PcirclF9ke!nVu)%p7JH!SAGmn^|~{GS2}io zy7_cp_cB9%ruX&k{4Ve2t)_7~&vjlOK9|?wr96NSul^kpMfXGSk8x+@;W@yaR5)X zUK;R79>SY)SI_mKn}-(ivGOrIk+!+@)rCD z@*eyO`4E1H`gsbUDqqw6ar5>W<=y>s{?PZGAwTh~PrC4Tt#5tUgQuUdzD?oo>!$kf z`8M`_${F14GXwZ!2g~Ph_wOk~xc6xrkLy!+y>Hg**BJTk$L)1$0uNqnK84@#6`O|& z?)}w1U!B4IzuO3c&#v~vVNbC-jWu`(Pu=@Lc%^k6!9(|c5MJsyhI_}__}cJP#|hkj zxxH?7-~+9rE9Dc|8Ha|o7{IfRx0=~8CkKoxlR={GTcHQ?pm<_Y{9?N^;Oco&{)zv{ug3vE7Ac&h!X50Cb>{VIcd$6J36;H8dpc&Iu< z_)z^&z;o9pa5oQQc&YpZ?(4i$c%^&=FXZm}+F;hx6r!Cs{s(yZx;R_jAif@Ed#^e+wRe-SRQ~>&my`-d8Q3!Y|i;)n9{W@PYQL0X(|M z<}-(9+OLN2bU)j#3V85E>)R2$(s2pzs?Heh$tUoI>mRtAhZ)>gojE*~FW`aP({;Fh ztI6HEiYgSWL`4d9jQ z2Y9CaY6uSocHay5T=O=9S2`}~%8%g#`2?QHT|IYS+&s*XFO;9dOZfsGe95lM)1R(> zu6zUjG=2WxhHokF!*`XB;QPtlyt?zc_n{5VxAX9+_W67Wzfk*O6CRzW{R;khBZXL;9b|x@ZihpXLuqX z!7Ck?@az?~PmbZfd;+h@T|IYy-8{^Y50sz7yYdA*l6$%iSHCWI*X`VWopS^Esy{z|*=Q@E#m1rL>&B1zJRB4PuJnAYYxX*Ae(1wXR$6 z`T4f4V|eV@`|&pXJbgZpz>^tg5yzaW)dENI9wvbPMrRNj4`~JZ;+`CGzNAT|B?EP8?9$sPjE__Gjd+_9^mQUep zDc^@zms&o9|7If_&j3CtEuX_rQGN(7FS2|Af0yzj`22^KFX7Kpehd%JwfqErwf6Zb zyn3$ne+A!2^=I(>dscrAzg_#x0-l{^dGBksZe0I7>?Qg<0iK*;`2hY^t@p+nJcNf@ z?@hROiCu35pI>IrGc97jdSAe++b!>XeYM}*dauF# zKU?01yY*g&SGQU|fV=hHfEPDgK7_mV-h@y7X!!{4)_V&+ztQqB+^zREe7>{we*$;w zy#x1eu=-uNTkk!1b)Dr?_=Z~VeYp2K%V%)6KMdgAspWI{{`x+?A>6yh@+JIC?I+_k z_ype2elmsU+D|I@MEl7MUVg*+at_b5KP=#Z@}B;5`#`FE4IasTcvJ4`xjJqh8py}W zhwwz+r0Y0>x0LU|w^Tor@SWsixVM+}?F9Y;<)`rZBkcLJg1=1p89aHo<>zqseT55n z_+lH6m#^+K?)wUB@c2cR_u=mQ3hVIn1(pxsuh#e*@MI6mhwwKm--JiITRwsxqI?S; zJm2y$+xkkN;u$3Vwz5vDq4Y4iB`CE#T3Q?f!Zv zt@d-FeXItrbnL^u{q4D^4v%ykz~|Z@8t}sHKk%X4)pPrpn}-(irSdU+B5%V}9VhUS z@_qP8k@aT-Syz* zdX`V&zgE5v57)JP26y|w0G_X7`5b-_9 zQ@HyauMf}PVCyA=yPwxRfO{LMf8Y=O{BU@>h5dU_0eAl%G=i6}xABy4_w&Zb@X1rG zeg&`e@1e6b_#E!LeuJl%+IYNER{O2%`VAhOYB?XC%j@t+#{t}H+v{2bUh4ja@R8ir zd#K+u4=v;;%E$0Z-iD_-PT*tZ`|x+`b!r6vnB2{i8|R~+Wv^=u&6D%&Z8rZQ{KQQx z--OSfX#E+%-=};Fo<70yG5n!_--H*Bw|oK*Rlfrd>Xz@qH&ng{&o;4q3cqa!yWT#$ zc&p7%4nJrM%Manf#a6$7M}6}VJXM{Nexc>Z@X68U6Zlv3et8N{K4+h|SMbRz%x7@- z^K<6#$!9IUfP4Fyd#A0gU-$mK29J)hyblj!^E&*YuRnwrpRs%cp1j;Vfgi2@@2tVQ zaL@goM0jwS^+O7ewO{q&>ComSgO}enAJBE2!xQaSLwH?Yzu>pJw`53-~d;xFC8@dl}Jg<|x`{VpF^+_N3 z@KC$&8GO^aUDp8KZQ44`;qKq@hwy4A%NOt~H?{gBc(9}8OStz+bHE zox;=i*!5QMb2OeAe7?PnXAXD!`~n{MHXcvwz|FsVZmGfZciDJ+_-8bpIy`x%jVFL# z^cVX&iUxf049kab_j_cT@Ms&$NASmMJS}*!wdG^@wR)Xu!zWL*d;%}s>mWSZ%JNr|^@XYyH-TryJV+%HR{_2k^LV`5a!k&s*SWVB;y_M^rYRF?^ocK0kry zuQH#)H~OR9_X=M8$j&>XuVrUw`p9R>XYh%90MF$)Je8O5+jdevz`Osp{b2%s zllJE++~3vidj)sveFhJAw)`AkSN|{Ixu^Y2_s7lK3zVYmOUu)imZ+4rlmjvz~Z}|>9I>5XOzfRAkJ$QPYuwBB&am}0f#>om+>=-ENIrwt4zTy3bGRpW_1yh+^H5Vg z=YjG*yeqH6BY6P#!=fI5MAJF@P89bBMHGi%@&ycs^ zKb5=rcKLhUa|rUuYt=t+_Z&NdXaCTC0)OZ^9G)&LKY^dVnZ2$};bq&#Q^DQOS(?Fv zS6hA#cR$Bz0Z(6Hc~5=k=4T^~rv|TL%lq&@KHkP(hkGx#d;oX92dx1QUSjzW?tY(a z6YjSxAHm)4acjZD7g;`rZ@Z<9zYR~NgNN{`_TeTx*FGG5a!wI}lpLF1rj=S*Sd)6mCc&_6V?!VUhqz~`A z`wLIqeT2Jt7{YVq3;0|FB zd=2g=mUr{*^6vZG8_0)0vwR5m*R#G#;0I{`>8!!K@V5JW7+$HbQh27m>chS7TmNM6 zTt0x8I?myR`f3Po$P0KNclF$Sx_KBQA1Ob9XYwgLkyr3g?ylRNcN?winy%YH~{Q{nDV(V@Mf3512@cC6%XH4J7 z>P+BnADF_cE3HliPakV_W^ng9HHSx6Se*qtUEk^i=d3=@yg|Qrrm+SO;eGe>dEn{T z=0Aex?&tHs6V-{~rHOaf zH{rRCBY2`?_outA^dcLl`|q5W@(Ojli!JZQKXf1DsodSShw95K)bUEyS6{e%BzJw}Je9k?b6(0T)bTD+ef71=M{>6goTqZP zZk(6$3U$06tG?Ey%SUpzj-97+x9**n@(OjlOI2U{ipxiGw+}f_WTYe0`_cP`d+}pwGxV~`LwYlol)GyAzraA#U2sJt>He1R?cDXkZ~LmQ7hXM6*X!1$USE#Xd28_Z==X8E_3Gx~ zxjJtP`M-SD&YQwp%J<<-^;-#lqq{D6S9!M&x$%70jbHnd^T3TC{vLN<;4Q5ew=cRn zhq>`1f0R6jS39Xc;m5n{g8#=|m-cUW-jkHC!NUGO80Rv*HH9o2_=J#^#wle=E{Q_r(H?se7W?{wFT{2n@Q0#BZ8 z=S|@U>}K`*@bmO@GE4Yq8&z=D!Yi^Ao_`e%qjH{|w=7KWxI?{u9C7>p~0eUUw4s#%J68>cErp*MD$F>%!Mp zz6YO=ET6(3seB)vo@ew1D2n_57T(2aQ|c*PX&LE@-uk!P0P>WySx5}cMrAkct2U~|7W}YhZpa) zybph>@^$#UYxw|vu*Tnj2f2+ugzu+(6P|qC@)3L!ji&{lyxYbT!ylo18(zHA@(KL! z7g)b_;9m@45Pru+h)9A|m&r>p(HILq#D z4IX8d_u+RaUx%lkwR`}tlyAV3qb(o8f2DjA9(~&K5&UxHTk!CcmXF~VDBp&sM_E3B zf5-JdJbS(RAAW}F_uxrt^;3ARd>EmI;h$4}2rqh;FW}$Q^^V~F zes;Yj{L`vGhG!qJ`V;sO%1`0lLoHvy4^e&wkKb$gIsA(n{{rsqW8?S6tNs5L)vv+B zuGRP9uT#Db@4n0O0enB@8}Q`qmJi{3E8m3A-(vX)zKilLc<~0y$MB~s--gc*vU~#H zT=@=sa-ikA@C}sj!Hd^eK7~JA`93^rTRwx|eWsp&;N4eSK8N3={19He!tw=ts{9BZ z?Q8iG{&VHW@L(UyPvAdRehT+qX88*K1LbG%YH!QW;ioIVfR`=Hdp}$4|F0`wgXeo% z-iIHrd>x*?(DDKNQ_45s$^TeBgnvN!COnEPAHmsB-$MBzJbSj~3;2f0kKo-M zEMLMOuKXBYY;XAq{DYdGDcoz>{8aFFDL;cpds==Dzwf)YKP=$UGi^NH|E~7`>r}r6 z@4mq5`|wvNUx&wgSU!NiSosFL+RgGI{Q1f^;pMKDkKoTyz6H;BwtNiVO8GWCZCXBo zKUVn;JlVrTf+Z&zV+J}o7tG;QrGr?_IIl|KHVk zYVhbOHXa}TGu5xd<1MXz03RvefMUKT7#Fyx7$8 z3H(syJMijpmhZw((0umb>62_eQ+P-9`|xr@tDnISQhosU*SCBQ-%t4=+*{A`1^lJT zkKpmzmM`HuD?f&3kFfj%zK!xz_~c=huizUgKZE-ZZ1CXcy>ob~`Cq{OEo}b1pRe}+ zdtCp+^Uc)%@I?7KJgi$jfbXY#1MY8P`4GOguD1zK@3rfV;P?E{_Ma9!{k!F3_@9+; z!;`;RK7rq;d+t;O?Y;_ zzeo8tJi5m63H)oC&knqMpUr0%{srZG@Zw*VPvM_bz7L<@WBCmJLFEVV@b8w-;qOs? z2=Cru`2v2h@*{ZhC(D=cS1CV+&wp?E349Obr|@`c`3n9V z{M*V8;ql1w1^n~MkKoz4mM`I-P<{-boMZV3d<)Iz6yCkk=Cgu(%Fp2O6_%gF57T%S z@Zx(m9`CBv{(qbDHF$oO<$d^p%GcrHcP$^l_fft9FHg682#=I+!t+1j|q0KUaPVPrqRK3Vw<5GkE!V%g^CwDZhYw zpR>F-S?&MND_?_0$5`Hne_Z)GeDZ0_2k`eP-+&jNvU~`Clk!b?_6f^J@corR>P5AOFYpTeK4d>=l4zvVOdhRP4%llNIZhd)gD zA-p)m@&){kZ`*nq!Si=pzJ$+4mLJ2zpV|IAfnTHi6kh&B`#*fD@yy`iJ8e93cLU!OdH zXWy`V4!=eDAw2z>_ztfB;n6GA z|L|w2{sLZn*6Mq|UhV%t`5HV@-iL3Y@zmjy{cJn|{7TJd173XD<}-v}qnP<{Z9 zKV$hE{!HbE@T_n70=|*%?+EViYxlQ=*HwQEpM2QrPvGmS{uG|?WA!We{X=`6nZeVS zssG{YX*>&f@gWUx{- z;3IC0*cMR{o-mZ57-%ItU@VII9D|l1+ z89dy{@^kps$}iyEXItL;&1(N|qI?Y=?_hZ!{wU?^@Nj#}2k?8oW$UW}_qVfr2)|MJ zCVc*M%SZ4lm2bhrZ7d(dFI2t_51wZE1pXc6J8*wX%Xi^lQ@#hE2bNFam#csJaPM{2 zKN}|WBECJN97mrs%Clbn$`Z_O8FYR`zXu%@W&}%hsTewd;q`yH1$8cdYI)y_?^l( z;r;{bJ^1f;5&T-^Tk!lo%g6AaD&K~O|FV1nKSlSq0}tAEf4lH6DBpwoud;j!KS$%~ z!^6MZcry4$RDS@E_p|yr{2j^<;nhBtFW{$WJR^8;myM@{e_8o4-21ELC-7sHpTes< zEMLJBjeiFBHU2q#WB2?IpB$s-|7%zK|6>|Y4IbQXeu1fURFPVzexE8e6pwI zL->x$H{t$^EFZz|*7#fS$)z^_7=DNHZMc7lNnuo z*;YS<|3USeaDOMOAHmG4^+Ml_r7cS1pY$hJMijs%Xi_S@;!KUn&ngY z8wEP4 z;ae!*gh!vTd<0)t`4)Wsam&Z>#mUw`ZTRFU%O~(#l<&Zc)bd^UHOlwk`G+l^!hfoK zAD({5@)`VW6SQ+@%@-)VX8y4C)FhVnId`gY6v@J*Dj!;_BX1GuMr10KD_@*(`z zZ(4sg;lZ0MAHjd2d<*U!Z21`e1LfQB>h+dS;9pa|1211^`7ZoZ%J<;$Yb~F`4^_So z4-c?>27iAH$2-@)NkP{1l$O-0~It z-zQl=%;4RZT7C}ygYpY_ytn1O->>%n70TD(VaxJ9{Cwr>aDPwB2k@ct4Y>CL%ZKnU zDc^)wk>w-!N0e{D%iSy=!{4ra8=miK`2_xIB=|Z zVcqf(d^hD=aDNla$MA;oZTNg6%O~)SmG8jA$6CG%f8ZN-e|zv^eaolt+m-Lbv-K>W z!LL<*0FUop*M9yL{4(W-@bE6n7w~hGAHl2JEnmV7lqWl7$++=z0hSmPxPx%@=`h(?t_zRS;!-E?wAHYN98*uM>%ZKnl`6fL2 zo#i9=W0Y^f%WEwk!|(gL^=BKN|HkqO{C4F#@Z>_vcj4D5--AczTRw$fu6!S!o@e5<8oWBy@;>}VRk`cruNWUF7nuTlLO zd~&P4{}Fz)?(YH~A7%H~)6W5QKmRaQz6PJCmT$lxxLErqy!IpWK72#@2)>nk2H#O$ z|HJA!-9z4j?<4QQUn3vF-z=ZP-z%^EarL~Zyb15iJMiP=1NfKaWB4iZ1^gU&AJ{npj8D{tJkI-W1e+wiZ;`|xkc zNAR=cGx&M(`kz9|0J*7zIxs}UrNLZ^7Ry@4=6h58-|J6#fNy z?atNnepTLt59J;BNIrmHDj&mtAz#3+mpA^pI-XnQZTOw?KKvi@5&S;+48HEA)+hD( z>UlSlx8U2#d+=T4L-^kE68=j06n>C=4u6xpcGv1S-!2c}@0B;@Sn?P@N4DuyI0TqCwU7#m-pan zU1ohXgs&%`!Z(rE{=RzNC(E1gXUaS9UE~9JEFZ%UkT2kGmN)*fI-d8++wf1w`|!`p zNAR!8XYf$)s<=gOW<$ZWlK7zkcK7;Qkum5ZHyl;}X;NJh*ID7E-D?fxEBA>!H z(D#Yd?p;0a;mSARAD4IF$I1urFU!a9ljRHe+49D}SI4uiuD1=pSouEueEA4|nS2Jn zLSDab^}N55x8OI(d+~$`|l0 z<&FDS$FsG(4c}JYhi@+*!S`_AX90h<^7RK+&%3j{1>arXgYPXL!e1eu!Vi+yJo`N= z?(>Sb$(!)E$~*A)%Lnj}%E$0yQ_|@_m{EzbbTC3;1 zQ{ICATi%1$erkO?gl{gN!nc*z9=>|so#jpVOXMB+Yvlv@TjXPS&3*qG{L{)e959A~G_VO8gXL-H0dfq+dE%+Pvw$AE#kCQjyr^q|-bL0c~W%4on2KfU17kT5+tK)e<-iANsXPSR_ zARocElh5G0%j@f|o_8O43;ud}58jmz;UAMv;eB~+z18z(@+SPt@(z66D{LMH@W;u= z@LY8k@H6C%$E=R$e0dvwnY<7Gg?t46t$YT*NnT%n^}K(Px8MtT5B_jHrw!r0dxyib%j;ZK!!;Lnf`;Lnzi;XBJ0@IB-We|0=9c^kfuybs@BK7zkqK7+qiUVrTB zc@LGh;77`P@K4K!@Dt=y_*dk$4Oh?mO?eZ3y1WBFOFn>~Cm+KvmM`ExlQ%Y69nY`j zZTRoyefUg1g5M>d!T&9W!8efi;G4^b@TbYA@Ezo}jaSe6e0dZ8VtEJt zO8Ef(I{6s>X88hssJyYs>UcgTZ^Mt1_u(hYNANS{Gx!hX^-WjLd%3&?ze?VN|6V?X z-!7lR7xG$t^}LVNb4wGxfqVXeZ|0tV;7@hWKk#SC7x3NWjmNK!=VkIX{6Kjh{to#F zez<%FKSo~PZ1ud~khkDx%X{!kUlSnx8PgKd+=wL@x5>xwL*xti2jz{Ytd8d^ z@;3aV@;>}H`3QcpdE$_hZ zmk;3UTxI<^hHoriz@IE{Jau(E+soVV=ga%>J>?_#KJpp-Rr31NR?qudc?*89ya#`q zdcMxA58->ur|>t+YfoQ2??>cK_zCh3{0#X3exZB}zfxYo zuahs}Gr7O*>Nx)>53+`rQD4S3YG`XT(DPuqB! z@bn6+6Tz!@S)CSqoxfO}7(V}*)oH`icUYYie%nP>r@scz;4|$H19++ZA%~~0xAP9+ z!82|B7WBk?1g~^l!hPk(@V?gL1fI%WJ=YIz9%jhr%Fp3*`2t?bJzbxxpUK^IJAdH% z4IkY98^~9OTK|Xe$7+2w;pro7eMRtp>vgIHFV?br48P_3)(>s?#It+?|E|WuWvE*5GsaNb7L{Pd=)j2erLkKOgKe&kOauQG=&C_Ti=0R~;Vd zIDi+*H{g*xgg51`o?91g9$Lu9%E$0b-i9ag1m2RT@IN%PAHu^;t)Daa`}O?=19)_A7y>_ax53VyHF*9<=SpylWA z|5bhgFAlSO5U%#;6ZQQUjWu`(pQ!(vaPKJV{|H{{d9?*k-eBX1;iZn-@KnbMJXW0! zyi&h);ZxU#a5oQq_+0r69_qXUxF^ryGu3g|=hoeq^_(+CKL3U7R}*-6sJ*^>JFMQv zn(kw54erCIx{q~uuKO6kC%TUfxOcFPBZTKVZo(5CNAS7ktp)GNV|Z8Y>bd!J^Uy&) zQ@#tI$b0Zyp2Aak4nLx@eQXH#Pqq71z?1vUNATnHezt_CCtH3D&+apyz+GQW;o(HD zgYf(VR>ynRYG0jtpIX*Kre`=s1FBs?&nkRRHq5gPqR7^JoKzi0v~DJb=KfrcuVW92d}j5Quti!t`Cpi zX!D!Fz2}$@;H8dpc&Iu<_(*+Tzzeyn=hmH@hcWUKI z?rOSj=jAVL|McPB2krjW;k$j__Rj#G|44lW54TWX!M9MICfvVReFaZ8w>mBOeVL6X zhNl-=oi;psy!sPWtv=hE}J9@2@&zcyW%^nZQ%u>P+D~sZIqCzHfDA@M3+dGly@i zItzGqw$<@=T-{fz^{h?+|E2b&#u_|?x83^%c=~a@Ux0ghzubaXTGuhW)Nvc0>NtT< zRHp-P%e(Mc?&`UHz|BJ+`L6OAypRvzsXT`#@)CZ;7j6BH;qkBaegU3*$nNhHUL0q2 zDtL62`U)OzufBpGtvU;Mai#idr`5hnx3fAm_*+!RhX+5mI(2xlt@;zbhw3!o+5cLd z5MFI#b(-)es7?g;er9!AaKB-7V)#F`Z@1yypIV&+9zD(Kbl|^Ioi4n(-0Jk;-L0%n z3jeO^^x^SkRwsk!Pq8`!cwcpLc==#GSoyxZzb;obr2Pxw`;GlS=MS)DmN+~4Xf;IGra$9c`w{)}$1{l5nH zzHaq>_)z1i!~MDC19csHL>9$VW z@O=ZTlfbh-Se*`ha)#CE!Z*`(_2B-AHvSZzJjp)q?Zc1MJZJFqPOCG3XRok%&f%|A zogsXFht(P+F?8>~(Rk58~VGx)1@-{;T~`Qyp6WE=!PM$R z@GP@BE%;MZCx)ljSe-UJJl5(Y@aL+3I`HIn%Xi`PeXM_a@O3nv6rLYrb^37c-!{$+ zezQL39KijftxgX2{$+KB@E@v90Z%_|bw+USpH`=YZ?5?n!zZ^{oe4a6xy{cM?moY* z;PX#eof+KwhmB_rcVE}EfG3}{I^NE!{qNmvb!zbW@wVQ5cr>#*b$I+zyRHC!q3Sf? z#VuARgr|F3ohH1mIuSg$+3K|5Ma$~M@O@RM4bN_}Itjem)9Q5KPgb2S-20=|>B0RM zS)CMq-xqA2`|xgMbuxJL0;@BC|5|l&cy)u-8N$1JSe*j?_+Q$1M)3H0t5d@B-L1|T zKGb+7@bWsVGlfr{Z*?m8Csbz!4}WKM=5TLUtFwUbqV?|WvfBTXk6WD@Jleuumwotp zs#AwYAG10EJlx#sH0YY=5S~x1P7@yPY}XaR?>XA;R|{Tz)at}=?=D;KZTK%#CxHj4 z)#cRbMtxgJ0ns!}%_;)p)3|?Jr;~&7w4_o~l{vwTM2v2`w`2wEp zWaAmZpP)J=eEw^zGlrMXu{sm@UHW`r3QvAzbt?G$SypETzfyJP@X5sLEa1ToRwvkX zwf`@1|Bk-~58;XXTn=99{ci*h+~;z1)rsMyj@$55#|hk5oeq4U_nTdK=H7?G-8}T+ zh4LAEE+4>4c@EFz?)u#O?z7zIa>#rCw);4N`v=>7oWkAbdlkIUhsz?H}(ywjKj`r2CTGxZ{Ig(e$YQ|NpPm*Eap%ADt!t=#qDr{Buj5F8OO8 z_TRtgFZqX;JX`WlEP1}<(JLo@7hbgjtl?)Ka(X_XFmA1oh7#pxBsZS z5@;DyuReqC4c;qS4+OxlFycW^Ch1z`4g6WvE*AU zx%Y?v_U#jwytd>|T5^BMgC(yo`IDDCSn{VVd1J}9T=Hm`quys_l%CEsSrlO=!pl6RJT+a>QV`7@Thx8&O`dAj7!T=M>sZ@=W(l7~w^Sn?f~ zJYVu>E%|WCpS|S8l0Rq3M@w!UV}DsLx$TVRRLzt_&=F?H1$)co2Xl<$5Wq9-Aw&d>dDkkqi&%-gL)eE znbfV+Pp599eg<_rbsP08>a(ajsAo{mrG6%LC-vFX3#p$)-9`Ou>ZR1rq3)(`r(R9{ zT0nfe9P{nWFlw^6^4dVqR1^&s_&sE4S}r`|*T zV(QwD{p0@<>e194)J@bcr5;Z`hq{^iWz>_YUryaZ{R--7)E7{!`b^Ur)W1x|6z_`VG{pspnJoP`{CS9rXh0Ug`^} zH&S0j-ADZ<>dn*(sr#wlOudbI5%mD|#ngk;Z=oKdzJz)Y^`+FcpZdrDt<Y)Jv#asNYUKjrtwbt<+1Y+o+dOw^J{to<+Tax`X3n zi+Uk-H+2{Fd#IOEucGdzelPWE>i1FiP`{sg9rXvOd#OK2y^(q~bszPIs5euuq3);t zF!eU-k5CU#f0TNV`eW2X)E}qbL)}AN`?-JoKS4d3dM$Mm^(U#vQ-6xOnflYzlc}$u zZlV4R^)%{r)UDK?rEa5MPu))aIqF%|pQrAi{sQ$}>Mv4vQh$khA$2cx7xkB^mr`$_ z?xy|<^=j&`Quk1Qjd~sR*QtA{zd^l`dLwlo^*5LKdyQtzSeqpof2AOEYUM^j%--9&v2^?2%Qshg?4M?IPPI_ehc>#3(vZ>Dag{yudZ z^%m-O>K{20Sy_tGDbwBlQsJBu7mU@8tchrN_zo#CezJYoV^#FD4m;Ukp z1NCU?9n?+Kf21By{U_>X>OWIYroNH7h59el)2IijTd8+aw^8q+Zl}J9dKUFxsXM6u zMm?AMX6jDrTc{UO4^ekf-%7oddN*}9_1~#iQ~!gyhx#_^b=0?0_fr3pdL#87>OSg! zQE#T+OWjX>2lY1Ue^U=o-$^}4eHZl*_1)Bas7Jg(AM79h!-n;*5KTRbx{3N8)Z?iS zr*5XcC-r3NBdA-b??pY0dNg$_^}VUvsK-#ZQy)n^i~1<)4(g++=TaX--AO%`dLeZa zbribh~q#jS*NBscm&D0a9`>Bto-bVdE z>H+EpQ4dl-n0ko%1nNE1&D6Ed{_%eZ^=Rse)J@b6r5;Z`iMpBkVbqhUA5Psu{Rrx5 z)RU=OsZXSCqn<+DPW?#gS=1*{cThiydM@>&sXM73L%oo?g}RISWa_2VQ>nYDA4|QO z`f=1f)TdCdqkcSfFZC0sH&Rcd?xTJp^=9hn)cw?_Qg5Sv67>M}Y1D(%Po^HCehT#- z>Q?GnSO55*PCc6Xsnku>Poo}BeFk+i^_kR@sh>{WLj4TtY1D1ht<+~xw^7faZl``G z^(^YMsXM5jMLn1L+0>oX&!JvO-A>&_{aos$)HA8Osn4NaO?@tP5B2k?*HJ&8x|jL| z)ElX1QTI{5ka{!qZ0dgM7g2AcKA(Dk`o+|P)GwhPqVAyHL;X_f+NS>TpF=&G`eoEj z)GwzVPyGt&X6g&5CsV(Yx`lc!^)%{NQMXdhqi&;qHFZ1nYp7>Yzm~d#`gPQEsb5ds zN!>}kkopbOUDWfbmr}oxx|@0d^=j%1se7m|qFzV+ChA`5h146V-%Q;{y@+}<^~Kcv z)Ni5QMtv#u0QFm`2dTTLhp691y@z@+b?w*w@xP3EH1*}wP1J9v9#8!a>SpSt)RU=~ zQMXVpr=CW=g1VLZoz!jAE2-P5-$gx(`rXtW)ZNr`soz80Nxh1CA@zHyyQtqsy_EX> z)ZNq{pk7V=LFyjr)zs^#KSbS2y@q-t^@pkZs6RrznfjyD{nQ_$-bVd#>H+E=>OtyH zP!CbBrQSpRN$T2f{p0^B>e1Anrf#CXf_gmlXQ-R0*HKTV{w#G1^?K@Q)SshnrT#p1 z8}%2c+o``uJ&XEF)E(5l)N`r7Ox;PnfqEhJSE#$Fze>H7`fJqP)L*AwP5lk(9_o$M z>!`m;-AlcRdL#9>sQakDO}&}=JJkKuS5j}I{x0g%Y-Q(sTrOudaElZseeY@Mg4Q?rPRNm?xy}F^=j&0QTI^)ntC1ecIsa0-%xL){w;MM z_3x-RQ~#d2pZW&sZPWwQ1Jr+@9;DtuJw*LS>OItdqONV}AOAm7kEXtnx{3NP)Z?iK zshg>HQBS76iMoaQuhi41|3=+PeKU0%^)1xx)I-#>sBfk2px#YAm-_G2oz(xJUPyf# zbr<#R)Jv)VN!?Aohk7;jzo>ht_foH;zJt1#`rp(WsqdujqrQuJGxgon{nWLn{`cG4 zs1KtapdLj%NPQ3LA?m}a_fX%Hx)$mm|0AeJQ{RiaiF!2kcS@%+P`6T#rEa5cqHd?Y5A`hSanv2u_obdoeJph+_5G+9Qs1Ati+ViuQtAg#cT-QG zUQK;Gbr1Cesn=0Ih`N{h!PFb6PoVCjZl>N${SfMY>WS3bs2@r_Ks||ikosZNL(~ta z-b4Ke>e|-+@t;gRn)*cQCh95F-AsKF^5Nr(R8cDs>O_lc?8GpGMtF z{bcHm)K8)Aqi&_%Ono|aKlM|ow^2WhdVu;2>Otx=sfVbaPQ8cv8Pv7z{_$_49!-4~ zbrbd3)Z?k2McqvOZ0gC>&!KLiZl|6`{aor+>Y3DS)aOvQQ=dyci~4!g9n{aKo=g1# z>Q3re)C;L!NZmy}n|dkrdDPw1FQQ&eeLi&$^^2+3QNM(`m%4*`BlSzE`>5woZ>D}3 zbwBmXskc$Tf_i}Z0_s8PS5gmA&!yf&{VM9(@BQOHk9suqtEro)Uqd~f`nA-})UTtS zO#OQ57V1vwY1D6^Zl#`2-A4UJ>UQb{)U&8Br0$@;hXp>Z)bFC6O#N=^7V2*5Y1HqbZlzvD z-A4Uh>UQe)QO}}&KXnK72dL*#e~`M9dNuVz>JL$OQLmw1O8sH#Zt9OvucrPebr1E& zsMk?{oVu5~hk7IRC#d_V*HUk${v>rj^{1$}QGc3xfcgsRLF&&?4^gk9-b4La>e{yc z@n26pn)-9pP1K*K9#8!R>SpRMQctG-5_Jo8FZDF)FH^TtZ=i0Y{t9(F^;fB9QGboP zgZk^#bE&^U-ATQXdLi{Usk^8*Q7@(b7IioEx2acCe}}q<`bz3`)ZeAlks0XO8qaLKbo_dISGxZ+o?^D;d_mBS;>e19cpl+i6A@z9b zA5k|`|Co9*^-riQU8>>m3k|68}-kq+o^v}J&XDm)E(5nq@GLtE9y?_ZPW{? ze@)#*y`6d~^>3)Vseenon)-LtJ=DLaUPpZcbuaY*^+xJHQ1?;qpx#XVN9um+KT&U^ z{xkIe^^Men)PJEKq8_B)L%ox__Gkb2@1h<}eG_#P^VHvpQSYT*N__`)H}$`% zS5x0f-9vpB^*ZXise7qwd-T6Q-$;EJbszO8>dn;mpzfzWoO&DeJ*fw%kDwl;z8Ccn z^=Rrn)c2;Y_4JSb80yi~M^ZOYA4NT$`e^EA>SL%UQ;(%?p>Cp{MtvXZR_bxoZPfRr zZl^w$dKUF@)E(6Kqn=BBf9g)^@ze{cA3)tjJ%M^D_3_l*)DNUyP5mJ19_j~EucJPJ zx|h0{dL#8isQaiVQg5byD0M&eBXWF)Q$LEjnflSxlc^s=-9p_$J&pQg>Q?Hh)NRy{rEaHw9Q7>fQ>Z(rA5T4( z`U%vX)YGUJQa_Qpi+VcsQtDHwyQ!ZK^JRQ?H|b3Ux1aEA>X|)2aKYpGv)% z`f1et)Mrp{qdt>*fcojwgVfKU9-?le-a~yBb*;C5{AW;)rhX=M6ZP5DdDm4p>CmWr=CXrT0I3#ng7-9cR9zl6G%x`TQn^-HPysOL~`rhXZ9KlRJ0w^6@>dVu-@ z>OtyPQV&tjrQSpRD(c#f{_&qjJ(~K})J@c{p&n2DTIy!%*HKTVem!*ybtm;S>Nilg zQqQMuqkbcGJM{wUS=1L&cTitMJ(v1T)Sc7|sTWeenYxR55%p5)i>bS*-$K2b`V#6M z>bFv_qwb>arG6XrM(V}XebkpxZ>GMSx}SOp^)~9aQx8zTgL;s98TAnLa_T+QE2wLK z_mBTOsYg?6^J=8ta>!?3L-AlcedL#8G zsr#ruMZKB&)71UcS5R-G{tWd1^*ZW7>d#USQLm@oL;X4G+Rpy*|2*|*>Mu|?QGbzo zJoT5To2h%LCsTi!x`lcJ^)%|QP`6TlmAZ}kYt-%3U#Ff${SE34>W$QMslQ3xNxg}B zA@#SYyQsfSy_EVp)ZNrqQm>}|E_DxeAN4xwtEhXaucqEeeGPRV^|jQSsjs8%r@o$g z8}(-D0qXBl4^nTT9-{sM^&aXUQrC9%kN=OTM^pcpx{3NH)Z?l9shg>PNzo+h| zzJYo*^#FAb^&hC$QSYGcrT!!JM(RIN_fh|udNcKn)cw?dq25M4NIgKklX{SP7xfVJ zP1Jj+|4Lok-9P?+qaICtGj$X7E!5+whp3yWZ>640y_>p)`tQ`!sQ*FTN_`u38};qf z?bQFIo<+Tfx`X;()N`r#Qg>3{LA{Xr-_%{ycTz8`flpg)V1OL@7sH*52Id3 zJ&L-Q`X1C9sSl^_qrNBgX6hrT`>F3my^VS_^#Jv~sRyaYP!CZbNxg^qDC(Mayd12( z)PF})kET9`x`}!$^?2$g>SpTuP*0{FN8LhwU+QVp$5OXaA4lCreLw1U>ibjAq8?A( zLHz*gxzrP=JE@PSUP%2w>MrUBQ7@%_Fm*Te3Dm2po2h%KA40v3dLnf%^+TyQQct4p zqkb6mX6lDi_ftQDdK>j*>H+E#sRya2P!CZ*l6nvINz}Dr{p0^A>e1AXrf#Bs4E1>G z7V2i|lc^_DPo-|5ek}Dg>c>&HQlCQIM*Vo|cIqck&!V12-9i0C>bca@sXM7prCvz= zBdn+or|zeI2K6@T zHtGTDv#1BDXHXAOKa+Y7_1V<5sQ&SP7WHWAXHz#(KZklebvt!4^>e8wQ_rMsp+1Lt z8uhuZliuabvyMe>RHq;r0$@eO+AGJ=Alk*HOQWx|jOp)ElW^LET4v0rh6;S5o&=&!yf*{VM7K>Uq?I)UT!K5t+)YGUhq;93Yh`NpXP1Nnw z3#n&OznQv&dJ*+p>Wis6soz4qkopqpF6v9Emr}o#x|_O-dNuXisC%dvQ?H}GjJlWl za_WuLOQ`#(-%h=m`W@8$)Jv(iQ7@w&pk7WrNWFr3i29w>d#G1Z*M|3x|GTJ1Q@@+K ziMpG5JoS61o2ge(Po{n^bqn?TsHaiCpSqR$1JrHQAEa)lUQIoV`a{$m)N82cQh%7b zllmjn3#mU!-9`N|>ZQ~lr|zcip3F;o|wbbjVKS|w7{VD2=)SssAqrQTAGxcYv z`>EGaZ=?P!b=$IEqiq#?o^^YwW-IX(MD6z5maUCmqwSuuTBY5GtyTYxonTdegLCn< zY-eD%`rlzqFn;pB(=Tp-@kzf0_lE7_d^iTSiu2%+utl5$kAltOY$HJjqDjaqyY=Q&g zba)@wFHVKyV4pYz-WT?Y6XCJ2N1OnUgWcjdct6-Bj)C`wo#H4s9(IU(OOy|Q?c#1Y z0k(>};PJ3U+yNg5o5k($L9j{O3Lgw>;ud%U9NLM;zZy2f0dW(22<#U(z=^O=Tn`@# zd&RYI66_Jzz=y$ZaTR=Kv5N5D>TF`NuL#6|E#*e=e8Q(&t&4?YsMh;!gcuvwf9 z9|fDlnefrDCeDD5fkS`G`G+lVK%5RwhW+AHI2HDZQ{ZD^uQ(At4)%x>V7xin=@!Sq zc(LeoiDTdsV5c|=PJ*CfoH;QaTR=Kv5XTVNzF>He! z;v#q!Y!~Ol8L(BH2cHRB#5wS6*euS5&w@?jO!#bA6KBBZz@c6_|F9hnh|}S7VZS&P z&V+s96nGBo6(_=TVUIWgJ`Z+_yQA#4|S!`ZM^+y&2r zE#eONBG@c$hv&m4aVvZ=tchFTOW@F7a{gfl91u6bm%@H=1Dpf<#P#rHuvc6QUk-c3 zHSiU%TU-S%fL-Ep_)6F*E{5>})aeix!B@d{aXy>}Tg7?s)v!gJ178E1#o6$+ut}T= zUk7XA4ETCD)FbB~cESO1I(!4{7pKDcuuq%<-w1ofiEshz5huV4VYfIAUIe?uG4M^W zQyc{s!VYn7vGUEZUEB>9!B%k>yco8KJK$Sjv$!2z0-MCG@KRV4x4^f;p+DvP!!9@= zZh~)v{o)3=81{+l;bpK_TnjIUJ>nX;1a^z7;M-xBxE#I%c8ZJPQrICbg3DmLI3F&D zt>Qem0=9^A;5%WnI2*2nP2x=WE?5(1z<0x;?Q;HMHyjYB!}q{`aVlH|`@|{my|7oD z2;T>L#0l{Iuv;7lKLESLG4O-1Qyc|X!wzxpZORY9c5ydc16##i@WZf0+yOrVo5k($ zqp(Tb3O@#G;uiREIJ8a9KkR`6;wJbB*e`B?Yhj4!X9w~{2J^Q$HA||E^!R}2J93^!Huv(-0M<) z6Sj-H;U?HB?te}&EBZ1^|WB+i64!1b7?l7RSNcVV5`t{u6eJqu?IcA?{tO{17gvY`jaRNLJc8lZS{a}|k2Hqcb zilg9o*dgv+qI>{s7k9%6uvOdzkB2Sd4){RWEN+Jnf=%L9_+VHQx4;wN&~I}7VKW>M zH^GO%esKew2>ZnK@S(6*Tni_`9&rtP80;2T!H2^xaXEYh>=YNn$*@CQ1W$zR;(Ry- zwuF{LOFHVJ1VV^h!J{I9AGY1y6-7;tu#E*eq^` zr@&EjnMEZ8K@gwKXGaRz)29O{zu z58L5@I2}G0_KQ>DOxPz*f#<+paUwhy_J|YU^I*3)4n7}tiDTdkV5c|=&Vn7{-o?rn z!gg^toDEyWUGO~EBJO}Mg3aP~cs^_rx55|0nz#kN1P*n|`G*~FK->gh3j4(ka1QJf z*Ta{=UU4maIqVVFz*oR-aTUA(c8Sa3D`BU&7{(jUoepskd=+dL=fiohRh$Q34O_%H z@HMbmoDE+Ko5Y#$b+9JRfUk!`K{@}h6Ap;e;TvGTI2F!^ec}}OM%XJ(gbQGgI00S= zyTx(vBG@I4fp3DH;wZQfc8Gh6ly8RZ;%>MIwu-yp#jr)(0p9|f#qIDC*d%U+m%^I3 z1-=yy{UYZdcEJI06MP%&7dODguuohMFN3|}T6j6^5!b*auv=UO-wwOPELn5@*79!J0S&z8em0l=Ba};ea?Dz6bV; zQ{gJuCr*Lyg}vfL_&(SpPJr)+-Qqa-0oWyufggmO;wZQpc8Gg#R(=S!i@V_(*edRV zABHXB4)_t+EN+J%g-zmC_%T=$x4@6Xp`Yda!yY&wZi1hH{o)3=7WRqj;U{6QxE6j2 z_K0iXr(w6a3SI%b#O3fauv1(N*TD{P5&SG{7w5zEuvMG~KL=aHIq>taS)2{O0Gq^_ z@Qbh}&VXNnLqEy+hrMt>oDRPX`^Bkn1MCy0z^}kwaU%RG>=7rxufc9{9Q-=$634)A zz)o=#+z30wy@kqe!gg^t+yq<2UGQ75Mce_u4V%U7@H?!`z^h@OxE@{ud&RZzTG%75f!~AO;wpF@>=Kv5>tUz37;c6g;v)Ec*e=e8 zTVSg=5B>nQh;!f%VY4_J{s=aSGvSY6O`HLL0*5-}{KI}YAWnxrh5h1GxE1z^Q{c~F zuQ(C@9QKG4;4fgeI1c_2c8O!)uVAM*3T}fP;@+E-zlQDNZnzz`io4)%V2ii|{uVZi z+u`qEleiWB9@fMy@CG>agPeaj00+cP@DH$G+yHmLK5;$#BkUE|!au=swS z8)28Y9R3A%ii_bO><|~hov>Y;4|l;{R@g62g}Y&&I0gP4_KFkXKVXkI0p13?#c}X<*d>mE|Ad|5D7Xi9h_U&W1DIM^pnf%k>I;zW2X>=7rx z<6yTq4&D!TiDTgXVW&6>j)xuM-i68sz;gw5i1_#oIMZiNqq zHE|0(0SJH$osMA$CQhf`pyI1fG&wup1!Nw8U*4Ic%Y#F_BXuqMuckAXwq%K3*aa6p_6 zPlo;CR5%s(iBsTXVXrt5J`VPX6W}SZTO0=;54*%M@CmR}90jMr4smaR@`2lk2+;kmF!oB*E(yTx(v`LIhI z1783;#Zhn;>=5_fsC*%87k9(iuvOdz&x0-E4)`M2EN+MA!zOVnd@-zvTi{FJ(ARSQ zVFw%#H^G;}esKew1N+4F@MW-9Tnk?gd&D*H6|h@e1uuYI;&S*(*eNcC@d2|=hqws7 z3bu>$;XK$X&V#RpE#e&b8rUq(hOdQ9;!OBDSQBT!*TbPUIsdQ|4v5p?8(_aU70!o! z;uQEs*egzi3t*2p0bU5Z#c}W=*d>mEZ-SlTD7X-IhiZ+H^9ZPPh1Z#gT3NfcscA5*T5yP zTU-U-4!gwV@Ex#ITnv}O4sj7&2HVB?a5-!h=fM@QMVtfQ37f^)a3yRKXTo>Enm7Z# z8xDOb=O1>%0dYEf59}AG!d0+OoC4nqd&P=W0+Pr_btE&LSh5!b*^!)|dEyaINK%i(8Wr??odgB{``_*vL4&WGz^t2hsS z4z`GM;OAkpI2(QeHi*c5ye{1Y5;j@LRA&+yTE0o5k($JFrRI z3a^AUaSQw|9QsVoKkS18;wE?%>=!q{t6`tG9$o``#kKHS*dwli--F%aDtI025|_j4 zVW+qlZiXG=BKUpSF3yKrV5>L}{s6X!bKnnQvp5_62sVi`;g4ZWoB@9Vhg#+Q!+tm* zPKQ5*{o+)(750f!;Ll*MI1&CF_J|YUFJQMg4*n8$iDTfeV5c|=Zi5}--s_dWhV9~R zxE;2NyWnqNi?{>+7B-99;qPFRxE1~$*2FFF1~~MooPRg~2gFVA53pa{0C&JXaXtJa z>=oC-KfxYx4g53g7FWR=VVAfZ{snf5i{T*b5EsFnuw9%FcfnS19=r**h;!gyVY4_J z{tY&XGvUp!CeDDjz#+e!e>emO#Od%>*e_0nyJ4R=1^ylOiWA{KV2?Nf-UhqHaqxE7 zC60mrgq`9jxCeHKd#_Xe3$}~9;a=D(?t*u~7I6psH*6NS!#iP=swSBVd=f9Nr6dii_cB*dZ>0 z_lE7_d^iTSiu2%+utl5$kAltOY$HJkH<^01YI3P}k_ksQ5R5%Xy ziBsTxVXrt59t(TK3Gg`BEslftgI(encz@U_j)LQ1hq(7zP|tJZuqn zzz4!+aXWkvY!bJ^2g91U1)czhK9chfo8f@C2|fh&iyPoX*e9-s4~4zrS~v;zh-=`( zV7IsmJ{)$5%i$wnr??nSh8^M}cp_{U=ff$mRh$PO30uTD@FdtQ&W4YIP2x=WXjl_x zz{kL$59R#B7C0bIhbO~+aVne&`@|{mv9MR12p7Y=a%*B6t>T7w5wnuvMG~ zp9x#UIq+=QEY60{f=%K~_-t4cXTaycp%yv+upJJF)8TVrzc>}ngni-^cn<6pC&F`K zk2nE74|a>=;PYXZI0n7|c8a6mEZ8CLy;}J~*e>pdvtg^a3!VpC#2xTOuvy#=&xcLo zR`_CA6Su&Zz@hi${KF17AZ~&$h5h0NI0yEL>*32_uecVz9QKH7;45IaxC&kXyTs-2 zm9SG>4C4pNIvwI7_$t^g&WH10t2ht78n%dY;A>#BI2*neHitIcs0bdV?n&te% zPBv_K8#A8)2_F5iWo|;skgh>=wtti(r>H2EGY)ilg8{*dgxCQ@$Ct zi@V_>*edRV7sD2D2Yd@`7PrGoV3W8NUJ7gC7Wh^;v|i3X?1BU0CiphkFK&Q~VV}4j zUIu%`weWJ-Bd&o=5@}rTh?V7k9%ouvOdzKMY&M9q=QtS==D<%Ps46;6}$p=iOb<oDRPX`^Bkn z1MCy0z^}kwaU%RG>=7rxufc9{9Q-=$634)Az)o=#+z30wz3PVzbKivR;%>MJwu-yp zw_uC71AZGei`(IMV3W8NUI}aB7WiE_v_{T9?1Ka1CU_O>7dODGVV}4jUITl@weVWl zBd&qpgWcjPcpdB#m&5B}r??nyh8^M}_4u1;!#i?*B>=UQJpTS;nBK$e*5huW3z;1CI{3YxX$G~5~ zPH`0620O&PS1NxE+r`~*J8Ttq!Qa3ZaR>Y@Y!eaK z#7*!IuwUE&cfdYzJ^Ul=71zQ)!5(o9{4?wpSHT-$m$)4M1$K&y;UMe~7r~vdU7Qbh z!B%k|ya~35bKqZLvp5_64K|50;mxon&VaYTA)lOoI0Og8>F`$AFHVKKVV^h!{vGy; z6X8E#k2nF|2D`;^@OIcGj)DJ#o#H6C2X=^i7byP)+r`~*FKiWe!8>4!xC8zhHjCTg zov=yV3h#n7aSOZ~4!tYqAJ&E|2gFVAFxW3{fTLiaxE|gE_KIua;jl+s1MdmD#Z~YK z*d;E9_kx|`VmKOhh>PI8VY@gVj)AS>Ja{B*5$C|8V6!+I9u1qsneZ4`6KBA&aA@Uj zeE%Od!2xkPybtUbr^0ctPn-hp3wy;6q@) zxB*Uted2ofP}nQ3g_B^9xCTB9c8jav!(o@W96kbeii_c7*dZ>0C&G4dKAZwu#d+|N zutl5$PlCksbvngSa2o6o_g=1iB5W6T!|AY9+yzgCE#eONB-ku&ho`|N zaVvZ>tchFTQ{d2Ba{gf}91u6b(_z230X`M>iREv|x3hh5@w z_zc)7E{1KeLtF&Ug6-mbI0Lqd^WZaKi#P|K4V%T;@L8})oC%)|YvK&}95~b@=O4Di z0dYEfF6=MVo7r;(&6r2S+#J!g(UkKa9 z-EcN+6?eh&V2ii|z6dsp+u`}JN!$uw3~S;R_!2nurksD+0SClQ@TIU{+yLjmK5;#K z8SE9;!k5DyaSeP0>=swS3t*SH9KI5Eii=_V12UZsaS?nKY!~Old9YQS2VV_a#5wRa zuvwf9UkjVWnecV6CeDDbheM5W{$VE^5U0a8z61vZP@;U%z1+zKy+HE|1k zD;#=5&Ohve1L7w5HrOw2fQwVwu|%Oa@Z=)gDYT*I0wEHHjA_2O4uaMgzthiaRz)h9C}^OKkSAB;&k{P*e_0n zt6-lv1-=*diWA}cV2?Nfz8`jrjz!R<=X^ zTTYJ4Z56{0OIFENHX|u(vd^}DMv@&%1XC=dwPigqOVyGaf(Hpk-g-Jd@U52J5PU9m zv{vGaEx}LJ_Qe&GB`(L0E%(KH){oF;SMGUI z<-kwJXw%D9O>Z2jZhjO0QOivB1&6;qLYBVe)X~~xUnjmkwpEP&c-66LrMXG=nUj5e z_tUv{1oo(Gmiiu4UmUCM+*UE}QMH1)bF~{Uov7}wq_rS!cEzdDw#q#pS3ax6H#>HQ z4ZPTmx z>R1-vr4C<-Pc0q}OZ3IZ8jB-uDp{#cmMs2>zW5=1;cR{JpO@%c$8w!>us?emYdjiW zBODIY*LcNP1G)1MtTDn^{4s&Wvp>xc#Uvq)Ymx2SOdB9 z9jp;;tg%;kjc~YKU*jNS4dl)Wtg*MT#usW(r~`FKUzn?}vFR55kz={e3$aFwvBs0( zHNqiLU*k<<4dl)vu!b?Hf;Y$-u_dqWr1+~EJZf|-GuFbgom;U$_>6B-k0pHix?}g5 zkz@zgLfhshe?t-cr%i5U?jx{7a$oA zRFWw;2g!J7lA?oFmAYdm`MP6G7bT^s|ISUas{hVTvgNwe<5D+$p#I;g{=e0(`YlQE z>aXkZ*Mg*E_1AUy>or(&(tG&pYs$O;3@u~nj`QNDC!xgmcQI~>?oOP3ib@nS6?!#r5y9t{C`hGPaKJf zXrw+7-6t4D6H(&PLrg>m9W}&66um~y@t0F0C!*Rj>^6DU-}|945sgy&{U-jS zPehB~&?lnbr^!TwFLc#JH1nMyCL)JVpNJOoL{za_CZe%w1$`nqd`jd*w4d^TiD*B4 zm;4`uC!+1I51fdenqHsp}x5 z$f+v^DRS!iQ$3^sQ`b*OkyF>FNRd<5N~FlC>p7&zsjC_(a_TBUG9Im(&4wohZ&XFi zK0{1qs?t0rlTmc{bhYUJ?@4X0KB>*tC$$z#YO8{${vJ80tyWXZ(34uJ`a1aEPHG<> zPFGj&3i#^ktcfyzMP6Omk|jo7T^*}VkQ&LuPKcb;u2Gv*lbWepCbgC8hrYU6(V$Oi z2cO7SSI)*ECbbH64K(QL>h*VIQaeShpigS&S|TU4>B<8pwIy3+mv*cRPilv#ort`; z`s4_CV)S2KovrRiJ;JfUB#! z^tBE%){==W;_9kW9j^gXR1s3-6m=z1FVlu z0bgCMO&Ve%diT&FCZhT`Wh@n@MovUO9wHOb9ly!5e#)AmudWVyQJ;wJKaQ`ietBhx zi6}~4h+!g%xVkz@-MRWQ?{&3;J`pt^895O(Di4^5{`ggPDSvf%BC392;6!w~JW%>F z@4ZHOkQX_JoQU=hFCLzV9?%y*%2<5BL=;pb=9gK{eY?KU8KmV>v^Qesp}!6$f@ggq{yl3Mx@B8%YhU* zb)AJ2Id!EYMP6MUffR9dHBObGC$q?T?0@a*>Q(jGS)SA`SM$x#lUm9v|9(=t?jX9l zx>UedS6e0wF{yPOJjA5-#jA4mpFApZQX8W-sjjXb>y#P9v2y6EE8DaBq~=p^IP|}F z75CB*liE@08fehfRhGJQHL3mZVt7*f{qV?1?MLMSliEmqmmYm5JgKdz8#t-mAP;<&XYi!cuklXIT4kp zO{$4#+|M!*ef8$hS6A;orB6gBsIR5fL}a{oRaQU5MD&!p1{!pA^~p;z5oM_r^sB49 z#K?&#TY11lRQ!|d(pa@i`WtBJY9}JU%nKeM!@vK_yerlHs3+yF1w&3mZ-y5SPef_@ z;-46c515F`^~L)qqP_LSJ;vgLC!(zI8sUlPD|J<>_UAfdjlmPq;o&vH6VcQ98YdZR z44#PoP$w+n%e)))HDZi422Vt*!)t^mqUrh?ZCB_=Y4Akk4zCfOh+_3MRv2pxo`^0E zuMwVzzEi_MJ@Nu$4dlo-(I>iQNba_V{? zDdOtt4ONDo%>Ex;T|F@1OU4muz8QK_`|#QDq_!Y-!VFDYwtLu|f+Snn@3x9X>f2<~ zE`D{4_9l+q?<*FbroL@9yZBgby{3P|?4VPY9;>ayN9FLQe=4R&^{ZhnQ{UA)O|7L` zlcr8ruv2|ZGZfS+8c+2p)XHf`sT9o8|2_+U zpRNABY5B6|-SgJS{;Fl(xlPSy>etf*-Re=>DyDT#P`{(5a$L+z{4wQmxpi%HXO#MB zl?86K{E1H+%j4%`)$(uZ%eT*v<;TmdYWY_6(;c#WXLx!1e5_i&OkciUU;cye^0ndR zo5IWE=VR6K7wXFw>B~P7UOr!zpZwdbvQICzm37#b{S>m#RnNVQ26gNzNB{UT{+M=+ z`VQ9aafho-{1JY<58ZOCcAh#F)#^`M+0V9#J+@^%V-}55znuhlyk%D@3O7hwTG=NWLp(H#Wrl6?bBTa@oHml8XFs> zZ%ki*;Pzb84p5uX79L?+Hf@4hLG4-D&jq8@!!AE9RSPcpL7jV>dIO?O3PAjJuj%wsv8a8pU6#g;#EF(>M3Hxn~h{ZSCqDeE(A>s!f)KcQ`mz?MTH;y!J02rFKW%eW@vHxuvH_Vd)|K(^sCX}A4~-&wI-y|&FwQXe9jos>3PeKO5DTm8*ea6;@v z_3^aWiRwGFu@mPeIb$b2lH^j0$4-1I2_J2Xo%no`NB(>@$t!=po#a!0MtsUGUR^6x zE>8-n9{!jZKK!Pxa%Uu&*AGuJsT*5tW$xGNMRR4yxFi_0uY!6tm6y{AF?iP@ zYN32kU&^#Gcm(g^4)B^AoF5&&$DrCxbtb2uH+}A`vOmt7V{Bx{tgfm0v;&WY*T6}bUA7Smq^PAQx6am&;SwA}^%(_O z)vGQL`nI!XFSTbSzZG1k?kLN+qb+Lh`xZ##JDL){qmuqRS|yJa2X=C6a4Zh3depeD z;2F3QF^)6#8`opg=Xct1mn!RAqb|C~+%9ik98rfWplMB}Sgq+(^~F!{^!wBvSB~CN zA~#3tH$RM(M8wQs@AU*YCxb#wUoW+g^h=kZnH>!nSbBd^aleIMzS z@mPLD-|};ebNsm)O3QwYx0Riw zzPu|)iVk0A4^Nt1Q5b!edLGZ2wQS2UTSfBB$-iwf8P}z=E3Y1Q)`>fBI^oR9i>7I| zPdCl3DELmBRdKwnWP3s4?6O~iP3lwd>e6`9&7a#!zA1>EUAcI-T49lTcLw8Meatk; zR$(>Srp{2$w6ftz3oB=;>)d5)<7bzJ^aDTr;^~*Doz}1a<`_@S9l=a>c4YMZppHQJ z2^;(t14x}h89>K`7x_*tqK<_*Rv(~mjG}SVh0z*bW2ZW3YNG}Cn3^2P;F){s0|nzE zc(MT*HT$Rmryo!CIQpLW6>1B8WAZNE_7Cb7^%l>#zFR}XM{AoNFph(|KfF;DJQJr) zzKXzAdvLZIn(}pV<>;-;Wpvd)EyJf^j2b>k>b;HN`}fG;Yt?VA&~H8%Hy@6h>($Nu zUk|A#G9HQkDc|VeX#MfVmRzast#8L3j%$N_=sgWRUnBd>P)`Hjb!uoj)&Qncp?c0i)C^i<$soe0SK97u2=W6G0wSirC%c)$i z-|W+Go`ai*;Z$zWZ?4mCenP+bINZD&Yy0$@%k-Oz^_$1x=2)!#gu2wU2-4})^C18 zzc~Xp_u}R+)y>B9rbLb9{R+;<>!^BR!e`f`H|^U$-fb20Oqh3$u`OF1tt|}MD)z7~ zD>Q2hH`*!+<875rv#qQvh!4UWOD_CUpO<9b|9uT+$C+j8)Y}Hr%eEQ!F{|uDbvLGn zi-%}Dz9@NuPqM9_sSYvbwu_RY)$9L(^6A#t68sV*_4rNUX$>>+4E=TQH5@T@B2J#Z zY~!%lk`-#nvr2x7UH*>x%dComB=vqvG-lL;ZBxhC%DNYh-gK_<_@~Ac>}#vYR1dOs zVK;u@V)v#y)OKwrepzs|ts=u@t0+=)`Z?-P_4ktZ3x?auZdM`RWLtkKUOUuzJ3oGw zx~NijQK*(WH5%7Aa)a6*i>Aq$I)@3>yeMs2JnR0Xsj_n(bx2b1(g*{q*W`De`LhX5`8K2*e4gX~X9?$MpWAYrUK3c8@+O_%} z-j6%%z(~4N-63C3_1|B|FnMaIV`U8TeboIK57*e}twplYczvT*Y;h%Ro;J;Ey@WmI3~DSJ@s(Pr`amx&nfCqscX$~W7K9;x5ds_jVFs-hFP`XWt#rv zQM*&NPF)DzsEqSmx#xG$vD&83jo0J8r+2VeodUJ6t!!Ozz1nmANf-WDwK-z&;>uT@ zbvcvx3$8)5;PhRi)U$oq($Q)w!Q%u`OD_P9P*8h%pSojpOmBYN`0f&BdieuNGzl{+W=jth?-qv#9 zKvm35GTF-P$(@-pa{K1M;3oB0vD7uH_wD52YACC>Vr%!(ztti$YUQ})it2cr_?Q~h zas*CM9}(^ROD)?!ANB3ay~cJYV!Pqj$dA>9h1%|U#&(f6t&sVsZ;|KJBI=v}m){Zo zp4;{j7%%-lxUx|>{5?0>ZsoYIu}I|<&!gcTThXm{48Q){-S?2@=-a)eZ@Z5T*zR4l zT|D4TD}pbnOAFb%{>P`LNX)_iW_88N|I)`;x<1B^HI^}9 z9QK_*V;TJV%l-j&i8{sl0IP_xmD$W{Dpr@ewq%*M%j}lUlhp#o^SAGO-1xV?OIa8n zGQiXm@5LQ5KCa#~V%*sj)#+XJaQO7D52@4p1IC@ZZ`Terws#P=7vA5C_3izl)>PlX z)qgta#mMnCRV|{%+l-R%c)NXgJ=)){dUE^Sw zsTX54jU8varsEfh=)+8ZJ?uMGPpUDDd82~I*${w(c6q32 zEI~a0jK&6ab^JdVU#A(zJ7RntZA4>y{plKFe5GuQ7+-7f{m+5pYlN}PzZzfatPU~0 zUQrJ|{OZ~_zBX@{@i0vtddxR+t}4eJgfmk)W!Qt^bGp~BgU8op#`Yq{*JJwjc4+$c z28=J4x)q<3Q%6A`0w3&F_dqX|Zz+d|fJ}*%#=XP<2=&!Sc`#^t5_xJ~0kF8VJ7wY7Pug4xYmKk_G_PDXwKVOff4Z0qi zw@n{c5!Yi6s7p;XZ>6Y1PUC7M&Pe5yXYUK2%a=OUx%`Lgu|16KMqH1btZ#S2E_!_& za6L92SGg7A-d++O2Mcya4zlx=2Mn@H)b`Ylnfi8YKkQiK_1GG9?WndpyKlQ=25fiN z-~HQ_@wFm2q4Yl)U*~qy_?jUw#@7i7YJBa&9#l>#yLagEb#71}U!Cd;n}0vP7OSxv zF~0I7^o_4G@hOCX*ZT|9^#qNtSoO&PnZpKL@1J5U_Rr(XGH875P>&V!R>b%^UJX<= zzFO2Fr}4E}Q5}z2Rq7A9-aqG;e;!{?8rzK+U*D@sShd|ZjP1(&HDG+bg{$0(ag&O| z<7>nYb$2w0ZSUw zbqkHJp9IGE`bt5KuNFMA$|)1oZV&ZBx%Fp#e3hv;0{;E@8ZXD4=C2szM6A}Y!8YAI z#P}MaE^ugky;L~#_}ZXey0O?lkFUXBPd*$PVtjq6t})d($Ww=$##a;0Nad8yyThk( z%TND2zD_f?8!^6?>f61**zQo{YaT9dE5?0zQ+Rx>=!qN$4=4|qzfAg$+52|veC$}{ z{I!R^-8rQc&Zo@-I1_@831__`2su zeSA$+Z#ew>@%5G(yAktOy@bB`t3n;vLG#xNbx}d%>-t4QkFQ&e#r}DGnFq~ZQ#TJW zz80y0s>WB0I^;CImf(!2`MfebzV7b$=kfKUI)<1RBgWUk`gTt@wma1L+M%xH)cCq{ zVR#&zzCCh$9j`oKe0}n#>{#f|@Q!U)9}^oezMj;#J4qcneSB@+7P;N;mBZUL#@BAw ze=@!%Z=&&)BrwL;{t9Y*W$C+pmD=s0=C8@>LEu9Fef4I;zaL-ovVNJLE|g7VCeBR!C35{$5;HI@%4>*tQZFouaEnwfvUz=y*lJHzHB(tYCf+B zpT=VX|2)2y8QYB*Un|umtJ>~HW4l9*uZM9}t6m>(43C42zekRPFO|dN02@#z>M;zJ z$|>&h@QyvOVbJ(GP2cW^ecQcjz;>6?c8&4%_|pGme0>_E@wHZ9jITEo)NYU0cYANO z+e3}7Pruj4*H!9GhJQc4c61Gxzq%y!&0inn4>7(rs_O|FUvJzn^!R$$SnQw2mub-W zTHHCr_o7p$<8XuaSSqX?(vld>TLb?w`lkp~iM2#@EIAc0WFgzJ45V{WTR= zwH4z&cZSE;?OWB|(e>9NnEgzCQk_t`*gGuTh6ipTCYCu-$`c zyTtQu^BVHfN zCG?H2tJQ%WG=JT$t|w@GU2y%-WAWC}Mnlj5AU> z<*M7&A98(v{Wt$SzSgK?h>l<9vR*WmSE<6qn-=gl0#@Bwz z1IAa9zGME9@Q!`iK4^R`)3-ZH9Xfq{eY`nxyDOE$+cn15hMWIsd=2_$r%inzN=>F( zaQshr-1;|(V*d|u=K^kHwFT_5Rmx=xTZ$wkCz7zbk$bf}uDO)l!j_aMHl>JS6YUm4 zor+XQ7o|c{?w3l5%9bulg`Bn9D3?kJ|2yXVZu9%*cGi0S|9SrBIj6nG=UZdWIo>hG z9CLn`#b>!<)K#XrA_zFuYuFSccA~E;X-QLh<42ja5`G)+%&uCEl%BX_6IV>F*V z9zzglsEuxDJq_7-JWh+kqdMCmDe+jO{6O)@ygS0<9cF%$N3q1^WaPqmWbX>`SO`*h zyeMuQ&ls=%#5Roy^Vs;6okuobhsWy!TplY6Odbo6eIDsr|3LHycnlKdipS#nlH_sp zN1w;9eD-+kL|`Dt#Vz8o1~g>j@y|BRWBQ>Kc~sN(llb`Y&Ipf-D0sp=UL-RX&STe4 zAs$sJXW`LR^*`fEJ&bD~3G-;k0BrHG3y*+DOZw)_f4`VKDkJ+m-ruXt^!>vIj~zVi zqj^*xX7EVn`eW}O0`p-fB{=ip4G5rFtlNBsHf{A*ZyJ|S`HKfdlAjNAwH^KI+YhP( z-h5cUzhyqWkNP1nAErC!g!fb1Ij0pmAC^{c2b4VG<-Ov{KSTBW^|%LYM-dXharf!x zO2outw~pqI%6+$O#r%crr!K;Vk@;{xB`SJrIC^dM{6?u_sps!-{i1xr^o!Gx-FeHY z=l6^2#AB;RxgGm3kB*u3R<_o=wV$hZ<$q1R3y@vC&V2aUkkseH;@|u6e&V}8ydOls zsh-q*ZAo8k@m_+Si&M>I7a^tmTVL5*&xf~1;yp&?5{~z`$q=*5;vrhbW(DwZ$IqhopLBKBR9t-W%^R?OzAkkM~Ym|Gtq%yzl?QjrRtF zQ;zq++XM05R|#(Yi@=zg>o#AdO3b1|IRRKd374 zgH6qi>%ON*28hSbe89z+zPWJ!%5wA?>#JE>?=VNN&A&!SLCgMjFV_z~{K@o#CCIKH zIR4e)XVtNLhr1oSZ&Sp-s%gDLJ-vfMdV2=+I{r19ptIkX! z(%LQI5|16e-#(u#|5Q6wCyMRpd~!^D#J;}Th0n5XzY-Uka$96R`I(uY`Q%P-eN{Kn zhrFhzlV`XO#j7vof2H&+#k2Lg>KB{}Us%IypXvTZy8EZmeJ}HaR2s=ar~T~hvfFopZqF8neO@8y)> z#QPZtjO|AnrR`h!V~h6->4e1ld(_>@$9pSnPk%nSMji0xlNlH$vY&DVRYf4)?{Urv z$9uYSS}O6rk+DYN{d7uW7Eke3-Jwx$;LbzTlI><2~EaYsC8k+z!2!9lf@A z&*c>S}(|OUjbDf4%q@Z}Mu4!-DvOZwx;>Adw%B-E^<(XSaL+&d~jki!i2)_af1!>Izc* zeo8#_twVw5U;h1&pGyIln{m140u^aD=vu{*L$1|M_vM3o+`epFPhTweLuPB`wQqI( zYvtFb@&(AQa^+tyCO*rG_!ket{Ld*eamMC=i~YSxgd(GOOUDn1eF&1dzN77UtO>og z&5UO-208nA_9mj4>vwvmZn>4WW_YOTD|-)Z=h?cdIxuXIcVIA1g7GhJ;BUs$l{UI7 zIfGmSKDLfWXda2|H}7Ih)I%?L4OZ3a>hXQIaw&Lo3gyyGw^+P*F_XP`@l0KnU)06P zkU=k=;+!K73Cmr*rCX-ITP6M7{zY=T6m6Nlq)RdW)Ba5UlX({ZX<9se$?y{COYSYn zfl~YnPrkU1G<-y9)34>kUd8%N?0?q8E+tw{=u*1ng!X5*oRC?j<%FhXn@$*BuIYq( zGbUt~pV0oC{HHlReE)e1N?x2X=VsSmCT%nQWfXGIUnFx#%8JLX8tB@x@mid*o^-~u zryB~pq%h6RsD!a}9<3A7Upb&(P4u%8O?pTC@qg}zkJu>O^!15*`0UlseGusL^lw$4 z7vJr;qPTuw$9Lo!?TY1gxUQJw^@%xnI{wlGhj^iLq<(&h0>j*oDV?~GWLWrqOxCAL zpT8d??-RnETZq}>8Ji?k#A7Q4_}-{%tYxb~V7We#CDmtcMp62v?Z03v8Upj!EM$i- z`a5g=J}Tj4F+6bLs2Lu^}-&TV=XkHa

DGGU-PKFCp4gX%|M*lTb7J@EHCywax;z-wnr8xe$3km)#{$1< zk~wi?_4e{$IFC;7ngw|cL;v)gF~oN3iT#VUp4h8&=EVM}q0xz5P}06`>xr3sziHFV ziNpE!y?i;7@3!xi-$tdI(Dl4LsaAQeiJ@wLth~ka$5P0ld{gu*#bQH$m&N84u-J3V zmT$7P{^jjm{VTsP^)Enn^*j0Iv+jlEo2G_eUls7{;vWV4`uK->?vwXIB@Q6q*Y~S{ zjkTcDHoq>;5ajGR?00CtzAE6?-{`rosaz0!80YZU+4YGU@{RA$Rn>ujKM%%XaKOyE z#{8G~QrR%)4%dc{EysorM*Mjf<1*(zt?pyKAM$5R9J(C4gb7{zd6f3&m)lwVd8%{H z`|2F!&-nFl{P|w|Ig`gz+gH&(%giX=h_ek9pKV>eraUi+L)J~t`B*t54^mF#Vb+QF zat_a1$#Z>gDW~)8l_h0tZpM1L;^e>2On;b#?D~UD3ZUC4DU#Pu^mA?1a~Za3i{|M3 zmZtSDZ|mxB8`9r6px^Pg+qy>lP2SCrR6d=yKHzubmEh#l2N3A|CA#w)Z@2s1wD+~& z)nYp#nooQG&wRQF?>78zwmJ~-zXJfq|F+jL{BK&GvT0GerSs`obi|TRvpxv<-)yaJ z6yG=f??p@=^1mynL&X1%YyW$B0QuK(W>@qeejD?H!M zSQGI3NlGX(O6A)}5b*o{y3=`m?0!GvUG4Yv+2%+k->zF1^7n=6K)~Nm#i8)`uP-tD z{hQB~4a?CT?eFK&0ZYEkUK{fFg;b)bo5c4`e}5Yjhy49|YLY;{z4G4{f3NDC^Zz8@ zGQkgLg1?suKC>73wtpnw9->r~deifV#-Ct;fWOs24*A;(Nty9jqL*u{{qGc-Z>MSf zt#5SwZO6x^{>{j)e#hT_?Npe*wKwMX%)tC!YgNGCDl5V9x3dxOw~D&cS#;Vqzt>_2 zGQY25zd`$3W?+8*OV97^qw{-5yxGXF&DDW`zdZp^93)=T@VCb|D;v(e&9&ici>>~a zwmRf*&9%D9eBbo9W|%nSZ`-ID#NTE~-pMVw>IRFyEp*QLR-L2rYiVjz%2wX~Bk$tK zF#Dx_X}HNmi*pc@q#X;F1|%&+|i__kYQZ-!whvT{Yvk=hRHjY|4qlYvPG@ z@x-g}#HRUA8S}H6%CUdeN}c~QU4L2dk?Ak9kX?Uq=Kpq^lr6jTbZyyl5w@&j=oi-# zzG+(j;_F@gZA1DS2lTu7uR~$}SonT%;@RZ^hm0%1+0T0z0f(F~i8mhG(!=hM&o0ys zS?@E~A%m}Jcv?FouW1O~-?naL$R8J~0|9?Ll}Z+WTy>G*kLT;&l%qFJ{-gc;5ht9H zd-GHFijY5w|49DZ81~1vF>z$quq9Ol3v5<9C7WHR|J`_ky1M%J^a&#!Z^Q-pA6}_m z32_*t_)f9>0zR1Qx>|IDJl4qLdfx|(B#_7YA&30tO8N|eD&5^N*La&TKZH16Mkls=Oy~;9Ot00RhK(RWfuu_DnasI!JV9IcFANF`gW)!aHb#*b`_9hq$yZ;FrieBUT!v6P^-cL4Y zy&9wTFE?*&Bz2ssV~Jd66m92t8aBX_Td6LW?o;&)_NB= zbM>xVYwBHq?CO<#$NN1#Yx95OU#Bh&_}AfgMR5Gv zO7i|y%dz`dhTv`emUj-WRMB4YKg}&ZR%VIzu}dW5<(91PoMU7SsXxRI7bra=C0m?G z&$*4{CD%bpXO8`-bmEgy*uHfnpUuG<;tyOB^sg`Mp!NfC*ENQp4Um~49y@T0i}TOd zQF(xL5qO_RM@QeKqR(}nNm}2vC=kC@{uO$k#{j8!b2B=5ez0V<=?C+WT|aRAYyF3+ zL%qBX^^*>n{#91%ZRF|g8PeM}px5!Qds-FdUxnWfG5?)_SIts_Q-3{yfLFEBo!xb_ z-K*x$*Iw0PgX>kn4c$h1x>GltKMZ7lzaS5vHR~^RATZyZjROI*3$GJ#jZb%$OB#>I zs?!}k-(5lnEcO1_B}%`4ePJ!WhPuY9eBaR57rto{slRTf4q>*t#B+qsct>V#x$5#O z10;|1oU?J0iOq}UpQ#+PsXwl6QjfCFk5Zj)=B+gS;VERt9~jQD^=desI~)7JH^0W1 z=HZ};nKz1;`s>aAxj(;sQGn-WB{)3SAkgA0-C|i&^V@Ma?Lb0Wg8rcLaE*>+W>wXyaL&rX}moVb>}Zp7pi8eV(&%AA{#$3QYhk4ZJLb?qtg} z7?0(2aCtuVvX$p9#zp-5@mW=?yM*tXJpa`w!gC3Qg2D40dTZfXDavyht^m)i4PBn6 zFEe@m@qUo!BBm0C^Uh5M&n5F*p8s5zBF~0z1$fp`f)k$?B4EIdy2Wf-wDD|6)50^4 z{ftz2W@&r-Jh$LJ2G19%KjE1;?oW1fXT3~2@z~<_F3kc_YO0XL@VlSs}`^09Sx#QIzWVyy88RXANXOK8xz%{M^pqxo57+vv$iAc@9_* z;Mr3N4$qqqFyLG!91J*z7HvES(6sPOWBVZ$p40FaWBx3n4g~V;7u0+3tZ>ZWnW4M0 zyRFOfmpN9RE#3^p=NPT-F{Uq*=ftZbJj+wh81b1Qxhgt;mW%SNC{-%=FQZiR?Dww8 z^JZk9XGfV`N@0MAKEaCkm~0M7#}REv3S>^x`8);#O8 zdzA{$b$E-xvz|H-;CU)R0?*8&2G2gaJLTw(u7}Q}1D5$S`;8FKg)lFSBbrc3o?O=k+hTJRfhGBF~Ml z1$eGhg2VG|1b8;mEvC_;Ej~BCpm}Dof07E%LwJk9vyVCu;CVTPD*%T7W$=7MrlWYQ zWhq!#gZIOGJ5&pc!~hN2%ud;Ubgg z5@es}Ub@3@hW*>%dEfIc&*hC%Psz*2@8&m6hP| zJR1R?UoTY#%%Vjb&ssDs^XIzvQsdcC+uP^47WXlDK0)CM&#!+sc;2YHGxr9U=W8>q zJkylAKt0r4t82>lO`aEC9^tu-qQKz!CB03K=XR+Nx$m{E%d^H?CeQN7KF{egyYl|W z>kXdUX1F{nHB6Cbx0eDu+bY4~*$e@m?R1ONXwk;A8%+z(Lu>~``N&A=_B8pKvJs?536S&)}24-uL$J(`XK^MNzKvZrcSW*T%>`*P}Aa z#$(4?8eES*!`NoYzCz2ZWveKe=ilc9c#cwn!*ehKJm=|_*3puUXD&?&&uXl=Q{lM? zZ!vgQRR;p|=K+ig&szM1L4fBux;sVbj;@E!k}*H1wrO}1sb|luxk|sk{+zAV-S$S9 z=M$GkcwRw0V(^UN9af$d3gcOy=HS@?<(lWH*G-;-kbRyV7Au~YwlH|sdD`VU^vWc8 zE_*S+bAb{Zo-ZQ6^O(%%@z|l}cAm@rqj`2@#hnVzU3iPZvx7Pi;CUg1D?GdLs{{d_ zgLHQq&>hY58aiO%Ic;``=N1^DZu0yv&o#9oJo{0P7(8#sJFGm*6~;4*=HS^E<(lV$ z*G!(XkbR!7E>u?T(ahl4^C_3-+*p!43!V?~+@S=A=NAa@?4(<&MoYH%EO=7$9LtJ3 z6`p0az5V%f4DMshpEpss0w9<7?+18(Amv3o*0-t4^Da7I;koXG5YHl7-Ktl^JP-UU z!t*JL0)yw1^w!F=bYVQF;S%tij&jX&$15h!&B#8_Q}nRnO$?rsrn@}1)=!dW#aRKK zrIg_CJQV?+^JPAd$2!uIjb}xglzh90?SNExw$S$Wc`n3#44#irxWaQ;;AQ%Br;_f@ z^u{jFXQx?t9-{Zezn^dGX?4H89Oijp%?QsADGCgpAJAJX&k}|4TqkuRb?(J3&r&oT zybgGLUXW*3rgf~m;#z~}%Be2TqVr6V`<68vlUGW&s}T> zq{1^>+uP^4^SKbuw<%oVS>U|<-l>Nkkg_5kTi?j#`Nmd8_xtM94VeM;Z@Z3Me<=LQa zk~~K|8{j!e2@cQR2=J5wf|eH1l8xsGniQU8S#d{s7Jj{K4&GwSpJmj6!2J0Wg)2O3 z=4${B&(Ec-;Cbe2_@nNx|9i5PXU7?#_?)WMy}|cQp3SO9c-Ei}fv11H>>|7)x%Emd znt|iqYA(n7=Fro?_4$6tKF3meI2SRTzy`OW2YAj>g2VF(1b8l? zfWUyeuD0`>KS}d!!HPQ-o_TnS!LzwK5a4+>K?2VQ&Ff_s>+V#iJDTSubiguyj(sM? zb1jTecUGhxy1Z(H=grh12G7oThqqSApqS>T-kVm*FV3gXeN5eG2AcZ;rb>XVy-U=k})pJU1)B;kgC@p5=6lWogkCpW7eTJhNGGr@}K$ z+uP5#LvSBs{%l6!3V_$l>t*ApXD~pgD_x#l>41gjqW^?=9)uC!5AVn>;^6_Ia+ADv9f#R~S6U=ej&Uy(C4R#h(oDJU(3n zhvxwV$+x=27PM&NS)8UN-_BuwAj-4w{e=43-agOSxR1eeFoi1s=9|~cK9{nB>z^@~ z=VOmqdG2CdMmw4?R&i!gC2lfiZu+LvO9~XQAtrMN%iS{zSRvdi*()>waXP z>zR63Z!|EtE||#J)PBO@nn})|4W|Wo)=`4P^Fjo8E~J3KfZ4QUK7-;bHEb;o;{V| z@Vp5Dp2y~@mgdlsjpqQG6rO3UxT8D^uZO1LEyny=L>&mspI=b8!n4AU2G2pdJG(D; zdHyoq%Cp7PP<)Qj>OP?yF?k+1FT%4t^@x#gGbC3L zo^vLJcVA14!tQzp+P$Ue`xG7hePUTW~X zZ;Z=x`GqO+JenKexnBtm&z}(Bd06VRc&t7x+ISv)MDv`+iaQma)wI3+`Ex4nW6Ynu zDO>^Y%C`p3+jVz_)^>S5NCzxD^BxcJETh$Z@}Drz8#5w2=TQ_GJYS->$?=>o^&$HR zi~7-r)OY zzP+_63DiTU%a~L>)VflNJafkfc#cwn!*ehKJTKQRuDjUIGk2usS&bEU zlxN}V&qa8P!LzD55STv?U{rWs^`*gcwv>zUSW&v8>!GvgfF<8%J*xEk`|-22x{FA6 zCeMlK5uR62kHFKvo*lzGqCCeO;g0|O)Ac4%==~J+X->GJTyq^Y+2lG1+2@)g&Aw77SZZXP+pom-zy&B`4mNg!ShLaYvI|xaGuj}33zr#x#qbe*W|ew+2=W0s^EAm zUe(|^>3)~z*78a6toTTPXDKB(JWoY{=S8}uj%w`ilRA<2c%oeMEcKYl^Z3Ld&o873=K5z9gXhX&F3+M|1W4-sp;n^9%kz_=R-VY*{2h4VZlbt1o$dWOrh@dT4+9b`W~FVe%> zSJ~jXKilQmplp&nM?4hZIY}`B=6N+H552FU26YHL1J^(C zjwnyt^MbW#29CQ=cRAiS-sIR1+2=Sys^56*B8C&FZ)?by^!3lPQ><_2j|lLbr38oP z6A19Epj+Hk${&*thtfalo+2|T-eV(^?eMH!$v-O=^XC3L_t ze~uj);<*+^sC$s_oALR@X%U_`Q->HlJL4S|o|fkwy3q_gN1{~c*?Bo8&!>=mo?l4S z%k|HS2G5)Cb$QNAPm$;L2Le1dE5YHp1_7Rr>K4n=qAfnR-=leEv*J#LXPUORpKpiY zKF0jnjKUQF6E+w;k4#bq=yaaTvnw62@Lcp@i045Vq3$)lZ}L2~XoTl@iUNb@IC^X0 zY1xm@r5Sj>p62r0Hpb-nA+pc2i5||la}A#32e~{yEtw+E;==4yf-TXc7FD!4o!8))UZi*XtC zP*tt&+sDH^FE0||xrCy?;Q0={weYm;$1jumkoyx(b$Ooth{^Mhhl4z4&>gJ%&N&9p zC3m|#|0$j#&xZE}c-B#Z!}CG}cs9{3X49gLXG5A6o_TBsq{1^x+uP^41@|#{zDVH; z&%}Cz=UYX@Mf>{N+w7&lbZ%@i|7T`)h2N z=iC28c$TLgF?eQ3u8P#R%`Nk1MVf(Uca&K+!Kbo@TyRX>7LA_ZDZWXC4x3VS+m} z9x46L7$&nA*Z<4-G&%F~)rswQV7hDcmR<09iLrcL=0T6k<`HNJ?C-2Z_PKmR*^K^& z&>!G3N|dYj8?R?qFsb!p@xeZi6ZZyq97JFspGo@Wc}W^l;T7Uhf)*vb=CWW;iAQ~H zKjHDp(Fl(iMT&(-l|%^~-OA&T8b|Q=zo=W`agFMKMln5%HfM)5!?%}f+AAJzukxjm*p~W<0<1vyJ zg-1DdS5o3JN83+$RQNl><0Xm=3y(^Pk)$yzk1X7Wc=O|9Hb~*|noJ+@jMvql*oyQp zk7a%BJhG&2rtbgC<*{J6$zv9>&tsRY3gWRI=nuq4Pf@Pl|DBd3kAi_dk01E#@z{dE zK#J;tRHq>ukG)x%M-B_tlz5cY_7ffxjzoB5P^DOSR7mV4tgJlp28DQ(p>T!Ad7~7M zYt^6FrKQ3=YB2y?zRJTR;Ia2lmq+FMO&+C?eIB>#w7#jN!DDkDmq)oGN%H7+x6h*; zpFJMU5#aHpOlR@fbQ-ep=uV3gABS0Rro>~cwx94g@<)WnII0W_k8+9b%xYF1EtFpc z;$sX*;qjQBKQ^mBvFA#JdCcf-=g~syR_1m3rt{ULVJ44J$Ucw%>U?-D`UCONSd^>y z$T=lR9vkoSd932I$73M^JgVw}6r~{>k57AP9(~!JNQuWGllxc>yF89(n>_X-`#kQ@ zY5k3}3?2(^b9o#-emuGPyy2ZbkIVS%@u-TxK;BT}i4CP88;?e`DDknC-G!8RWNG_J ze0+Tcz|?s`D+*rWc$9y&A3V?<9ok7|4!9*yXm zj*me@OddUveI9#sK0F`&f%vE_%2j;yJ(eVo`FHp{p69d2V=4kX8tH-TE@tQPdJoN` zB@6JBc;qQR(Dm-Y2#+r*6D&N6C0-{jS$RzBABvAHAce=blJ=>0Wj3b%IU~%Ypu3&N zG$|aZcMrHccHC?7*o^G+xI?G)IQj!TCW&&zW9!i*c~tD@^GN5j$D;@W1Nm5uC)SCE zZ1GWv79~Cwvo1)9M+Bk*54A5FgDcWZ}_N^C+T+(c|+=}RXOG7a1b94r zpK`4AG-TuPI4uf~>Z}V=;;~5ifr^jPj5&0{;T_6^5RXIYU7J=)JWg7&^2okD6dwyg z3XgjRN&hq6li4^P+f+2nW8@)ARYP zyG$OFkbNGbbUti@{y==R73C^ErvIKKkL|blJU-*I$73x5Jg(CNDMv##9^ZA=JchC^ zNQp<9wx96m^-F}uX%r?F9;FlC5mr_n>w1OaqX>m8JXYPQc#ImXc$|Mqm`6nhV2h7+ zQaJMbcfQM`lqd?s$MOC_9%(wQuQ*XM$YW(Emq$@vX`a;nRjZypk0yNfc+^9H$9Gaz z@Vpoe*?6?3MTw8ytP4`&k*)0~JU&lEcnqUVu<$66Xw9r<(8M-z+;vu zS3GwAmL!i_-FzMw@Y&;01_2(W^+5X4kS#uH)1t)3de#Lg@#v`SC-HIb&k-J-DNI5< z^nQD7W;H91vdXUl@zH@o79InoEQ)8`sQ$zT9u4yt(B96YEMJGm*4-|To_$RoZIOK* zPwISF68!-lr9`>n(dpMDdCa)g=P{Yj9*;2y4CG~1pTxHQZRatwo#xSibwNrz)+s+w z@$tg02#*ga6I>qPKA2v*X_dqaq$JJaKmPB9$^O4M#MrK(_*e^4c$}r{s~^?09{c{U zFpuqR?L5Zvb$Aq|Z#rLX?ql*;iR|-m^5H}15AYZz$`z0G`;z2Qyo=A{#4Q0H2NB?L zogPR_8nVSl30f3$%w=7W5|8@Yei9$0cSd-`C`>{;DkMsi;tJ()NR1;9AN43?;qjo9 zMe&SL>QAiAkuZ-|ZR|V_N#V%)<0qF#+AnvhmpaZ_OizbwNrz%4+)wkKcAgcw|tR zSa_69>?N$MJn}k+c$A@#g-2H@i{cqG)t}gI_YofBC=)_FWIivE=+3NW<+l%*jmu-uttOA2$Ucwh*oS4>`REVCM`cm2;-l~GBzeql z>+^V?&mNDd2=I7G%Di}N_pf#yuea1ZTCy%kiASFD0~H^`zmD+uk}|={<8{)KmB+Mp zq4?MWQg}QjZXM6qA=MGrKlX=t6tuAOm?niI_ep-`^4M{U$zwCJ&m&i-kvRGTJSK^9 z#bfKvBzaV9zwJvhaALm*O!@{fYJ17v|Bext&KEUx!C+`lj<$+nY@ujgfsGrF9xP zw%6csyqU|RN0&&$w|jmP7(C_JjOHb{xbBIO4vKI(oM z;qeY-f`!LbiN{GxRvy`{L-DZ?r10pa`kzr#4`Wk7n8(JZb{^S$9UjxSx;$2PGI=aO z_IW(3)5t*d2jXLpC|B{Z_=hBU9KF%!@hhJ_9y<}>F-d49N6(+{R~*M+XE3 zQb!MDE)Cgu+)axTA4S>zNQuWZZ9n0$^ot0OCn*ywJmmS^#GPcOD36ZHuLAjMDoEim zS<2LS#vSTU?2Sa2$NX#UJUa4qcvPZqI$zDY$>cE!+2=7`$6p)t2jZixC|B_@{ktT2 zY`@;;@fn{z9%~U8$j9B3W0j*J8;|cAX&ysa7o@}^P1{d+)cicc<1`8r3lDkzHt`LS z73Hz+hERMIp^$~g2|b?|(Ze|ZzhNE~8GtQ5)=A;Wee$2VJW91Uc^q#S&2s?D43F0FRs1cw#v;WaH7A79~D*vo1)9N4B<~@OXN2gvT(- z1Pc#&el~F<6I+x=edSky_!t6Gc-$jpYCL1I`V)))9OjXGjh#n*z7CInHn}`TwKaJR zLiXe1DII^8qCXHHbws&}kD=cr$zxdypU0bg_IS)jU?BUtsQ5U%+sn(P>+fJZ3cY zc}(WB$72ivJkHbu+4_^6$IL43(OOnTkYkeN~@Y#!xJ_rot7Cn%~G-Ts3k`{$WIkrDi;xR|tPk2<> z5aIC>WrBrAvBXHyl9fjm?qgp604Y4Wc2GQ~s6Vk4--mfDt7qqt#n<7H^O4JA!SyDO zS;#(*%XIwpKz|@UdWv!tA9KG*l1D*9pT`e;_IPYTfX8oAcJq75G-Ttk_j1i6hebh3 zJj!bO36IhrMtEdUm{@u2C9JGG@*0JBl%bG?$09LfJmX(_7?*w*=243Q*y`OpDID2P z{J`Z=`8tzFDP*6=JKAkGZ8vyquIutB_j!^$x?SV*Xvb%dM{@)Q@`RM#JpVyMHXhw+ zQR3q;i-MGRjMes2@v$z#V;p6Ig-7W`cV;y!j~2?W0{LnTNa699r2TltC#)72#&h3> zdCa)X&Z7lim-txg@|e`Z6R&kKZX1G>=Br6T=IR3-ip0A0`HpU9B*dw*pKY<*r46^jjs(J3odne z9R4&(9u2Sbd0fV4k4IGmcudm`4W%I)k4Cg8@v)UfK}tNbwEZML5^EyyaXV##$D{uT z$N5zQ_aWQWiL02|G?dBy{#7;QSAqEGL#+vq9ZeOFPj!4e^i`P0h}w1@)%ZF*TGKZ@ zpAQm6fqJ(mvd^QN)_*?w1MyK=l&kpYyD>=~^J6}b=lSgMn2G?88oHs~+w44Eucdjk zWL=OFk38iEDn7cbj_~-BGQs0%dk7-gk@_waNE{`3JO&*((eIEPUDE)Et2Y5^p<%-AFkCWt4v4PJcozEVRA_(wU zsvGJ=L$>&+M2iw1i&+<>#G{3_pTx(8l@T7-QJ8ov|iopHa?Gx3A;aYXNlm1)i`bF1|ibIQxXqRzqj&cRbf8jI7eA4&cX(Dw4R_1vXvgO!NsD@Y0!Qf(PenZB?%JpC>4I%QMP&{jZxI(*G(L z3Z{Akso*H=Aqrg&?5MxeivEzV)UVCvbBnd#jh$FZ9Qgqb=5sfX|J4oZUxqEt-@{SR zUG<&??;@sp!TX|&Dz{{7&I#dtLY*DK)z-5YLDwx77!wf*F33@t6_2-j+T z{d|2@9etw%`h--$0^r`o!Gag~&|5zIH~oTB{Cr)-$k!Ff*FV-4-#axu=NuFeqUkxa z)Q7a8SK|^7Ixev<@ipBNN0>sfEs48=k+?hKNhIznDsczuJq^Xr*H!BXzhN&)t||?I zsqaQ|RXXW)+-k`&BZa){8eP;k({p&j)K5GuoP#`H;3l5ZnBkPfS!z^8(kK5RflRmm zsuj*T*oDfVh*~MfuG!?8zjReS&R1Bf=a)q<=Xp`kQFq_Zza1{s{>a9I%D*zEl}jRH zYDj^h$MlMLr%sW&r@iPHug*DJI@yWO!eUZQ5XgZRs@FnRGNt^@=L(@84(n9&!~FiN zW!w@U%>wLlfU_sgMB?uQBTk56r|aiZV>!1vB`h^6Y!e2YJ6yK@B9BilWn~> zy`)#54y2D8OUJ!~OTa`c$L{y@xtW}=bG{|@QT{){;ns5g&t9Xxm!8uL151E> zRJ1ziPDvDTdOzs_bcjbBs3F54aQkz>Rh$^%eEm;3=z7(jnmU(Ah3XxA`(ot;M|fb^ zb+vv|@Y0=X1s_}ck?W-!Drv*?VhbUk``C;;T3ip)&s%3XZN0#WjD5u0wz2l|_c%o0;3Fy3S4+?|a$lTXIqUUf0v)JHs!EWQ4)N7K=fO7@XvF z;Rf8Ba9ekopAGV-F>ddK8d4zVX0)S!I%^H))ZpT-H?p6#YN<7StjdQ**1E7FL+=z+ zJ6hQ?eOxxZ%m0-jV1t4;BhlBNdVuIF?|H@@m`oCOJ{xm>Cm+FI>EvrDpp*12eOylz z%fRXo;ye$3BC+p1SyrCn$D^~jj0B_S*0rkpyf5Ihx85&<0O3)x?ZEG4e_&tl*FI0V zPhvflcuMR2j>-_=e!iK%!@b8G0w}cC>C5@HmIT;q&@#W z(fRk%^6zfOEvNoHeZu2nQdW^vlOtJgta#IOrSC}<%9ZlDzstz0WuJmXYO9<+HwfZTk_M!${~L`ORIa| zQ5W^6Gheaz({zdfCNRlQ`7i5#H~eX+`uB)GJx3Y}`qQ;!OS?a1Tp_q<)0KNVho%&#c+*6+K0 zp3h$WF%x+4Uvhcwua1U5y|Dw?uQwjh`kzC8px&4z%6YQ;L}E7+T~hA{sdb)j{|or+ z*}n_|1G!Z<)R%@-5Q{4XTC7crV*mA2=~4Ti(um|05mXuxVc%Ht&Q zuul1biifM_M0k9_-0#Ih|1T}^Fzwt>JZu3W_WxF1Xg|4r<2V3s)g1NNUJ%2hmUeLYG0S3JkJe>$H%`xilAATR2MI?<3V z9xBnI#KU5i}g|?sMqoprK?0+4_k7xfbt1b2~tNdoDpN~3Fdt(2t7c2Y!a=Eh4 zz<0y;A5g+>|FV2t{GYx!{$Itke_LeV{`YD9CD9+Se<@L}?B8jAlJ=jG;oE;QpFR7J zLBRfPbwgX1*zG^Fxa0pUp`-RcNj_SqxU2Q(RWC&B{{h8S;de<#di`&pRGl8?snb$HBt-sQ2mvdLp5vd<%3>wgIS z0Uo17xyncDUrmxn@p3+o6J-ND4kEx~uk4g?|0@mI;-LgBN<7SExt|h``r3X?h=*5Z zMR>$0Ts$666Wg>QTiI`r#q2x|sc{76hkDe~@VG{%S$@?`52MZEFppMe+Ibw3>XrAO z(>EO-jn6lE)Is)nyu}s`X4<#N;IY4$%cB8TGm@IGN0jk-+{0%tKKdXqkVkYwi)qNl zVZNSlg?h`+PYXea{eRN?GoPqG zu}urZ_TP90CbHB^*?b-Q-%Vef`nRHK{{_gt{kv)X1JNIdhe4uT<)_8`T0>IyKU&(i z|F3-Z?7tHM`~OQf)PRO;_W$Q}ZU5;M_9@xFnzo@a&&>*<$}gXNT-x zkIEVQ_pYt{e~9`MYx8#4{;lY+&Hjg^@Z^5LPt*GMy=B;c|7ouM z8@y!L-@2cnx5XYz7o!&$-C5jtAOc2TtBUT}Dzq!3%LQ_MH-y@XdX#45>&_)mL zgh{?|cfw@vDp5hTkT!ajw?{Qk8?S@6dy}CK3>)kn*bM-zS@{8D(RqpP*Pm~?3$9~D z8L(_tN7f@9m0t~g&TDh3);NV}76(^OTk!f6_o7TlWPR>SqG$P_-gttb3WEahzV>KnfU{tJAsi^EHQ9lzyzP9`a$!!St?NtMA&Wda?AH zYZLFiYpz)*k||UU&Y#LkB>jSi>4|@RWSJDG)OAn0esg*S({KJbC+Ih)%dQx|f3(2x znYgYRmBxygf-$Wug&buP3z7^G?-DDSdu@(TBk?BACunUsRLAmFGF=o6e_$%9~tzBKz^2tIGP=`REVi)5@Y; z)fatVG~)Rr>;K|DkLUU9@tBIhK(cj1yI;5Sc%A#g#7-^Qwu$D`lkmt>exP_%c`Cx= zOJ;qKM=>1S0kiz5hN{Ywpstk|qn;+&;aEhJBG$~}cU;Rm!$BuF) zkIl$Fk9t~v9Q^?vlSH}VvGsX_$4T<*d1nRkYe@tkoT;_nhIU(iy_jYM!YZoaXnuVw zoL`roDJ=x^>-E}retvyNc|{<<=1@ms&5d1*{5n|nq~fvvyyoWD=T00iB)=YFB*dSe zU+Za&btw~U`L(|8fuCQC=<{!MdJxU8-%PXQ*T<?JlgTu;(kUl* z?xRk?9j@`R;xK4aQLfhe?XQ{saTTGi^B%Dl&U*uB7OvfCL~~tI(&Rc1+2^`OcCq5I z+vgfw`~AfjpOU=y`qQ+XN~2Nzo}_*$ ztL-oG)+-({a0X?O7jLgT=hrWL2~!)_AM0 z)CGRubcj}WFVnhLzo>Y-DL3K{r&AUg@pc-y$BVaD@cdvt-aw`(G~SL%t;f3mF_-K0 zXPI2DK=!%LmtC=V?DrQ8u7B`r0y^FrJ(*&>jW|)9I!<3Nyob+Ty!Al{GG6>|i?=Mk4wp{!&8h#2nOtTe`&=&3`g@>1Fu(N_-q--HN{49XafM@_EZx;*w0 zrdA$#$7LLWdZP@ru;f1}6XF@y%I+fd->fi?S`5I(BM*;|{P(EKqw*Ohk5b4!kB?;c zjQa06gU9BBE{}5Tr384KWc}9lAA#WPkF`Od_fKi<&!b&I2krh6V$B6|ikLhKagzM{_aA}$x(@*e zA874O&~D4GXV8p5c%F@~B=YOis)b;Ft)Y$Q=hr8dR|N8FU&>ajIjfhEUoX}Dy8l0J zetl>!1GeVZygwBme}Alu)>xXd!Iodk>K^#{btf)C4=Oo5i00S#9=7DyyQw&g{5pW4 zhVp9{4xJ>w-We)i&m@x+o?jc%P5h=dozZpD_!Af>aG%wE$iCm4u9iQs*i(kzT)~a` zI=_y5EXDk~?64otZ}QoT=h+Cj((1CxQ4c?9kLTsTXjkgQf;pvl-i1>+`L*uoNId^c z1>nW=E6@A!yqq*(jpsSPhvIoBB;o(#Y103Uzhw6@9y>NY9M4C2k-sgT=kRs7OdsWP z*?-LBvIE)YGC}Kq4*h|6o+ZjvJnx=h#B<^Kwbmh@#|3=$c$7h4ARTo>eQC&+Uu)B% zg!X#s{FHcf)b?w_`u&B6B0M@%2YEayEb)2NCKjwb$|}DK)UO>VOySX9%7=Kyn(dkix$4T<*vj+nC zHI6{?@=ojtt(8Kxk#GYTX52|?a^Xozoqw%dG_WZg?ogcWqJ4T%itu!vh{MzkTKc3t1*^B4q2)NQWrBonHr$Jjhcc*1>rNb2IDaG?xoXW|s zpFa?Z=W$d3UOa#OkZMEjS2{)((BT}uf2_rCN}qpycMK%)mxoVL@mxj^ev5}f_f3lSK}8M>uxT2eql*CQIzqy&iUmqdXSzCW6!?dR{0 zZc&aA*dKk7+7yE(t}#;VaJ62GEq)y9s1*A?zZ_t>9#K}Q3+#_}(CXS#HhA@`+8@3A zzKA>QVHU?7{Ob`v(_480Q(cd!nQQvTD}=gEfXAZOBevsNlK+OeTx->b57+wvF^nbV5ky zQ%^@{)z1P~^?4%AyKQL%UL-UP1GAZ{r?GR+N~Onps_%|xO+aUmJ2jx|)vZ>+{uMBG>0dAY#p`qps%l)X`cdCk zuuo&PG>u*TnCp5?egF%ua>Bpg$Q$A`M=y`f_-_-~%*p6&+|GCDf_eIRNOwr{rGU)M zXgS37mp=}g{;~(z@fY{mxVUWX#$zu`bUQY02OVoq$Ncw&baeD$MxF0xh4fAe=*8rx z6wFJ!$;6bx^M(3;ykGt+ZkDF+$NL@u%bl+~co`j3o>dh6>P1XCg#Tm;5x1Dk;v(u< zM*^Ouyk~-Hp=jWKyze2GSFI zy|yl)^1WZL710`3@xwn}J_+nMrs*E|>)|bwg7lz-(}PgG=Dr6fu~D^?o-q~ znf_Y?+0S?9o~{V|Jl@E6dw83F{x8SKceO`Y^IhTf#ekm!S+1uNocZh~1blJ1T9C%( z(4sBN4WMbUaT@y>(fO=__C@so*~6H?&vVmoO6om-J}aUQ1m?3ZpoRk!4+KBmxm0&& z_c+%DfBBZNKN!hVE%qq={`K`ST3wT01OBJxv%&X7=Ckq?9n5D{#XrRL6B&4!cfBuj zAT4tHE-d}=RFlFtH={brbiNq0-{ja6+2=S`Eh}T^GmJoeSXsuxlTIfReIH1&9+|%@ zz;Bik9DYwAV6d2OX;+S&-~4YhzZR@YQsI|}cNqMds{;XkXH)FLuT>i(h0K#}U+!n3 zJ6M+`-z9Xw!f)*E5WlrBLEY$mVSaB9jPSde8pq(*8E^3T)f{5smnDTV`=Kb){1)sr z`OQN1`5k82$uN41HTd=X+T}O*euJO2-f;5&PXf@n-t;{J%wE&lFGIVEIZ1wj`?3H0 zN;8|xS~QyfUx?&?)k1K+US1p5U$2kDSIqoRnToY1wKCw9(fzt(j0TLvf&33cdQigYK`8%I;k-A%lIputVn9CAi`;GuRRsCIlhiXgbh7pO zG{*FjO4UvM_-;XWq|TsG?H`kVG5uo{vhN>7WjCGm-y?>9G~R~l<`UmI!;bVB`eqyc zQP+4G6fZZG*PK+rrB6w`_PzK=QC&Yihk$=

br=ucI9QIE@qElmFfH4k1_n?I&~o6ALXd1q1pBZ!$0ckeqBtz zbWbj&CwBiByCdWuYaxfm(f_sk$2xU>z(1zy^FO`b>K|U6maE&ja;0OQ#DiKS3 z+{{-`JBPfwv~*&eb4WU)vRZ}25DrO&D)&EE;lpnJFHf3$&Hww#`yqMWq=LA0dd>9+ zt*e(#OqPl8C}pF!kn8cC^5UNTTrYm*XVZ(HM)tktwq4KFV#(!qe+$eq{a_aP~Uy7U3)0o8QQgze7+I38Q^ph0HkXDG)}Pb7-o zW8{~@*9Wb>@p&}iv&W+z0t5L#H4jN^YPd&M6J^T^$7=TTqkW_}-!zUh2FYNyF#5V9XB zk7@mvqCeoRbws)1F_bk$;Qpk-c`Wh8?Fk6x+u*J~RYb9DWjrql)YgPUu02bchGcxAK#wSGRgSHvB*F|Fec^}OA^ zFX^qfAN)1`LEDl)ul>&5Y22fvg90iJ6p z4&hmh2T%lnvnBVsY>)Fklc6rpZ$Gy3tgqAscn;C(E@T=pdEVGF!t?YkA)cq<9UjkD z*!XgI4kXK}P|pwZOrtq??(O07Z2P^*voW&IbI)NltYg^*&*K|ho-O+)$uoD0pD#!A z*~^zh5WqQ8H?*FHZ1dOSv?w^Mv%3++d6N5`7vU{VJ#nOa#Gvmm%X|5_%!J@+bbJC!eo}`RkQgzJi602J%6p-Zt_@w z?DOcS^$$dUAYTp=&T$D_-1lgAN4Gs0un7a<;1se0k@g-ko~jJ{kQAS|yP9OluG0oZu# zlERhiUR_-tb-p!uR7UoB{LVHy`oF)|;IZQamq+#6HII|MPx#)?l=+7?MA3RDf9y*< z=vcU(EQ}+s5nikphx#?b!Try5${y+Cb}_wq%ZZf=c6yFnxAG1?qs|PxDg0@Dmik!? z@O*r07>~Sdcr1mBe%o+cW(r9+?u&(A-7F;1C!HyCC87EZGG3KFS$@6RYqgs0UruE? zE4O4{-H800f~+9qdl#w}(kI-g&T!wPoBN1zIGL=bkV4hvD_Ixkmb}o~&+W|Tx}Q9N zZ1nR~)z4A4OIyEhQhglV#cO@6W2&mUf9ty_BLw^Rh|-)s;Z^Cc_om-vT;>#O(7)eE zIr%rLjVm>vDKvsB{>hFvgm(_IN7QTUbVN00gC)N>-}bt63jQIN`ml?CupuQYZvM93 zMo0bAT75^<2Qot^v=+P)_`UEnz9;$r7T3Sqer5W1V`SgI8)&V^1{zwAuf@OHVOOt@ z-8K9iCO!Y)f9NrNyq+0_+?Ia}Ur3bgBLQ)Wv;I8Eer(rI1&wn(t_=cX+$wwd@!0e9 zMkOU#i3hI7-9fj6>It?EbW#f5|6fdpjCxb7;&No8v=F==H(re*u-_*BVeH4Q2R=h8 z?mTVnO#Y2@zrMPg?x}45{Td8py+5_S(ipt|Uu$fD3UB@o?8j#79{BsQ&Gq>cc@#p< z5AC;k`za08_tJBwDK9N~xU*#w?phH#0H@otDcub&IXIVL>K1>k9wEm z(wqF~h5M|x{PG2R9X#_rvzM8>8xi)pAR!_0WTLAskxki)LEq;I3K@>tui+w|yI{Y>DK9+1MbI z4<^eYBOg4(kwWsp0m%u8MqLyNnI69&GwD>oTF{GgM_nQdkH(;{Igei#nhzRs9)4Jf zap-(7{&Uk0??d+UL36de6pP(q_~8}H-Fz^zn>8Pt#2?@PK)l7dUibzA{`jX{Ylz2A z^mF`CU<9rgezZ*c<83S~qW&0pzepF=LhyRf9z2v};QM1|bs*r6)u|dW-vDm+5BTG4 zx?fk)FYS-l(i8jqH0?vxgnzwo3r>N?n^0l%$2@g@V84I1K0lxP|K{wsJZ;ro*`RYmjYI*Db&R?PX*&bP^XAiYgHB<@C{cLw2;6?Y6 z&hVo5Xj5f1Nh*Pzsz+#Cvf8;UhoW9o*!%G3<4m~D{oXwPtU8dMvk>i2+1N%?G45r1 ziZVtLLSOKhkrC2CK(G(8tI21@^SC zLw`x1@z^6-uGc=g6rDUSF7<=Tv{+#mHWPhUi$3>YWv%ZyN1q%nSYY0-c2sJ`+>EWQ zT|c<~Q_~NwKz97VP3!NHJ?PMHecTTH@h%;@7eDatSDT~tj`Z~I-)QRHf$Zv4$$ehp z#LePFEiLcEFMR*G;TjpYu17B8vsaH)MZkEU$z=)N|3zPI^++RnE>5(S<#%5gd;<9&q>}$pVa@;Q{9yjq=jS`mGh6cijkf$xfrR6<_d>W9eiF|A9J1yA zUIUa_rM4JGQq!qlcAJCyBE{(zezH5$^^==7n0|6SvhOGBeiC<#opzhyC#NsQY}ZKM zZ{5*aFBBfHxhn!$f0PoO{p`UA_|BcW#dSUHSwDA?_MK|%PecQ@@cY#l;Y8$p|N2B# zbs(^xeE`z~_$uy~54g;?YX2-&lXC1%KGv()EXa>rH>S z8QGnORoxKJxI}lTwAZ2X(jjwxU-!P!JKfV;Dx~-LI$y6dzhBTU_4&QqdtygDzqjMF zH@`PWz<8VGvJLM)>uR6hyT7TO=rG#{(R6W={f4plD1IdS4R5uG1nfA<25)|!aJ^-I z@A$s@zCXW<|G<9PchcXCb9A@gxHaGjYK1(10j9Rh?;ZI%9IMk8(g})Ytu;ALLiXeO z1=UQf4f+G~ds|Vi=J)AsjQPFre7*hMKooCQf|IY;ATW~KbxUPw$yTLre?tSvW-$^4 zQ26!aG;KdWUk_1^5XjffsDiP>1nxi&9bG$4cSJ`+ZQZd2U{9@?44R z^DM82_0TN_&rz>4HksiQ>suwsv-lD}o=&_Ih^K=H;QUT5^YFen8nV^PC1_D;5BXkMjFTci!9aY1t?dm+ismou~-{q^u;>VP+2&Tnj) zFUM0K1m?>}opX%&vX664Xuiztj)^Sm;cB>FWWMZ)Tfnr>*8z(0jE6}z*kN!d{-_YY z|5bE`=F2>6Ci;x|vXs_W#?fb+FAJo;%*|MQt?LI@te}~|`y^^0hvv&|a_J}@`>~_j zp*^qAA#=W*ruBCB^zK-0>fMa&>UHMJUvEf#zO1#-kM9fk?9G>D5OAViy03ldt1Z53 z({pj6^=wZ>fF~&SBVNYTmie+8Ux(w~hAziJ%S?OsME2wPa;^V-^atk4%A#D&mwlPzle!;n z{#(BNpXak@|EUNJq_l2m_f2;Dzdldfza`rXQTv}Hzve0K>VCK**F^09B@@4wU%$RX zwITCU8|HAGTEq8?PJ3JN@bB-~0z!CflgmxGqL#pA??Zoe5$^v;7XO;>T|y(%sIH{nSx~?*UXgA(q8qjb&q8%E^hd2XV0ppsQXhc- zkcA5OJTbL?YZY~rdDI+dE?AR=8I^Db3vkZNzND(W9oDXA_~FT{KEoO~6>TjVOB+Gpd0jz)DnZ6hg3)BTq&h! zZL6~LJq4bUK&YA3^F-PaVLf@i<}P`j+VTgLjpxag5-0`G6#93lme#-S@7wy<8fDY} zLc+7Kg$D`eXssojX9*;nihWZ|x)VUyKyxkSxp?0`gf9AheS=N^49c252OfO?6OJ&w z>zyrDy8fj;emnl98VcY!yYQUQD%iiYTr3)W0?QTY@-IW7)bP*sk-tr=>GLnckb5}( zWp_JUFXG^ueED1TcRc=O2(%8mki3~>9%`_kMW5W#)eKScq(#C0r8*_1c%NIemjB50 zw)_X7?E06luqy^=D}lb@Un&!E_Al`bEdLUDeza-1i^se8?clK(1q@`Kbab&rFdiSh zE_k%ZM8S{8P2%lw)&q{W88Bwg``ms-7dKq2ZWG+Zc2CX(ef`@ zKDoiRwoH+KPB0u4Z`V@xnG}kzq2+<u6mED7*3>EcD-LZpnYuYaq_?_F_Ge|IN;e zHF%rF9hG2ye}0^Dho{3aO0<8|YLoBa*uQ;$ejLlk`2PG@2AaP=Kef77;B+EvFp`CU z@6Uh8&-uSUKlUx*-ueFgV6O0ffBuSk-1`1}U#U#AzCT|TSug+`{+H_v`TO&=X=5)r zx?wZ?!*L=GGe&ZWKV#DB`~G~A4AcGo{3J*jjyn<31i-mxRtp;YFr+Oq_UEXXaT;#^ zo34FK#c#3?{{H+}6k^ydAo7Y0;tWGgM{Qddt!V8BJ_5JzZ z5wR1uY_0~^Y<_?KS4_#xD*)@^eNujdBPTgrUPhddPbN+{h|rNGCrV8KFmQeD_vd#3 zX-N7QG8Szd_V?$Pp#hBH@v7Pw&b@~L8Iy=#PTVz?C;NK6ehP;VJ5+y^Zofo;7-0jKd=s&q5u2T zk^SL{H(b15!*9nQ&OiZU_SCOypKTPosVQ@y)y7<2rUO5 z-6+jU4!!&t%d1siAMp$_?b52lB0K`8%84=8h$|k6XlwM{s@h- zSS%4VYWI$-p6f269F>?2lLO308g$v_=D*asFn5&An2#)Dr7-qSLtJ6(pPm3fkZwgB z>n0aRP7&#M&oCO z%?gBYe)?Uzg(3!Tme<+Xp`!w3U#EI;TDC%ml4llOwYDNl2e6_1C@ib$9-D-AD?u?|7(;v z9~*T~Y?;F0AFJ4|?;Thv+gr-J2!@(&c=jR!FDe1wuy!l=BLjehK2uSTct{DGPrXM8 zS5hb+I29Ln*oi+!CC&rBFuK}Zy2W&j=@!#H=22WzZ{VKuufw7= z^2qyNC)o~rB`$eDnGyiDLV5O%dbn{DPlfMB(nBfNP!hk^pCSBQR6=*EBx@k1x~a-$ zRH;-c9H%O4P^D6)aCKE#oGP_4FXT#Geb5!JzQ({O{w>K~6X6X!IW3Zql_YM7nYcYF z@et)E*%c=T<;esbFJNa5H&+;cVt-eHeuSsLDuSN+Ed))>k48nzMj}9Y7yX-37JriS zNdzP{y25mg+Zlux38y1J-A zNfWgU|B$W|j+k2CSu?0*_=sX~Jz4?ZOyyMcb7k0+d1Dz)qehf2`^43AfrN(!B!vzr z#B8J{u&FX#>jPcdANFh>2wzwN|THc!?UzAqd)$ zPaehk5_IHLeh0*1_a#!TP%uC`|NQ~o`FWf^OdUhazBQjX&mJ}PHj=0YvYP6!Fy!vg zeibT!ENi9%#$>LDN}LGDoXSqZ!NOCXP~bG^C}j3I@HG}P2_=b)hOdgMOr;@fwC1bI zBvb;e1$T)*FKqhrImjWPOB1S@vYLVMz_)JEOu(Jw3crX-%>?<}aJWC!XpfGXvtiN? z^mGb6p%cTl=z+`O3f$T7VR7Sr&(SXv`}CyvGIutfc$r;$?8I}i6Hmo_L}Cr+sph!z z&X4fj<{x0uDIKmDa^C|qzkbp6V19HKOX2YQ&&6`ad9g zJXTXRpz4%-W`i@Yu)6MZNd71l3mkS^Dt7s9A`ORI{E^KYAF|D*Z0;{ zLsTJtA}SHPx;Ikx;V)2_jHLrq^D0j1kZK|ibKTruV8W-G$55$9DysPv)mW;z88ztX zLG%=)np0J0he;-SaFbMLq_1sKTGF4i5x8Eq$A>+F1H_6bS+8q(|TG_RIp_gtv*LZ%Ho) z=-bX&tQU`bXzAM-6anjZH8iY0O^mE>)fHV!-v$ZYT8eIvzO_IT=*7xnS}$h5YU{;# zl=UP->051KtbxN=6JpHPw+j#_=q@O#>DKemt!&U$`u1SC|3}}(%rNvVo(oFf9!CNC z_VE2I&kw2x>)V(KqHnijWhCwTwgS3L{=?F@*{V|M+nhTC^lip8OW!I&P;tra%UJq0 zNVW0k+i#E9{;k&B$of`fW`MqRgdW2WrC{yN@Nc#6WBEK;P3zlJFGbe3ZICIA+tRn| z$XP-6((=gu?FgDcFCKtM#J`oDZ|hqjls)?PEFuyN;j5~evBTqi`ZiAJ-cv-=-S>)3 zcQeYGuF|)k?uw*uk=J93Of$4B4;R$=y^JV8%R2IcW^_9+8|2lBfOSgV)?yJ!w9I^g zRpj&5jac5sdFwUP2>|2#-WVtggumN3yb5-9@p@kLtSVY|uOvct&m$_?^TG?@9y15` z{9ZL7R}Es*IwJ3b*?+srX56dwJCPb-#l$^ty#w4LW0LdMafL-)Cn7oj>3kf$GAI$= zN<8F0h*IWx`b|i4p&tX#iHd*oY#cAmb#TP+GRyGR-)pTSZb-lw5%6w=ua-vN>A8!SOg8Xs%>{*T3<~HmgY-BP zJqF?11zi)q7clEg55D7|J+Lnq-}A{Hd_P4t3H!})#KLzlZTsT=Klf;SzaJBbZ*?YT z;5$Uf4Vmr5H(wzizS)p!S@>p!wmA5HTUPKT>m}pe4bLOsUZdRC_9IuID!_MTNaNe& zWgFj`D7*NsT*Jfrv!aFXrO_JS2TG(9-w~4xdvR?ztVGb#|@c1cX%_0Kbe+>BXXe5)4p z;ae7|jfL-B&=wcpJ8XQz06!wWMJOxBdu$45eEZI{@$HDRi|>v1cz7WU&)9b>L}O(C z+_hLb@tr@xz;_B46ux6n0KUtl$AjgA@tr?X@U4z%wjbZf=jXRUdn|mbafN|zMkK+& zH|`q?-`j+pf?x+~h4t|}z(7F!9Xip2?;2nRa%*OI@qH-258oz8DuAzhe!elZ#ld%O zEBE_Yx!{HbTXnvdQX$g!MwI>HyiY!j>y+s>t|L))aqWyLEZkDvau%-jUc}h2dxG~L z-$|)egEYL4WzTp5RNZ&~7zJP$66#T)&NfO*%f@~8Z(a}#pTaVNU}&yH`0l$u!9AGw z9WOyu0H%B2y$@Fy`*k&t`a=36zP7-8k@lFAqnqBX!E6Oig6}&nd5ODl_v?-UBTzgx z&A`)mAIouWZ|v8tk@kNdlJ+Eml;@DPiND3FQnS3qj6uWr0MZX=f_vY+4)jVdsj5w} za;OTr@Ax$NTI0QrKSPN`SFpV1_45V59`t2KM-~TCV=}Vpw z5FgfDZ-m>!2O0X(#@bej1ISp=uMH9K{zn7)5uTnvijz(DdlOKA;=D>>GCBJ2T}p9i zQH_@a#r76HFN#wW>j9!TamIdcH^>-UPi?&Wz2&&0?8biY256L}KX-A3p+6Ua1JJH> z(9)ml2s&UdJJ=J3a)Y7Z{oY=Q9{pJ?6cR(*A=3f%>CYF2nt$A9ugE zvk-Fkd&>)Sm`Zwdl&NN`xOl|rHhZn--ZgK2R?K<>@I}*!#nAU&w((r@hNOn;PmrU_YLP84p z6;N|-YMU~hp3*MiNy=E0LU-iSmbxwp>SwGdE=5^csy;V1jKWoNboWwPQF}iNMg5eP z)HO5th3q(oY&Q?tRt8ym2;0bm3W=5b))UiW?~6to_C5;**!yWj2=IBbWU#%jdPeNM z38o`yxA)rIk!kNc$9n8Nnkx)@&jJMm3N600?7g+HcN^FfdoK!xg6)0i7>~WLfj)ua znn}U-zLwh?_C8kHf41-D_C7-TaqYdI5OVGPJ|Q$(5sF~%1*BDH)heRB=M?g;y?>9~ z592DS9`xJ$Bm9J8?>%n`u=fr~G<^2n2B3KCy)ISR_FjRiY)Q%^pNdlkX80RGXMW!@2g)h?0qQ;u=l#c=cS^- z_P%+D*n3CJVA5{yaomw2Sl|*P#G= zA4riiIXWBoJTNxc-Vbtn!`>H5`xG4TqxD+Pd{8TWc)s-G+WRCS z32Pq=-;ybm^N|t5M-`}RBHYwEksy57vBcOhUy`MnYWA6h&4R*9JzgEHI+f7tuE0c7vlWqtkx3b6MF zgwLAblkJ_3sD42Ilj-vHo?`E_vGC!y_qQXg&rjfvav1CLg;?;0y(bRx*n4}R4;1Ea zvh4j;+N;L*uXAfL4g^EN_P%YP$KEpu#Y~W*bDqN3-^nZ-xbN3KfLoK`;C979Bzxa0 z{kZo2Ay*7@?R}yU`s%}*+Iuf)wOqA|XzyKwyld|jTJO!SeQ|CH}l! zX}Ldd`!Xf)f81#rJ_5`BTd?5Y0RQgAfBf|VTJZmZ{`NUk0L_e^&h8@d172u)q{Tj@uYBA%~9KL zfd`Vac232cLgLJN87eFK6mt)(CO;AXv9{;%FnOY0vOK{qs4Jd;b>}}9;BB(@5pVMo zbl2HG%mC0WZ<8Z@8oXNGCU5wAs!eVovyL@u?=bTz*E{eoVshy4 z6xQrk*|cW2>jKT5W^M>(6nZ^fdfGcQGUyQ$@D9EIVee2Le_`)Xf_@xx?z2Qbe>=Z7 zc?ETgWeOMc`5zSEA{q;)2eT>{;ki{Xzq7cA>R5Xb7h#^itw9lK-1fZmZRFA5)V+7Q ztuNcFdw#DPSD5F2phHmfxV55l>a6?*s32TIL9in(;SMkmbpEFg(|6Bzt${v(+{a=F$M>D7nt^W-Dl zf#A@{GN+)d(m_ZylMJI(7VG>*YaB#RSp~Za&$@igJiieczau?qoN@{2OZ;};pRg4L zbhLM}$O|2DhDhT!PLBQXu)r6OMFl^6H+i2$W|41w7~$pLeFDt-7zDCu^>M0 zNdAcJ$9!MrwqA^v`#y_I$hd)5D(!+NhqA~pie?sNU@PL|Uqvv0p!Zp9qtqAga|3U3 zE;i2q8;|S#O+2P@H_;zwvhdj43B-RSJhJ>Hc(^yUt5`>B=%#j?$4LB{qY|2eJ$$e# zz9AH~j*9=M!w)G@-$F}s)k;m~u_l_B9${letOZ&@24{qhDTC@v zhh%`+sw;yRNv+>CyAuS!|;=YJ|h1Ro`tPM+d9^s&WcdatCQpBX(sb~YQXo{eUYLN#m9MTmbN<`4FJ_w_;INSs-L8*A*kI_?x@X@Tc z~xNUN1D{ZRL$t>qKao^^xBTy z_-}s-oVz=URu~h!?kaEqu~7JXQq5?l_I2E?ep|~U<5~92u4&mn*cP(SY%0PvB$=Q$ z`=mp!l%iMPphqG~T?KF}pfdG!{3uC3e#1SOblk6;-bDF`k^Q)+dbxXJ>-^Dm8-=h>)^QQz+UV%^nD%46}}!V@}QINA%)8~NKll=X5RKa?E$ z1bo4HO!!Ajc*=v2aPa##s|)>E4*iiH`hyJm#Axcm@YFMubi|t98@gHk@zui;SgrhH z1Tq?mDyPHy!5sOsiCFva=O1D8d9(bZ0L$0NKk|1bz})=f{4rnbrSByHQ#=3IBhR_{ z$7hc)@;d(*a@^;c-e)?#{38QXin8;MRH2p-IsbUOlZa{RKY)=0G8Yy9ntv3~Y-@$d zuh=&8k2AmcWN-zsoMd3-A3OP3yflV@CKh%8I%=izk3k|!Gx)A$I==klsyuj;{Nuxp z;?_9-cn1Yv{*h}8tMR$Nv>NYfDVp*qX3I|gF@))4Hu8@QO4My25@#f-ilNC=N#2Nt z*HKkILK08Pz3bz3V7nmPe8Y8IID*KFY{b0oli`{1-R-ICV4t+&>Z7F$$f1O!>)Y;|IBg zk$oJ17`04Q_VEd-ZkBy~2?c=?2=y*Lkze;Uh8-9%R4wqL%&sW{`bWQxQf9 zy}}rgqNlTuPrJGFpwp6ltVAVeA4}*5vJZG}m48H@zZYpoDyY_9@^C?|zhp!KDaeu+ zna_6MlPB=RzVQ~3BH)@-c`fGS{t5gTGPuC?mqt*1>;Bc6_Ecf4zl=d93?&Ppe^OZ` zwt~XWtP5Ifuf#!Y0r#K5J?OjZFV%!xkr#vrnHdchH#{ zU;?AWcu#hLyp6bj7-e_eraah(*1UW^m$`~EyD4OV^FBAG;cvH76Cm;!2?pyRH^RG4 zQXC%*;Qn17ay~?Ill7b%ZA3RZ6S?y!Kpj#>Faxn*AZR@&7dWBTOEJs$tHVv!bE*qo z_2GKU9q|DYjobl%$a>D)0`{yf2h7s9o^yf6VZ0Bs8ggZbx5)Fvf2foUqt&@wtX!lG zU>l1lEt)`T0q-Zh0F?kvlfTzE)$0sG22Pbxc5!--yNN!1*23vbV-Ww5AgS@IcRj~v zqT$gGviR-yH>dtBihnvh2Aq5&BTM-77 z0Su#gA=@Lm|A(LRzrT5FYvJB`fAeat@V>vf4)YO}V7>iPqI zfAjOtu||&lLwke?u_BlfSc>qyzj?0=(_P2e11VGL^EzO`*jIcTH1_q#NP^$re593Y zFJIy}`O@kH%T^R(SS@L(g%u26T%$fSV!yw+2>MX#K*~tN z<&dPn8MyCnz8fMV7i_=3IYyZL{;-ao&ik9kb=2=~e&-i5!}PqrIkkmg%wOd_$^{iK z_oD#Maurg;U`u1LLGdy*MwD|L=Bs`O8Tox71q38_zhW#ao)Iq}f@;7%=Dy1D2B`7 zeUKCojrWCgfYnP({09nPzAq#R;6k;o9@46HxV^1fJ5hF3Yw<9ac4DffTH|qoPwu0C z{uBC6&-+4hHaGCS-i!(g-*YHHppB%*M(8mJ-<;^040Q>T{q*2lUF7fLyBO+Z=(>e5jO=qpw8S_>MW~!*>Isx`pq0aO>bZJd4C* z1K(kAs=@fKpnMVULqjK$?_6qY<9iZi7vB_|GJrL`kz(Pyte(dA_aD=VZ^bwR-(p-) z_~t_a_)d}@d!ff5d@G`B!gm|yBpvNG5`=e{ZH!~&;etaXpFJvaP$HF%g zR~YekKhjR%TX?30Zz2vtzGfUo<$ zkPx)R#TPGWz7W-U3k~}RxCz15^S+P*lr$%W59ak87wmsggEg06v)LSq# zw>^CC3#rXLnC}bO2~`1@?s>3it}xDnWr4*2%ofuvFn`1u3XJ+T@C9x$TPzArg5MW1 zv=MjVzAt1AFapJl5ToOdjq{{yxxH~7Y^=2ZOq~WK5!mkw`EIW)bn)JZ&W&>+{eUL8 z?+eKZz0!-7Y8mS?2J0+iVZ-DFeyPE^@MxUjG5!2|P$JQld44~Cobp(FuLDeozEo~u z>q{||U42U|;YQGnt+D%~tYH*EZL zI?1?SI0*fbnq|ZENE9b6?+dwHpE@${AB=}aS^D#53{@EVvmH19?VM9B{n>&uACST~ zKWqK@F&Y90{60i=rWo()&k&*bY4c$H87dsO=aCyq`-xMey+?oa%4WEZ^y8iON78QZIk+R!-e=eI z*n3v4Fzo#h&<6@daEyz*yPBM36!w1mL5uNp)kyZTnAziJiH-cun=%icef2Q#V%{q}wzGvwHNrcVRxJsNqE&)%y56py_Zr7GLrZ>1_b zzW;?DJ@$SARj~KQs`G&OzNW^1wfEXvz4qP_PBFmV>(>gf_vewbLep|#2buh(-`*dg zq&6wE=M!z1OY7VAJ_}`!y{~?Z?Wpx(t*GrQdhI=vkgdK&lWpZ8Th}0~?7jP*|HIy= z*D&lo0R`B53E}hb*TMF_u!7ioP0Uo%Ztvx|Bh%hD)b!ZC-cGFU?@1B?-lK__r*f-T)kj>U&8GTdmke0KNx#+d+#s(xc1&z2)XuNUI;y{ z2t}~>%+jj4Y8BDmuRxfVz3)M$2ubBr5BlxB88hVAd;X6D?7cDaB%i%E04N@NuS8Y0 zz28Aqw!LSkDm%Vk1QW3Lk2gh(?^~<dLZ>BqJA zenQB#_xpsW}ZwQBs=}ItA9n-nZAX?R_1}9(%tR-UIpkpnY0V<4b$(y_Aq$ zyFrs3=poz9Agk1!9&}D>W?>8Q1_U;CIV(*o}P_Vs^tK_lwt%m*n3+50wb zZ`k_`Y5yG#4&BV&lcXQl-k%pjuDv%CLemtX2=-oDTJ=+{BHDWqA@ADzDP)QmS5@_( z-`=0(CmegPwm!h#`;-r`_Z|SnWACk~%C`6WsmiwZyQ#{y_kyT`y}zM456I__mHV&u zK4Fd5-p3=t1lapi6$9*jIZ{N(Z>ZY0^V|DGN@|lr|E$%9d8oQ=@7q!K*!z?49cKITFNwm)}&y(d=~`*T&Ha}fOSXDt(t z5q4rf(~@fr1_I8=OE%kNNEAc zT%6A#2db82X0&4g^xmcM?FR+|@ZEN|2j5IWuK9h2|7Ls#zvshub{P-8FN0eL-`%)E zY3{2%jQA80-y}+L@m)W3BGLZvy*9o(QFig&jpH4_H*u$h@Ax7b-_JixC%!rFGVr}# zh6)Pbb0`4ce$rzj^caM1PIOI6?n|(iksf@ji~L=D7ek#ad^cQ`yxM0{63Re)^W^XSGfHoeR$s5#PO(vL=OEq7%Wl&^ri2 z%&}4)d{>ubd@ny`;oD8v+5V}o00dfJAbg78a1mxNzwOnB3S-&$yggAU`Sv5-53bj8Lm-`hU?Y9e2;@Qa2vIQW%Y z6@XtOkOzL--_rO^p>H=B_ccbM?BbVMhEewu3%_~=HGT^RqBKsqKl2HGQ!dQ+ zXV#zq_&%azGRe_d&=JE&dTX4Z`W$y#2)^E!QTXAz$^DrN&<@~NACsQ1-t-CZPef%1 zQ0~u^+aR|Ozk(64A4{EsL!1eezGrYQ1*|Q`^xXHMoCgMg|Nbh(f9TKVJdE6%z4vEw zVgNz+XV&6z;86p-i9KB}YvXYSWfzapLjRqQEj(7`2k{@to-VFVBOZ0`bn&v5OVT#;n7RvM|di0`NE;#{)UBDHxBHc?FMHEHb1EkAtiSY#;9}_2Ka~ zk_rcp!bk0R{}x=AU^3PH{`Slw9{V@|NP)*4l+GoG%E~ZKf9S;{H7Xd7nRpy{6a;T# zA4f~ucgo27LpMDMXy{I0T=Vrg&52b{CH*{C4ojgaQUKSvqQuj)Lst zPV`9ju?`d3bm7rRhe(JmL_a&HSq{T%8Y(%&b?2eKbU(3OpuNWIT2> zVR?1?z>7zhJi&NmraTw%f3e1+btxNd$MHfQJW3(Y1|Iz=ElLjMmtoZ1;Kid31`rg_k5itR6zct&#-nm^ z8;@cryLimQ;UM^{AJ@#tUB#p6-@cJOG60tPZlI$Da3g76rC9?3qk zU;>{mJZ6gg2#=>1`tW!eX@Y}C9Nk$lzPtDYT$2xvcC1&1znTF^fyehqgD{MZ4Ow3A ztn=cr;+9}M+Tn5Fap+Zz$HJmE9#c?u@pwS!w*q~`K3WrTwvSnFr4f%K`CUA|#BT?W ztten1cS}bF(NPc{KjaWR;xXY)7ao~KeuT%*3w(HFMPlOMu@Sq}CLZ6yw0wAME8ww@ zOh{ybM{`Pxl0!XW7>}ZBy?7MC0D|me8zqiOp;+)H@jTC+HXhfDn0Wl!fa!m{#=>KB zc8y1tH`9nmi+nB~_3_)mqZ$er$mh~g0y+x9qa}JI`#6EQLAvl5D)J*d+RXRiF$`&f zgGcS3Z9L)-*?f3ZXT37)V+bGx9v@O#lpM+`!$@B3#Um+OFdo(MIPh5aipGP#m1M+^ zL3fyVOvd3R_^V2wZ`em=BF^>^|3(_|*c9dB@h*Nlcq~Q%0~shCU3@PXkB_nn9_=wN zNEaT*Sr0g#Z<*)A<5#2!4j$n{HXa*cT0T6Mil zNKWafH#!Qkk9*J~*~fOw3DSi}JCPsRN0qrgJUSpTaqyUnxs>Uz$|17(@F>7~W!Ohs zB(lKc6{JBJMr>WiW8f+;9{n>1<52*Q1CLpAG#=e=v+-z+vWv&Q2bg|t&^PeNL&O=6 z_KVYq$NXF_9#iq#!DB26q*&6?p?8AuSddBZsDU{_y71V>dcgMa`fMK_JCG(gcx?R2 z#$zsAlMjz^xjpu=6_5gtTPZC{4*i5}Ldt(udhs}tF&K|=cpP|S0dHa-`$9Gzn^AW0 z=r8nN1bqXKkwl#F*#3GN@yMCe#pA}U1|H{8z(5*GN3rNA$UbtRN3xHlm=pN%;7|Ul z*8zFfo2rZa?uC8iec6XcG!hfw@ff{iCtMhF+tkILd&ikskK(tWb6&#=H$>tJ`A?!W zC^?jLKg++{3a|XTWPpg8sYcF--Y|I(NP)_gW!5el$blIWoVE=OC0_JSW%Y zVO4tD!m~2Hd3zz@8UJb;@!XW%z;hKB6rPJv0G{_tPZ!<_#&gp(8C*L|BGQBBacGOR zp5K-$3_MFBa|NDHsDo!}zkCJuLxE=vup@Zh4+aA8oSDOe=K){@a(y928_#CbeR%do zR%7AW2ioD_Ss1rQ^nK-f;1&c^&wb@yl&Iny#59fPs=PLy3sH9Q{Jka*tJ|9vp53o% zJeST-Bc7>Q4Lpx>LE*U{1>iYPdMb^cg6uQ(ir_g8lMp|ik_5%X}cy7z)!84PPn+-AAcs@7Phv#g>ec)-l{{`GSc;>*~ ziJ8wl49_B%UV|xl{B9B@yjTZCC+HUAIh@DFbtlR$t})o&g}NrbVc|L+H<{J@U*@6j z^z5JJ%wphsJu?*)zUNQ?z9(vMkB!h{5WYFlHTmBqSTFG78`=L>7x}yRE`~Z;_zp(u z33+V9`3nQz4#G~tQjPDVzXS0-j&WK3x0I0E0CC#*&P(>;y8%(%ve)(C*1@;j0vYmX zc$kR(cP&%|xIO^lg6s8MHm+w-c5$7BZC&8{&JqjPRro4__}`0j(rB-BG8uSQ=7Per zBnrT@zVtK{Jq6)e2VD}L2a$xQ2hUz2Zx_!4P#+7=MMzzNXSj`p=X=$7;OiD^JU_&n z{{!r`0FyKJ!`lkElMthg=VwViJWnDm9*=fYHe+C23?p#oKK7<1BoGU#oK~F(=_D7e5 zXJ)Kd`0)Ah_d{N*n zgXIrDyf@iDUkmL4zV$Kxm^;BI;PprpAYk?W$r-jhC%|}Ep62&NhTfoY81wTrzzFI= z;=?fRkzstX&^sU5iw_Y5ttSq})FHxC|H&kG*2kejCqkJ2JP!XpR9?A`xB664~L zXyb7img&Re_%#n6rI6PGj}0Woh|^#oj-507@NSB8De0Hna9EQv8W)a@SnC;FZFUOZNu4aTD# z<<&`{9}+Yk3$xgGOhMVjBef#aZw2~>eY7UxY#+0xT6mPO-cL~&lG_zqM&4ia{oe#a zCV79+7bt-HHA1~Os51z3dCT~0!*72G2%|8I6%cOv{-WXBgZciVY$81O{YArAD~$Ur zu}DK9%_JN{FoMw?!dItPbTH}$PJ-WGwDupi7x#S>=K(P&j)xeXcx1ef;sUof?z3!_ z_O~bwJone2Mpehj#SrWLMJ1$c%Gm5iumr&GXMQ zN`pP<%gV7@Uj}8e^`$$?uD)F1ZR_Zw^DKQSb_U|BM(Y8+lhdj%%l|U;8@D&~Wrno>4hI9MyYbMFIMT0oFxKedz(07g1kkQlgCa;(`g$m!nr~ec6Yy z>t9lN8$3FBhNUl4@TOMrFNem9zI0G8*ed5uV8W%&5sDe368=VV0yyJqAm1vAw2?I7 zF5p1_{)l;`Un9Q2+!kMTDA%RiHs`$XP-q$u&*xMOftH|Rd0g@U`XE#8h9fv@)PIkg zcq;rTvJW(Q$+^O{il2!}7(y?YCxnQHd8)D-Dp7VbuO4Sv)1#)oj!6f#d=M4(*JbcM zgwQeGp^lz0T`SoW_#8q?F;Fw#JH1xeb>9oW2J*p`^u&`0?|KX)pZASnK2iW`_6apJ zx!d{&Jueg44fsuodJ*FCZ4_cy4`7R&e5Q1y@zTtR{$8FriLV5i<&pj%E9b8jxxe9$ z@M{~xxhG&KUC_1j_bZSAOmVAIaX&N|mbdR8*G?dmFG@=OJ539v9WJ?~V2{M5lo1a? zBPTtlHL@jrdcg2t51{O7WIv&JWvZo-S5JWK8hq4*M)vL*b{tVtA2j>9j|Cm?ZtlFr zLl{=uQHy7xCm6zJ>}hM~ky6_fSvGzmDlt1MQ{Q(q=TRY4)~Tp0goY_X>;wJ)FX1=F z(O7dY9Ij?IuDmz>&JLh1_-B5?AA(&f(8KD5ns1^i$N_wbO}~_n&2RL+1N0!%n&<~3 zfiR;I-$nlz+#mS*QObJ!4!mD~lle#I(`*GY|7e8*(9Ot)0HR-;6726E$A^gsj~kd{ z`>lH}S<|@fCFq;EtdN&~XV^w9baZMw>$Z_k{t09)f4?1xB1V-HyZ0J0@bx5bhDU#s zthMgPW025bHbw7#FjF-A{Scv;?Xs)KsmAnB@Q zw1I9YH77;AIvO!0J^LATQpNS~esX0l==E?hYj*Q6^4G5;4` zG4EqX-p}X-O@tpZ*1w@eP!adO?jmHVkVjZuuvP1&eT1ELNm@ld#A&gB_0j@N&RqW% zawj29!kfIQe6QfMc;9lxNrX3`?7Ey^!L74i`Yq;>H01Z-J|tcT>?a?Gq5#(cATGF8 zzG&lG3}x3lE~C?bSpS}6;d=BZjE(n`%Z#$}yU6#$`llFpcISd#|3(3Lwv(Qgpr;@_ z`=d)5TxLvm(u3zrXp4nsCay5>+>b00coxQfHUXgU++KtSeqy4=^VHEmJR6;2`tJR( zu|lp8#AxIB_YfbRg^>4Hc!r=I4xX1Mx%(MEz)c9Ip8ezklmjP)7J#_m+5NnYXKR#Q zJhRBKa${J=`cWPl8{^sj#WdnM|2G5ADO^x^jzIxR zAMC@k36c@u>Fy^thITl3<^Y~%UY!HRE0_lCC)Yu@z;*l68rSjoB$JuNJcF`}Yp2^; z+R-mrxYqmuW90pe7e=Jh|8Dx#z;_iF6uyg40KN?=FHMfVFg_UHO-BUZc9=Y*2jAn+ z9t+>LTw&l_5@|31c>){A2EJ=4BgFX+up{{14+aA8oq5uO?*U*2a(y9A8{cM6`S9(F z1jNF(546R>_lXy5e9OVpM8vlXx&^)`25Eekow4zqjk1ex5}j&Hj_#0X;oI?hjqifz z(uwbp;|9L_xS;U;6b0a0OL{DT9)tYxk?#cGp;+HY55Ad2{%(970(G+DYYb9v05Sm^ z$_Bn~6=DIjPtf>w1_J^3u07$w_dGBIx$zLEjqj5KefW+?(qQ462yPvG!*AI5#=-MM z#CHVcsyGLUPS7nF*!jDS?*^1ze1D@;lF8A-###72^R34Bqi55J@0DK+e9v$};rj~; zz;}l9SRFkE;d|v9!FMLsBhrI!X_3E+?+mDuh3{j?ogt66umfx0n_1Y2AFJ_w9t;HF zd+?YC-~2*u8N_MhJF&kH-(^T5EPUSpw+_C$huZi)0nZZ=-}#hZ;v6_S5qwXcvhh8P zvWstnf{gFWV=R1UAJ+K(Ff5(;7Wvu0HxCySz8O&fzFR31O^$Ad9)s{Lg03l_qVSWAA7$aY0XGyR z{$3^BO4t17sDW=~E+~9Uq5ypFmL7+q#~^&`plibSASMIp!MB&l-^KU9Pab?1Az1{z zVeE7o_|DD80$4XvWzMmp#1im@2=W5`4A&LcX=mm}M_xl6! zt7e6LXciF5GiMDT6$tBr3> zlwEwQ$ngFgVc~n}D~<01Pp1>#5#Jm54&s8s_c0WJ?{_%B2#s2c9)s{5fvySP0+=ME z2j3;o9t+?6Tw&zTzd*>qw;c9J4SbsmI~SkV`2O={AinL6Fn!lQ&k%BDAx<0LTYCHO zEsK1{!uKv{i-T|NH*I{w06!wWMbItqUD`|I+xNJQZ%33}d=qoCv_lx4G4CxzW90c! z*FovTcmB5qzEilM@EwB!@V!TRJosENzVr79zSS{FNDsc-pgk78)wsgIHzN{b;2VcM zO#|OoalR7jRuJq!t!VxW1_JV{q2GD%T?5QOt_j3x<6FL`58oz8DlB{(Lt7ktzr}qA zYyJyY6cOJ#=oa{He@x>${udkHXHa(W{U#?5FM7CzZ_O_>zAp?&C%&5w8~Co`g2HzZ z3c&Y8>G8s|!T4_aT<~p&NkV$?Jr3=$@NLT#2EHYc7z2e3$)X z<2xH=7vHinybjM;_;%c@@mDt6SyArHzf4(oETSiXq2aM<@5i1U51 zf={M#{jkeHSN;#;wqpli{DL>eFj6~VRqm$6D3;Kq3)+6G49x&nYG~%&$zv1sTb3ysL)hJ*jrKP9L z=qV^)*}F>s>4h1!ACSoJ-@CwiVC=W_Ek7Q3v zF=6(@cN2T6F7hRN%7HO^&O1jV$#Cq6?%U}29~V_&OE^0ssTh>|4fhK?4#S?RArS^% zbLd!Xa_9*E6W!`*uRXQc0g(mR(*-~XJO(_X@u>HmjYnmaT|5Q|{nJlbc%0b|;%rYf zdZ!VO5&H~#8pH*i|D%ABl$4&>oK7;H};Z58<1V-Dko?*;GhKMJ6ZsJy zc+CII#bYXdJ9vym0RuTI9UbZyjK_jc1dke+BcuzDZL9}!->IDsj~z$?96T<2^0&Eg zUB3Kn+#Zj8Yz3si<8C_knjE@KhVkQ*UObL$4#r~~C8mh~Z8aYI4%m2XM%l$28VCr@k zkDu_{!Q%i57|0^&s0=y^!sGW31&;(w-_wOh0g)f!5pM0nBZS1n!DB*m8;>wd%ZJCo z9UeULBk=_u&;HGLeE$#q6J4o~7mtbmC`-3-$=f(Efc;rFZ#p6k#|3z;L zk9{9#JPJONMm)M~bMbf(za2apq5wQMU_Fq0w}lUnKanOlcueSEx}kdL;Wegz0&@@aQG-Bl{@V+=oXWqzMil8{6A>)JA0U;Zd6P%CL`~$Tfk- zAUaN*9NNMEM8DX>i^qud!FZI$tqv+OM=9t(ei zB!TX545d2-d~OvCkba;tp*vOTyC}I;WizVGqAqM)<{qLFYEY&6GFiBn@DXw4|n~24|@3IxRkPrr;8!fAj!lWsy6-XJVSyN(B%j%Lm zn?P4#9a;UNDvMI3meuE~67QaJWmQY_qJ>ve@q!~sB&*w+_+(Xv*&tcLk|Kzu!AB&P zETbBbNUEa{vynO=k#I-Jp=?Nhp?%MG6Ybj)ZnZ|V?^mSMDM+(#gp(eUnhTp)#-rA1 zVT8x1p)7%99ZCES$&+}Npd+X9eE>_Y6MHZ4efnhdM5L_fd{0;1`B$s4Pcep=9nYO* zi<){bi3#)>)x4_1RS>&FdjxkFKhqI=KgB^6YNhoyS~z$?ao}8ra2nJQGW#5$N(-5U z-84Fl%M?}lA}WDPt;TYLA_rzG4wsXVQ9uF{@|$8w1nau5^RZF)gu_FrMrj4roDDyQ z8W61z>jj(sd^uc==?)(h^FbKww@kwQd%6RaBX;87u@le7PCWB5$tiqffbC4lAEd0k zVu%XcOpq6h=^3m!={d2pu`pavJv}BIzaqn%cO=m;*zsQZ+9G} z)~mxv8v*Sfoi((7z6(dW1p4HNX^GIg=+Y~t=>59QrAK_Et^#9Up)&P#{Mbc5esd7X zr3OP*>r^%cZ8Uu!w{2)JgkDM#b*`Tdi*RAK_yO{tB)0Pu4S1GFd>X#{D}=QJ+uX6nO+ zZ7r%qHI^0?K@EtWhzZuB-x1G=ZW*GhJ{cMQ4TB>k+ns`wsje8``#@}YDKSe|%iur% zJ-+REKOnw+jr1Fajrg{AmG~1{FZnO=EvLxby=QqVbLqyn#WHfOXcXW6LQKV=?fBME zMrX&jN~+R|Z-rH*72n25w{CnJyHTX2;#)G| zN5zYZZ#RSuQ&zFe#?9kfkM%};Ylng_zU}#){m`6_+7As}A=;M}s~ZyER$#JBA*TQn z%WA~8MQSKke9NUcx8mD302XFn3_CGKd}}40pX#7HKf7GVw`J>yb8mdBqB^wV+k8Nc zbrUzfP2!5EL@T~^5Dpe#^MyF@$G7%E#*J@{gp3{ER;fxA-#XO`@J!2*B9I5M;@cZw z-S$i~smAh5V^9Onl)t{$FeJXUWxD?!-(u|eM*hH#Z+}C$V9<_lHK0#`=z(34;#&bU zKzxhGkRd@czIFK6jYlePntF=$DyqGPHuSbPzHM8}^a|E>=;`>D)u89Zx3eFq`1Tw9 zaO2xOYA{xOdmOYem`5>#C$#9#$Er_8hd@IhCMtnO1jL>nk zqU(=uFRm3QW5&094+LlteJ_c$$ck@|!Uk|Q7%Q-if`HR zOhA15YK<^!#W!c>R>gW_KslUrJNq8{o2Z21fDKc)_=d=FGCwLha5{YMP4Oge)4~&G zZg}ND^;~zAL&88aw>@|Uw~DKD=@!#fBJw~&*xW^PZ&xa`Q*PE}fwt)8m1B3pS?S)3+nGT$nJL1YM@eOJam^>HL5bzQ{z6Du@9^0Awd}C{bJVC}b$4r4H%hL&Csgm3r@$syx z97vT)Tf#k6C1tVJFv{~VGRw5+P96e1L(?LDHaQeU^P%ME9&NOF*F;`K9qq#+L`n$| z49CYx%@3<22D#IseyZOn0PbXNUqf}sCw+>J9JaTp${y5Gv%Nx9&LVwD%6+J|qvxpL z(UyNlOlKxNrc=W*5VI!CxAOCb^HG%|t1jwa2XDB!-M&nYn2j`x;9J~zaS&xU{yTvG z&e4>jgv=x!s$qNDMeqhGr71zwo&E%j;10@O6FmluE5Y71XF} znH;QGP^P?Cw1O(_)hb1vcMDJcX#Q{$|2l0&fPWpT=8&hu(;*R3hh{uaPOpDG2qnT? z&7C(KSjiQRf9)6T^Ff~=st5Sj98AiyGIoKA@!TM730u#$(q~*7&el7nxOa^WH*B+|U z@~6>9e(!6a(r@5H|rek;hoE{5`9 z;^F$&d|VNgVENap+>_y7_d>70bAH7$&qOT$+F5w>`q#BW$n~#dh0teMcqexK{`E05 zfPY<6)#qQAtTz2?&7W9aJ>x9@+Ur%Xf2}GUxc)VRaL`n7z-hMfuQBL>{c8>MuJTYF zKqewt@cGvS2+z`=!r{SGW$I7faCfS*{c8(UrN_Vi>;6N9WrDW7|DYzRr^6K?7xJ>S ze(+z`XZk~#EI-@tO|EeEA2L<(`JzrsSz>k;yO^Kzc-drCX?fY1Y?m^ z_49K1cbNPD|Gb8FzhViIB0^XYwcx)cVZ(_XNzWZ(Str$6BAs3R&sC zC?5-lFMyQeeNb~Y{0nN3F)pv@1zTp;YhEY1|GGXi-*Xs<{DHkb^9Y1X!O7Zxm<4@; zfEKKGgOk1gFqE>tq);w!hj3u7&#YhJczeD7@Ep!!Bf)s8q1LNmbKvcPft%)+7JBh6 zJ-t5D$DqeSlJ+0kppy3=n$izxk@sDx&%&y3<$#`;Waq5HC;>tCPwagi9dxjr+vLVy-+M@~UO%vzuM1Wedk z^bXbN7{*#OA2raT-sOX}Xn>+?tD4K9O++w!) zlgyYM|Cjid#7r6Uh)J)LNZtL1QZjPWXFrRWN}@~j=-#;8gwz70^7R($)0D~`hHoTthUeBvWgtveqLb2 zw}UA7;#+IX>EVZNtEc_Y=^3JZiInT}{(8k~QZti@nenZp8j2O)CM(XZ_|^&f1%I3_p7Tre;S=jd@IYHdE?uALfejSMYz(~f4Eg~VC_GA4b;HFor(j0d^-e< zL6~&o+cvI=DcR^ORXDUE7mS@U{8i2j0j2CQ)ZwCYt0Kj>nP`Ccb`QAo#J8`P`r_MqIt!j0J++R8 z_T_2b_|{11&2s7K_?BqUbK=|6sO0$eIQ?+r+sgSe7%RU01_&^iPU=#>i@FH%GzJwAkW(IZIP<9 z;@f0ZX~nm{xYCGkm%u;qqT<_Y!iKrOeqt7}ar6E446}{+cH!lK_|^i)h2V#3)zW?_ z_hiw&Hz@1p_|~GL)U3txSj0CL@?z9btoXK4ac;%8X8|ny&E^wUeB1X0cRs16?tB_@ zY>978xHE5j`$}lr@vRP58u6`y;=qb;e*!gd@POjLAKxxQR#tpF&J~{c)>?6(;@e-v z0z6amnc|tO_|_P*vOQCEs7OcyP(=5IH^gsnxVsm9WxBdCEE4S-yO_SaV; z(E#}N`LQ?gOh9~ldZu`x^u@PH(}Ut$BhiG@;iL)TPa0u;c#m}eL0TUBYrw?@K;8{ZmAD;?ibg$>hZS7A1M@$ET9 zK5~4kHO&*>%A(?5;@c9YYQ(q2z=ech&fjX@;geO;6p@t`-ww;Oc6|F(Ra)_FrK+^z z+ijW`y*^n;@uK3}C&Gp)t1QgM&Es2%sYZM&fP!!Swh+gK;DqG;a^%KACJ z^)Dke2d8-B+hb}dR($&$k|!xz@of%(g*!R=qnN##zm=5Em*1;9e=kADx4zt&H@=+} z+ID>F!j(pRYpyu3;#){K=&CsI$G3t)#+|=qR-IYrqX(%<72j?v9N?MyAw?h$V#T*U zkd^J3+EI<=nPN}_&vXDpgFI7yru(n!lY1Yw;~V({JHCAY;etUszFkaah_1da5K&yQ z*C!960peQ?aOa6{p*g&z15e)YE=&URwBfiBep;__mC+^&cZ>xY2 z6#dWdg|0uo)fINF__jY3phaaSi56M$tvGDh)}q{0V`2^>G7#t6;c`w?48D)Gaps>&W|r^AjV{PzkHgg)(jVIG`x;TzxsR2jscj-}!K!`tv1TUGIE?#P2Y?8$ z{T}%hhOulb594$N*Iv*M4$-BKf~E(&4`L=Bhy9!=!1_+!kUolJd~IbP%IT6;Gf+x##eXV?e;m{hnbdp;%#o zi;(#}ktNJQR6;6jQ zIx_SGKQ_EZToV3F2hQlYP<)vj;irn)igz#UjukIu5ipG^9*b@isc&rrvmA(jK$)TEC7|n;vX>oN&2v4a4+PFlgkb&O0Fj|NDIdzklPo1^3W+@h1GG zlUOcf8rg{yt`-VV<}RP`@F(7_l$n%B4wbO(JoJJna|-5>qRj5y!>GhB!K3~v4&k83 zIYP-P3B(*7=&LIC5$;L3qw)rL@SezK$kX0Wgp+b#QEm8Zn5^Dlyq;=9r%L0J;?<3( zaMP-`o@9q_6Fq6ds&Dd_im?-pJqSn5bXjO1RHpJgSN9>GI-6NO_m$P^QGW!~BgMv7 zvo=%FElPBCWS?eu7lpLD& zF*El1U7E3F&x5fxV9b5LQ9Gf#G>@jc&_j2ML6_u^x-9(e?c^jOEmwb4{7Q?y{W8wb zw?kY|`nC%N$g_~JeLL7@=Sib6^zE1DMBkpnN{L_J-X*nAUtu!w%*k?(f7X%tKZyeH z8rG5AOL7P3+NCj~YsEy@cBwX&t{qTq7Bd}3*ZLQPsOiX)=br7%1nD;3)T@2t82`h_ z!3cj=x8zVBoVY>|`K7dm@3-NgslLCW^`eoYcb}CcKjmB$)M+VyD@bQN*Y)u-iL5tX3ysa?(heOiXNPrgg( z(;U^t(xl?X(V(K{$%_tOP~JufaNf~B>rK~J?9y}K3#y!$nRPD zR9Wb)pJezak3Qu@6N;<1YJKX6#-=_sLD{2EO@yHg4nx_9AzPo;QsRp5SU7aAPqgWt zL0QvP`V63Z4zP9g%M(a_eLRq2`?t-acwK*!`BgE)&xMW`+1~|H!2<&vY3HYPH zc%7$|-lN0?F(HEMsZCckV!GigaHjuBV!0aYN0UaApohJt?=qCS#kVH%EYb{MkvQD6 z?S?`q=lkpq9sS5} zi1gGV42##ZqwpF{Ckr`12xqmTvlXqtPiGkyEwbnquPHjO6CJ%ab4ngdNTN!b;SsG4 znz*iLuZZ^%;?XXXxRCt!W zhCt1nlwd70WUP0s87X4ihBE>h+a|)Meh9J%&qt0xvRr^>4wQX0F^yawMGSgJvTTyg z!9=%cr|7gNIvS{AnvSk0s_0Y}I@hy0bpA)$m%#Z{z5mM)VGPDcN@Od(k$ohD5XzP< z`y_<26vk3^Gelz$l5EM?%2xKWBwMm2gA_>yeWpS7l&$;)0H1q#`U$1ZO zxpU5Qp7Xrl&vTx0?!D)uYGk+MGg0J3J91Qwo|c?mBu5#$vXY~2L|Jm`iJX%T&Zm?22!l_{zLCgQHM9oP}Ezq*yhPfA-QV%{D91$Tf{qc^~;8F5%1xR13>%VZr zHf#s$=3=_3Y*632*$=*H+n|DVvkp0IeE9J&pLw?o@)UqM?gOBLI`=Y49b?|jX4Q$3 zI>)U#yl_aX`0x=9Ov=1FtQu{|B>0%GFfCRg<9lZrBA-wN-_2q#MmCcv zu0-HSx&d(9l==TK2Eh%3tysiylIjqlYr`|3L)?#m&NkQ6*3J2JQ)!#uy4jy@Dh0!= zn|0|X{?9V|05~FhX*9KOJ`1KGi5Q9PWJ*f8ZbIPLm+XU$9#KBnybtE=L2xEpnJ)k{ zX;_y~R(_BQ^FmttlUfS#h0TFsR+HNlebh)dNRzGcP8P!l!rEi`2o;bU+yqq6kdh5` zw#3h)oTPw9o)E|;icih26#uw46yHKlpbS=D34;c1Ow18n5zTZZ#v#E0m&K~basy>f`@__C1pdz5Cwtva943?3ie z)T+b&s=#Vz)u|zMuA(QB!~UxDu58uWLnk5 z^57T72l;^^c`}Yp!G;qZ7MxOzrnmU;p1S^uxm)_n7>kH*lh76EX2hGBR-K*DjpSH$ zjCeE9s?$#DM2I!@RH~&_BS;RYM%WY}Amq?^wmLz`i9jhMi1iAxW&@aZf8Hslyr{WF zyQ#w+FQVEhYpEC2?)w2kp8&bJx|s>Wz{ePUr+ycD!@UriuzBBVzKpO@H+RDL zsJb~pT%K;Hyr;WpORLpu)JjodlC-+_v$UeyDb1*r;!`1MHKq@4rsSrk3aL!iU#OFm z(=zvX`4Lyqhx(`?*NkcMQIzc){^cBd``N4+7l@w3<(iFzyS8x-xWbl zF7*xziWt)rwcrr#ZrT2+%+=kJ^EAm(XjD*g)Q$3%96EUha`HHGRE@_iIcJHv3co*P z98RvA0yEO2$iGk@A3jCKr90nGZ_&6YmzqVAl=~GH1>(k%_op$J+V{4V8YN?}6vsE> zhAWpE2sl0a#TAv>ia8Z5wdqN?%5Qi5>%pV|>mD)Yck%{h;B(wo%Wu#26&q|sE!c9` zKORhyF#VI2KGq#_u9BlHKF5-SXhm{{J91QwcuP(*lA|zrMafY&T3K@Nau~_EE925J zsl##z6XaKEHh<%{$o$r~r?pVGoZq@}Pwi%jQH~&FRjQZwHZOT-zH$*lA9LC*)B-DA# zs$)z!C9FD$Qs?I1BFC6=!mK(~q|R&yDTTrBy`-mIP*HMOXO7`a)|qI63(MI_F6Xx& z!dW?>6UC49CZl7m&1+6Ikj@}JWhFNd#cf+Pwr*x3vnX3tv2GUAZB@*=d5x^9JaQrs zA(9r?Z?*+fFxSkpzH8;W34y|k8RuR(70&&-AWe)U|3)|Lng{!chQ_NZ*+trrB$7VY#L%GJ_*KG)g076b^QYO*}6c%;CAwo6=TBp!!J+_&i zvi|Zj{e^9%MxD$0%XRt-ZPVCo>VewGz!ziet_8)o0ZuB!K;Rde@WwlKBWmYROlg3m zBqc@9R&MlUd6TZ$^3;N&iYAZr;sr%9+~fttqjcdcC{~J?296lDptv04s6{3*7Zih} z-EOCyT2OqYwIjBv1;wYh&kKqfbaBS>e8=~Bcwq?05X|-_&tM~3k!#<1gLmG~C9;W{ zX18|U$;V_N$@|X_cang)5=(g5d3SP=h%s$3AkIXvlgfU#1VRxnM$EN6sB$ktKSq20 z-IH$U&%ePV_}In`j$7i1KoimHy=)4)gjWGwU-*k>eoe-(%;(=C@u^{s*Xqx|i-`s$ zY#+OVbPF0hYiYnf_6~Zoo(n0jPL+P1u?hbR-x$!uzVVp|y0l(8CR?UZvMKw_N=~fQ z+GEw?KtMaX5s!~V1M;@7u87wbrWKb8H95MAXD6VJ?Oa)4UNsKuaF1&ko^ltyl`Hr= z-LfLB^`!m)Zs{MN^XV|w2_Lj5(U18E_Pu!<#`p`1L_Fxn9!OtADtRjVC;6t*@bez* zOSdkwFTtYM`vN`ffz?@*tp@>sc-W^*y#-l~7d;ks1kU3jHkf+*_C4)+`G22J_*8e9 zt>V6fM)YWa&fjhPm@o+6zefv~lX-RNK7V()aJi&B8t^-RwTET8QvJ<>x+ zg?X@?CHy?%sl5=KrG%@M;Y>^TF4ThXA%EF1U)31L!YOr|Pj&9Mb03`jx|KWZ1R4}^ z;&H>ZPalatdHgv{>7{s;(bB67`lNgrOZ@QZqMYI$**XDg$wa{awOSUKI}B9&i9yKEo`dAz-hXcMor)|>|Ni1zOMzUlplylL z)^HN_`0+OYg`?J3Z3N$IbGY+tcIUa!xqN@Is|#t4&8w%#$_k;Etqz|@?6f=F2)q%O zo%0Pp=Nl1Yo&-25Xaxs|2Afui26phZE5wKx=l#@V5fjI+nJSw%;hO_m+aMGaxm_)} z9E*#PPbi(2!EB&Q+;M#%e*jU~>3eaIQ1Q@cPiym0y+YWe0C{n%aq3%#+g@6-k4w5xid^ zUr<(_F7p0JwdJY&>R3-l9@XajYCCRne)Tn7{9)_;mo=CkWM_qWJL@LDQLaMNPIVJC zVe&rc7$(=ZH@72`Ak5kj8&sUw0ydbK5kDZ{x$_$AmTd*KA(k9Ej>*<(ptP#_r;W6w z7`3?>tj}!*SEg;tTrZ5jN$WD4^Gt_4^Ooh~Bum*YTW1MCn78hwEYvslYJo7wf`3l2 zt=h}l5FGucV^!)or4>n3#@XLOH^caq&sQoDV zNu86{_t|nmlMKQ4U!~ZQQS#4WC?L))`Iss6Lk27VB>&f5!~Cd~M7^@uX7IlG@daUQ zy-CDVOiAt`Ov^vlvF=*_`2^q4^3Q941OuwJLWa+TNC@N-y|O?rL|wey8V*hT^Up4w z$f(-;m-9tp28d9rMm_&b!#Cq5Bx{y55IMqPz*;FGC3o z2c|0214hx(x|}FGY278f6py@X|K05R`@08Pz_9!}d>IP{8S9nn(R4%O3;o^}jF5eq!I$Eq z*H3q{TYUMoc__YAWQiJI`iaDY+Ph^sU;2v%4qs|Z{qajf@nzIGAHM9v9B%MsFNW&k z%Ld%?<4dPI<^tetM5d5@Ndz&$m)mC*UoO6G^5rDT4qw7BZ182yZG$g!vCAlYIddtk ze0i$9#+QO9fG?XrWa)1~x*uPjK{v#gAF$z&2EOcW=jO{Rpryf=ouHJ#muc;pFUPSv zNzuTHFHeYGi*G5uEPpu^U&2_T#+TY6ao#kMNC83TOC8a`;Y%K=-`3K=8(*58@!`wt zHZH!*!cbj&8HZbbd>MJx>jFgbo#|?Wndm4t(*p{hyumE{9e*fTEZb`{#&WIomLm-?-PP&!_BGiLr_|%S^~2b{jQ8kH}@jBg&FcJ60`A&q94~8iT><8 zmtYHkOo=yb)7r+FD2<;PA&oilj?ydiMg@4mgBYF6vKu;?Ua$mZ%L`Qg-Iq2t6QVl* ztw_+L5lDb72PcQjCt}~S#lGee+e{P7kz{eOUn;zJ@_*0IU$>HI$oq-QQGnaz6qWAX zu-t|QD(Z3;^<6`8n^&=1@y6S%;x>ibtNp|_+(RZUpF7vuPwf3_ z{xUE-o9Y?pCHdTQ(8NEVoBE2&Uk-s*kXUY#zrQ4LeJ!7xFZENfg-IHO@|RiME+TF! zOaxxAM#q+!f3kP*-GqS^i8`C}%ncft?+<2EfqcpKr zJfBb5SQ_H_pG~!R{woS_n~M*!N@bxEyNxTJ|NVlv%_J-c(h$$baSwVt&&S5q*5_lI zx%{OiNC22-VMA2&msdou?w6FQdP5Wcc)tB*m%n5biJiv#`%9Q;;P}fSqE(#!K zB(^XyeN0Dpe(^jS{Zc%?ffa4q<9V==JDv{&V~u!zwuy_MYXB+OaSMB)8b4#+WA(nf zp!m7JcBpt>j3sLEyt7E$I@X_`T|@(ipB1G3JC+8a__>tZx#D>~>!y{T*FWkL&!@cP z6VDT17>%@u=R+uB#E0kjNksU>^A{~aMm(>JX7`Eb1CE0>+Ox;&@J|1DUJA)Cfao_< z%oZ}9uLj7TczzM-AR4d76H41DjQo5*Wv=moGBA*ML;hB#H)KWG70<_vVG?XhRV3J5 z%N@@Lir60xE3x0UG{t_2vJz{>^FzOB@jRFDsZ>^Q-TIg&Sl}fZr<_L+fouCbf{ZA@ zgK~&=EukHI5J}g*xPJ_~k_WB9c7k|NR{LjfBF0>&q&0R&E=twoaEnliesbp{xdrx zW%Y_3+MYFG+?TMa@0N$=K&}IH5#*vxBw@V?ZDK#sf%pVbBKHv(!RXxTupC>Oe^t^ie3luREFF$@PDc@tJ1>z6y{+ z+?!x3i6cZ(S55}}DL;DPuZN5V@K?2Uc>!p{{Vy>es{Cv^dsajzarQg3CNcG>hHimt z96AwP$2K!@9f-1nYs1luYgEv{wK5*1rc5VXho11ApF-oiv7X~!D{*c6*L)Pnzof%! zfB5^?rs@K3OYD$%;mxeU>+-K;um@98O&ECaL63pY)@1|tWqU5kY32kQ;F@gD)Je|w z<%#uK9{nJX_}gh<1U!FiP6i9SfG-;`(cU@d_P1NrV7jVae@jGj;Bw*zh08@cqFKv) zPonJL^211$KL_$Pf169f`Mi%azogOMO1G& zv)Doc9=*@H@#tCAACE}N(c=Skp_>)|nwWSrLD|8hm&gx?d<~DBB%JYR2_My---Py$ zS#=ydCgIw~V>AlDqm6WQ_>4auv!4|_Dq))>U3hF~9cZ~^9v3SsJSrVcBOXI)Ie5H%xj@F@z@yUk4G0uJmUk?zE^mxc+tdTF3JubtwnxE$k+TMnuN1|EI6D-JW^{oc>IQI z8;?UM0FP4AQE_zShsXI!f=3({DCxo@QtU@~%-HS0BY*_O#$&?{Gd~K#wFDGxK2NIY z!XpoISKu*B=JT%a5-d?q|K`S{6b9huA4!yl;(6|O3Xeh!OgwU;?BH?n9hSfUq=CnQ ziVBasNomBR{c{c;O>u4GQ5yx|u~#~phK~I3=zt!{KdxbYnJzqH#eRfGR*c#8_Rtul z2{s_(%8&Hy+tB z06+g&O^GA&-5m;#yLC-GE~4zdX8jqole@EG=s8;>Dn{qZP<=D?#abd&kKPaPAFXp|j1k_NE+f{?HIM-6ZAOr~UDmN{J)#-ES2hC!aU*IDoQ)$3T&v z0Qnjo6G=GZad@ABM_SG^%l(X?!8^><~4rndC?BKl-kaqYz9M(5-zpJC@i zpwZ9I3w54ZHL;_!5Azh?7%h+ATblYJO0E@l4!?)ty2vNg+J^3$JbP-`&lgCH;C?>}3AH$F+6#($3( zH-YLqC-n{6X{I6_5fzwEDfH97^xlN(U@9f5@quOE*!b6U;g7O~zaWmey&v0P+)-tN ziKSqJ!LkWt?T4tx;T1*xV^CiFeYi`0A5A_rN}U^=w1-Gk*XMk^(CgW~l{6M@;exfF z_azGOjOwCv7?k#7(cY(oMO~0ddmX%zw&61pN;>wt3XTG2hew_HhPIzq9?33vG#DFr zuz-5SY&rI_!K1oIlnq~k0zUhBiBT>dod)6%*U8!o7as9`-eymD8HhXr>?sN+F|C6G zz)E{RFKf!}dnvh?xz2cEAs&2~4Pk=Uf#*ybtZ{fl7XAD^%CIJEh)0y16T^~GCcsK8bJC#rFhJ3coo36uHk*IfmK zz#|8A6Fh2EH}NQgvV+G6k$>Tkfyc!X5YF+r(syaZV@P=ikGF7b&zGH1z(86`M{CfL zA09)|BjJ%3YoK)Dktp^fJo0b!;IR-Bzm3OktW_*L3StuX$D<4AW3GPzDex%Vhw(_@ zf1)=3=*DB?lm2*gp+q@8F!XDM$BL>Z9&=H4@W?OnJ3_uTUq+K~#$y2jb(;3;Qp-Ac z{Dx~Ak3%Q`kMq50JW<8bksluCpAbCaka&CXxX<&VNUKBH$s|f?t)Bc4}cI>~M zyNUYs2gCj+i$gd+FDi~Tdz$Ruvy5Z^S8;9Izc~u9|1{}n0Xp)te=qb%{*VdV310i( zCq7LT`;k9nz?fa@-4Bs`*#4094|CG*fr(F?Lfe06!93F9(-c4mJpSy-c@0oOJj z+fV==Wu>FM=*SO`6Ga7&7$n;1!Xr%VM|ixw&Vxs0BtkYGC9$`qKO8>>SMuPo{b}|O zXMZju(pliq4xjK~7(Mu(sDk_5coe_@{N{`8UR6`5C>fAj;Sz+-n6#^VI`dohfJy>2|>3;W|y5zT=|b?9d0 zzm-fp`k?IiM+cGrG~{dkQHF%Gf5d!~Mm#qD&%t9Qu5CQ#qX0arNk`ZA_~WtZalxY{ z77kuK?lWH`GY|Ovf(ENSc$`IAV9yu%ulvjwtDjV(>UTI~4YtFIH1x7$4ZQO4835Ll=wxD6h2mL0RMy{X zco1caXTq$6Kx^zGL$R$pm14Udg<|x@^<*2EVwOJLNgrjyXwm1u`=SrO(-%qaS~$N) zp&+R!dY!lR8eYcKs}IUbFKU$11%jOZuTtU|ADFOQjjM*MeHpDiD?+DF1RH$?D7EuB ztnWq28SkT&1gE{f$1Q2&zwfQ`b4Qu9@2wU+A>bDRsy6r^ST|p!n+k#3#i{0iTK0{-NFhOyJlN%-iGk`- z9tqvQ#ojS=|7E*E`BZ+O+!$7(eJ~mcxy4cz7!g-YTqkCkxQ_8DR0$+0T2 zY?q6L5y@Zn6F;FB4`vIJLl|RHC&v#{uAqVsKkHcS>Btb<}k9{oibDZbm}-I zjQB3`b0zjkm)LxoSh7p%;@~suX!00|g8IJM*B|)%W*^7sQCJ)UzVutLJqplt2R5al z>GE&=9b-T~ag1>6YIq$Z#dZvyKeDp?Oe5ymI8HAr;8w-}Y;ZwR3j)T@gc`?QF^A}UW zdU&F!Pgn!tRN^NefP#jf5MJabYl)j`0Mn5)!bsgaYJTzy@qDsv?P6BDDLSX4rQO+* zntzZ3Y5t}BBl&UZcLTLoHw#JoiFjGocACy+d!^!4N(AxyT#FUYYoJqoUMqvLavyGl zd5t#a6QY7!6v7uHfp84DkAh{kh;0P~paE>~M+sBxPbe#~)F^eat$inH`_CfPcB!lF zEUhgEgdQ{{eYJ|fvYvO`Z$1j;f5FGd|1ynW|2vKX{BIiVpCezyP&tjJ_sX>ofv@Kg z|4YEC-RpnPz9t zTi8(frOgVRm!YJ`|7Nkkh`4y_g+@gV_n>vN32wrFepu+^l%tWuki(6WI{kr?$0?(& zIve#Nw8gj}^ifNw&ldtEtY%wvor z)c}F~G=cmD{qVRiB4LCvziF%ascSw`#O`mkCwHK!VjspBSuMD>1*Z%(eM1=VBX6!Qjr$2AVPx5ttu2(?FW%zS> z>!#t)vmbT&b5EqWpx~x_xg`UQ>H2R>?Bu%EdNF9#G1iMoRvlx#cmP9C zlZurPZ^W%D5$(3B0|T&L}Ake>B#M6Z5h$UTrSMV1K+~ z&X39;Bdzw7?%F1ABJGb9l=ke8uK8I_k;SBH$6=aF8SBN2r~vM7oTK>L7*h3w_c@f6 zOR-isN2nR9Bt-qaT0wRvD*nunGIaA73cQE@XE5!z>Xy;bSHC+#{ygqbMt} zmOuQxAWi-dYW-F+LL7tFZv{}G^&2+&;kmt`sh?v+L2q)5{a7`49mBPMvOA~vgR_6~ z3Ot0sErS8r!RmSIrm=srESJk4hJc6ghix4_{_r~<7C`0qS1RL9&IIGS_fL+qz=$|& z|D^Z~pVaOrO#I{z*8a(Es}Aous(8EFs$=Y*tiTYE+70?hg!-g*L%G?1?VsGhq!07b z8%@XIPvRo9cY5sBAf4)ctDAaz6K3^1)_6r}@{DU0G zXa6M8YH#eHoDApwn^^Bsau(CsY)_OW=B!3lxX*&=isyIpnLNLUvd(jm@^N}nkr1_H zxk7kFMj#xcuedsh*Z>fa{gcHmu^(w-2}^DNq_DL8>Okvyt*w)xz4Ivrwg1EZ z$&&2iAMAg#P{2@I(zB0*s0+*d*IR2J5dUk8EZ^&YuKkk+EMH%59Ss-ojrG>I)=gu* zRhn;V`}wz!B7$PI+j;!&Q#^!#%GsbY0LG)=Tu{>Ef9?7^3M{52WV!c&Is=klYNAA1c+M7-E zG}c=WO5-vCY0TU=)>~&`czE;CDav)qK_z`MER3?tn?I(f2zdVUnc~Z-yLj)_*gu&l zV(SAs@#dfNm}0+2S&4Odb8~5%{DEpa$JI7LYwLLP(m82fZ-tsqk7d#Pc`pj^=fijq zfx#BUVEy((&*G?1ii*RqK=@C89?bG}e}2#c&G6^T4+)ZnKX>4pnm?BU_d&sauL!i- zdaH=2Ty=@Urxuj-_;b9~i{Z~VvKs#U&14^c?uQhDoX*-0?E;)U{@lc>WBBun7%cob zk0sP+l6}}}X83a+G`o*K*TDx8`u@pwgrxiVb0R?S`18pJ*_bQqiZSo!&t0tchCk1h z_D|%J_QdE=`zQUS>enr$YRLW2TMzp9b7g6~$l3(=`f~sk;Li_EQqI#U!gRcsQC5z} zQ+h(+k#Csd*%m3j69kDKd9xZJPOjIiEM_oO{Y}VR3 z{(Su7|Fb`5&7|eWx58w8re`?#os5P4`ElT1@#p2(jqv)jD?eTWk@Wn;$&V{rpc(mb z5$mRrA5X|k@M`|t9!W3!d46+`KYvOOHWH%VT%hoI`yU^F-pB&&{5VsBkL#|-#7?ej z<;P2`I!1mx)v9CU#}hFGxNhqSA*bRF-0Z*d;|KBe>%@xNz~C~5vz5`cK7&Pc0{;eREGLG36KN>U zja)p}r1N+1L7{U!e*2~_R8etxDGWh;rk~HXZ=S=6AK>#S9L}re71(EFHMY+`vlSig zT?QRe%y_Tnn--Sbf+SbnoG5Yw4?28T?^miSJ?XF!oWlZ>2v65#Hc7DvWyMo&gvCfz zR;-h)ST|DaWhmzCFGY&n+i^;6v`cOiO)eQHby4uG$+Qm%YdQ0o_53;X_k~OUC3_0V zKEbv9KK2w8V8l}NxF;d%%q)v!)DMfS%d@phcTmvV1lYb`!x~}12T$t&8 zKRfj=nBM36!l{%&;(NAOW&e|5Cawoiws3{~GxUfB-#2%ObqRN z-BCzaVbI<69cO?#6-AwCA1f!DiC;4C`Cj)bv^T!{t{~#}TfW5<=JWR+8ttLOE~FEn zgLD4gPH2n8*9D^#t`E}hKxyZ^-FQI9btpaE zNr+lI!@zaj1&oo;-@82leS6<0_Koin)~o(a09(H&^fU@EVrA)N1bSgiDQnSQx37=x z2-Dw?YI`HO=l6t;-Jl-y--qcY#&>?t^2kj>Lp$Gl0Wwv9oBDzQ?%XeV^y@!T;BLlI zaQ^2NN3uliJlN(U@j@miChNcV(LywE&Vwx~_1~~GAQPlGzh{Xsae0I`qp0a%8D@Ae z!}&d-r5LJu`^ z6curs;f`t!m-9IP8Rm%x>#n%s!CGi*$Acd8OoCK!f6Jsi|E7vjtA$*`Njj^_o-da$BSGQx8?Um@}dB6|Ej>%OC+%s$!{R zC)^V6DSnV?hDg5~R7?ndEzM2?R^l1Qnes^bWS&5r89zkgjPZ#>UF124GlT5ZuntUy z%9*UnybEgeX@#BK+{F474APF&$$@4dY7GCb3qEhaR}%cXN^mvasnC~n+reld?Gu>9 z>`eDIGDXn!?7NDt^>3MUeFkNfZgP-J2<$G$B)a^8Lh0{wKxqd(wo_JGC}JzyVlVw` ziamw05=)Kn7RUn#pXz-6wD9}+OB%l`p+Lb)R2vJ`{P^7jijvjNVL^~~ejoeG&F^kt zJjmzp`^aS%zZU>3n*VAT!E9++w%q#3%5s}=)T2MYBUz%x@8%-$g2gk=Z!~@T{M-(8Vn82s)6lY!r*t;#<9 zF3(L|{4R}VzWlB;&*XP9+}VfUk5T#>AIOYuB^-CZX%ewD%8G~-j@Ky0(}xsE7+)}KGk8m*k@pU(}#j|vd2 zBe0N3Lq3<4d(iW_>0r3Q=gfRV%jXUQ9I&7Owg@Q7S@AlL==Dc}vebpsu$1rblh?V( zT{!W2v`8$7_(Brhe2(S%+V2T9m--X52U})7S7e}1K6e7yf|1W1$H-KevI6UF+|pn9 zQ~BIvJUY}v=tyueWIneVnJgGFdw^oZ-RmaNE~4zr`BnGIy-}9|dq{w)9j7J^AMU=#sdTh!wMNN8g~S3pYlJ z$UlfM64Sb~&sGu41ZAB4fcapRng1jCgdH~E00NCN;i695ctx4_Ph!mPdiL>>F)qk= zp1Bnjahq>weBu3ofBJg!f8+%~y@H*Mt%bIB{=a)A51HQHDu_@akY;2Jobjy&amfE6 zT=2Ym*~IfA$_}0{mlXdWXW+TwSBz~g^0VNzp$495$%o4SA#Td~esL54W=82|AiD9( zhiafd0`n+Vv}wO1^yE-E?vCjLOB9+pZW z_`MW{H2D1|l1Vgc_o9r%%kQsx`S3diDTTrB{xBK%UEQke!|&(0iHqOW(ae|M$*#%u zD%{zJ-=!%Pjt>OTt%Tu0=S_ZhN7=>iO2rtZBC!gk635*9K7za!V*B(|Vhg*(=F-Gk z{4PJp;dkiyc*yTWHfuia!v$-9{xuXp@h^+AcB@DG&&NZ45{gG+{ga;gI1wZV?#_Ii zhi_>6alZo}5TPWN)EcFWiaOUuDP#S66vpz-$1P5?d}ltMBI2G#U?6eKXP%GWc+)c< zKZzv6n2(5eB5<_F&~G2 zG4QO-H#9tRBi9C=ZLqr4@QkIe)^MI7)IlbICvZPEp|HSX{p%cM%deFpmEXoe98}ShyhWEk< z1J`nD9MW7eI_0~^Gg6UgW5D2FFlXK7W zmLA-LzCOPJ>KOCS>wH67Z&gB83^aylCy79>xieU=`ok5tjiHJE`aJO@cj2thPXjYZ zoLorg;+cQAzP3JJCH4Qo5|8M`^My{>o@ea_@f6O~J zpSSFr#&|I6IN4R6hfl(_{XBd$3Vn1`M(RpD{qjETnO2mGH7m(2LxuV$5nQ!MaF|_#H7s)CNx&ccz zEk4K7gD*V)dKdq2e1882jM+QiCSzQ{+nH~RinxRLYK_D>^X=u%9y+W;5@E#Wwb0g% z&ux&X>wY#E!6#&VUJ7Ob*9quE;`5EuCa&jDc5pp`Cs7#Q!gmZ@7ahPD<@r}{-}oGQ z{w;M(!?zF@tob)L3cz=!^wn~e2CdhqQJ_89rq>7QKqeu-oe_};{tPxs#`Y=9jD6~24+`r=!R#cB9< z7IC?(Z}%MkE&r+q-y4|L4ScUdTN~dEuGirfPwG1Jqq8_Z>AI9o`=b-GGD%mYkR(IjsoD_E*&mFhYYW4zU+mb3EoWDw(-Jy zpZRhs*kjF?2RnKU{2?ZOd%kQi#`KpSa3;@u+2RPxbLPt_$T>leTKMJ)!?;b40CApK zjC;OZ`aMkNGhenqbKp`5x=CD}`>Tn|M3fy|Vnlvp$k*n}CM2Ba%V|B*IA0z=b_*Uc$m!FCN0`{JCi0hB9XxnsMp|U!G2=rMk7FRe2aoMZ zE<7^AXMo2S^kEy$mz%_R6zuQDqW}irhsSm>0(dNFukgr8hg@p!@7z7E<55ZEZ|-N{ zvE@63N2cy+#G~Pl4jwgeZR1e^1q`IUbQFh<{P1Xm9?3t>V6~qvJo=0M2#+t?dGHv3 zq{PM}INHRc0YaMxkBZDI{rqP@3OowuVLYbcQ78N(p|2Z{_+9>ZRHQ^XK9Co>iGK|L z#l)iz%8q|z68TR>5@h~N*!?UcpTR@ z9(ho}K$4}SuIR|mKT4xV@{b)@bEXTA7Ggj0kIAh)c(g*+VdJr3l#R!JOltmkL^7{5 z|7ecH6nJEyFYFQmkI684_i^LVbGtttk(AeB{rif-Bl;&3k0vNPcub>5v{?T_zJ^Cm z63%$E?3_kCX6VbOL-`Mj~%*6ygG2i z#A6G}4jxa4{9%x<;W3qZK3d}aoEJ849X53zhr0HUU<{MYui6Mqkw^I zm5$b+BR@QbqDR6bFBa_S!Xr`aM|d1-?!jXr(gYiiaeYlZ1|u|i@aO{iAb)o9-T8nN zc+9~!G#JJ|{7=;8H{5t^+~SW%7c>VR)uEgC$BIKH9&=H4@E9iYJ3_wZAJHV7{bNDL zG~$u^orA}3xVG^)gaQVVN>4$tUyhFa@HoF&@QA~jAYFJwiv0+W2F*Np1dy26cpSr6 zfH}?Q35at3^GDKd7an<#$O4b>hZv9IGK{BtxbY~30r=&+Nt8HZ-T$(}qtK5g9yw8V z@K}H+vM|&B?gkzQHYq&vc1R;0?RPnNG{v=zM{N{<$1Le+8andBqXT**|G0)VLAvmW z75fn$8=89X7=tvy#$)$X8;?7f)coBQI9>eIHKYYSPkBAeZ=5%x8F>9kg z9(B+hcsvH(#6KqfVB#?xWe1OzBL6wa*ZiXf31|O^YnMhm_U>@-_y*TD9;;BmKq^W{ znb46R9{au)Ji1~{kS;u~G7oq@FWJO{$91F$HXch_nDJ^iT+0)$R_}EA#}z;dJT7Er zJbKZ?VB|lqyYa}50r>gHYDyfj@7Y-4ad*Fo$3>JKJRZbnN|3+2tAWRguM{5F+N2SW zYTF$=%HrC_qbLd#ukhR$9mSv{KRl|VNAi!uSZ=2ak1k?A@{bvfJb1j0G{MGWFnnF# zKdyqA&4WiV=9T6josnw-kB<1>2g4{X!x+}ZjmMA;{&*BabKr5ip~9ojJ`;~>piQrxA~(-#U1Ff@>R(DJWndOQoYTo&E7xwqEe4i-keD@JM1F zuzzI5m|f3%jv!62@z~Jc#A69UlLwEf+g$!}2#^Ag{q%VozE7m*#W>IEH8&oq>-_PU zN{J)hcYI0VadMA|#{rZbJUWQ{1jyI$m`K7IkHf75kLO#q3iU~9u<%wke?(kOY!c#; zZA@)wJj;5}eIZ!HGWE~2krm&lxbq(4_+Z4CB6xtwZ!&g#zQcCs`&awJi7srP0lDoP zof-H6v*8dUUUUQS;`lScW=KZHY#qNdV$1-%s$jorIFsAS2go$5e~4=+&HtvG{7eB=>&eYAxAmL3k@*6^Hdt_B#^6`D@q0Q6f!FZV z8ipy_3IFgDrjl!ggIkezr_ga4`tR8Glwk&J1>S^}@d5Q1`o#>4J+^`0*jpj1kg>l* z)wE#_+2Z)iTev2FsYt`^jKcFwOT;bVKtfgc%ZM@kVGkY!Y;d(6+W^D2d*6*&9~Q`G)8#vujGh*x z1a)b@Qz{!DSOo!4652(KiH2YdtQfRQ>5A)MG?i9ev^au2wdCou^$RxW2JjM z)*T)F>- zam~wVoUd+u?cnhju5CO{qkw^Ila4B(BftFN_7{T3G%WAag-0>5UrkW7L0u0XParL^ z@u=cjf8GRLJ$NK>2s>L@(Q>@e{t zgtCLjM3Mh%I|GlCD-|Ban;Llde$U}Luj93^2#t*L`%o=Wz%Xh{H;d2>qd{-kXdia> zL4Opn9>g+4(9mBrs*cblM|3#z8P&eIfjSD)ejjQq8#5yABE;KKqOW!H5t>w}V`_VX z>7$*OvlPg|>{qa?p;?CN(RVD+ee5lU;On;dhv%8CD_|Y#yl>Fp`P%Y+kZ}sgW0<7r zgpV`SUwrslz~MOs?*WHOvC5d_OT#aN11;81wsPzDCH31p6k2*sW3R5 z3vx#fi3gAmVsLwrI?~{1_DCs;IOy2ZwpI(PJ&Cq&PL%eoPfB~9N?hkvkxVjd7gPoR zN z{9gR4jfli`ea-_(3!gt&C($LGh8M>L>-?EPD1aa{|6%pNZ*7sAdeu&%_+Xik`+rzI zc*z~={F#j)H{ocUKeNcXX`MgwT}>b6%|~WItg_CZX<^kd&Yu}>)p4CaQ=*+owECFZ zglOLLXG*OX{fzTxx`EN)Sr??lif6FTyEoZB@4TYm9kCSfhB$vF2{xs18|TmD6uGVO zG6KnESQp9n&2&w`q*C&S_p)jzUR3@D-D&gClPD|RaifI5_kXiur&=k+&V3HW%=2fa zirfyi+>={Oxd%{Ia>)sB{>)!5hT_|O-v3!c=vkpXEUTM(iNEc7?8f^I2(V zPG;DF?S^#CXD!&?oL>xn&NH92LfT@_XMiGaHh92U4?&$SqE23@10LXg=trS|&--@$S2I4&`*y1UF~mK)$w5TUn`jG@yO!hi zkaU0!&il|W0Bz@eofpjTkrmNO!Us)8u6e2&CB%5HS54tMcB6^wK$IO^7vQ}BSUak@ zfotW(7$d)LH?$u5_P!4t8sCjyX!x$+f`#v=D8Qi2rN^ty{PEqmNbqfe{fqSAn+*2A zKb-gNn)3|}-y%qc0Z0!lC{(b6I@|HY9|oudbp+q4P{0S@sb9MAJp{}kuI<-ueBY_+ z!M7VS8w20h!4?PK9wxpe5jsNR+ny3^yw`wEWS(C1m5J|klpTEY%J5pfY~cIKLWS?_ zy6MFC_zJRv#M2*eZO7AXD8QcOudqGyqC>xUdSZdV8-r~FFTD48A1h4kUlU1R{%1V~ z&Wyyyj;A+~mgxJ7$KdInc)EQh;%)=KQG zF>o1LMd6Z@1Znf+-Ss*y*DkUA%}oqkwj@G0$J0!8(il%0F4z361{c)(k0@Xy>!qhy z^u&O;vZ#jWk|wxhY+85$2^~-Si~SsbJI%z<{OwC%0)yT}ny>j=Nl|A7Mz% z{#J~|>F+;^xRiAcA`(v@dd5SC8<@2Xf4dHCZGUU?tjUiJh!i3HEtRrNyw_D(;aV9A z=(s+Kvg2=^{$gCuHZpKM_o?!?($A;U-+C@}{Owg-+y2%Z1;G2LbhrQ=`uSTg^i1$( z!rI0Q?|uAjD%gW~O8&Ma%46UUG4b2}HscM`o;~2I9)D}G%;j%WkgS3pkE|tw1zKEW zyDe|%peyuPI?vzVTA(>_$pPIY4$fU;;xZ9s2bYrOpE0%8oPK{*w`^)xdCu=jUMP z#{TgqY)frd z!}RPQH(cc4T@%-Ke5`;10?P|B*0}oq@v+ft;pQ3S)ai|oXDGXUcJ%<7kALD2F$H$74N5==wmsOM) zPJ*<2qz}ptC9;Y9ry*a9k7Y%LguJ-{pfUX`q5*NDgI1NaF#~UjckGwLBJ9XW7 z-1^ubk3>p*@qQn4llki6aubh}C_8v0{=sIN1Nj;rb4fVkai)rUzVd9j1Yz@=%&f+*9fH#LjJn!t!_R;36ehmD8*^Lsq z(z(mw{hoG$B|1dF2)>GBghIRVyz?m$6tH(9|HpzN#?Vtd$Z02XDB!3)sfSq(Jvl9f zI`-akCuta$j~db=MbDAfh31PzCLM%DP$d|S8_#c`O=+4GcoRDz(D@wOzF8fy)Yf2$ z8A8f$u#iakk=ER0)bl|5AzBw1zB7+?hV^N%<4|AOB)YW6CJm7_P_@_eec^mcm>O}w z5>^ehV3T?xN4H5B%ORUQOm%#R|M;iuj}a5sS(|$~`36#eg}7l4WrlPXR|!V4Z60gg zq=(JWU|K1kEz%L6@L0yZD|P0fjx|-Nadfn5>_v_8hn&55dGLC#y%{JUM@&q4jkc?8 zdlP7F=6UANdNStVbNCaO9x>^0GABA=l)nSYuyNdU8l_TYm36ZSYS|PjC^yG+(r*S~ zT6lh0WZIPISS+c2hFNl}mSV{R)8U*)psn5St1vJ1yIxmjrbsLDxf3~3zp$H><|YGv zOle8XR=Vc11jUjdb+efW%7DpJLGQCfvAFut1~u+F2VUWbX5s z9dA@N)GV2YRMH+&nGZ1}{3?Xg=>!;<=sFPUrR;<{!FH8yJAd8`e9`41yUUniR(JQ7 zINi|*QYV2$O;C>>-x!a0o<$ylF2+?NH-`VCj*CSPbB)2{ZP@YwHY6MeQ$B~TfNBal zOL-FQaXl8-sS}jHhI%=~e$C?69QF~};JC;IYd!rt3Yfq;;(Jw0U=?fnucvQKl~^$q zyItN1j9kk9Jgj1DSZ)7m$|q!LZ9V-OQd5j)2~t*tH`F=sJF62@L(%YEDB!byl{A;c zY3u1cBJShG8V~vWjju|u!5e6A2rNP#fa$X+ypQP@TnKIL^>l-_=rI?pt-lwt8W@2I zy&z2HySs~^p_YGKMA@0|3dk^)KWEH$E2cp53S!x{@@dRJs?DZx3Vda8ZRa0FQGmUU zo)UYZBfs@>b@WIv<}h-0FMRh|FLx39)&ye*Kj|^x>zHfp{G-ZqW|*r2_ImP`x2Iq!GW= z85({kxnSYtESm#n2Nw6a{zfDQ)UR!7mo;d@p{X_ZK6@zRv#QXwb!ohs}@- z!{9TJDQozZ5_P&htMGdh3i#l+{bLt?8AaUJNW)1Sh?qVMNremrHe$Mln523A% zU)Bbuf44zsVE<0JgHYyrUK3BbCEhD3s&GB}sfp_@lpS09i~{g|Kzgi$9{upmj;<+SCSubfJ@{4>`#bo~2b~Oj`+mgu zZa8b;+wV9VAnqB3@B0&c@lD3KjQOspi2G%!8{hIpJov7g=E8R^v~}>UX5u>-ktHO) zOF*1K&k>1I;@B;wfKzJ&Qk|#ZQqBHKg-$!Ft~! z3kpEGuJqj&efuF@1WFLnUm+_Oq@5LG#F&+m*%WTS-TXa_hJu5Gb5*`EV4$7Hjz^LS zKi>4Sf%AG45r=0-DV*oO4;u{SECX+x*h%g!=x*R#Rm8o7aOn6koGuOy%}bZp3i%|R zJ23CVqhH4K{k-*eY zQvj3!V{|=0&y2)`)(pcKp6bPenWE7T-PwyfgwT}+I1-8k?LnN8Y-^N`&+4hdBUE8- z1+M^c&~hr7F(JTT$Kv~siVmw#6Zuwl3@GI((9#vxS5qPxA87fQ!u#$l6Yq;CJAVJ? zQHFYX1;g)Gya(a?b-Wvl-^P6V@z2;(4>Wja8x3pQm54T5Qwl?e;Ql8G(e&V%{R0Qj zdy_Rhub_Z|PZGuILNPx)b3j9~>H=&Jc=5bXzFbl4T@!egE8xL13WF=iY~RM^-S{;e3lsa~%U3Dy#P4=Is_?5Z)5Na~ z$_{=lME-?x27VXEKse{im7YjrzBOc$gU4IAw*9L!3K&Q!>1Yi)^21{&dL%sZVoi}Q zJQBrzgvY!`Ja{a`EN|nn#6ADPH9dHA0ey`1%X~lzJnE1c@tOBw#$$6?Hy#_~{PF05 z=D;HpbhGl`873Zdww;5=#Uz&B5%RV5OEd{*JQfr)@bH~K<@c2SOdt@#MzkWc{)z&$ z-z(C~LOO$x2|-5t*_6Ly1%ydhC3|PePKdtp+ATblgpT7LGL3M~Q_m;HbIwm5!>rKG z_iKr)7S^l;MYQC%qUhDV3P_iJ48bC zo`~45&;lW}^kx3lrr?&MW~7;mIZdYXXLvfVW%m(GLfVPphu@IlQ`af)q7rhJaqHOp z!Goh={A>D#;9N8UiEHLlBu@FzB=OHEJ0u?QBa?VWX@kTckAm1a5PKz}!=45k&@ugQ zqzt3{t`z#Qnc$AXY2|mec#Yq8-e-OnmX4dEV?TaB3=If}l~}cU`8~nS?{7%NO(1pYAq9SoSEbPbc zVxob=?<>eRp~16OS{jPqsoYOQTrw~~?ChG?hu__iBM`rDp^nY(&aeTd@j!(3n3B^OK&)E`YlW^9xe?Veh}&eIy|jg?YNK*7)C!on#~=6H24-Ct}I> zBY@F<-3>lMTev}$NaY5nr=Y5~7j+0_#|@SpVAMbOpWy~mhC}Q?c7t5Si)(%m(cu&g z>{@t)VsWGNAy2%|i72VFeg%R+hvbSr!5ul z4?mjLc>m}ajo;xYfZsEu<5$tKAHPdL1LF5LNW9a)?+tP8cwY~UH~77Ftc%}qpajg@ z)%wDLXZnOd2GQ%ICltTuyc>$&S1}SJ-d7NbNwBaVzblFc4!<)>{THo_Dpb6`#r@d) zj>+l6??IUOJ^bzm8xX%w;{Yuezgy!^E`HagTL!-?;Eu`fd60B}e%B~z^7{asIt0JN zkQxJkmkxRPy#ZUI1b+rHzQOMUl<39>-U?Uzek8%<_d_T<{C??s=J)Pm2EV@_oCbbh zdpNE9t~#37r+)tw1@Jp%H+MV&9W%cPTzQVmS#o`7Km+`3njgO(bLTV1Mu`VG`Aj!3 z-r)CI8p&w-5~+eixPc zZ&(?Xi{D6HKFjVyiOMv4+NsN8440_U@tU^TdYSgvD7T81%g&a&5oZ`vT<`Z35}ZFJ_L=_?dtL z_&IbJYxi4We||0=ApER}<%l=_diYs|d(h8|-v!1R{EXroTE3kLi8T0mW{1JgGdo$Y zhoKiN0)7^RCjRTm{v%!ScNLfei7fzwU;JIo^|kZjM@#+hk<$3&7vSeZ5Bcyj2NE6+ zKeNE=iJyaTR+fvO=P_^>KYzw8lb`j`&X=DxqRe9cKA6Jh6neS7c%&{qQ4J6|A!YEh@X99(#X#ZdD6qre}`)Pynq7u87|t@ zgm!-MGYixtjXuGmAr1VT!9D2wd=iW``1#>*SN!Y>oWZ8L+YEjV*v?iPRFEw~`ES2a z{7f3=;%6R_xEe6{@iS61aN_4_WOvZue@IFE`T53!KK$&3In%?>?ieod^C$dvyo;ZW z@Fy2PpT#YcpNrAXm!ExJH2HZF)DFSVNDK%3T$5SxGkOe+sPVH2$__uDfZ@T<@W%{( z=Irak&+!Wxjo^>;$F#)H{JGM@&vx%>{A`Q@_&M)e*6x!6{`~Czw(#>F()%><^X5D5 z`F$)HYw+{>5Enmp0B5jc!8Zm!vx;6nJ<1jVKYx8I6hAAnL~VZWClVt8gC9Tpiv|uq zYfJs{NGbgJ`F)rVKlfph^YHUK443%%3=XAo@pBpel-Z_gRrk>#N=k2#t(_{`($@gIS*QecWj<1u(=C4A{S~%EP$x zu)|Kt5N`E?RehePB%(RuOQ(U-fvE6`{_9$5kGO<{uT1lmd^R zM=>6kzhZkej&$SEu!lb$SHTG2(Gt1|9yNxVc$7ie!DF<@zmUhk<6?J(N2M%j#A8Tb z2amUKZTm-O6oAJI($N}p35)<9m7tsW zN1=C2JaVG!;4zz?iQ@d<2m_A;T@@aAGo=xa_I(^Yn&R5Vqc#e_qpNf@4ITO6(E&Y@ ze_X@%L%Q&Y75fn$mu`CS7=tvy#$$%dKiXhs^Wag3d8PTsXg~@)qABbr1m>(|d(Fw| z#$#3&e?01-ImIjJCU{I7Wa2R#We1O^MgDV;ulYv}63+e+m(jq(_j#G?e6nwQ2^xH! z(;6;V?-wpc0b>fT;W7OaZb3tvpxT?l-*y&g+G0^4(CF_MhC0tFmHFU0&*`Xj(>l+o z=HF$}zw0xTL&zj(2QPKs|;|8_dKWey@{{#Ikvrd zIURHX*8PTP=;9qEdSIFm^;r)5!@F%OUjrN=&T|U0tZusAKWzV|=Kr{M{2v97Y~3n0;>6_H^!YzHY^|>@!FI0q562*j zu>C)4gqg3jLFn-Me@~X@%#WkNHS&K7qX~h(zT{!d$)+)cIWg|GT%+w!Yfi!@=VlT-$i8LIDG5Cmm%%M}F~mAHAoEc-$4+ z8R^2~D)WHz`A%0ocwEOsZ{snew28-VL$k88Knh)1>V4jyH3ZR1fC1q|fM zN*+iII`YG#I(j5L4kO1-7am>2el;myx$ME?bz~7X9#vfVd=-Q;4<5ysSK9p88JR8c zs4>sr*dGI)biQdMe4fay> z_0{&-BK#2EVzepf>DKjGmGu1X_ydRuD}Yk@fT# zJMk?bH1)H|cC#edlb%H141Qk_N4jt~$V~qGeX%{S(SX$Nf1`k2&wb9;iBJP_y>IYS zYZ=g6SQrS2^h|dolr-KC?!i6i&&vjOA%hO6YA2M$9}IfLUTv5OfmcP1HW{G}ClAr+ zICTu$kKaImQJ1o)h`6craGmrdOXm~$MeQ4Bk?=u&Y0Oe&Myi)O*T7*axlep}%Rjwo zwDpSaYe+7@@!n)|5)kZ!Ch}3$(Bip>@OWL9-t7t^ElfGX4^*9Z4kDRD5piwwe7A|H zHL#bcMPo|IgbLdGifWw2P!;@MlcMm^ad;c@qAySY z88R+LM+s3G?`4zdMp|mi-aRdZ44tt`@RFgL9SmIG7xf1zK!KWe2&j!j6cCL^;MXWH zW)XMZ>TWhG1hhwYsgvyYUF@Y}BFl?;)t0vn1_z+==RyKH8Mz4n?aIe^0LY=h@4Rd6 z(*co$=Po%Hd$QeMooLcO#A!%IO-*6_SV52F*J*8Z#T+}P9~ z&oHsCB-&}jcA;kyJji?4ZTS6_t z^T94Ao;Nz{cs_P9y?C~3qv6?@3l^TWPyn8*KV_3n`Ntp6c1;A&E6A$TfoB-oLyNbE zkU+v7k082hcvhCq&)!scrZ)D+v!dA7!LvC$9xZc;;ct!84w{jJ-CVnaDvgp5Hm@1`3Mkwb$L_S^bhZo{GR3ImXT4zb?lA z3rBK|=NYK2_*P0EPazr4nmKI5x6!HJc&eal%HIxR$?h4?Ew+_5o;@vjJh^2&ZAJ9i zYwqzRrHq{FdZN`H-5US&| z9d_aIJoTvQKktKxuJL@=%o)!{T-)PWfda-8EuCfvF`nJ^WjwSV_KYW5UP*oD(oWu^OK3s*C3*6Jb%CJj3*V>_IOUBfbo1dlZ{voo%-?Z zW<43tWaR#y@oZ%5weh@<1QvYzkz;0{s)$~A**%^_2-U|^OpWIk?ELBe^CyVt8czvr zJO%Xesv~KF)(-7A-J~dDPK3S#H$>`K?JZ;c5#e+-8Xt>=DV9Er}VF zof*yB+c4QuBwLn9wh$WomMq!wNg<^BHW(p^;`e%<=iGbGeZTLN`F;PGdEay1=RW5- z&+GL(=Q-ytZ{Y08w4^^vaT?*Rkr2^R}k9s5S|X^TZX$XBa+9 zenNMGAgWk0J{7#^(@@ez>`|G%w1&hSA z%cepzVxUkJ^lay^^+oQB$4$AD{N#?*-H$sfrt$sbGOll+nVlKheUlKheUlKe3mpX86^m*kJ+ zm*kJ+m*kIK@Jaqieo6jFehGhMza(cIO=kC+&X^)4{;*s#jVdkIoGGQb(vm+c*IXjs zt(5Qh!*WgKj9cY9{;*tgFI8Hud00xyHI*}-rAn{qj0Q@+2;Rxn<7rcHgZwaB_rvi> zCgC^ZIyw9>c?$FABcDn8PwRsA`^XP%|0YtAf8S^a<8In%2oatiq!f4 z-ydTdY5rJ)3(6m#LIM8RPSk$aaQDZUI^vK2L&6@oG4gB{^J8CS_Zz^$^2fHSG7lpoTsD_^VUIAZls^wlA2st zh~}4>{APiY7eew({++JR@{$n} zY4uFi{`t)&G@*D36QKz@&)dw&zgzJE{M$c~6c`R)8hIixJLVQJq*G%TwcZq^%~frTv{>q*1=6GX?Udc$>k!$+mzPpV-byQw^Ky4g2d2zn6xaRKv2;u<9)% zPH(l0TA4hWqZd9<1@ZtRNrdHB!j3nPv*^2yzI-r^y8bVB``G@}1~=sV0cXOVL9p@Z z-{d}5$+Xjy0Ct=`q|msX!K4RObnN6ys!JlHbHucZX&ckV{FN_=8h5$4kq=*@ZH#A+ zCpMy>fy@mdERjw(UW8nhL4~&=*Yer1FHsO-f5CSN<&E#_uoUBKe8#-6Cp5WIFi$bX zJK`r)Vmifij(L4Ynz4*pc^kyVY{s`ZsuGucE1|4)J)XLuTU@9~6K{>ujcFLkw-SG& zFTT8MD@O6zj0TNpys1&~jRflynjV$@!*OitXoQlZrA8G^k#=1)5kWLGVi@)F8&MPQ z-fbxDYHIC%0@tl}Tcq8)s$H1YZmr(#LuofnwKEXyOw}in@8FGY?@Lz)@D+;Xk&5Ey zL7>XxWPekymm$Y0)Dxj?)tOV}%)jGu(GQE@%yat4!=-Um)wriL&TM2h{z`9bh&hjp z7oA>^#${hLbt3y(YHZRCw}J}9I8tC+ZHxtg z;xu8LtHq~cvC9;G8WhGlFV0KpOAA(DKs96wp0jbe8&m;}v0A2vi9ci16Jo`*r!m8s zVvWKCH4TJ}7GY|fS4Lf-LDdT}-!KuRzdEWvw4F)wq_;r@#=VI*p>#013p0L!N!9ot zCYGTEc@*ie&+7DX8AUY4ozO%LrJmIne$Ni_Yl{46Klx*9`RgbadK*Mr@=cVRk;g*B zXD^_E=M2J2u;KfYkuRDgHuw=Xw$uqBYMC}D4dM{cWnp|6En}RVuv9)R`&0B{ z6{b+Z6m=ZKWD<3d1S4kiJ$z*p618GHyNsy_XBp+vVm%j0-(-*uhcTYrRQj`K{u~XG zZ-pk)dQO>i2Ld>_a>(lM2pU1l50sX* z$g#0~e)5l<*vC(^dM}4j5}31SSQx@ok>}ZsS;xq$>D-5W!qoW*e1Wr)55eOUG=1nq zxU3ll`rW&KKPH_flZ?teP5c_5k!oK{wTE}Z4R^~HGri8#j1x<5Q=DMCj>L%7Y2$P? zW}qGpGG8@o$IbYRcpR!J_zfTqLo{iSE5}B2!O#iFm|%PW(3S8-&sm4FaOhhC#}w^C36R{$2S{Gt zahJX>E?*axub;uKHyiKK*Hz@}ufOE8ub<$vtB%3h$uO@`Sib&Ip42!hU-u;8f6&?2 zx3ln$^7UHzx)FW7fzCcEUk_iy!l%pE%kePmMqIPWVXT#}JIU9BNB&hroFXtQXB z@w5+%_mqzFWX5`W1vdsEN>h3!d6BO-6oBv~oP>>)0tkA6_v>Z-eut(|(Y)6G5{~Iw zSO;>jYA9fn;8Pe0tV}wtHVNQ<`n@Ib&&ZPQ0wTC<5d%pu{7$A#Swh)2b$HXfyLY~fJ^1>muX)JTo$j*i@}6<0!! z$I49sc(i%efyWHAF!3mDEI||xz@sShN_*a=WmU!_l=Tn4S&N79 z*7yE+^eyj>M^T&(Jc^-b@sG|VLBpdt$~GQ7hOzt*$k*^FM8X-5*1H}Mk6F*!cudBz zg~wPFfJYx0$g#ujc+7rM@Th?(oGmDO^T)7CHXd)|*z%9AC}1ELNsZK~wdlwVkKyQ% z@F<29Fn5c?4xDeD68_zY=+Hh+vn3v)iNY1~E@6@W)K&PbBKcXt{_s63m2H=)o9i_w(`4x1NcvZ576OTeD+jxvjWHTN3 z)`7>tQYIe7wmcvn9iO)Gcp1kQ9`#VbK%!(I)6kI{9AjmH)oTX?KS0R!1vojVFbM{an0 z_k`fl9oqxh!s7<>famj*s{-)&18IVWNBT+|kJ3imbr(F=RPghU>wpw^j3+bVR{&)g zA$$GtD1ZUD`NtYc9KGQ$LN~$VUKJ-ES5da{NE*my`eKg*j}?!bc--9dfOym{Z{zVS zjx9XOqJV*PYqw<53Q$1CQnCS@7uptP_vUDBF1Ce~0Bi z0r{GLlqBKoAKf=TARfyiY&<^2v4zJJ6fh7OPt=87?szQ6-PeRiEOxQ7g~w6m0sF^> z6#;l0N1CAFvFHmMk1(S`rVAcZpY-#OBY+fm^dvK;hCj=&L|xhGk4MI%?s!b4#1YrY zp_|}wy0R0GgDBg0On95|NQHb2k4Yq)@i?~O0r4nN&c-7Y#}*#BP{2SuJf5i5=*Z1K z9!HOa$69PxWDAe_Vn6ba3b3}He>6a1qT%uIavP6eW9AhXJaRLyH273QATy?h zZ;xbqb=u*NN5|ssc;v?Ez+)nM7Cf3)a^g`JWgCxByqyAR=s(*Xc-(u$#3Oe71LEN= zW8*Oj#}*y~QNTdX$Ut_YBR4!IqDR6b0^1+i!eb5dfc;~@=K*+pg)~9Kqd8ire7A~` z|FQ{38uqtoKaCU^RMyWwRs&MtaY^tfF2gvm%^#2b54+xfq zkFhwdM(m{(f7 zngU3HNArrLfB0bji25SkACF~t+|3P-RyZAaEMH{$$DF5}cuYds#$&PI-3;$sZrl-cHog-*u*1f)dS+uw1kbvOE|XhsD=UtQUD`BM@i_& z4Uc&ANd9pF%k6C8F-Yu3c${1qfJY+I1PzZBXkp{A_g5D@sxz-N{}>2Jfydqoj7Kc= z$1qYi`QzaYbH}4PP6r+@qG!QlWP}rs{wUl25qp~DSB8AeKO#vu`$q!qy?LPh#7&Rd zczlUt3y=9I0FM#f82FnT-SOBQDtNTUZdbPOIL|!b`Mle!7EskkANt7@r2?cb=61i@>5zqpc^*n)upMRZ)b9|jYE=LQ%bk*e2H?FVS z@^CtEiG_}W%kEN6T-Kp%<8to}mY)du8ZLuL_;FljHa34wccIwV>;Loj-R~B&@yW!o zh0i$@fX}tg++huL=;kkfKP31}!}diWKL7Ij73IW^ne=m!~7Pyq6v^6#SX&FYHul#YTjRCmL@8>CzM85TjiA!WjCoUyX zws9FOH2!(51DDhJO@E14`hfn@7x#ad_cy$bV+)U#C}1GPD2yWiMMrLU^h1xF|6)5N zTX;+r`w<>XFlN8?$aJI)8Xl2A%*3OhVf^fZM=R!)7QdzdQsD9E6O0G_FdK&P#TtJ+ zmIb@x(F&(i{Ic+v^SBd_NhsTR+!ef=LB8fE%}KcAzl$Fbk5h$hJPzU5!ecuMz$0Bc zDu#~S@c1d8;E{msi)`VMTkJ=8%>6h3k32|JG(6VLHu1o{pho+jT=3XY#Lqu+A+ZG> z?=leKe|BO#o>=XVM+pqT%|CWfB8l}ObW{0n2`3)+9@Fs{Bl5pl<-j97uZc&{q6fsI zX_$@2OE|XhsD=XYm{ytxl7x=j@Q6o`od06^oh>{DiTwzVu#W=pNJQG8;gJrjsQJB$ zvF}F{4t;%Coq47C$3Q>|JbV=XQ^ODNM^x%ce>}W--0`T6(}73AOcRfhk2>+_kFxC_ zkG;lbstoy>e?*dS$$u9L9?tvc$6c;~x4#APBlK~&xwSY)6osal!Z({ZQz-xUkT5Eeglt-y_}u1@Sqw2>uNy z8taLVC>Tq(^Li2@f>Poma;LP8$c3+Z6~n(S;W&6W7F9Wo{U5_{>+oghI<&&@@jdEs z4_r{JmxQ3-;MkO*55=YoD3H=3KQP+>T|EPWQsQur-tL~Uo?!e%=VDl5Q+gGQP3aO6 zozkmNY)XqzV>lj|;A_vmA2Ho)`*G*l`k_fVkYb=$$xTXvmf%z*g-X1bkUyecSmDp9 z=W_%0(SGuf>Or@N4^2KrKH}t4NtA6qoqLt}^z#=EKAp}5!B0_M5;0%*@13I^G#V;2 zqI+6%7<~%bH0q3FqS32FqgPPCC}vWeNsU^7p4=R~FS?}Gw0|Hp!V3$l7gTS3xXCoS zJem^5(bS#ApQ*}z6`30$!)LfW@;4c|0`aGv;!p6FE)XHNzw_%GT7<=UT1Vi{_ZD~} zwKeW~^tQlVkgX#s;GhB>;O_YrRpIkpTTyB8 zZw~TO@b6(v1wigJMWocIub27rZ+#BXq>+<<-Ebig~_FKb@3i)oT3;#lqz7YR@<2HyRTPi#N|Gd%Q0h1v% zqKZ**#{Ypp;i*%=fZIn+20RhCp6U1ynGf&X(BseyWToIio#M=caQ=u|wbY*nU*bmy zd|QYI_VfNQSPrshD@ttfK3^yxe3(TiJCniH`0q`ws^{%Z zKCNL`LzCv}@#-qFL-6$5aOUYu{)o!I*q^8Q@Z$_Tt!eY`8cHnj`wwX*KktP)`FRy( zo1fQPGHbqA+3_?$C{H%>G z$-jyqRfNc{1KJ&Gk+f3$E(P)idPFLokhHwWb)x^ zh?5VeQMUQ;R}1FDCkq{Xm_r?Kyt;sSU*kgy$NUwi&tK2vw)s#J#}*$7qX0gXkkNEQ zPi}muh%Si_JFp)he2CNLuZ0w8#_enoIDfTLc09#_AY?NPAHau~a|$2wS@EhSx0bYt z;#F}KuOw|EKB&1%rA-J^l&wS~ec|vB8xd{1I{E*=kiZ}lKFQ{IaAu1+-hl3u{cmlY`6eEF$4 z^W`nb*5#PE(jp z4KE+Y_IzTVKUO6$K3|EzJZA?|OXzV7dZ_)6hn#rb%dg{Aw;9X-X08LTbo}aoj~>7> zf~G6H;yl0NiS^cawCWyUi!(aj4~E{J9id5&!j=FBuf#{vfM1{pP5P7%a)%~$=C6W6 zlX~EBPkyn)v>-aj8=7>AYw{(OM~-p`cgMtg{;Yb+coL(+k?}KcV)ZaQCp+Sq_0FAk zux;p@++weN{4NlxxXwID*ucN#Ko!IfSafkZx+1a0VX2srjz@U8VhdMIW3+;Y0AY==q`)#F|;t3SCnTA(7{bHjKAbuk<04Dj%4`t+T^KiQwBld7Nr zHevAS*`G!PABRr*Np(;RWx%|*DZ|k7QzkPSf_MC?j~X|{Am8yWl4cN{M2C@y2~$u{owx!vqZg%EvffmuZASN| zEYjg+Rez7_Nd*#d2?H@3;g?Ao95zm(W((PkiYJXnJ$LWp*C-mCg!S;*>~J4?k){0q zoy{5NVNC;z{ zHMZ@xK#A!=vVj+yXp*XIL6xT6-c^;gsnWDtcU4)QDouS~R+WWONj53Pss)8k{>?UK z0alI9Al2y8mj>%Nt{>95xmi}iYZlP+VWBNHYtE0iStG8u6|A|2V1l<%>}l-TX_SH4 zUhNFe+mQ6EOw#e5izIr(&inU$JQHDWdJeqZ7WT6~r&zreOf$!$fg&7!8$bvnU>G!-!P%w8d@eL_>L4 z)i1(`O^Q+dJs641(M%uWN3fA8lm@ibc%N#tA?`I2sYY>C2Hg!c+MpLE@t`{$mY~yy zM;q2`D-9Z1}M}5Y@jPHmS8Mnxw`9dd;$5UsPLH~f6$q-E- z*&I6==x0?wk?NHNsD78KZ$ms%cA)w%xIVEA*HPEQ!DXnwqk*W;!7Ye{DW9g3hKjJ{ z^+1yA>BRbS;skXfJMw;TfX46?j{zYG`(^eRsw$nvQ>8|VM^*h^s@KMlQ`LV!WYNap z`%`Se)0?K|_p1I?ecI~>2AQ1^5jGeds77@o^ogSyjVybO=cq=B7Wzb>Mx##;AP1s! z+RH=W`C8 znvVShFfo-N!>lw4P>p8J4aQ%ryA9n7`cA3VRDC4(qYk-_8fv&Ml0Rc#6e0l3u!?4Q%NjWKj43)e)74Qtp|W zXG=Zt0jl=pAP7`;Ox8${lggWQMtwPHf;x%Q;r)LBP3*bYoWBAi>h@YF92V?xm`%r4>$Cw@YXcjGHCuvz ziLhVTTNLIUWIaem+|>frJ6jmXzJ?`h;6XoMIq=QiAO7$4?PJ%;-11{2g>Y=GZ*!u6 zCBc!Gc#3T`)qQHP1k!;8>C*0+&&k%MU0UrM5E??;Rj`9FW)Sl^z$2;scGjX=7j??==$ z#$F=>d3J>+oy4#acM{5Bi8>AU8PRZ(pcX!>UNLIXw$-?uH9ZD45$yevZZh8QnB8*%T?db)a5%>cBk#X*;9Z!=PfFIW|Okc1*&<-|2#aDzL7Q9gN*jq>AU zGgm!(0cM~#4_O$k5J@GiiV-4deS48a(@Vx$3&BxlbBb4_NpoqQqMB26MzV!(3u$gA z7p0{6tExH0IA1Fo8O1h|SJFJgthj=or^3jdQfE-LuMC}G#_G$ApBB6~$r*p(`Xkwb zgLfv4nJiCz^!Xiuk_LtX0%cHy(VlA5kWdpFQNd_HRivLZij633RHG`T7q=>Il%gu7 z30H*~1yRLZ;Bv4L4@BkHB#x`?-Qzh~HxfOvcS62)7(-xINR1MdAoc>QHCxyo+7PsfN@ zuL5g^*Iri>eBLW8cL|OeQsZ0v;uR<|u@JF6{1|SS!f<|_=pR?l{{j=b-0$hd>FB&4 zI+wV50>4V6$JN~^+i^8s#PVB+)KO(#C(QMU2<8#ho9{u3PdTs&jq zQwdp6w(#lev+;Qy$Cm%JL;(ZJkPa83LpOZ-p=ZJ;=@VT%i3w)Y_R?M_p{*B z9Xk%$@}C>b3yyE42L|Bt2T}zKpWrEMqTk=q@QGcW1wP9RKYT6$YT#3pESfdW`qSr`suadgbv;CiAT>A-!9z9CO(72j)YGf439Nx9NsH!E^-o) zc3AiVLqvNx4Sr+(IWWH(ftq-7v{~VHguu8~qlE?VtGY(g(-0-PL392`IVILEp z!Izx)^hDXlXQ{lW;7Q2W{HHt#XaDJ!m`!|^ow4!x6vq}mQ&0dt1Ej+XquudYeq8X0 z#ZE-F{O2h1g5%qg-U0X=$82rklY*QSCK`igR(y;2JPUlhXZ`$#e!mp>JWIFZriRa} z%;DhIQU3UxKjw~)ml9NOcn~^Q>mU3)kz@UXvW-uq$WMlR4WIEOobmZ?P&V-?aN5S_ z{?8gd*HOTL?#lZGV$q?S{}e>eW)taC8&50;F~5s&;91ar##9wK3`Q7 z{6{$Oxp>6HrxGqN>hq8JOAO;KhZ&=PA}DAFa0V8caFm3nF;x!4jcH`zu}~17*a56b z`(${^lXd`OUc;UHvFeHdHR~wj=l7OB%K}FhruuR?hRD!KM`c&VD1r(Yq`D~F9SXbQ zTM3$Hq}cn*BDzT;!rzuSsqNc=@!9Z*Ch;skU5?(Fx%m7&<0@YjD!aj0d? z>2>#hdJa54T`71B@keMJdj#n zw2K|?Pk?&R&PNwWo%Y-Wd$MwBL+S3Dyp4~W&7mVMYhye9nsFqlRm^5-tZyaT=>y-p*ufnF=I7;i%(?OKgwyZep>#xcsTO#Py3*{nasY zmBF1)VJF@AG=&U+4vPpH;L~2(3G>6l8fXRsEPUGX0|^v9t-&$#>9C47^HG85aD`qA zk{We$s5_rF9|+`AFBU8D<~8Xenlx-75@(6T`65x{(*Ve#cEK+CZ<$McitK*(KK-B+ zUojXXWGeE83z@>_yOZe(n=tVObR)rLGxAB0DL3mBoAeHEsHSh>nm?F)@ zGz`uge!R0nMEw@Tub-;)#8(hkOX#|!y5eCpJwZManv_6SQOwHm$Z|2ZTjzu)RP8H; z2Dl&EY|@PqVdNp`Nbv)xuE#*B?{n24!UDAH7X}`apT9nebV(C*pYZ}ehdQl zFwNWisE14xHuT_q02)7%KHia}Wyy~;%(yl`&cT9# z{Fpt2VfzeH)LgI`!5qwZdlA4y1aRMx`$Xx&Lbn(ep$i2MY{{HnF=RB#9TJu{F;1@FqS2i7YGdG>t>na2Jjg6H29?8Or^jdiN>H;&nv z#(1;C=BmR)uE2QephAVLOkuJ5l>4Of%)*RQkA{R^*+l2rehKZY z3c^e8Z~JR@f95@*=;xa8sPr=s{ctC^E0k5SbT`HNz_w^0&WU@QHLX+$ZW1;5=t4L(}`CP5)p9s@lr^#Ms^$EPzdh@ zs7)gq=eaUrnMKbdT!Aa&a%DTyn1_T4nj3iRp8^zB`(j9hX~Gsj(v-&_6*uZol@g$E zd?5oI(qaT_|CoUMnUu9o3c2b;@ zEP?C0bNv}(IqEYGy62CF50D-F*Q-qk3QXWfc9KL|uclzBpJo2I4A{WWc|9_U1xo%n z2*-~6u`4Rzb=T#g{k8qw^T**k0`tcTELQTz$EAyC(lAUU&J~GWMIyd1*Q@+{NNBg0 zcB=gH-z@`hD}r$qR^2hX6tm1ENbXUXgn?gH1f8?=sZO8Z-pJT^QF@x)y zsQM|W@0q5rPq*%Oh5g+5&~IBHABwYB;X^^`g87g`B+e6wEk&ZnhtiNmyxBlIWBz=oK;Cp3wz2rI ztpl2S!;iq&0h<@Qrn~dulkfca&=2V>_^^f_vJcNIs=eRWpAX4f{rQj^%-TXqDL&MP zY5{yGDJnke$A_n&oz4dyTgx^w`i}?EC+}NueJxc#7WF;T{`37>v-Z&l<$jpSI0mM2 zKg?JZfM;8Ioxrg^?s(4LB3jhI`Z`Q??>DZ&G5f2z-#8x?Fvth;dVrg~-0|J~O`yN_VzFxdFI}*|wh)OgiNyIL zQS;XUkVXC)?4tjcUgWQl2-)cd=2x|vyNcae7=Q9BE-qVSio45RVk>Id)(Bj8_22A+zDGQW%J{89f zevCy0>@`6i&p+1FogcF|1@a?~#R@-OlrESbRYYPmD5XCvror_^VRm!YE04<6%tFN+nnzeS(S53cX3>OV)l#t-YaqsLsn z4HIdPQ71*vc~}Q+*g??dN~n)D-)!6xEG*fM@sPFO<8}2!ZfreC?=eD?*CL~e8?%$7 z%3H0lA!M#-@ctq;V`y@1dzo{_xVMvR8=6#JulyfVATivc;7Mtf{1%e!_|)#SffG`r zInM!Rn|RMTV;iP-2up5gr}bxyi7YHMsVXXQ+CR_8_eJeEbmfv#Y?NcPEn=Wv@r@uW%A#8Wm{yqpwJIk($i9c z+opzhP_-i9v)nSakTYy2`0$M}&$(D>KbOCyY5S(x@JG5#o* z@$+dk{`b%(KD8eflF9<~9AMQWc%m!blPO8{Eu(~opTC6>KG>$LvI#aKtBmFfSmkq6 zn3@?6DGgrN4e$pjM!JsHE2EKN!YYUHhF;Ao@$$TWtFES1UR^I%`5g;XC}#YH0O;$( z3(aWOzciyT7 zyi7X*#}EZ2XSmZ8R`Z5e-(MNi)zFBz)P#r{Uz4B5joXf0;V^6t7srdo@bS2(ML~R& z#@om65#ec33?CKn3Nn0D^0asyA6580WZ{b%KbzymXAl=l;##w~8=t9!j+e&MJooQ2 zYQDy_6=6n)W|XAi_f>H|ph21#nnW)XiTBonHS>7)TB)KLBVOU#w4)llZhAx0wV?42 z^vs%x++V;2GK*+37h`xz=JT3NIwRwAqdig->+DT(_OUoyqcQf`f9x>ofooT4_y^dgv;}kl+50>J1IF2(? zc#gw<`hM(+;JYsL-Da$3+u>~!YL5FO9Wu~}-WL*ZeZ&}>PT>o`OTQQ$$9oft z$EC(cJQAP!V>Z*pYC9j$ zfA4-YfRo?557U3|o}PDN?N@Fx*KGO)p!YFUWM9rVS;81>mv0avug8RjHH2rKF+x$Y zY*7z7`~HAz-XB!$Q_(^m_c(LCap*G*gRk>-)?0{Y)`|J)#LawSwAoJ^oCo`tZtNY5 zSMHp_GY|+qrN@JVrs%?XZ4Qor_?(A@fMbi*Xbv;TQ&mWQ$se%*Tv-P#XIoh-wkOi zt2(|mCL!meC}`tL>v`ih1SIo<{wY2l`8?@x2**g-3!x9X{s)nmDDj24ftLBD_}Kf{ z)u_6a-jRfXh3Bu2$s#psdqZ*)nA+Hoq}J9Qci?)YiX`N8!A8ht>Nzn#2!eO?;2NP7 z6K;S^@GNWYi3?S|K)Th5d@a4UTwm7Jk7y^U8|5=ULr^mn{R8h1bD!{jG{JUvs3pf$M}? zdem9esR4Bejjcv4DByb!C+qv}xE{;6C(N}vJc8sBfwTE`J5kB_G7U+HuUp_yBu!1d5)wi-_%w8~3e>8goSkB*en;=NGlM3Rw3 z+n~9&KQaSldw(P?A9J%!d&mAr+b=N28IWzvjt|%$QP;DoXiFPBk_OA1UB}SU^{qUJ z`FwpVo)7TKp`zGDz>60WI%7^qd{kK}(}-uYg(e?E3?R<}@n6NQ+>}zRf)e<|Ww1AC z>kBW##U!KN%<4HAn*0@<9>lAnE{!Eo7%|i0OydUFgcL2gBAnOitut39e5|aTX*81x zk9iHjcu`K1%g^$F9j@hqieqG@ihVmsd^C=es5e^fPurGX+2RIpkIh) z&`nKfJ@pPU3(_z@q*@A@{ojP~aoQJhnw=JA8nyT|7&-Yc+E|K@ThHT7+C-J6;{8?S zBC3QTSlOr5Xy`o!P@a}yG-u_YgVJGq6*gAhy%>)~20qFNJrNg*N(l>MO}R^zp2K-N|Sd z?QAd8_()ZLPnGK0myx6@H=~jU*?J9`6l01~gRGAV=LKJm8_@3)x`Qe;YOJMSd(v+# z1Zn(@s2jlFRjY)*BZ*w5Eru&SdK1jvkSlfkmNl8idwd%4w}DW>g@7|wD?+>txip+) zuE20Qqr!qHRCV?RRhk;y0h(m9@99);NMC3`_pcPU7hjpit(CIq8$!nMhBOM)@|bF| z6fJP(*QJ3qC!Lgm!l8#p6qhT#%i1&PDNI*EEc3O-QbDuZ~=9`<5h|ZC&?l(W=&K$so=wpc|+@1B(Zx@Cj2{JXVbYszp_VxE_;32$r7A_glbPu=7;cKqE z=V2B~W2AUTpS}VRO8wpalKOLewL#8eS{ln>5KQBxan2T!Y4pJr1{wNTT<#l)n%~@H2R%RI8%M8SGTG5qWWKG*d<~;iGN)-W>5L4% zm!s?#WIas!i$G^fyX9a2A!xnGi46Urs_d@^qFk!-DHz^z=qrGPPM6)akkik*n6x+2 z2DC}JB%yC3+W48Zk!tZcWlAPm^?;Vy554*2tWgCu#G1KS!iA1)hoPC@8{znhSVOM| zi}jrI(Ho0sB$bz|K|eb3~eeA!j%bqt&YCC&Z%PZU%D0c zfEMuby}QI&DcbqY<8?}wm_^dyC3RCZN%!5PfRh^4@dU$cESL|FuiVs5dPh$B@{UO5 zlTsm-#?@vSjSDX#sjH9c3?L>nM(E@ER#ncUN^@LMsFkpxzc(WSEi8(TrjT6 zN&_BO9TH=vn(4pu8mqEZ@r|63zEgCjb{ttD<=$HCL=~r5%p0;U%7rH}NK1$(+bP_7 zL#CjOA5TiD7B`8(=1?93MCK5LC&8#8o(z2+x1?7$zcYTv@DRC`?h-Z+pee#;P()+T zR_2e7Haq~!&SL^gL72^#5APYm2wtQSe6D-X9EdatBmyT=jZ%$6-7r*;G8xYiX$$D_ zsEa71%&)Fz)fSCtJJ_?G1EKFG$ZWok@ITkzwU-hza?1KUk_&46T?PeAKAZmH@G_{0 z`}(`~r!-&S{omGRRj{=x3r(&8+G9=Tvi|M{Mq)q0UVqQe^jm+=1A4IHphNbQ26ZZl zI%^w~y=ncuaSkm09(d_o_ZIz}<7IPz^-f4^FtiK9P`cySR&^|I81 zEWwSVhz#cX`@VshJf_`v2owB9u5{wpA7vZA+qZZal`#x;*@3tiNn>IB5^6snew#ki z@LRzJbN>qk;8$%3_jIG7JARvH34X1xQ4xsWzwCd39S;1;;%B;@`(JPZ_}`8F4*V9- zlLM(yHK308Uo9x$;(t>Y`Qdj2m_Xc*U-{$rzh?vR>xm4;fB%c3k=p-S-_dXX3)p74 z|AlUWYXUkETo=(BDKx*FfwGP31>AIx;k9Ytz_sni7^Ccez2MycGVk}#`u*rXE+Bw& zjlzB3XN&_V0Mny4xtCJtg?*AH0KUOhO#0hLg6Sya-hr6Tm6*!!L{B53L%E0Cqvlw# zF0UBBrJ8Hb7!B}~-vIX=t0HzGqw%m>XmC=K8eUuUY8PvQ+X;dr)#r6!27JqG(ePcKrslRY#tm+t_>@(#UE1frF73$#zIQ36%07fQWM1U}UNpz- z3SKnP_C;%h$EHkrk6CRDoziRJ%2i`iEhks*BCZHm79!5t?}Mujb-fyPfvDN_T%Wg28xZr3V4*>kk$jxy9avt%_V=2`DfdsZyg#{+4a* zxnTT`nVfG=PEG_27E>O=&y!P<*o7)3Q#oV&fuG2x%BHARUe?H3;EZwcBAFv0 z0eWOS!+Ow84W$?)WF|5cN>rm!p)q$15TZ+ryNRlDhrv}`T-7)Bn}f{09HON0!KVQ` z4fHZ`Yf$gZWe2Rk+Yzs)Ut?P*MVq#sFdZD7tYp@KOkU8pAW5dedq7MKXM`m>uZ(Y+ zjX!>pn~cAkLV`((YcMtK;_>nxM0rz zD8N~MzskzrsGG(7KUG|(6;`x?bH%^R|3Kb3|6d?T_3K}tEyi*Kmpm!qQd2}%QKtsf z0k;vwYC!?F`F{?}xAX5KNHihtFs54)M;4a+ZPio$o@?|(PT@cQgOld`|2}Rr)ZOGM z#D*;Af68x>*P#tCV_YJ91^j+Exuqk**Jp7O;nkA(j1j3S zpCeC{h4C5VQB~=9&t;IRq{lh=HNP~@%-Q1qf0F<6EkLOJQB|HpB^uF&bu_q2{nv&CYT#kV+88yQqhsLI#WqUpfc@ez$K*QnYw zvUMl~%#u|zn2L9530<}thbIeNdSNN*`;PVz6Rh8b#b$_UzhL zMI-P4uK4Iyhi7lQ#Qk-!`s;%JGA0>IBe6Sa4sAIY4VJaGD()gfgse|+GPyOi%UEsc zk_yO(S_AaZy;n}z{ka_pe8bTI#{8_DZ1mJb9JYkC|B#_cDFY|c0&xtG#wlZQii+Aw z$;LEJiZz_o5yz0Z@hUbd zyVHAn`DMNQ?q2oEUThYk*6qc;-*g6zPGhX*{^5VGZ|_W#K*sCaD<~jmS$~n~`O